/* ============================================================
   PINOK247 — Premium News CSS  v2.0
   Editorial · Crisp · Modern · Accessible
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --red:         #c0000a;
  --red-dark:    #8b0006;
  --red-deeper:  #5a0004;
  --red-light:   #fef2f2;
  --red-mid:     #f5c2c2;

  /* Ink scale */
  --ink:         #0d0d0d;
  --ink-mid:     #2a2a2a;
  --ink-soft:    #4a4a4a;
  --ink-muted:   #7a7a7a;
  --ink-faint:   #a8a8a8;

  /* Surface scale */
  --surface:     #ffffff;
  --off-white:   #f7f6f3;
  --paper:       #faf9f7;
  --rule:        #e4e2de;
  --rule-light:  #f0eee9;

  /* Layout */
  --header-h:    66px;
  --max-w:       1340px;
  --pad-x:       clamp(20px, 5vw, 72px);
  --pad-x-sm:    clamp(14px, 3vw, 28px);

  /* Shape */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  /* Shadow */
  --shadow-xs:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow:      0 6px 20px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.07);
  --shadow-xl:   0 28px 72px rgba(0,0,0,.17);

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --t-fast:      0.15s;
  --t:           0.24s;
  --t-slow:      0.40s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', Georgia, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; }

/* Screen-reader only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: 'Oswald', sans-serif; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; z-index: 10000;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.topbar-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--pad-x);
  background: var(--ink);
  color: #888;
  font-family: 'Oswald', sans-serif;
  font-size: 0.70rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.topbar-strip .topbar-date { color: #bbb; font-weight: 500; }
.mobile-date-strip { display: none; }
.topbar-divider { opacity: 0.25; margin: 0 4px; }
.topbar-tagline { opacity: 0.60; }

/* ============================================================
   MAIN HEADER
   ============================================================ */
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad-x);
  height: var(--header-h);
  background: var(--red);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 0 var(--red-dark), 0 4px 20px rgba(150,0,0,.28);
  /* Subtle noise texture for depth */
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.03) 0px,
      rgba(0,0,0,0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(135deg, #cc0009 0%, #b0000a 60%, #96000a 100%);
}

/* ── Logo ── */
.logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.90rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.logo .logo-247 {
  color: rgba(255,255,255,0.65);
  font-size: 1.60rem;
  font-weight: 400;
}

.logo-tagline {
  display: none;
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
  line-height: 1;
}

/* Desktop nav */
.navbar {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.navbar > a {
  color: rgba(255,255,255,0.88);
  font-family: 'Oswald', sans-serif;
  font-size: 0.80rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 13px;
  border-radius: var(--radius-xs);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  position: relative;
}

.navbar > a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 13px; right: 13px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}

.navbar > a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.navbar > a:hover::after { transform: scaleX(1); }
.navbar > a.active-nav {
  background: rgba(0,0,0,0.22);
  color: #fff;
}
.navbar > a.active-nav::after { transform: scaleX(1); }

/* ============================================================
   ADVERTISE DROPDOWN
   ============================================================ */
.advertise-dropdown-wrapper { position: relative; display: inline-block; }
.mobile-advertise-btn {
  background: transparent; color: #fff; border: none; cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: 0.78rem; padding: 6px 10px;
  border-radius: var(--radius-sm); transition: background var(--t-fast), transform var(--t-fast);
}
.mobile-advertise-btn:hover,
.mobile-advertise-btn:focus { background: rgba(255,255,255,0.08); outline: none; }

.advertise-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 260px; max-width: min(92vw, 340px);
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--rule);
  z-index: 1200; padding: 10px; opacity: 0; transform-origin: top right;
  transform: translateY(-6px) scale(.98); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  pointer-events: none; visibility: hidden;
}
.advertise-dropdown[aria-hidden="false"],
.advertise-dropdown.active,
.advertise-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; visibility: visible; }

.advertise-dropdown-content { display: flex; flex-direction: column; gap: 10px; }
.advertise-section { padding: 6px 4px; }
.advertise-label { font-family: 'Oswald', sans-serif; font-size: 0.72rem; color: var(--ink-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.advertise-link { display: block; color: var(--ink-mid); padding: 8px 10px; border-radius: var(--radius-sm); transition: background var(--t-fast), color var(--t-fast); text-decoration: none; }
.advertise-link:hover, .advertise-link:focus { background: var(--off-white); color: var(--ink); outline: none; padding-left: 12px; }
.advertise-divider { height: 1px; background: var(--rule); margin: 4px 0; }

/* Prevent overflow on small screens */
.advertise-dropdown { max-height: 60vh; overflow: auto; }

/* Mobile: full width panel anchored under the button */
@media (max-width: 700px) {
  .advertise-dropdown { right: 8px; left: 8px; top: calc(100% + 8px); max-width: none; }
}

/* Ensure dropdown appears above header content */
.header + .mobile-date-strip .advertise-dropdown-wrapper,
.mobile-date-strip .advertise-dropdown-wrapper { z-index: 1200; }


/* Search */
.search-section {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.search-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}
.search-icon:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.40);
}
.search-icon svg { width: 17px; height: 17px; }

.search-input-wrapper {
  display: none;
  align-items: center;
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius-xs);
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.28);
  width: 230px;
  transition: border-color var(--t-fast);
}
.search-input-wrapper:focus-within {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.15);
}
.search-input-wrapper.active { display: flex; }

.search-input {
  width: 100%; background: transparent; border: none;
  color: #fff; padding: 8px 4px; font-size: 0.88rem; outline: none;
}
.search-input::placeholder { color: rgba(255,255,255,0.45); }

.search-close {
  display: none; background: none; border: none; color: rgba(255,255,255,0.70);
  font-size: 1.2rem; cursor: pointer; padding: 0 2px; flex-shrink: 0;
  transition: color var(--t-fast);
}
.search-close:hover { color: #fff; }
.search-input-wrapper.active .search-close { display: block; }

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  cursor: pointer;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  transition: background var(--t-fast);
  gap: 5px;
  padding: 8px;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.20); }

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }

.mobile-menu-toggle.active .hamburger { background: transparent; }
.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(0, 6px);
}
.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(0, -6px);
}

/* ============================================================
   SECONDARY TOPBAR (desktop subtitle bar)
   ============================================================ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px var(--pad-x);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.84rem;
  border-bottom: 3px solid var(--red);
}
.topbar p { color: var(--ink-muted); font-style: italic; }
.topbar-date {
  font-weight: 600;
  color: var(--ink);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.advertise-desktop {
  display: none;
}

.advertise-btn-desktop {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--t-fast);
}
.advertise-btn-desktop:hover,
.advertise-btn-desktop:focus {
  background: var(--red-dark);
  outline: 2px solid transparent;
}

/* Show advertise button on tablet and desktop (641px and up) */
@media (min-width: 641px) {
  .advertise-desktop {
    display: block;
  }
}


/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */
.category-filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 400;
  display: flex;
  gap: 0;
  overflow-x: auto;
  align-items: center;
  padding: 0 var(--pad-x);
  background: var(--surface);
  border-bottom: 2px solid var(--rule);
  scrollbar-width: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.category-filter-bar::-webkit-scrollbar { display: none; }

.category-filter-btn {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 14px 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  text-decoration: none !important;
  white-space: nowrap;
}
.category-filter-btn:hover {
  color: var(--red);
  background: var(--red-light);
}
.category-filter-btn.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
  background: var(--red-light);
}

/* ============================================================
   BREAKING NEWS BANNER
   ============================================================ */
.breaking-news {
  background: linear-gradient(135deg, #9b0007 0%, var(--red) 50%, #cc000c 100%);
  padding: 16px var(--pad-x);
  position: relative;
  overflow: hidden;
}
/* Subtle geometric accent */
.breaking-news::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.breaking-news::after {
  content: '';
  position: absolute;
  bottom: -30px; right: 60px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.breaking-news .section-heading { margin-bottom: 12px; }
.breaking-news .section-heading h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.breaking-news .section-heading h2::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.5);
}
@keyframes livePulse {
  0%  { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.breaking-news .section-heading p { color: rgba(255,255,255,0.60); font-size: 0.80rem; }

.breaking-banner {
  display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none;
}
.breaking-banner::-webkit-scrollbar { display: none; }

.breaking-item {
  flex: 0 0 auto;
  max-width: 380px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 18px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.breaking-item:hover {
  background: rgba(0,0,0,0.38);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

.breaking-item-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; flex-shrink: 0; margin-top: 7px;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{ opacity:1; } 50%{ opacity:0.25; } }

.breaking-item p {
  color: #fff; font-size: 0.87rem; line-height: 1.48; font-weight: 600;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results {
  padding: clamp(18px, 3vw, 44px) var(--pad-x);
  display: none;
}
.search-results.active { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 230px 1fr 230px;
  gap: 3px;
  background: var(--ink);
}

.hero-column {
  display: flex; flex-direction: column; gap: 3px;
}

/* Main feature */
.hero-main {
  position: relative; overflow: hidden;
  min-height: 440px;
  background: #111;
  cursor: pointer;
}
.hero-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s var(--ease);
  display: block;
}
.hero-main:hover img { transform: scale(1.05); }

/* Improved gradient — headline readable at all times */
.hero-main::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.0)  0%,
      rgba(0,0,0,0.0) 30%,
      rgba(0,0,0,0.55) 65%,
      rgba(0,0,0,0.88) 100%
    );
  pointer-events: none;
}

.hero-main h1 {
  position: absolute; left: 30px; right: 30px; bottom: 30px; z-index: 1;
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.65rem);
  font-weight: 900; line-height: 1.12;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
  /* Underline reveal on hover */
  background: linear-gradient(#fff,#fff) bottom left / 0% 2px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.hero-main:hover h1 { background-size: 100% 2px; }

.hero-main .hero-badge {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  background: var(--red); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--radius-xs);
  box-shadow: 0 2px 8px rgba(150,0,0,0.50);
}

/* Side hero cards */
.hero-card {
  position: relative; overflow: hidden;
  min-height: 190px; flex: 1;
  cursor: pointer; background: #111;
  display: flex; flex-direction: column;
  transition: flex var(--t-slow) var(--ease);
}
.hero-card-media { position: relative; flex: 1; min-height: 130px; overflow: hidden; }
.hero-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.hero-card:hover .hero-card-media img { transform: scale(1.08); }

.hero-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,0,0,0.78) 100%);
}

.hero-card-copy {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 18px; z-index: 1;
}
.hero-card-copy .badge {
  display: inline-block; margin-bottom: 7px;
  background: var(--red); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-xs);
}
.hero-card-copy h3 {
  color: #fff; font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem; font-weight: 700; line-height: 1.38;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section-block {
  padding: clamp(28px, 4vw, 56px) var(--pad-x);
}

.section-heading {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rule);
  position: relative;
}
/* Animated red accent */
.section-heading::before {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 52px; height: 2px;
  background: var(--red);
}

.section-heading h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.20rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink);
}
.section-heading p { color: var(--ink-faint); font-size: 0.86rem; font-style: italic; }

.section-see-all {
  font-family: 'Oswald', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--red); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--red-mid);
  border-radius: var(--radius-xs);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.section-see-all:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.section-see-all::after { content: '→'; transition: transform var(--t-fast); }
.section-see-all:hover::after { transform: translateX(3px); }

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-block;
  background: var(--red-light);
  color: var(--red-dark);
  font-family: 'Oswald', sans-serif;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--red-mid);
}

/* ============================================================
   NEWS GRID
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ============================================================
   NEWS CARD
   ============================================================ */
.news-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid transparent;
  cursor: pointer;
  display: flex; flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    border-top-color var(--t-fast),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}
.news-card:hover {
  border-top-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.50s var(--ease);
}
.news-card:hover img { transform: scale(1.05); }

.card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex; flex-direction: column;
}

.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 12px;
}
.card-meta .badge { margin: 0; }
.card-meta .card-time {
  color: var(--ink-faint); font-size: 0.72rem;
  white-space: nowrap; font-style: italic;
}

.active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
  color: var(--ink-faint);
}

.active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e63946;
  display: inline-block;
  flex-shrink: 0;
  animation: activeBlink 1.1s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.35);
}

.active-label {
  font-size: 0.9rem;
}

@keyframes activeBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.35);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
    box-shadow: 0 0 12px 4px rgba(230, 57, 70, 0.15);
  }
}

.news-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.03rem; font-weight: 700; line-height: 1.40;
  color: var(--ink); margin-bottom: 10px;
  flex: 1;
  transition: color var(--t-fast);
}
.news-card:hover h3 { color: var(--red); }

.card-description {
  color: var(--ink-soft); font-size: 0.87rem; line-height: 1.68;
  margin-top: auto;
}

/* Read-more link inside card */
.card-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px;
  color: var(--red); font-family: 'Oswald', sans-serif;
  font-size: 0.70rem; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.news-card:hover .card-read-more {
  opacity: 1;
  transform: translateX(0);
}
.card-read-more::after { content: '→'; }

/* ============================================================
   STORY GRID (featured/editors layout)
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* ============================================================
   FEATURED LAYOUT
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
}

.featured-main {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.featured-main:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.featured-main img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.featured-main:hover img { transform: scale(1.05); }
.featured-main .card-body { padding: 22px 24px 28px; }
.featured-main h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.50rem; font-weight: 900; line-height: 1.25;
  color: var(--ink); margin-bottom: 14px;
  transition: color var(--t-fast);
}
.featured-main:hover h3 { color: var(--red); }

.featured-side { display: flex; flex-direction: column; gap: 22px; }

/* ============================================================
   TRENDING LIST
   ============================================================ */
.trending-list { display: grid; gap: 0; }

.trending-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px; align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-light);
  cursor: pointer;
  transition: background var(--t-fast), padding var(--t-fast);
  border-radius: var(--radius-xs);
}
.trending-card:first-child { border-top: 1px solid var(--rule-light); }
.trending-card:hover {
  background: var(--off-white);
  padding-left: 10px; padding-right: 10px;
  margin: 0 -10px;
}

.trending-index {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem; font-weight: 900;
  color: var(--rule);
  line-height: 1; text-align: center;
  align-self: center;
  transition: color var(--t-fast);
}
.trending-card:nth-child(1) .trending-index { color: var(--red); }
.trending-card:nth-child(2) .trending-index { color: #c0b8b8; }
.trending-card:nth-child(3) .trending-index { color: #d4d0d0; }

.trending-body h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.96rem; font-weight: 700; line-height: 1.46;
  color: var(--ink); margin-bottom: 6px;
  transition: color var(--t-fast);
}
.trending-card:hover .trending-body h3 { color: var(--red); }

.trending-body p { color: var(--ink-muted); font-size: 0.82rem; line-height: 1.55; }

.trending-meta {
  color: var(--ink-faint); font-size: 0.72rem;
  font-family: 'Oswald', sans-serif; letter-spacing: 0.05em;
  text-transform: uppercase; margin-top: 5px;
}

/* ============================================================
   CATEGORY SECTION
   ============================================================ */
.category-section {
  padding: clamp(22px, 3.5vw, 44px) var(--pad-x);
  background: var(--surface);
  border-top: 1px solid var(--rule);
}
.category-section .section-heading { margin-bottom: 22px; }

/* ============================================================
   SKELETON LOADER
   ============================================================ */
@keyframes skeletonPulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: linear-gradient(
    90deg,
    #ebebeb 0%,
    #f5f5f5 40%,
    #f0f0f0 60%,
    #ebebeb 100%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
  min-height: 220px;
}

.hero-main-skeleton { min-height: 440px; width: 100%; border-radius: 0; }
.news-grid.skeleton-grid  { min-height: 340px; }
.trending-list.skeleton-list .skeleton-card { min-height: 80px; }

/* ============================================================
   SOCIAL FLOATING BAR
   ============================================================ */
.social-floating-bar {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  animation:
    socialFadeIn 0.85s var(--ease) forwards 0.8s,
    socialFloat 9s ease-in-out infinite 1.8s;
}
.social-floating-bar .social-link {
  pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition:
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
/* Shimmer on hover */
.social-floating-bar .social-link::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,0.22);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
}
.social-floating-bar .social-link:hover::before { left: 130%; }
.social-floating-bar .social-link:hover {
  transform: translateY(-3px) scale(1.10);
  box-shadow: 0 10px 28px rgba(0,0,0,0.30);
}
.social-floating-bar .social-link i { font-size: 1.05rem; position: relative; z-index: 1; }

.social-link.whatsapp  { background: linear-gradient(135deg, #25d366, #128c7e); }
.social-link.facebook  { background: linear-gradient(135deg, #3b5998, #2d4373); }
.social-link.instagram { background: radial-gradient(circle at 30% 20%, #feda75 0%, #d62976 45%, #962fbf 62%, #4f5bd5 90%); }
.social-link.tiktok    { background: #111; }
.social-link.x         { background: #000; }

@keyframes socialFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes socialFloat  { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(-52%); } }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-container {
  max-width: 880px;
  margin: 44px auto;
  padding: 44px clamp(22px, 5vw, 52px);
  background: var(--surface);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.article-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-size: 0.70rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 22px;
}

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.95rem, 4.5vw, 3.30rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 20px;
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  color: var(--ink-muted); font-size: 0.87rem;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 30px;
}

.article-image {
  width: 100%; border-radius: var(--radius-sm);
  margin-bottom: 30px; aspect-ratio: 16/9; object-fit: cover;
}

.article-content { color: var(--ink-mid); font-size: 1.05rem; line-height: 1.90; }
.article-content p { margin-bottom: 24px; }
.article-content h2,
.article-content h3 {
  font-family: 'Playfair Display', serif;
  margin: 34px 0 18px; color: var(--ink);
}
.article-content blockquote {
  margin: 34px 0; padding: 22px 28px;
  border-left: 4px solid var(--red);
  background: var(--off-white); color: var(--ink);
  font-style: italic;
  font-family: 'Playfair Display', serif; font-size: 1.12rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.related-stories { margin-top: 52px; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }

.tags { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
  background: var(--off-white); color: var(--ink-mid);
  padding: 7px 16px; border-radius: var(--radius-xs);
  font-size: 0.78rem; font-weight: 700;
  font-family: 'Oswald', sans-serif; letter-spacing: 0.07em;
  border: 1px solid var(--rule);
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
.tags span:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ENGAGEMENT ACTIONS SECTION */
.article-engagement {
  margin-top: 52px;
  margin-bottom: 52px;
  padding: 36px;
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}

.engagement-container {
  max-width: 100%;
}

.engagement-header {
  text-align: center;
  margin-bottom: 32px;
}

.engagement-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.engagement-header p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.engagement-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.engagement-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.engagement-btn:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

  .engagement-btn:disabled,
  .engagement-btn.liked {
    background: rgba(192, 25, 35, 0.08);
    border-color: rgba(192, 25, 35, 0.16);
    color: var(--ink);
    transform: none;
    box-shadow: none;
    cursor: default;
  }

  .engagement-btn:disabled:hover {
    background: rgba(192, 25, 35, 0.08);
  }

  display: flex;
  align-items: center;
  justify-content: center;
}

.engagement-btn .label {
  font-size: 0.9rem;
}

.engagement-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 6px;
}

.engagement-btn.active,
.engagement-btn.liked {
  padding: 8px 14px;
  font-size: 0.85rem;
  gap: 6px;
}

.engagement-btn.active .label,
.engagement-btn.liked .label {
  font-size: 0.8rem;
}

.engagement-btn.active .count,
.engagement-btn.liked .count {
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.engagement-btn.active .count {
  background: rgba(255, 255, 255, 0.3);
}

.card-engagement {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(240, 199, 199, 0.35);
    border: 1px solid rgba(192, 25, 35, 0.18);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .engagement-feedback {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  min-height: 20px;
}

.engagement-feedback.success {
  color: #10b981;
  font-weight: 600;
}

.engagement-feedback.error {
  color: #ef4444;
  font-weight: 600;
}

.comments { margin-top: 52px; }
.comments h2 { font-size: 1.30rem; margin-bottom: 22px; }
.comments form { display: grid; gap: 14px; margin-bottom: 30px; }
.comments input,
.comments textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--off-white); color: var(--ink);
  transition: border-color var(--t-fast);
}
.comments input:focus,
.comments textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface);
}
.comments textarea { min-height: 120px; }
.comments button {
  width: fit-content; padding: 12px 26px;
  border: none; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff;
  font-weight: 700; cursor: pointer;
  transition: background var(--t-fast);
}
.comments button:hover { background: var(--red); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page {
  padding: 44px var(--pad-x) 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-hero {
  display: grid; grid-template-columns: 1.8fr 1fr;
  gap: 26px; background: var(--surface); padding: 38px;
  border-top: 4px solid var(--red);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.about-hero-copy { display: grid; gap: 18px; }
.about-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.about-logo img { max-width: 180px; height: auto; border-radius: var(--radius); }
.about-tag {
  display: inline-flex; padding: 8px 16px;
  background: var(--red-light); color: var(--red-dark);
  font-size: 0.80rem; font-weight: 700;
  font-family: 'Oswald', sans-serif; letter-spacing: 0.10em;
  text-transform: uppercase; border-radius: var(--radius-xs);
  border: 1px solid var(--red-mid);
}
.about-hero-copy h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 2.5vw, 3.1rem);
  line-height: 1.08; color: var(--ink);
}
.about-intro { color: var(--ink-soft); font-size: 1rem; line-height: 1.88; }
.about-hero-panel { display: grid; gap: 18px; }
.about-stat {
  background: var(--off-white);
  border: 1px solid var(--rule);
  padding: 24px;
  border-radius: var(--radius-sm);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.about-stat:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.about-stat span {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 900;
  color: var(--red); margin-bottom: 8px;
}
.about-stat p { color: var(--ink-soft); line-height: 1.78; font-size: 0.92rem; }

.about-content {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 38px; margin-top: 22px;
  border-radius: var(--radius-sm);
}
.about-copy { display: grid; gap: 18px; margin-bottom: 30px; }
.about-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px; margin-bottom: 30px;
}
.about-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.about-card {
  background: var(--off-white); padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.about-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.about-card h3 {
  margin-bottom: 12px; font-size: 1.03rem; color: var(--ink);
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-card p { color: var(--ink-soft); line-height: 1.75; font-size: 0.93rem; }

.contact-section {
  margin-top: 30px; background: var(--off-white);
  padding: 38px; border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.contact-card {
  background: var(--surface); padding: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
.contact-card h3 { margin-bottom: 14px; font-size: 1.1rem; color: var(--ink); }
.contact-card p { color: var(--ink-soft); line-height: 1.88; }
.contact-info a { color: var(--ink); font-weight: 700; }
.contact-info a:hover { color: var(--red); }
.contact-form label {
  display: grid; gap: 8px; margin-bottom: 18px;
  color: var(--ink-mid); font-weight: 600; font-size: 0.90rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--off-white); color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface);
}
.contact-form textarea { resize: vertical; }
.contact-form button {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8px; padding: 13px 26px;
  border: none; border-radius: var(--radius-sm);
  background: var(--red); color: #fff; font-weight: 700; cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.contact-form button:hover { background: var(--red-dark); transform: translateY(-1px); }
.contact-form button:active { transform: none; }

.contact-feedback {
  display: block; margin-bottom: 18px; padding: 14px 18px;
  font-size: 0.93rem; line-height: 1.6;
  border-radius: var(--radius-sm);
}
.contact-feedback.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #166534; }
.contact-feedback.error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 56px var(--pad-x) 30px;
  background: #0b0b0b;
  color: #888;
  font-size: 0.92rem;
  border-top: 4px solid var(--red);
  position: relative;
  overflow: hidden;
}

/* Subtle background texture */
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 6px
    );
  pointer-events: none;
}

.footer-inner {
  display: flex; justify-content: space-between; gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

.footer-brand { max-width: 300px; }
.footer-brand .logo {
  font-family: 'Oswald', sans-serif; font-size: 2rem;
  color: #fff; margin-bottom: 16px; letter-spacing: 0.05em;
  display: block;
}
.footer-brand .logo span { color: var(--red); }
.footer-brand p { color: #555; line-height: 1.85; font-size: 0.87rem; }

.footer-links { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-links h3 {
  font-family: 'Oswald', sans-serif; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer-links a {
  display: block; margin-bottom: 11px; color: #666;
  font-size: 0.87rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
  border-left: 2px solid transparent;
  padding-left: 0;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 8px;
  border-left-color: var(--red);
}

.footer-bottom {
  margin-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  position: relative;
}
.footer-bottom p { margin: 0; color: #444; font-size: 0.82rem; }

.footer-social { display: flex; gap: 18px; align-items: center; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #666; font-size: 0.84rem;
  transition: color var(--t-fast);
}
.footer-social a:hover { color: #fff; }

.social-icon { display: inline-flex; width: 18px; height: 18px; }
.social-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ============================================================
   MISC
   ============================================================ */
.empty-message { color: var(--ink-muted); font-size: 0.95rem; font-style: italic; }
.category-section, .hero { scroll-margin-top: 120px; }

/* Focus styles — keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ============================================================
   RESPONSIVE — TABLET  (769px – 1080px)
   ============================================================ */
@media (max-width: 1080px) {
  :root { --header-h: 62px; }

  .header { grid-template-columns: auto auto auto; }

  /* Tagline visible on tablet */
  .logo-tagline { display: block; }

  .navbar {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #160003;
    padding: 10px 0 22px;
    gap: 0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.38);
    z-index: 600;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .navbar.active { display: flex; }
  .navbar > a {
    padding: 14px 26px;
    border-radius: 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .navbar > a::after { display: none; }
  .mobile-menu-toggle { display: flex !important; }

  .hero { grid-template-columns: 1fr 1fr; }
  .hero-left { display: none; }
  .hero-main { min-height: 360px; }

  .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .story-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-side { flex-direction: row; }

  .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  .engagement-actions {
    gap: 14px;
  }

  .engagement-btn {
    padding: 12px 20px;
    font-size: 0.88rem;
  }

  .topbar { display: none; }
  .topbar-strip { display: flex; }
  .category-filter-bar { top: var(--header-h); }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 36px; }

  .about-hero { grid-template-columns: 1fr; }
  .about-grid  { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --header-h: 56px; }

  .header {
    grid-template-columns: 1fr auto auto;
    gap: 12px; padding: 0 18px;
  }
  .logo { font-size: 1.55rem; }
  .logo-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .logo-tagline {
    display: block !important;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    color: rgba(255,255,255,0.75);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    line-height: 1.1;
  }
  .search-section { display: none !important; }
  .breaking-news { display: none !important; }
  .topbar-strip { display: none !important; }

  .mobile-date-strip {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 8px;
    background: transparent;
  }
  .mobile-date-text {
    color: #ff4d4d;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
  }
  .mobile-advertise-link {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e63946;
    border: 1px solid #b22234;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.25);
  }
  .mobile-advertise-link:hover,
  .mobile-advertise-link:focus-visible {
    background: #c52839;
  }

  /* Advertise dropdown styles */
  .advertise-dropdown-wrapper {
    position: relative;
  }

  .mobile-advertise-btn {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e63946;
    border: 1px solid #b22234;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-advertise-btn:hover,
  .mobile-advertise-btn:focus-visible {
    background: #c52839;
    outline: 2px solid transparent;
    outline-offset: 2px;
  }

  .advertise-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e4e2de;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    pointer-events: none;
  }

  .advertise-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .advertise-dropdown-content {
    padding: 12px 0;
  }

  .advertise-section {
    padding: 8px 16px;
  }

  .advertise-label {
    margin: 0 0 8px 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .advertise-link {
    display: block;
    color: #0d0d0d;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 0;
    transition: color 0.2s ease;
    word-break: break-word;
  }

  .advertise-link:hover,
  .advertise-link:focus-visible {
    color: #c0000a;
    outline: none;
  }

  .advertise-link.email-link::before {
    content: '✉ ';
    margin-right: 4px;
  }

  .advertise-link.whatsapp-link::before {
    content: '💬 ';
    margin-right: 4px;
  }

  .advertise-divider {
    height: 1px;
    background: #e4e2de;
    margin: 8px 0;
  }

  .topbar-strip { padding: 7px 18px; font-size: 0.67rem; }

  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero-left, .hero-right { display: none; }
  .hero-main { min-height: 270px; }
  .hero-main h1 {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
    left: 20px; right: 20px; bottom: 20px;
  }

  .category-filter-bar { top: var(--header-h); padding: 0 18px; }
  .category-filter-btn { padding: 13px 13px; font-size: 0.73rem; }

  .breaking-news { padding: 14px 18px; }
  .breaking-item { max-width: 300px; }

  .section-block { padding: 24px 18px; }
  .section-heading h2 { font-size: 1.05rem; }

  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .story-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-card h3 { font-size: 0.98rem; }

  .trending-card { grid-template-columns: 40px 1fr; gap: 12px; }
  .trending-index { font-size: 1.55rem; }

  .category-section { padding: 20px 18px; }

  footer { padding: 38px 18px 22px; }
  .footer-links { flex-direction: column; gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-social { flex-wrap: wrap; gap: 14px; }

  .article-container {
    margin: 0; padding: 26px 18px;
    border-top: 3px solid var(--red);
    border-radius: 0;
  }
  .article-title { font-size: clamp(1.65rem, 6.5vw, 2.3rem); }
  .related-grid { grid-template-columns: 1fr; }

  .engagement-engagement {
    padding: 24px 18px;
    margin-left: -8px;
    margin-right: -8px;
  }

  .engagement-header h3 {
    font-size: 1.15rem;
  }

  .engagement-actions {
    flex-direction: column;
    gap: 12px;
  }

  .engagement-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .about-page { padding: 22px 18px 44px; }
  .about-hero { padding: 24px 20px; }
  .about-content { padding: 24px 20px; }
  .about-grid, .about-grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 24px 20px; }

  /* Mobile: float bar moves to bottom-right */
  .social-floating-bar {
    left: auto; right: 14px;
    top: auto; bottom: 88px;
    transform: none;
    flex-direction: column; gap: 8px;
    animation: socialFadeIn 0.8s var(--ease) forwards 0.8s;
  }
  .social-floating-bar .social-link { width: 40px; height: 40px; }

  @keyframes socialFloat { 0%,100%{ transform: none; } }
}

/* ============================================================
   DESKTOP  (≥ 981px)
   ============================================================ */
@media (min-width: 981px) {
  .topbar-strip { display: none; }
  .topbar { display: flex; }
  .logo-tagline { display: block; }
  .mobile-menu-toggle { display: none; }
  .navbar {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .hero { gap: 3px; }
  .hero-main { min-height: 340px; max-height: 440px; }
  .hero-card { min-height: 150px; max-height: 196px; }
  .hero-card-media { min-height: 108px; max-height: 150px; }
}

/* ============================================================
   DESKTOP LARGE  (≥ 1280px)
   ============================================================ */
@media (min-width: 1280px) {
  .hero { grid-template-columns: 250px 1fr 250px; }
  .news-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ============================================================
   PRINT  (basic)
   ============================================================ */
@media print {
  .header, .topbar-strip, .topbar, .category-filter-bar,
  .social-floating-bar, .breaking-news, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .news-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================
   NAV LINK — no underline anywhere
   ============================================================ */
.navbar a,
.navbar a:any-link,
.category-filter-btn {
  text-decoration: none !important;
}

.article-content {
    white-space: pre-wrap;
}
