/* ====================================================================
   ICAI CA Journal — Public Site Stylesheet
   Palette: #253e76 (primary), #05007e (deep), #c9a227 (gold)
   ==================================================================== */

:root {
  --primary: #253e76;
  --primary-dark: #05007e;
  --primary-light: #3b56a0;
  --gold: #c9a227;
  --gold-light: #e2bd4a;
  --gold-dark: #a8851a;
  --ink: #0f1a35;
  --ink-soft: #2b3954;
  --muted: #5e6d88;
  --muted-2: #8a96ad;
  --line: #e3e8f1;
  --line-2: #eef1f8;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-cream: #faf8f3;
  --white: #ffffff;
  --red: #b3261e;
  --teal: #0d7a6a;
  --green: #1b7a3e;
  --shadow-sm: 0 1px 2px rgba(15, 26, 53, 0.06);
  --shadow: 0 4px 16px rgba(15, 26, 53, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 26, 53, 0.12);
  --radius: 4px;
  --radius-lg: 8px;
  --font-serif: "Source Serif Pro", "Merriweather", Georgia, serif;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
}

[data-theme="dark"] {
  --bg: #0b1226;
  --bg-soft: #111a35;
  --bg-cream: #131c38;
  --white: #16203f;
  --ink: #eef2fb;
  --ink-soft: #c8d2e8;
  --muted: #93a1be;
  --muted-2: #6e7c9a;
  --line: #243156;
  --line-2: #1c2748;
  --primary: #6a82c4;
  --primary-light: #8aa0d8;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;

}
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--gold-dark);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== GIGW UTILITY BAR ============== */
.gigw-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}
.gigw-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
  padding-bottom: 4px;
}
.gigw-left {
  display: flex;
  gap: 4px;
  align-items: center;
}
.gigw-right {
  display: flex;
  gap: 4px;
  align-items: center;
}
.gigw-link {
  padding: 4px 10px;
  color: var(--ink-soft);
  font-weight: 500;
  border-left: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    color 0.15s,
    background-color 0.15s;
}
.gigw-link:first-child {
  border-left: none;
}
.gigw-link:hover,
.gigw-link:focus {
  color: var(--primary);
  background: var(--white);
}
.gigw-link.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 4px;
}
.gigw-link.skip-link:focus {
  left: 16px;
}
.gigw-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}
.font-btn {
  width: 28px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 12px;
  margin-left: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.font-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.font-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.gigw-icon-btn {
  width: 28px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 4px;
  font-size: 12px;
}
.gigw-icon-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.gigw-label {
  padding: 0 8px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Font-size scale modifiers (set on <html data-fontsize>) */
html[data-fontsize="lg"] body {
  font-size: 16px;
}
html[data-fontsize="lg"] .article-body .container-narrow p,
html[data-fontsize="lg"] .article-body .container-narrow li {
  font-size: 19px;
}
html[data-fontsize="sm"] body {
  font-size: 16px;
}
html[data-fontsize="sm"] .article-body .container-narrow p,
html[data-fontsize="sm"] .article-body .container-narrow li {
  font-size: 16px;
}

@media (max-width: 768px) {
  .gigw-bar {
    font-size: 11px;
  }
  .gigw-link {
    padding: 3px 7px;
  }
  .gigw-label {
    display: none;
  }
}

/* ============== TOP BAR ============== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  gap: 12px;
  align-items: center;
}
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.topbar-right a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.topbar-right a:hover {
  color: var(--gold-light);
}
.live-badge {
  background: var(--red);
  color: #fff;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 9.5px;
  font-weight: 700;
  margin-right: 5px;
  letter-spacing: 0.4px;
}

/* ============== HEADER ============== */
.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header > .container {
  position: relative;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.header-main .navbar-brand img {
     height:137px;
     width:auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand img {
  height: 56px;
  width: auto;
}
.brand-text {
  font-family: var(--font-serif);
}
.brand-text .b1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.3px;
}
.brand-text .b2 {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-sans);
}
.brand-text .b3 {
  font-size: 11px;
  color: var(--gold-dark);
  font-style: italic;
  margin-top: 2px;
  font-family: var(--font-serif);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.search-toggle,
.theme-toggle,
.notif-toggle,
.menu-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all 0.2s;
  position: relative;
}
.search-toggle:hover,
.theme-toggle:hover,
.notif-toggle:hover,
.menu-toggle:hover {
  background: var(--primary);
  color: #fff;
}
.notif-toggle .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}
.menu-toggle {
  display: none;
}

.btn-login {
  padding: 9px 18px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
}
.btn-login:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

/* ============== NAV (main menu) ============== */
/* ============== NAV (inline in header) ============== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.main-nav a,
.main-nav .nav-item {
  color: var(--ink-soft);
  padding: 10px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0px;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .nav-item:hover {
  color: var(--primary);
  background: transparent;
}
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--gold);
}
.nav-item.has-mega .chev {
  font-size: 9px;
  opacity: 0.8;
}
.nav-item.has-mega {
  position: static;
}

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: none;
  padding: 28px 0;
  z-index: 49;
}
.nav-item.has-mega:hover > .mega,
.mega:hover,
.nav-item.has-mega.open > .mega {
  display: block;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.mega-col h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mega-col a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.mega-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* ============== TICKER ============== */
.ticker {
  background: var(--ink);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ticker-label {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  letter-spacing: 1.2px;
  flex-shrink: 0;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
}
.ticker-items {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: tickerScroll 200s linear infinite;
  font-size: 13px;
}
.ticker-items span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.ticker-dot {
  color: var(--gold);
}
@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============== BREADCRUMBS ============== */
.crumbs { background: var(--bg-soft); padding: 10px 0; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { margin: 0 8px; opacity: .5; }
.crumbs .current { color: var(--ink-soft); font-weight: 600; }

/* ============== HERO ============== */
.hero { background: var(--bg-cream); padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.hero-main { background: var(--white); border: 1px solid var(--line); overflow: hidden; position: relative; }
.hero-img {
  
}
/* .hero-img::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(201, 162, 39, 0.2), transparent 60%); } */
.hero-img .badge {
    background: var(--gold);
    color: var(--ink);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 6px;
    display: inline-block;
    margin-left: 20px;
}
.hero-body { padding: 22px 24px 24px; }
.section-label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-dark); margin-bottom: 12px; }
.hero-title { font-size: 28px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 12px;
    font-weight: 700;
    position: absolute;
    top: 20%;
    padding: 40px;
    left: 0;
    line-height: 40px;
    width: 100%;
    text-align: center; }
.hero-title a { color: var(--ink); }
.hero-title a:hover { color: var(--primary); }
.hero-excerpt { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.hero-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.hero-meta strong { color: var(--ink-soft); font-weight: 600; }
.cpd-badge { background: rgba(201, 162, 39, 0.15); color: var(--gold-dark); padding: 2px 8px; font-size: 10.5px; font-weight: 700; border: 1px solid rgba(201, 162, 39, 0.4); margin-left: auto; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hs-card { background: var(--white); border: 1px solid var(--line); padding: 16px; transition: all .2s; }
.hs-card:hover { box-shadow: var(--shadow); }
.hs-card .tag { margin-bottom: 8px; }
.hs-title { font-size: 22px; line-height: 1.35; color: var(--ink); margin-bottom: 8px; }
.hs-title a { color: var(--ink); }
.hs-title a:hover { color: var(--primary); }
.hs-meta { font-size: 16px; color: var(--muted); }

/* From This Issue 2-column layout */
.from-issue-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.from-issue-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}
@media (max-width: 1024px) {
  .from-issue-layout {
    grid-template-columns: 1fr;
  }
  .from-issue-side {
    position: static;
  }
  .header-main .navbar-brand img {
    height: 97px;

  }
}

/* Side Panels (Search + Subscribe) */
.side-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
}
.side-panel-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.side-panel-search .side-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg-cream);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
}
.side-panel-search .side-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.chip {
  padding: 6px 12px;
  font-size: 14.5px;
  font-weight: 600;
  background: var(--bg-cream);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.banner-slide p {
    font-size: 16px !important;
    color: var(--ink);
}
.chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.chip.chip-active {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}
.side-select {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  padding: 10px 14px;
  width: 100%;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  border-radius: var(--radius);
}
.side-panel-subscribe {
  background: var(--primary-dark);
  color: #fff;
  border: 1px solid var(--primary-dark);
}
.side-panel-subscribe .side-panel-title {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.side-panel-subscribe .sub-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  line-height: 1.55;
}
.sub-tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.sub-tier {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.sub-tier:hover {
  border-color: rgba(201, 162, 39, 0.4);
}
.sub-tier-active {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.06);
}
.sub-tier-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.sub-tier-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.sub-tier-period {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}
.side-panel-subscribe .sub-email {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 10px;
}
.side-panel-subscribe .sub-email::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.side-panel-subscribe .sub-email:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.3);
}
.sub-foot {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}
.sub-foot a {
  color: var(--gold-light);
}

/* Podcast Section */
.podcast-section {
  background: var(--bg-cream);
  padding: 56px 0;
}
.pod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.pod-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pod-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.pod-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  background: rgba(27, 122, 62, 0.08);
  border: 1px solid rgba(27, 122, 62, 0.3);
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pod-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.pod-all:hover {
  color: var(--ink);
}
.pod-rule {
  height: 2px;
  background: var(--ink);
  margin-bottom: 26px;
}
.pod-episode {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.pod-episode-featured {
  background: var(--primary-dark);
  color: #fff;
}
.pod-episode-list {
  background: rgba(15, 26, 53, 0.04);
  border: 1px solid var(--line);
}
.pod-play {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  font-size: 18px;
}
.pod-play:hover {
  transform: scale(1.08);
}
.pod-play-gold {
  background: var(--gold);
  color: #fff;
}
.pod-play-dark {
  background: var(--primary-dark);
  color: #fff;
}
.pod-ep-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pod-ep-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}
.pod-episode-featured .pod-ep-title {
  color: #fff;
}
.pod-episode-list .pod-ep-title {
  color: var(--ink);
}
.pod-ep-host {
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.pod-episode-featured .pod-ep-host {
  color: rgba(255, 255, 255, 0.6);
}
.pod-episode-list .pod-ep-host {
  color: var(--muted);
}
.pod-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pod-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.pod-episode-list .pod-progress {
  background: rgba(15, 26, 53, 0.1);
}
.pod-progress-fill {
  height: 100%;
  background: var(--gold);
}
.pod-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  flex-shrink: 0;
}
.pod-episode-featured .pod-time {
  color: rgba(255, 255, 255, 0.75);
}
.pod-episode-list .pod-time {
  color: var(--muted);
}

@media (max-width: 768px) {
  .pod-episode {
    grid-template-columns: 60px 1fr;
    padding: 16px;
    gap: 14px;
  }
  .pod-play {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
  .pod-ep-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============== TAGS ============== */
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.tag-gold {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.tag-navy {
  background: rgba(37, 62, 118, 0.1);
  color: var(--primary);
  border: 1px solid rgba(37, 62, 118, 0.25);
}
.tag-red {
  background: rgba(179, 38, 30, 0.1);
  color: var(--red);
  border: 1px solid rgba(179, 38, 30, 0.25);
}
.tag-teal {
  background: rgba(13, 122, 106, 0.12);
  color: var(--teal);
  border: 1px solid rgba(13, 122, 106, 0.3);
}
.tag-green {
  background: rgba(27, 122, 62, 0.12);
  color: var(--green);
  border: 1px solid rgba(27, 122, 62, 0.3);
}
.tag-muted {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ============== ISSUE STRIP ============== */
.issue-strip {
  background: var(--primary-dark);
  color: #fff;
  padding: 16px 0;
}
.issue-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.issue-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.issue-badge {
  background: var(--gold);
  color: var(--ink);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.issue-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}
.issue-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}
.issue-actions {
  display: flex;
  gap: 10px;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink) !important;
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: #fff !important;
}
.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff !important;
}
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--gold-light) !important;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ============== STATS BAR ============== */
.stats-bar {
  background: var(--ink);
  color: #fff;
  padding: 24px 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:last-child {
  border-right: none;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ============== SECTION GENERIC ============== */
.section {
  padding: 48px 0;
}
.section-tight {
  padding: 32px 0;
}
.section-alt {
  background: var(--bg-soft);
}
.section-dark {
  background: var(--primary-dark);
  color: #fff;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-serif);
}
.section-dark .section-title {
  color: #fff;
}
.section-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.see-all {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}
.see-all:hover {
  color: var(--gold-dark);
}

/* ============== ARTICLE CARDS ============== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.article-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: all .25s; display: flex; flex-direction: column; position: relative;}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card-img { height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); position: relative; }
.article-card-img.v2 { background: linear-gradient(135deg, var(--teal), #0a4a3e); }
.article-card-img.v3 { background: linear-gradient(135deg, var(--red), #6e1610); }
.article-card-img.v4 { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.article-card-img.v5 { background: linear-gradient(135deg, #4a2c8a, #2a1554); }
.article-card-img.v6 { background: linear-gradient(135deg, #1a5a8a, #0a3050); }
.article-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.article-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.read-time { font-size: 11px; color: var(--muted); }
.article-card-title { font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
    flex: 1;
    position: absolute;
    top: 12%;
    line-height: 29px;
    text-align: center;
  left: 0; 
padding: 10px}
.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--primary); }
.article-card-excerpt { font-size: 16px; color: var(--ink); line-height: 1.55; margin-bottom: 14px; }
.article-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line-2); margin-top: auto; }
.author-chip { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }

/* List article style */
.article-row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.article-row-img {
  width: 180px;
  height: 110px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.article-row-body {
  flex: 1;
}
.article-row-title {
  font-size: 17px;
  margin: 6px 0 8px;
}
.article-row-title a {
  color: var(--ink);
}
.article-row-title a:hover {
  color: var(--primary);
}
.article-row-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 8px;
}
.article-row-meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ============== TAB STRIP ============== */
.tab-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.tab-strip-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.tab-strip .tab {
  /* padding: 14px 22px; */
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}
.tab-strip .tab:hover {
  color: var(--primary);
}
.tab-strip .tab.active {
  color: var(--bg);
  border-bottom-color: var(--gold);
  background: var(--primary);
}

/* ============== TOPIC GRID ============== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.topic-card {
  background: #f2e9e9;
  border: 1px solid var(--line);
  padding: 22px 18px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
}
.topic-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.topic-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(37, 62, 118, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
}
.topic-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.topic-count {
  font-size: 11.5px;
  color: var(--muted);
}

/* ============== TRENDING LIST ============== */
.trend-list {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px 22px;
}
.trend-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}
.trend-item:last-child {
  border-bottom: none;
}
.trend-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  width: 36px;
  flex-shrink: 0;
}
.trend-body h4 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.trend-body h4 a {
  color: var(--ink);
}
.trend-body h4 a:hover {
  color: var(--primary);
}
.trend-meta {
  font-size: 11.5px;
  color: var(--muted);
}

/* ============== SIDEBAR BOX ============== */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
}
.side-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 24px;
}
.side-box h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-weight: 700;
}

/* ============== NEWSLETTER ============== */
.newsletter {
  background: var(--bg-cream);
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.newsletter h2 {
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 10px;
}
.newsletter p {
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}
.newsletter-form button {
  padding: 13px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
}
.newsletter-form button:hover {
  background: var(--primary-dark);
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand img {
    margin-left: 40px;
    width: 172px;
    height: 98px;
    margin-bottom: 16px;
    /* filter: brightness(0) invert(1); */
}
.footer-brand .b-name {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 4px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand h4 {
font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
    margin-top: 3px;

}
.social-row {
  display: flex;
  gap: 8px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 13px;
}
.social-row a:hover {
  background: var(--gold);
  color: var(--ink);
}
.footer-col h5 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  padding: 5px 0;
  display: block;
}
.footer-col a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 8px;
}

/* ============== LOGIN / AUTH ============== */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg-soft);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px;
  box-shadow: var(--shadow);
}
.auth-card-wide {
  max-width: 560px;
}
.auth-card h1 {
  font-size: 26px;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 26px;
}
.form-row {
  margin-bottom: 16px;
}
.form-row.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 62, 118, 0.1);
}
.form-control.is-invalid {
  border-color: var(--red);
}
.field-error {
  font-size: 11.5px;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.field-error.show {
  display: block;
}
.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 5px;
}
.form-actions {
  margin-top: 8px;
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.auth-divider {
  text-align: center;
  margin: 22px 0;
  position: relative;
  font-size: 12px;
  color: var(--muted);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 22px);
  height: 1px;
  background: var(--line);
}
.auth-divider::before {
  left: 0;
}
.auth-divider::after {
  right: 0;
}
.auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.password-strength {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.password-strength-bar {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: all 0.25s;
}
.demo-creds {
  background: rgba(201, 162, 39, 0.1);
  border: 1px dashed rgba(201, 162, 39, 0.4);
  padding: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.demo-creds code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--primary);
}

/* ============== ARTICLE READING ============== */
.article-hero {
  background: var(--bg-cream);
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.article-meta-top {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-title {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 920px;
}
.article-deck {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-style: italic;
}
.article-byline {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.byline-author {
  display: flex;
  gap: 12px;
  align-items: center;
}
.byline-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.byline-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.byline-role {
  font-size: 12px;
  color: var(--muted);
}
.byline-meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
}
.byline-meta strong {
  color: var(--ink-soft);
  font-weight: 600;
}
.article-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.icon-btn.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.article-body {
  padding: 48px 0;
}
.article-body .container-narrow p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 22px;
  color: var(--ink-soft);
}
.article-body .container-narrow h2 {
  font-size: 26px;
  margin: 32px 0 16px;
  color: var(--ink);
}
.article-body .container-narrow h3 {
  font-size: 21px;
  margin: 28px 0 12px;
  color: var(--ink);
}
.article-body .container-narrow blockquote {
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 24px;
  margin: 24px 0;
  font-size: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.article-body .container-narrow ul,
.article-body .container-narrow ol {
  margin: 0 0 22px 24px;
}
.article-body .container-narrow li {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 72px;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--primary);
  font-weight: 700;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.article-tags .tag-pill {
  background: var(--bg-soft);
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.article-tags .tag-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============== ISSUE / FLIPBOOK ============== */
.issue-card {
  background: var(--white);
  border: 1px solid var(--line);
  transition: all 0.25s;
}
.issue-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.issue-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(
    160deg,
    var(--primary-dark) 0%,
    var(--primary) 50%,
    var(--ink) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.issue-cover::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.4) 0%,
    transparent 70%
  );
}
.issue-cover .ic-top {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  opacity: 0.8;
  text-transform: uppercase;
}
.issue-cover .ic-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  z-index: 1;
}
.issue-cover .ic-vol {
  font-size: 11px;
  opacity: 0.8;
}
.issue-cover .ic-month {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold-light);
  font-weight: 700;
  z-index: 1;
}
.issue-meta {
  padding: 14px 16px;
}
.issue-meta .im-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.issue-meta .im-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.issue-meta .im-actions {
  display: flex;
  gap: 6px;
}
.issue-meta .im-actions a {
  font-size: 11.5px;
  color: var(--primary);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.issue-meta .im-actions a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Flipbook viewer */
.flipbook-viewer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  min-height: 540px;
}
.flipbook-page {
  padding: 40px;
  position: relative;
}
.flipbook-page.left {
  border-right: 1px solid var(--line);
}
.flip-page-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: absolute;
  top: 16px;
  right: 20px;
}
.flipbook-page.left .flip-page-num {
  left: 20px;
  right: auto;
}
.flip-content-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 18px;
}
.flip-content-text {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.flipbook-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.flip-btn {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
}
.flip-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.flip-page-indicator {
  font-size: 12px;
  color: var(--muted);
}

/* ============== SEARCH ============== */
.nav-item.has-mega:hover .mega-menu {
  display: block;
}
.search-bar {
  background: var(--bg-cream);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.search-input-wrap {
  display: flex;
  gap: 10px;
  max-width: 900px;
}
.search-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
}
.search-filters {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.filter-group {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.filter-group h5 {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
}
.filter-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-opt:hover {
  color: var(--primary);
}
.filter-opt input {
  margin-right: 8px;
}
.filter-opt .count {
  color: var(--muted);
  font-size: 11px;
}

/* ============== NOTIFICATION ============== */
.notif-panel {
  position: absolute;
  top: 56px;
  right: 0;
  width: 380px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 0;
  display: none;
  z-index: 100;
}
.notif-panel.show {
  display: block;
}
.notif-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-head h4 {
  font-size: 15px;
  margin: 0;
}
.notif-head a {
  font-size: 11.5px;
  color: var(--primary);
}
.notif-list {
  max-height: 380px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover {
  background: var(--bg-soft);
}
.notif-item.unread {
  background: rgba(37, 62, 118, 0.04);
}
.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 62, 118, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-body {
  flex: 1;
}
.notif-body .nt {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 3px;
}
.notif-body .nm {
  font-size: 11px;
  color: var(--muted);
}
.notif-foot {
  padding: 12px 18px;
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* ============== TOAST ============== */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--white);
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  min-width: 280px;
  max-width: 380px;
  animation: slideIn 0.3s;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.toast.success {
  border-left-color: var(--green);
}
.toast.error {
  border-left-color: var(--red);
}
.toast.warning {
  border-left-color: var(--gold);
}
.toast .t-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  font-size: 13px;
}
@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============== PAGINATION ============== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 32px 0;
}
.pagination a {
  padding: 8px 13px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
}
.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============== DASHBOARD ============== */
.dash-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 200px);
}
.dash-side {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 24px 0;
}
.dash-side .user-block {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.dash-side .user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}
.dash-side .user-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}
.dash-side .user-role {
  font-size: 11.5px;
  color: var(--muted);
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
}
.dash-nav a:hover {
  background: var(--white);
  color: var(--primary);
}
.dash-nav a.active {
  background: var(--white);
  color: var(--primary);
  border-left-color: var(--gold);
  font-weight: 700;
}
.dash-main {
  padding: 32px;
}

/* ============== STAT CARDS ============== */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  border-left: 4px solid var(--primary);
}
.stat-card.gold {
  border-left-color: var(--gold);
}
.stat-card.teal {
  border-left-color: var(--teal);
}
.stat-card.red {
  border-left-color: var(--red);
}
.stat-card .sc-label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.stat-card .sc-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}
.stat-card .sc-delta {
  font-size: 11.5px;
  color: var(--green);
  margin-top: 4px;
}
.stat-card .sc-delta.down {
  color: var(--red);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .layout-2col {
    grid-template-columns: 1fr;
  }
  .dash-wrap {
    grid-template-columns: 1fr;
  }
  .dash-side {
    display: none;
  }
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1100px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--line);
    z-index: 60;
    /* max-height: calc(100vh - 80px); */
    overflow-y: auto;
    width: 99%;
    left: 50%;
    transform: translateX(-50%);
  }
  .main-nav.open {
    display: flex;
  }
   .nav-item.has-mega.open > .mega {
    display: block !important;
    width: 100%;
            height: 23rem;
        overflow-y: auto;
  }
  .main-nav a,
  .main-nav .nav-item {
    padding: 12px 22px;
    justify-content: flex-start;
    border-bottom: none;
    text-align: left;
    width: 100%;
    border-bottom: 1px solid #e3e8f15c;
    display: flow-root;
    align-items: start;
        flex-direction: column;
  }
  
  .menu-toggle {
    display: inline-flex;
  }
  .brand-text .b3 {
    display: none;
  }
  .brand img {
    height: 48px;
  }
  .nav-item.has-mega.open > .mega,
  .nav-item.has-mega:hover > .mega {
    position: static;
    box-shadow: none;
    padding: 8px 22px 16px;
    background: var(--bg-soft);
    border-top: none;
  }
  .mega > .container {
    padding: 0;
  }
  .mega .mega-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mega-col h5 {
    margin-bottom: 6px;
    padding-bottom: 4px;
  }
  .mega-col a {
    padding: 4px 0;
  }

/* Mobile → hover disable, click only */
    .nav-item.has-mega:hover .mega-menu {
        display: none;
        padding-top: 0.5rem;
    }

/* Click par open */
.nav-item.has-mega.open .mega-menu {
    display: block !important;
}

   .nav-item.has-mega a{
    padding: 5px 0;
    border-bottom: none;
}

.mega-menu{
       position: static !important;
    box-shadow: none;
    padding: 8px 22px 16px;
    background: var(--bg-soft) !important;
    border-top: none;
    margin-top: 0.5rem;
}
.mega-menu a{
    padding: 4px 0 !important;
}
}
@media (max-width: 768px) {
  .topbar-left {
    display: none;
  }
  .topbar {
    font-size: 11px;
    padding: 6px 0;
  }
  .topbar-right {
    gap: 12px;
  }
  .header-main {
    gap: 10px;
    padding: 10px 0;
  }
  .brand {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .brand img {
    height: 40px;
    flex-shrink: 0;
  }
  .brand-text {
    min-width: 0;
    overflow: hidden;
  }
  .brand-text .b1 {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-text .b2 {
    font-size: 9.5px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-text .b3 {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .search-toggle {
    width: 34px;
    height: 34px;
  }
  .btn-login {
    padding: 7px 12px;
    font-size: 12px;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
  .gigw-bar {
    font-size: 11px;
  }
  .gigw-link {
    padding: 3px 7px;
    font-size: 11px;
  }
  .gigw-link i {
    font-size: 10px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-title {
    font-size: 28px;
  }
  .article-body .container-narrow p,
  .article-body .container-narrow li {
    font-size: 16px;
  }
  .flipbook-viewer {
    grid-template-columns: 1fr;
  }
  .flipbook-page.left {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .section-title {
    font-size: 22px;
  }
  .hero-title {
    font-size: 22px;
  }
  .article-row {
    flex-direction: column;
  }
  .article-row-img {
    width: 100%;
    height: 180px;
  }
  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }
  .form-row.row-2 {
    grid-template-columns: 1fr;
  }
  .mega-grid {
    grid-template-columns: 1fr;
  }
  .issue-strip .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .issue-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .ticker {
    padding: 8px 0;
  }
  .ticker-label {
    font-size: 10px;
    padding: 3px 8px;
  }
  .v2-divider {
    display: flex;
    justify-content: space-between;
}
.article-card div p {
    font-size: 16px !important;
    line-height: 25px !important;
}
}
@media (max-width: 576px) {
   .trend-body h4 {
    font-size: 16px;
}
.ethics-card h3 {
    font-size: 18px;
   }
   .ethics-list .accordion-button{
      font-size: 18px;
   }
}

/* Utility */
.text-center {
  text-align: center;
}
.mt-2 {
  margin-top: 12px;
}
.mt-3 {
  margin-top: 20px;
}
.mt-4 {
  margin-top: 32px;
}
.mb-2 {
  margin-bottom: 12px;
}
.mb-3 {
  margin-bottom: 20px;
}
.mb-4 {
  margin-bottom: 32px;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hidden {
  display: none !important;
}

/* ============================================================
   GLOBAL RESPONSIVE OVERRIDES — apply to inner pages
   ============================================================ */
@media (max-width: 1024px) {
  /* Force all 2-col layouts (incl. those with inline grid-template-columns)
     to single column on tablet and below */
  .layout-2col,
  .layout-2col[style*="grid-template-columns"],
  .v1-news-grid,
  .from-issue-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Sticky sidebars become inline on small screens */
  .search-filters,
  .from-issue-side {
    position: static !important;
    top: auto !important;
  }

  /* Hero grid on inner pages */
  section.hero .hero-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  /* Hero and section spacing — tighter on mobile */
  .hero {
    padding: 24px 0 18px;
  }
  .section {
    padding: 32px 0;
  }
  .section-tight {
    padding: 22px 0;
  }
  .crumbs {
    font-size: 11.5px;
    padding: 8px 0;
  }

  /* Article hero (article.html) */
  .article-hero {
    padding: 28px 0;
  }
  .article-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .article-byline {
    gap: 12px;
  }

  /* Issue detail hero side-by-side cover + meta */
  section.hero .hero-grid[style*="320px"] > div:first-child {
    max-width: 220px;
    margin: 0 auto;
  }

  /* Dashboard / Notifications / Submit / Contact / Advertise — single column */
  .dash-wrap {
    grid-template-columns: 1fr;
  }
  .dash-side {
    display: none;
  }
  .dash-main {
    padding: 20px;
  }

  /* Search results layout */
  .search-bar {
    padding: 20px 0;
  }
  .search-input-wrap {
    flex-direction: column;
  }
  .search-input-wrap .search-input {
    width: 100%;
  }

  /* Articles browse — filter sidebar moves above */
  .search-filters {
    margin-bottom: 18px;
  }
  .search-filters .filter-group {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  /* Tab strips become horizontal scroll */
  .tab-strip-inner {
    gap: 4px;
  }
  .tab-strip .tab {
    padding: 10px 14px;
    font-size: 12px;
  }

  /* Issue strip / banners */
  .issue-info {
    width: 100%;
  }
  .issue-title {
    font-size: 15px;
  }
  .issue-actions {
    gap: 6px;
  }
  .issue-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* CPE hero stat boxes — wrap */
  section[style*="linear-gradient(135deg, #fdfaf0"]
    > .container
    > div[style*="display:flex"] {
    flex-direction: column;
    gap: 12px !important;
  }

  /* Auth wrap on mobile */
  .auth-wrap {
    padding: 24px 16px;
    min-height: auto;
  }
  .auth-card {
    padding: 24px;
  }
  .auth-card h1 {
    font-size: 22px;
  }

  /* Newsletter form stacks */
  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }
  .newsletter h2 {
    font-size: 24px;
  }

  /* Author profile hero */
  section.hero > .container > div[style*="display:flex"][style*="gap:32px"] {
    gap: 18px !important;
  }

  /* Pagination */
  .pagination a {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* From-this-issue (homepage) — single column */
  .from-issue-layout {
    grid-template-columns: 1fr !important;
    display: block;
  }

  /* Magazine variant rails on mobile */
  .v1-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .v1-trend {
    grid-template-columns: 1fr !important;
  }
  .v1-strip-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .v1-pod {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 18px;
  }
  .v1-pod > .btn {
    display: none;
  }

  /* Bento variant on mobile */
  .v2-bento {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
  }
  .v2-bento > .v2-tile {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 160px;
  }
  .v2-tile-hero h1 {
    font-size: 24px !important;
  }
  .v2-tile-hero .v2-deck {
    font-size: 14px !important;
  }
  .v2-mosaic {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 180px !important;
  }
  .v2-mosaic > .v2-m-card {
    grid-column: 1 / -1 !important;
    grid-row: span 1 !important;
  }
  .v2-divider {
    flex-wrap: wrap;
    gap: 10px;
  }
  .v2-divider-text {
    font-size: 30px;
  }
  .v2-divider-line {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .container-narrow {
    padding: 0 16px;
  }
  .article-title {
    font-size: 24px;
  }
  .article-deck {
    font-size: 16px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .stat-cards {
    grid-template-columns: 1fr;
  }
  .stats-bar .container {
    grid-template-columns: 1fr;
  }
  .form-row.row-2 {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 20px;
  }
  .hero-title {
    font-size: 20px;
  }
  .topbar-right {
    gap: 8px;
    font-size: 10.5px;
  }
}

.journal-listing .card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

.journal-listing .search-box {
  margin-bottom: 25px;
}

.journal-listing .search-box input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  outline: none;
  font-size: 15px;
}

.journal-listing .search-box input:focus {
  border-color: var(--primary);
}

.journal-listing .journal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.journal-listing .journal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: 0.3s;
  position: relative;
}

.journal-listing .journal-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
  border-radius: 12px 0 0 12px;
}

.journal-listing .journal-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.journal-listing .left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.journal-listing .page-tag {
  background: #eff6ff;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
}

.journal-listing .title {
  font-size: 15px;
  font-weight: 500;
}

.journal-listing .open-btn {
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.journal-listing .open-btn:hover {
  background: #1d4ed8;
}

.journal-listing .issue-card {
  border: 0px solid #ddd;
  border-radius: 12px;
  min-height: 140px;
  padding: 25px;
  position: relative;
  box-shadow: none;
}

.journal-listing .issue-title {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  margin-top: 10px;
}

.journal-listing .issue-title:hover {
  text-decoration: underline;
}

.journal-listing .read-more {
  position: absolute;
  right: 25px;
  bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.journal-listing .read-more:hover {
  text-decoration: underline;
}

.fisrt-coder {
  background-image: url("../img/pdf-cover-img.png");
  background-size: 100%;
  background-repeat: no-repeat;
}
.fisrt-coder2 {
  background-image: url("../img/pdf-cover-img2.jpg");
  background-size: 100%;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .journal-listing .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .journal-listing .journal-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .journal-listing .left {
    width: 100%;
  }

  .journal-listing .open-btn {
    width: 100%;
    text-align: center;
  }
}
.open-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9999;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.popup-overlay iframe {
  height: 500px;
  width: 100%;
}
.popup-overlay .close-popup {
  position: absolute;
  top: 2px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.popup-overlay .popup {
  width: 100%;
  max-width: 90%;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transform: translateY(30px);
  transition: 0.3s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  margin-top: 40px;
}

.popup-overlay.active .popup {
  transform: translateY(0);
}

.popup-overlay .popup-icon {
  width: 70px;
  height: 70px;
  margin: auto;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.mega-menu {
  position: absolute;
  top: 84px;
  background: #fff;
  display: none;
}


.footer-col .icon {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    flex-wrap: wrap;
}

.footer-col .icon li {
    margin: 0;
    padding: 0;
}

.footer-col .icon li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    transition: .3s;
}

.footer-col .icon li a:hover {
    background: #fff;
    color: #1b1b8f;
}

.footer-col .icon li a i {
    font-size: 18px;
}
.footer-logo {
    max-width: 150px;   /* Adjust as needed */
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    display: block;
}
.logo-box{
    width:140px;
    height:140px;
    background:#fff;
    border-radius:20px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}
.ca-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 154px;
    height: 127px;
    background: #fff;
    border-radius: 24px;
    padding: 13px;
    overflow: hidden;
    margin-bottom: 10px;
  margin-left: 0;
}

.footer-brand img {
    margin-left: 10px;
    width: 100%;
    height: auto;
    margin-bottom: 0;
}


@media(min-width: 1200px) {
  .main-nav a, .main-nav .nav-item {
        font-size: 12.5px;

  }
}







  .article-details{
    margin:28px auto 56px;
    padding:0 24px;
  }

  .article-details .container {
    margin:28px auto 56px;
    padding:0 24px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    gap:28px;
    align-items:start;
  }

  
  .article-details .article-card{
    background:#fff;
    border:0px solid #E4DFD0;
    border-radius:4px;
    padding:0;
  }

  .article-details .article-card:hover {
    box-shadow: none;
    transform: none;
  }

  .article-details .tag-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px;}
  .article-details .tag{
    font-size:11px;font-weight:800;letter-spacing:.6px;
    padding:6px 12px;border-radius:3px;text-transform:uppercase;
  }
  .article-details .tag.primary{background:#F1E4C3;color:#B8893E;border:1px solid #e3cf9a;}
  .article-details .tag.secondary{background:#fff;color:#5a6372;border:1px solid #E4DFD0;}
  .article-details .tag.date{background:#e9eef5;color:#0E3A66;border:1px solid #d4dee9;}

  .article-details h1.article-title{
    font-family:Georgia,"Times New Roman",serif;
    font-size:36px;
    line-height:1.22;
    color:#0B2D52;
    margin:0 0 20px;
    font-weight:700;
  }

  .article-details .deck{
    font-size:16px;
    color:#4B5563;
    line-height:1.6;
    margin:0 0 22px;
    font-style:italic;
    border-left:3px solid #C9A961;
    padding-left:14px;
  }


  .article-details .at-a-glance{
    background:#fff;
    border:1px solid #E4DFD0;
    border-left:4px solid #0B2D52;
    border-radius:3px;
    padding:18px 22px;
    margin:0 0 26px;
  }
  .article-details .at-a-glance .label{
    font-size:11px;font-weight:800;letter-spacing:.8px;
    color:#0B2D52;text-transform:uppercase;margin-bottom:10px;
    display:flex;align-items:center;gap:8px;
  }
  .article-details .at-a-glance .label::before{
    content:"";width:7px;height:7px;border-radius:50%;background:#C9A961;display:inline-block;
  }
  .article-details .at-a-glance ul{margin:0;padding-left:18px;}
  .article-details .at-a-glance li{
    font-size:14.5px;color:#1C2733;line-height:1.55;margin-bottom:6px;
  }
  .article-details .at-a-glance li:last-child{margin-bottom:0;}

  .article-details .byline-row{
    display:flex;align-items:center;gap:16px;flex-wrap:wrap;
    padding-bottom:24px;margin-bottom:28px;
    border-bottom:1px solid #E4DFD0;
  }
  .article-details .avatar{
    width:46px;height:46px;border-radius:50%;
    background:#0B2D52;color:#fff;
    display:flex;align-items:center;justify-content:center;
    font-weight:800;font-size:14px;letter-spacing:.5px;
    flex:none;
  }
  .article-details .byline-text .who{font-size:14.5px;font-weight:800;color:#0B2D52;}
  .article-details .byline-text .role{font-size:12.5px;color:#8a8f99;}
  .article-details .meta-cluster{
    margin-left:auto;
    display:flex;align-items:center;gap:18px;
    font-size:12.5px;color:#8a8f99;flex-wrap:wrap;
  }
  .article-details .meta-cluster span{display:inline-flex;align-items:center;gap:6px;}
  .article-details .meta-cluster svg{width:13px;height:13px;}
  .article-details .share-row{display:flex;gap:8px;}
  .article-details .share-row .circ{
    width:32px;height:32px;border-radius:50%;
    background:#fff;border:1px solid #E4DFD0;
    display:flex;align-items:center;justify-content:center;
    font-size:12px;color:#4b5563;
  }
  .article-details .share-row .circ svg{width:14px;height:14px;}

  .article-details .article-body{
    font-size:16px;
    line-height:1.85;
    color:#2a323d;
    padding: 10px 0px;
  }
  .article-details .article-body p{margin:0 0 20px; font-size: 16px;}
  .article-details .article-body h2{
    font-family:Georgia,"Times New Roman",serif;
    color:#0B2D52;
    font-size:23px;
    margin:34px 0 14px;
    padding-bottom:8px;
    border-bottom:2px solid #F1E4C3;
  }
  .article-details .article-body ul{margin:0 0 20px;padding-left:20px;}
  .article-details .article-body li{margin-bottom:8px;}

  .article-details blockquote.pull{
    margin:28px 0;
    padding:6px 0 6px 26px;
    border-left:4px solid #C9A961;
    position:relative;
  }
  .article-details blockquote.pull::before{
    content:"\201C";
    font-family:Georgia,serif;
    font-size:64px;
    color:#F1E4C3;
    position:absolute;
    left:14px;top:-18px;
    line-height:1;
    z-index:0;
  }
  .article-details blockquote.pull p{
    position:relative;z-index:1;
    font-family:Georgia,"Times New Roman",serif;
    font-size:20px;
    font-style:italic;
    color:#0B2D52;
    line-height:1.5;
    margin:0 0 8px;
  }
  .article-details blockquote.pull cite{
    position:relative;z-index:1;
    font-size:13px;
    font-style:normal;
    font-weight:700;
    color:#B8893E;
    letter-spacing:.2px;
  }

  .article-details .takeaways{
    background:#0B2D52;
    color:#fff;
    border-radius:4px;
    padding:26px 30px;
    margin:32px 0 10px;
  }
  .article-details .takeaways .label{
    font-size:12px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;
    color:#C9A961;margin-bottom:14px;
  }
  .article-details .takeaways ul{margin:0;padding-left:0;list-style:none;}
  .article-details .takeaways li{
    position:relative;padding-left:26px;margin-bottom:10px;
    font-size:14.5px;line-height:1.55;color:#e7ecf2;
  }
  .article-details .takeaways li:last-child{margin-bottom:0;}
  .article-details .takeaways li::before{
    content:"";position:absolute;left:0;top:6px;
    width:10px;height:10px;border:2px solid #C9A961;border-radius:2px;
  }

  .article-details .tags-footer{
    display:flex;gap:10px;flex-wrap:wrap;
    margin-top:32px;padding-top:22px;
    border-top:1px solid #E4DFD0;
  }
  .article-details .tags-footer a{
    font-size:12px;font-weight:700;color:#0E3A66;
    background:#fff;border:1px solid #E4DFD0;
    padding:6px 13px;border-radius:20px;
  }

  .article-details .author-box{
   flex-direction: column;
    background:#fff;
    border:1px solid #E4DFD0;
    border-radius:4px;
    padding:22px 24px;
    display:flex;
    gap:18px;
    align-items:flex-start;
  }
  .article-details .author-box .avatar{width:58px;height:58px;font-size:17px;}
  .article-details .author-box .info .name{font-size:15px;font-weight:800;color:#0B2D52;}
  .article-details .author-box .info .role{font-size:12.5px;color:#B8893E;font-weight:700;margin:2px 0 8px;}
  .article-details .author-box .info p{font-size:13.5px;color:#4B5563;line-height:1.6;margin:0;}

  
  .article-details .sidebar{
    display:flex;flex-direction:column;gap:22px;
    align-self:start;
  }
  .article-details .side-card{
    background:#fff;
    border:1px solid #E2E6EA;
    border-radius:4px;
    overflow:hidden;
  }
  .article-details .related-reading-card{
    position:sticky;
    top:139px;
    z-index:2;
    align-self:start;
  }
  .article-details .side-card .head{
    background:#0B2D52;
    color:#fff;
    font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;
    padding:13px 18px;
    display:flex;align-items:center;gap:8px;
  }
  .article-details .side-card .head::before{
    content:"";width:8px;height:8px;background:#C9A961;border-radius:50%;display:inline-block;
  }
  .article-details .side-card .body{padding:4px 20px;}

  .article-details .fast-facts dl{margin:0;}
  .article-details .fast-facts .row{
    display:flex;justify-content:space-between;gap:14px;
    padding:9px 0;
    border-bottom:1px dashed #E2E6EA;
    font-size:13px;
  }
  .article-details .fast-facts .row:last-child{border-bottom:none;}
  .article-details .fast-facts dt{color:#8a8f99;font-weight:600;flex:none;}
  .article-details .fast-facts dd{margin:0;color:#0B2D52;font-weight:700;text-align:right;}

  .article-details .related-list{display:flex;flex-direction:column;}
  .article-details .related-item{
    display:block;padding:13px 20px;
    border-bottom:1px solid #E2E6EA;
    font-size:13.5px;
  }
  .article-details .related-item:last-child{border-bottom:none;}
  .article-details .related-item .r-title{
    color:#0B2D52;font-weight:700;line-height:1.4;display:block;margin-bottom:5px;
  }
  .article-details .related-item .r-meta{color:#9aa0a8;font-size:11.5px;}

  .article-details .newsletter-card{
    background:linear-gradient(135deg, #0B2D52, #15467a);
    color:#fff;border-radius:4px;padding:24px 22px;
    text-align:left;
  }
  .article-details .newsletter-card h3{
    font-family:Georgia,serif;font-size:18px;margin:0 0 8px;color:#fff;
  }
  .article-details .newsletter-card p{font-size:13px;color:#cdd7e3;line-height:1.55;margin:0 0 16px;}
  .article-details .newsletter-card input{
    width:100%;padding:10px 12px;border-radius:3px;border:none;
    font-size:13px;margin-bottom:10px;box-sizing:border-box;
  }
  .article-details .newsletter-card button{
    width:100%;padding:10px 12px;border-radius:3px;border:none;
    background:#C9A961;color:#0B2D52;font-weight:800;
    font-size:13px;letter-spacing:.3px;cursor:pointer;
  }

  @media (max-width:920px){
    .article-details .page-shell{grid-template-columns:1fr;}
    .article-details .article-card{padding:0;}
    .article-details h1.article-title{font-size:28px;}
    .article-details nav.main-nav{display:none;}
    .article-details .header-inner{padding:12px 18px;}
    .article-details .related-reading-card{position:static; margin-top: 20px;}
    .article-details .container {
      display: flow-root;
      margin: 0;
      padding: 0px
    }
  }

  .article-details .article-body ol, ul {
    margin-left: 40px;
  }

  .article-body h3 {
     font-size: 20px;
    font-weight: 800; 
  }

    .article-body h4 {
 font-size: 18px;
    font-weight: 800; 
    margin: 16px 0px 4px;
    }
  .article-body table {
    width: 100%;
    border-collapse: collapse;
 margin-bottom: 10px;
  }

    .article-body table td  {
      border: 1px solid #ccc;
    padding: 6px;
    font-size: 14px;
   
    }

    