/* ==========================================================================
   ZYNTRA NEWS — PREMIUM THEME STYLESHEET
   Domain: thezyntranews.com
   Brand Colors: Dark Navy #0D2A5C | Red #E10600 | White #FFFFFF | Grey #F4F6F8
   Fonts: Playfair Display (Headlines) | Inter / System Sans (Body & UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800;900&display=swap');

@font-face {
  font-family: 'Anton';
  src: url('../fonts/Anton-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0D2A5C;
  --navy-dark: #081B3B;
  --navy-light: #163E82;
  --navy-soft: #EEF3FA;
  --red: #E10600;
  --red-hover: #B80500;
  --red-soft: #FDE8E8;
  --gold: #FFD700;
  --ink: #111111;
  --muted: #555555;
  --muted-light: #777777;
  --line: #E5E7EB;
  --line-light: #F0F2F5;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F8;
  --card-bg: #FFFFFF;
  --green: #15803D;
  --amber: #B45309;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(13, 42, 92, 0.12);
  --shadow-hover: 0 16px 36px rgba(13, 42, 92, 0.16);
  --font-headline: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  background: var(--navy-dark);
  color: #CDD6EA;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.topbar-links {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-social a {
  color: #CDD6EA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: var(--transition);
  padding: 0;
  margin: 0;
  line-height: 1;
}

.topbar-social a svg {
  display: block;
  margin: auto;
  pointer-events: none;
}

.topbar-social a:hover {
  background: var(--red);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.topbar-links a {
  color: #FFFFFF;
  font-weight: 600;
  margin-left: 10px;
}

.topbar-links a:hover {
  color: var(--gold);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--navy);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(8, 27, 59, 0.35);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: clamp(23px, 4.5vw, 29px);
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.05;
  color: #FFFFFF;
  white-space: nowrap;
}

.brand-name b {
  color: var(--red);
  font-weight: 800;
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  white-space: nowrap;
  color: #AFC3E0;
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  text-decoration: none;
}

.main-nav a.active {
  background: var(--red);
  color: #FFFFFF;
}

.search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 3px 4px 3px 14px;
  transition: var(--transition);
  max-width: 250px;
}

.search-form:focus-within {
  background: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.25);
}

.search-form input {
  background: transparent;
  border: 0;
  outline: none;
  color: #FFFFFF;
  font-size: 14px;
  width: 100%;
  padding: 6px 0;
}

.search-form:focus-within input {
  color: var(--ink);
}

.search-form input::placeholder {
  color: #AFC3E0;
}

.search-form:focus-within input::placeholder {
  color: var(--muted);
}

.search-form button {
  background: var(--red);
  color: #FFFFFF;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.search-form button:hover {
  background: var(--red-hover);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   HERO / FEATURED SECTION
   ========================================================================== */
.hero-banner {
  padding: 24px 0 12px;
}

.featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin: 16px 0 24px;
}

.featured-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000000;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.featured-main:hover {
  box-shadow: var(--shadow-hover);
}

.featured-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-main:hover img {
  transform: scale(1.03);
}

.featured-main .overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(13, 42, 92, 0.75) 60%, rgba(5, 15, 35, 0.96) 100%);
  color: #FFFFFF;
}

.featured-main h2 {
  font-family: var(--font-headline);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin: 10px 0 8px;
  text-transform: uppercase;
}

.featured-main h2 a {
  color: #FFFFFF;
}

.featured-main h2 a:hover {
  color: var(--gold);
}

.featured-main .date {
  color: #CDD6EA;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini {
  display: flex;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.mini img {
  width: 130px;
  height: 115px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mini:hover img {
  transform: scale(1.04);
}

.mini-body {
  padding: 12px 14px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini h3 {
  font-family: var(--font-headline);
  font-size: 17px;
  line-height: 1.25;
  margin: 6px 0;
  letter-spacing: 0.3px;
}

.mini h3 a {
  color: var(--ink);
}

.mini h3 a:hover {
  color: var(--red);
}

.mini .date {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   BADGES & SECTION HEADERS
   ========================================================================== */
.cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--red);
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(225, 6, 0, 0.3);
}

.cat.royal {
  background: var(--navy);
  box-shadow: 0 2px 6px rgba(13, 42, 92, 0.3);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 20px;
  border-bottom: 3px solid var(--navy);
  padding-bottom: 10px;
}

.section-head h2 {
  font-family: var(--font-headline);
  font-size: 26px;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  color: var(--navy);
}

.section-head h2 span {
  color: var(--red);
}

.section-head a.view-all {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-head a.view-all:hover {
  color: var(--red);
}

/* ==========================================================================
   TRENDING / MOST READ SECTION
   ========================================================================== */
.trending-section {
  background: var(--bg-alt);
  padding: 32px 0;
  margin: 28px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trending-card {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}

.trending-rank {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--font-headline);
  font-size: 38px;
  line-height: 1;
  color: var(--red);
  opacity: 0.9;
}

.trending-card h3 {
  font-family: var(--font-headline);
  font-size: 19px;
  line-height: 1.25;
  margin: 6px 0 8px;
  letter-spacing: 0.4px;
}

.trending-card h3 a {
  color: var(--ink);
}

.trending-card h3 a:hover {
  color: var(--red);
}

.trending-card .meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.trending-thumb {
  display: block;
  line-height: 0;
}

.trending-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.trending-body {
  position: relative;
  padding: 16px 18px 18px 66px;
}

/* ==========================================================================
   TOP NEWS SECTION
   ========================================================================== */
.topnews-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  margin-bottom: 10px;
}

.topnews-main {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.topnews-main-img {
  display: block;
  line-height: 0;
}

.topnews-main-img img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
}

.topnews-main-body {
  padding: 16px 20px 18px;
}

.topnews-main-body h3 {
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 1.25;
  margin: 8px 0;
}

.topnews-main-body h3 a {
  color: var(--ink);
}

.topnews-main-body h3 a:hover {
  color: var(--red);
}

.topnews-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topnews-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.topnews-row img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.topnews-row h4 {
  font-family: var(--font-headline);
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.topnews-row h4 a {
  color: var(--ink);
}

.topnews-row h4 a:hover {
  color: var(--red);
}

.time-ago {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}

/* ==========================================================================
   LATEST NEWS CARDS GRID
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 12px 0 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-img-wrap .cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h2, .card-body h3 {
  font-family: var(--font-headline);
  font-size: 21px;
  margin: 4px 0 10px;
  line-height: 1.25;
  letter-spacing: 0.4px;
}

.card-body h2 a, .card-body h3 a {
  color: var(--ink);
}

.card-body h2 a:hover, .card-body h3 a:hover {
  color: var(--red);
}

.card-body p.excerpt {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 14px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
  padding-top: 12px;
  margin-top: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.card-footer .read-more {
  color: var(--red);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-footer .read-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */
.article-wrap {
  max-width: 760px;
  margin: 32px auto 48px;
}

.article-header {
  margin-bottom: 24px;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.article-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-date {
  font-size: 13px;
  color: var(--muted);
}

.article-wrap h1 {
  font-family: var(--font-headline);
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0.5px;
  margin: 12px 0 18px;
  color: var(--ink);
  text-transform: uppercase;
}

.article-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 16px 0 8px;
  box-shadow: var(--shadow-md);
}

.photo-credit {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 6px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.photo-credit a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.article-body {
  font-size: 18px;
  line-height: 1.8;
  color: #1A1A1A;
  background: #FFFFFF;
  padding: 32px 0;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body p:first-of-type {
  font-size: 20px;
  line-height: 1.7;
  font-weight: 500;
  color: #111111;
}

.article-body h2 {
  font-family: var(--font-headline);
  font-size: 28px;
  letter-spacing: 0.5px;
  margin: 32px 0 16px;
  color: var(--navy);
}

.share-section {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.share-label {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--transition);
  cursor: pointer;
  border: 0;
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.share-fb { background: #1877F2; }
.share-x { background: #000000; }
.share-threads { background: #000000; }
.share-pinterest { background: #E60023; }
.share-copy { background: var(--navy); }

.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.tag-pill {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.tag-pill:hover {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

/* ==========================================================================
   NEWSLETTER SIGNUP BOX
   ========================================================================== */
.newsletter-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.newsletter-box h3 {
  font-family: var(--font-headline);
  font-size: 32px;
  letter-spacing: 1px;
  margin: 0 0 8px;
  color: #FFFFFF;
  text-transform: uppercase;
}

.newsletter-box p {
  color: #CDD6EA;
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 20px;
}

.newsletter-box form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-box input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.newsletter-box input[type="email"]:focus {
  border-color: var(--gold);
}

.newsletter-box button {
  background: var(--red);
  color: #FFFFFF;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(225, 6, 0, 0.4);
}

.newsletter-box button:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
form label {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
  font-size: 14px;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 15px;
  background: #FFFFFF;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 42, 92, 0.15);
}

button, .btn {
  background: var(--red);
  color: #FFFFFF;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(225, 6, 0, 0.25);
}

button:hover, .btn:hover {
  background: var(--red-hover);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(13, 42, 92, 0.25);
}

.btn-secondary:hover {
  background: var(--navy-light);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--navy);
  color: #FFFFFF;
}

.notice {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  color: #1B5E20;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  font-weight: 500;
}

.error {
  background: #FFEBEE;
  border: 1px solid #FFCDD2;
  color: #B71C1C;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-ok { background: #DCFCE7; color: var(--green); }
.badge-bad { background: #FEE2E2; color: #B91C1C; }
.badge-warn { background: #FEF3C7; color: var(--amber); }
.badge-info { background: #DBEAFE; color: var(--navy); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #CDD6EA;
  margin-top: 60px;
  padding: 50px 0 24px;
  border-top: 4px solid var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.footer-brand-title {
  font-family: var(--font-headline);
  font-size: 24px;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.footer-brand-title b {
  color: var(--red);
  font-weight: 400;
}

.site-footer p {
  color: #A0B2CD;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer h4 {
  color: #FFFFFF;
  font-family: var(--font-headline);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
  color: #CDD6EA;
  display: block;
  margin: 8px 0;
  font-size: 14px;
  transition: var(--transition);
}

.site-footer a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 13px;
  color: #8C9EB8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   ADMIN PANEL STYLING
   ========================================================================== */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg-alt);
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .brand {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar nav a {
  color: #CDD6EA;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-decoration: none;
}

.admin-sidebar nav a.active {
  background: var(--red);
  color: #FFFFFF;
}

.admin-main {
  flex-grow: 1;
  padding: 32px;
  min-width: 0;
}

.admin-main h1 {
  font-family: var(--font-headline);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 32px;
  color: var(--navy);
  margin: 0 0 6px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--navy);
}

.stat-card:nth-child(2) { border-top-color: var(--red); }
.stat-card:nth-child(3) { border-top-color: var(--gold); }
.stat-card:nth-child(4) { border-top-color: var(--green); }

.stat-card .num {
  font-family: var(--font-headline);
  font-size: 36px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin: 18px 0;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--font-headline);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
}

tr:hover td {
  background: #F8FAFC;
}

.health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877F2;
  color: #FFFFFF !important;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.connect-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.connect-btn.threads, .connect-btn.x { background: #000000; }
.connect-btn.pinterest { background: #E60023; }
.connect-btn.instagram { background: #E1306C; }

.preview-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 520px;
  margin: 16px 0;
  box-shadow: var(--shadow-md);
}

.preview-card img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.preview-card .preview-body {
  padding: 18px;
}

#wc-box {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS (tested at 390px, 640px, 840px)
   ========================================================================== */
@media (max-width: 860px) {
  .featured {
    grid-template-columns: 1fr;
  }
  .trending-grid {
    grid-template-columns: 1fr;
  }
  .topnews-grid {
    grid-template-columns: 1fr;
  }
  .topnews-main-img img {
    height: 200px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .admin-shell {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  .admin-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    flex-direction: row;
    align-items: center;
    gap: 8px 12px;
  }
  .topbar-right {
    flex-wrap: nowrap;
    margin-left: auto;
    gap: 10px;
  }
  .topbar-links a {
    margin-left: 6px;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px 0;
    gap: 4px;
  }
  .main-nav a {
    font-size: 13.5px;
    padding: 6px 10px;
    white-space: nowrap;
  }
  .search-form {
    order: 2;
    max-width: 100%;
    width: 100%;
    margin-top: 8px;
  }
  .featured-main {
    min-height: 320px;
  }
  .featured-main h2 {
    font-size: 24px;
  }
  .article-wrap h1 {
    font-size: 30px;
  }
  .article-body {
    font-size: 16px;
  }
  .article-body p:first-of-type {
    font-size: 17.5px;
  }
  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .hero-banner {
    padding: 14px 0 6px;
  }
  .featured-main h2 {
    font-size: 21px;
  }
  .mini {
    flex-direction: column;
  }
  .mini img {
    width: 100%;
    height: 160px;
  }
  .mini-body {
    padding: 12px;
  }
  .trending-body {
    padding: 12px 14px 14px 52px;
  }
  .trending-rank {
    font-size: 28px;
    left: 12px;
    top: 10px;
  }
  .trending-thumb img {
    height: 150px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
