/* ============================================================
   NewsCentral — home.css
   ============================================================ */

/* ── UTILS ───────────────────────────────────────────────── */
.section-anchor {
  position: relative; top: -80px;
  display: block; visibility: hidden; pointer-events: none;
}


/* ════════════════════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════════════════════ */

.topline {
  height: 54px;
  border-top: 4px solid var(--dark);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.topline-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topline-date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #687790;
  font-size: 14px;
  font-weight: 500;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #65738a;
}
.top-links a { color: #65738a; transition: color .15s; }
.top-links a:hover { color: var(--accent); }
.topline-advertise {
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.admin-toplink {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: 5px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
#themeToggle {
  background: transparent; border: 0;
  width: 34px; height: 34px; padding: 0;
  cursor: pointer; font-size: 17px; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  -webkit-appearance: none; appearance: none;
  border-radius: 4px;
}
#themeToggle:hover { color: var(--accent); }
[data-theme="dark"] #themeToggle { color: var(--text); }
#toplineAuthSlot { display: inline-flex; align-items: center; gap: 6px; }

.topline-search-btn {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 4px; color: #65738a;
  padding: 0 12px; height: 26px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: border-color .12s, color .12s;
  margin-right: auto; margin-left: 20px;
}
.topline-search-btn:hover { border-color: var(--accent); color: var(--accent); }


/* ════════════════════════════════════════════════════════════
   MASTHEAD
════════════════════════════════════════════════════════════ */

.masthead-v3 {
  height: 180px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0;
}

.masthead-v3-left {
  display: flex;
  align-items: center;
  width: 300px;
  flex-shrink: 0;
}

/* Ad block */
.masthead-ad-block {
  width: 280px;
  height: 130px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 90% 90%, rgba(23,105,255,.1), transparent 50%),
    linear-gradient(135deg, #f3f6fc, #e9eff9);
  border: 1px solid #dde5f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .masthead-ad-block {
  background:
    radial-gradient(circle at 90% 90%, rgba(23,105,255,.18), transparent 50%),
    linear-gradient(135deg, #111a2b, #172236);
  border-color: #263348;
}
[data-theme="dark"] .masthead-ad-headline { color: #e2e8f0; }
[data-theme="dark"] .masthead-ad-sub { color: #98a2b3; }

.masthead-ad-block::after {
  content: "";
  position: absolute;
  width: 140px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  right: -40px; bottom: -24px;
}

.masthead-ad-label {
  font-size: 9px; font-weight: 800; letter-spacing: 2px;
  color: #9aaabf; text-transform: uppercase;
  display: block; margin-bottom: 8px;
}

.masthead-ad-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}

.masthead-ad-headline {
  font-family: Georgia, serif; font-size: 17px; line-height: 1.15;
  font-weight: 700; color: #12213c; margin: 0;
}

.masthead-ad-sub {
  font-size: 11px; color: #738199; display: block; margin-bottom: 6px;
}

.masthead-ad-btn {
  display: inline-block; background: var(--accent); color: white !important;
  font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 4px;
  text-decoration: none !important; transition: background .12s;
}
.masthead-ad-btn:hover { background: var(--accent-dark); }

.masthead-v3-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
  text-align: center;
  flex: 1;
}

.masthead-brand {
  display: block;
  text-decoration: none;
  pointer-events: all;
  line-height: 1;
}

/* Text-based brand name (hidden when logo loads fine, shown as fallback) */
.masthead-brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -4px;
  color: #07162e;
  white-space: nowrap;
  line-height: 1;
}
.masthead-brand-text span { color: var(--accent); }

.masthead-logo {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .masthead-logo {
  mix-blend-mode: screen;
  filter: none;
}

/* Dark mode: masthead background must be solid so mix-blend-mode works */
[data-theme="dark"] .masthead-v3 {
  background: var(--bg);
}

.masthead-underline {
  width: 64px;
  height: 4px;
  background: var(--accent);
  margin: 8px auto 10px;
}

.masthead-tagline { display: none; }

.masthead-v3-right {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 300px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.masthead-auth { display: flex; align-items: center; gap: 12px; }

/* Sign up */
.masthead-auth a.masthead-signup-btn,
a.masthead-signup-btn {
  display: inline-flex; align-items: center;
  padding: 10px 24px; border-radius: 5px;
  background: var(--accent); color: white !important;
  font-size: 15px; font-weight: 800;
  text-decoration: none !important; transition: background .12s;
  border: 1px solid var(--accent);
}
.masthead-auth a.masthead-signup-btn:hover,
a.masthead-signup-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Sign in */
.masthead-auth a.masthead-signin-btn,
a.masthead-signin-btn {
  display: inline-flex; align-items: center;
  padding: 10px 24px; border-radius: 5px;
  background: var(--bg); color: var(--text) !important;
  font-size: 15px; font-weight: 700;
  border: 1px solid var(--line) !important;
  text-decoration: none !important; transition: border-color .12s, color .12s;
}
.masthead-auth a.masthead-signin-btn:hover,
a.masthead-signin-btn:hover {
  border-color: var(--accent) !important; color: var(--accent) !important;
}

/* Logged-in account button */
a.masthead-account-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text) !important; font-size: 14px; font-weight: 600;
  text-decoration: none !important;
}
a.masthead-account-btn:hover { border-color: var(--accent); color: var(--accent) !important; }

.masthead-account-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.masthead-signout-btn {
  background: transparent; border: 0; color: var(--muted);
  font-size: 12px; cursor: pointer; padding: 4px 8px; font-family: inherit;
}
.masthead-signout-btn:hover { color: var(--text); }

.menu-button { display: none; background: transparent; border: 0; cursor: pointer; }
.menu-button span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }


/* ════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════ */

.main-nav {
  height: 55px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-inner-v3 {
  width: min(calc(100% - 40px), var(--max)); margin: auto;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between;
}

.nav-links { display: flex; align-items: center; height: 100%; gap: 0; }

.nav-links .nav-cat {
  display: inline-flex; align-items: center; height: 100%;
  padding: 0 22px; font-size: 15px; font-weight: 800;
  color: #151f33; text-decoration: none;
  border-bottom: 5px solid transparent;
  transition: color .1s, border-color .1s; white-space: nowrap;
}
.nav-links .nav-cat:first-child { padding-left: 0; }
.nav-links .nav-cat:hover { color: var(--accent); }
.nav-links .nav-cat.nav-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

.nav-submit-btn {
  display: inline-flex; align-items: center;
  padding: 10px 22px; background: var(--accent); color: white !important;
  font-size: 15px; font-weight: 800; border-radius: 5px;
  text-decoration: none !important; transition: background .12s; white-space: nowrap;
  border: 0;
}
.nav-submit-btn:hover { background: var(--accent-dark); }

.nav-search-icon {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid #d6dee9;
  border-radius: 5px; color: #687790;
  padding: 0 18px; height: 38px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: border-color .12s, color .12s; min-width: 120px;
}
.nav-search-icon:hover { border-color: var(--accent); color: var(--accent); }


/* ════════════════════════════════════════════════════════════
   BREAKING BAR
════════════════════════════════════════════════════════════ */

.breaking { background: var(--dark); color: white; }
.breaking-inner {
  display: flex; align-items: center; min-height: 38px;
  width: min(calc(100% - 40px), var(--max)); margin: auto;
}
.breaking-label {
  background: var(--accent); color: white;
  font-size: 13px; font-weight: 900; letter-spacing: 1px;
  padding: 0 22px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; white-space: nowrap;
}
.breaking-sep { display: none; }
.breaking-text {
  padding-left: 16px;
  border-left: 2px solid rgba(255,255,255,.3);
  margin-left: 12px;
  font-size: 13px; color: #e4eaf3;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}


/* ════════════════════════════════════════════════════════════
   HERO — main story | side stories | ad column
════════════════════════════════════════════════════════════ */

.hero-v3 { padding: 22px 0 0; border-bottom: 1px solid var(--line); }

.hero-v3-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, .72fr) minmax(270px, .72fr);
  gap: 24px;
  align-items: start;
}

/* ── Large hero card ───── */
.hero-main-card {
  position: relative;
  height: 360px;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5,20,42,0) 15%, rgba(5,20,42,.25) 40%, rgba(5,20,42,.96) 100%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&q=80') center/cover no-repeat;
}

/* The inner image div — hidden now that the card itself is the background */
.hero-main-img {
  display: none;
}

.hero-cat-pill {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 900; letter-spacing: 1.2px;
  padding: 3px 8px; text-transform: uppercase; border-radius: 1px;
}

.hero-main-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 24px 22px; z-index: 2; color: white;
}

.eyebrow-sm {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: 8px;
}

.hero-main-body h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.04; margin: 0 0 10px; color: white; letter-spacing: -1px;
}

.hero-main-body p {
  font-size: 15px; color: #f1f4f8;
  margin: 0 0 0; line-height: 1.45; max-width: 560px;
}

.hero-main-body .read-story {
  color: white; font-size: 12px; font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 1px;
}
.hero-main-body .read-story:hover { border-bottom-color: white; }

.hero-meta { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: white; font-size: 12px; }
.hero-read-time { display: flex; align-items: center; gap: 6px; color: white; font-size: 12px; }
.hero-read-time::before { content: ""; display: inline-block; width: 13px; height: 13px; border: 2px solid white; border-radius: 50%; flex-shrink: 0; }


/* ── Side story list ───── */
.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hsl-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 13px;
  min-height: 73px;
  text-decoration: none; color: var(--text);
  transition: opacity .1s;
  align-items: start;
}
.hsl-item:hover { opacity: .85; }
.hsl-item:hover .hsl-text h4 { color: var(--accent); }

.hsl-img {
  width: 118px;
  height: 73px;
  border-radius: 5px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #dce4ef;
  display: block;
  flex-shrink: 0;
}

/* Hide the old overlaid category span */
.hsl-cat { display: none; }

.hsl-text {
  padding-top: 1px;
  display: flex; flex-direction: column; gap: 4px;
}

.hsl-label {
  font-size: 10px; font-weight: 900; letter-spacing: 1.2px;
  color: var(--accent); text-transform: uppercase;
  display: block; margin-bottom: 2px;
}

.hsl-text h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px; line-height: 1.1;
  margin: 0; font-weight: 700; color: #16213a;
  transition: color .12s;
}

.hsl-time {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #738097; margin-top: 4px;
}
.hsl-time::before {
  content: ""; display: inline-block;
  width: 11px; height: 11px;
  border: 1.5px solid #738097; border-radius: 50%; flex-shrink: 0;
}


/* ── Ad column ───── */
.hero-ad-col {
  min-height: 360px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 100% 100%, rgba(23,105,255,.12), transparent 43%),
    linear-gradient(135deg, #f3f6fc, #e9eff9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero-ad-col {
  background:
    radial-gradient(circle at 100% 100%, rgba(23,105,255,.2), transparent 43%),
    linear-gradient(135deg, #111a2b, #172236);
}
[data-theme="dark"] .hero-ad-headline { color: #e2e8f0; }
[data-theme="dark"] .hero-ad-sub { color: #98a2b3; }
.hero-ad-col::after {
  content: "";
  position: absolute;
  width: 300px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  right: -80px; bottom: -44px;
  transform: rotate(-17deg);
}

.hero-ad-placeholder {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  padding: 28px 24px; width: 100%;
}

.ad-notice-label {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: #8795ac;
  display: block; margin-bottom: 26px;
  border-bottom: none; padding-bottom: 0; width: auto;
}

.hero-ad-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px; line-height: 1.12;
  font-weight: 700; color: #12213c; margin: 0 0 18px;
}

.hero-ad-sub {
  font-size: 14px; color: #738199;
  line-height: 1.5; display: block; margin-bottom: 20px; max-width: 220px;
}

.hero-ad-btn {
  display: inline-block; background: var(--accent); color: white !important;
  font-size: 14px; font-weight: 800; padding: 10px 22px; border-radius: 5px;
  text-decoration: none !important; transition: background .12s; border: 0;
}
.hero-ad-btn:hover { background: var(--accent-dark); }

/* Ad slot wrap (real ad injection) */
.ad-slot-wrap { display: none; }


/* ════════════════════════════════════════════════════════════
   HOMEPAGE BANNER STRIP
════════════════════════════════════════════════════════════ */

.hp-banner-strip {
  background: #07162e;
  padding: 18px 0;
}
[data-theme="dark"] .hp-banner-strip {
  background: #040e1f;
}

.hp-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.hp-banner-headline {
  font-size: 18px; font-weight: 800; color: #ffffff; margin: 0 0 3px;
}
.hp-banner-headline span { color: var(--accent); }
.hp-banner-sub { font-size: 13px; color: #8fa3c0; display: block; font-weight: 500; }

.hp-banner-btn {
  display: inline-flex; align-items: center; padding: 10px 24px;
  background: var(--accent); color: white !important; font-size: 14px;
  font-weight: 800; border-radius: 5px; text-decoration: none !important;
  white-space: nowrap; flex-shrink: 0; transition: background .12s; border: 0;
}
.hp-banner-btn:hover { background: var(--accent-dark); }


/* ════════════════════════════════════════════════════════════
   SECTION WRAPPER
════════════════════════════════════════════════════════════ */

.hp-section { padding: 36px 0 40px; }
.hp-section--alt { background: var(--surface); }

.hp-section-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}

.hp-section-title {
  font-size: 22px; font-weight: 800; margin: 0; color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hp-view-all {
  margin-left: auto; font-size: 13px; font-weight: 700;
  color: var(--accent); text-decoration: none; white-space: nowrap;
}
.hp-view-all:hover { text-decoration: underline; }


/* ════════════════════════════════════════════════════════════
   CATEGORY FILTER PILLS — hidden by default, shown if needed
════════════════════════════════════════════════════════════ */

.cat-filters { display: none; }

.cat-btn {
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all .12s;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--dark); color: white; border-color: var(--dark);
}


/* ════════════════════════════════════════════════════════════
   LATEST GRID — 4 cards in a row
════════════════════════════════════════════════════════════ */

.latest-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

/* Card */
.news-card-v2 {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
}
.news-card-v2:hover .nc2-title { color: var(--accent); }

.nc2-img {
  width: 100%; height: 178px; overflow: hidden;
  background: var(--surface-2); margin-bottom: 13px;
  position: relative; border-radius: 5px;
}
.nc2-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
.news-card-v2:hover .nc2-img img { transform: scale(1.04); }

.nc2-img-placeholder { width: 100%; height: 100%; border-radius: 5px; }

.nc2-cat {
  font-size: 10px; font-weight: 900; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 5px; display: block;
}

.nc2-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px; line-height: 1.25;
  font-weight: 700; margin: 0 0 7px; transition: color .12s; color: #15213a;
}

.nc2-lead {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  margin: 0 0 10px; flex: 1;
}

.nc2-meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--muted); margin-top: auto;
}
.nc2-time {
  display: flex; align-items: center; gap: 5px;
}
.nc2-time::before {
  content: ""; display: inline-block;
  width: 11px; height: 11px;
  border: 1.5px solid var(--muted); border-radius: 50%; flex-shrink: 0;
}
.nc2-source { font-weight: 600; }

.nc2-title-ph {
  background: var(--surface-2); border-radius: 3px;
  height: 15px; margin-bottom: 8px; animation: shimmer 1.4s infinite;
}
.nc2-lead-ph {
  background: var(--surface-2); border-radius: 3px;
  height: 12px; width: 80%; animation: shimmer 1.4s infinite;
}


/* ════════════════════════════════════════════════════════════
   THREE-COLUMN SECTION (World / Business / Technology)
════════════════════════════════════════════════════════════ */

#three-cols { padding: 36px 0 40px; background: var(--bg); }

.three-col-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.col-section {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--line);
}
.col-section:last-child { border-right: 0; padding-right: 0; }
.col-section:not(:first-child) { padding-left: 32px; padding-right: 32px; }
.col-section:last-child { padding-left: 32px; }

.col-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}

.col-section-title {
  font-size: 20px; font-weight: 800; margin: 0; color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.col-view-all {
  font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none;
}
.col-view-all:hover { text-decoration: underline; }

/* Lead card */
.col-card-lead {
  display: block; text-decoration: none; color: var(--text); margin-bottom: 0;
}
.col-card-lead:hover .col-card-lead-title { color: var(--accent); }

.col-lead-img {
  width: 100%; height: 168px; overflow: hidden;
  background: var(--surface-2); margin-bottom: 12px;
  border-radius: 5px;
}
.col-lead-img img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s;
}
.col-card-lead:hover .col-lead-img img { transform: scale(1.04); }

.col-card-lead-cat {
  font-size: 10px; font-weight: 900; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 5px;
}

.col-card-lead-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px; line-height: 1.2;
  font-weight: 700; margin: 0 0 7px; transition: color .12s; color: #15213a;
}

.col-card-lead-lead {
  font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0 0 8px;
}

.col-card-lead-meta {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
}
.col-card-lead-meta::before {
  content: ""; display: inline-block;
  width: 11px; height: 11px;
  border: 1.5px solid var(--muted); border-radius: 50%; flex-shrink: 0;
}

/* List items */
.col-list-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.col-list-item:hover .col-list-title { color: var(--accent); }

.col-list-img {
  height: 60px; overflow: hidden;
  background: var(--surface-2); border-radius: 4px;
}
.col-list-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.col-list-text { display: flex; flex-direction: column; gap: 4px; justify-content: center; }

.col-list-cat {
  font-size: 9px; font-weight: 900; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent);
}

.col-list-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px; line-height: 1.3;
  font-weight: 700; margin: 0; transition: color .12s; color: #15213a;
}

.col-list-time {
  font-size: 10px; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.col-list-time::before {
  content: ""; display: inline-block;
  width: 9px; height: 9px;
  border: 1.5px solid var(--muted); border-radius: 50%; flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════
   MID / BOTTOM AD STRIPS
════════════════════════════════════════════════════════════ */

.mid-ad-strip,
.bottom-ad-strip {
  background: #07162e;
  padding: 22px 0;
}
[data-theme="dark"] .mid-ad-strip,
[data-theme="dark"] .bottom-ad-strip {
  background: #040e1f;
}

.mid-ad-inner,
.bottom-ad-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.mid-ad-default {
  display: flex; align-items: center; gap: 0;
  flex-direction: column; text-align: center; width: 100%;
}
.mid-ad-default p {
  font-size: 20px; font-weight: 800; color: white; margin: 0 0 4px;
}
.mid-ad-default strong { color: var(--accent); }
.mid-ad-default span { font-size: 13px; color: #8fa3c0; font-weight: 500; }

.mid-ad-btn {
  display: inline-flex; align-items: center; padding: 10px 24px;
  background: var(--accent); color: white !important; font-size: 14px;
  font-weight: 800; border-radius: 5px; text-decoration: none !important;
  white-space: nowrap; transition: background .12s; margin-top: 14px;
}
.mid-ad-btn:hover { background: var(--accent-dark); }


/* ════════════════════════════════════════════════════════════
   NEWSLETTER
════════════════════════════════════════════════════════════ */

.newsletter {
  background: #111827; color: white;
  padding: 48px 0; border-top: 1px solid rgba(255,255,255,.06);
}
.newsletter-inner {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center;
}
.newsletter .eyebrow {
  color: #93b4ff; font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  display: block; margin-bottom: 8px;
}
.newsletter h2 { font-family: Georgia, serif; font-size: 26px; color: white; margin: 0 0 8px; }
.newsletter > .newsletter-inner > div > p { color: #98a2b3; font-size: 14px; margin: 0; }

.newsletter form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.newsletter input {
  padding: 11px 13px; border: 1px solid #374151; background: #1f2937;
  color: white; border-radius: 4px; font-size: 14px; font-family: inherit; outline: none;
}
.newsletter input:focus { border-color: var(--accent); }
.newsletter button {
  padding: 11px 18px; background: var(--accent); color: white;
  border: 0; border-radius: 4px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.newsletter button:hover { background: var(--accent-dark); }
.newsletter small { grid-column: 1/-1; color: #6b7280; font-size: 11px; }


/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */

footer { background: var(--dark); color: white; padding: 44px 0 0; }

.footer-v3-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand-inner {
  display: flex; align-items: center; gap: 9px; margin-bottom: 6px;
}
.footer-favicon { width: 26px; height: 26px; border-radius: 5px; }
.footer-brand-name { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: white; }

.footer-tagline {
  font-size: 9px; letter-spacing: 2px; color: #667085;
  text-transform: uppercase; margin: 0 0 10px;
}
.footer-desc { font-size: 12px; color: #667085; line-height: 1.6; margin: 0; max-width: 240px; }

.footer-col h4 {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: white; margin: 0 0 12px;
}
.footer-col a {
  display: block; font-size: 12px; color: #98a2b3;
  text-decoration: none; margin-bottom: 8px; transition: color .12s;
}
.footer-col a:hover { color: white; }

.footer-social { display: flex; gap: 10px; margin-top: 6px; }

.social-icon {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 30% / 30%;
  color: white !important;
  text-decoration: none !important;
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.social-icon:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
}
.social-icon svg { width: 18px; height: 18px; flex-shrink: 0; display: block; }

/* Per-platform gradients */
.social-icon--linkedin { background: linear-gradient(135deg, #2563eb, #1e40af); }
.social-icon--x        { background: linear-gradient(135deg, #2a2a2a, #000); }
.social-icon--facebook { background: linear-gradient(135deg, #1877f2, #1251a3); }

.footer-bottom-v3 {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 11px; color: #667085; flex-wrap: wrap; gap: 8px;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: #667085; font-size: 11px; text-decoration: none; }
.footer-bottom-links a:hover { color: #98a2b3; }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

@media (max-width: 1400px) {
  .hero-v3-grid { grid-template-columns: minmax(0, 1.5fr) minmax(270px, .7fr) minmax(240px, .7fr); gap: 20px; }
  .nav-links .nav-cat { padding: 0 16px; font-size: 14px; }
}

@media (max-width: 1100px) {
  .hero-v3-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr); gap: 20px; }
  .hero-ad-col { display: none; }
  .three-col-grid { grid-template-columns: 1fr 1fr; }
  .footer-v3-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .masthead-v3-left { display: none; }
  .masthead-v3-centre { flex: unset; }
  .masthead-v3 { justify-content: center; }
}

@media (max-width: 900px) {
  .masthead-v3 { height: 135px; }
  .masthead-brand-text { font-size: 56px; }
  .masthead-tagline { font-size: 10px; }
  .masthead-v3-right { right: 20px; }
  .nav-links .nav-cat { padding: 0 12px; font-size: 13px; }
  .hsl-img { width: 90px; }
  .hsl-text h4 { font-size: 14px; }
}

@media (max-width: 768px) {
  .masthead-v3 { height: 120px; justify-content: flex-start; padding-left: 14px; }
  .masthead-v3-left { display: none; }
  .masthead-v3-centre { align-items: flex-start; }
  .masthead-brand-text { font-size: 42px; letter-spacing: -3px; }
  .masthead-underline { width: 44px; margin: 7px 0; }
  .masthead-tagline { font-size: 8px; letter-spacing: 3px; }
  .masthead-v3-right { right: 14px; }
  .masthead-auth .masthead-signin-btn { display: none; }
  .menu-button { display: block; }
  .hero-v3-grid { grid-template-columns: 1fr; }
  .hero-main-card { height: 390px; border-radius: 0; }
  .hero-side-list { display: none; }
  .hero-ad-col { display: flex; min-height: 240px; border-radius: 0; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col-grid { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-v3-grid { grid-template-columns: 1fr 1fr; }
  .hp-banner-inner { flex-direction: column; text-align: center; gap: 14px; }
  .col-section { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cat { font-size: 13px; padding: 0 10px; }
  .nav-actions { gap: 10px; }
}

@media (max-width: 500px) {
  .masthead-auth { display: none; }
  .main-story h1, .hero-main-body h1 { font-size: 27px; }
  .hero-main-body p { font-size: 14px; }
  .hsl-img { width: 88px; }
  .hsl-text h4 { font-size: 14px; }
  .latest-grid { grid-template-columns: 1fr; }
  .footer-v3-grid { grid-template-columns: 1fr; }
  .newsletter form { grid-template-columns: 1fr; }
  .top-links a:not(.admin-toplink) { display: none; }
  .top-links { gap: 10px; }
  .topline-search-btn { display: none; }
}

/* ════════════════════════════════════════════════════════════
   DARK MODE — heading & text colour overrides
   All hardcoded dark hex colours replaced with theme variable
════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  /* Nav links */
  --nav-text: var(--text);
}

[data-theme="dark"] .nav-links .nav-cat { color: var(--text); }
[data-theme="dark"] .nav-links .nav-cat.nav-active { color: var(--accent); }
[data-theme="dark"] .nav-links .nav-cat:hover { color: var(--accent); }

/* Side story headlines */
[data-theme="dark"] .hsl-text h4 { color: var(--text); }

/* Latest grid card titles */
[data-theme="dark"] .nc2-title { color: var(--text); }

/* Three-column lead & list titles */
[data-theme="dark"] .col-card-lead-title,
[data-theme="dark"] .col-list-title { color: var(--text); }

/* Hero ad headline */
[data-theme="dark"] .hero-ad-headline { color: var(--text); }

/* Section headings */
[data-theme="dark"] .hp-section-title,
[data-theme="dark"] .col-section-title { color: var(--text); }

/* Masthead brand text */
[data-theme="dark"] .masthead-brand-text { color: var(--text); }
