/* ==========================================================================
   Somavoice — Design System (Refined Editorial)
   Tokens -> Reset -> Type -> Layout -> Nav -> Buttons -> Sections -> Components
   ========================================================================== */

/* ── TOKENS ── */
:root {
  --ink:         #0E1624;
  --navy:        #1A2E4A;
  --slate:       #253444;
  --gold:        #C9963A;
  --gold-light:  #E5B96A;
  --gold-faint:  rgba(201, 150, 58, 0.08);
  --mist:        #E8EDF4;
  --text-dim:    #7A8CA0;
  --white:       #FFFFFF;
  --border:      rgba(232, 237, 244, 0.10);
  --border-gold: rgba(201, 150, 58, 0.22);

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  --max-w: 1140px;
  --gap:   clamp(1.25rem, 3vw, 2.5rem);
  --pad:   clamp(3.5rem, 6vw, 5.5rem);
  --ease:  cubic-bezier(0.2, 0.7, 0.2, 1);

  /* 8pt spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 28px -10px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 24px -10px rgba(201, 150, 58, 0.35);

  --surface: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.018) 100%);
  --surface-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.03) 100%);
  --surface-hairline: rgba(255, 255, 255, 0.07);

  --shadow-card: var(--shadow-sm);
  --shadow-card-hover: var(--shadow-lg);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--mist);
  background: var(--ink);
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'%3E%3C/rect%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ── TYPE ── */
.display {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--gold-light); }

.hero-display-balanced {
  max-width: 24ch;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  line-height: 1.22;
  color: var(--white);
  letter-spacing: -0.01em;
}
h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--white); }
h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
p { color: var(--mist); font-weight: 300; max-width: 60ch; line-height: 1.65; font-size: 0.92rem; }
.lead { font-size: 1.05rem; font-weight: 300; color: #BCC8D6; max-width: 54ch; line-height: 1.65; }
strong { font-weight: 600; color: var(--white); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--sp-3);
}
.dim { color: var(--text-dim); }
.gold-link { color: var(--gold-light); text-decoration: underline; transition: color 0.15s var(--ease); }
.gold-link:hover { color: var(--white); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.section-head { margin-bottom: var(--sp-8); max-width: 62ch; }
.section-head h2 { margin-bottom: var(--sp-2); }
.section-head p { margin-top: var(--sp-2); }
.section-head--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--centered .eyebrow {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}
.section-head--centered p {
  margin-left: auto;
  margin-right: auto;
}

.hairline-gold {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--border-gold) 20%, var(--border-gold) 80%, transparent);
}

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.section { padding: var(--pad) 0; }
.section--navy { background: var(--navy); }
.section--slate { background: var(--slate); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 66px;
  z-index: 1000;
  background: rgba(14, 22, 36, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 12px 24px -16px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  width: 100%;
  height: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 10;
}

.nav-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}

/* .nav-logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(155deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
  flex-shrink: 0;
  border-radius: 2px;
} */

.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-logo-text strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  font-family: var(--mono) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  padding: 0.5rem 1.15rem !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  background: transparent !important;
  margin-left: 0.4rem;
  transition: all 0.15s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-gold) !important;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 18px;
  display: block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-toggle svg {
  width: 9px;
  height: 9px;
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: #111E2D;
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
  z-index: 500;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-subtab {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.75rem 0.9rem !important;
  text-decoration: none !important;
  border-radius: 3px !important;
  transition: background 0.15s var(--ease) !important;
}

.nav-dropdown-subtab + .nav-dropdown-subtab {
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.nav-dropdown-subtab:hover,
.nav-dropdown-subtab.active {
  background: rgba(255, 255, 255, 0.05) !important;
}

.subtab-header {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.subtab-title {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--white);
}

.subtab-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.nav-dropdown-subtab .pill {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.nav-dropdown-subtab .pill.soon {
  color: var(--text-dim);
  border-color: rgba(139, 155, 174, 0.3);
}

.hamburger {
  display: none;
}

/* ==========================================================================
   MOBILE & SMALL SCREEN BREAKPOINT (<= 860px)
   ========================================================================== */
@media (max-width: 860px) {
  .nav { overflow: visible !important; }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mist) !important;
    border-radius: 1px;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav .nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1001;
  }

  .footer-brand .nav-logo {
    position: static !important;
    transform: none !important;
    margin-bottom: var(--sp-3);
  }

  .nav-links { display: none; }

  .nav-links.open {
    display: flex !important;
    position: fixed !important;
    top: 66px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: calc(100vh - 66px) !important;
    height: calc(100dvh - 66px) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: #0E1624 !important;
    border-top: 1px solid var(--border) !important;
    padding: 1.5rem 2rem 3rem !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
  }

  .nav-links.open li {
    width: 100% !important;
    display: block !important;
  }

  .nav-links.open a,
  .nav-links.open .nav-dropdown-toggle {
    width: 100% !important;
    padding: 1rem 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #E8EDF4 !important;
    border-bottom: 1px solid rgba(232, 237, 244, 0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .nav-links.open a:hover,
  .nav-links.open a.active,
  .nav-links.open .nav-dropdown-toggle.active {
    color: var(--gold-light) !important;
  }

  .nav-links.open .nav-cta-item {
    margin-top: 2rem !important;
  }

  .nav-links.open .nav-cta {
    display: flex !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.78rem !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
  }

  .nav-dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.02) !important;
    box-shadow: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.25s var(--ease) !important;
    min-width: 0 !important;
    padding: 0 0.5rem !important;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 400px !important;
    padding: 0.5rem !important;
  }

  .nav-dropdown-subtab { padding: 0.85rem 0.5rem !important; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.8rem 1.5rem; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  border: none;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(201, 150, 58, 0.5); }
.btn-outline { background: rgba(255, 255, 255, 0.02); color: var(--mist); border: 1px solid rgba(232, 237, 244, 0.22); }
.btn-outline:hover { border-color: var(--mist); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ══════════════════════════════════
   HOME HERO
══════════════════════════════════ */
.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(14, 22, 36, 0.25) 0%, rgba(14, 22, 36, 0.55) 60%, rgba(14, 22, 36, 0.92) 100%),
    url('/assets/images/cover_images/home_page_cover_image.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: linear-gradient(var(--mist) 1px, transparent 1px), linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-content .eyebrow {
  margin-bottom: var(--sp-4);
  font-size: 0.7rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-content .display {
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-content .lead {
  margin-bottom: var(--sp-5);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* ══════════════════════════════════
   COURSES HERO BANNER
══════════════════════════════════ */
.hero--courses,
.page-hero--courses {
  min-height: clamp(340px, 38vw, 420px) !important;
  max-height: 430px;
  display: flex !important;
  align-items: center !important;
  padding: 6.5rem 0 3.5rem !important;
  position: relative !important;
  overflow: hidden !important;
  border-bottom: 1px solid var(--border-gold) !important;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.85);
}

.hero--courses .hero-bg {
  background-image:
    linear-gradient(90deg, rgba(14, 22, 36, 0.85) 0%, rgba(14, 22, 36, 0.4) 45%, rgba(14, 22, 36, 0.1) 100%),
    linear-gradient(180deg, rgba(14, 22, 36, 0.3) 0%, transparent 40%, rgba(14, 22, 36, 0.6) 100%),
    url('/assets/images/cover_images/courses_cover_image.jpeg') !important;
  background-size: cover !important;
  background-position: right center !important;
}

.page-hero--courses {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(14, 22, 36, 0.85) 0%, rgba(14, 22, 36, 0.4) 45%, rgba(14, 22, 36, 0.1) 100%),
    linear-gradient(180deg, rgba(14, 22, 36, 0.3) 0%, transparent 40%, rgba(14, 22, 36, 0.6) 100%),
    url('/assets/images/cover_images/courses_cover_image.jpeg') !important;
  background-size: cover !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
}

.hero--courses .hero-content,
.page-hero--courses .container {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin-left: 0;
}

.hero--courses .display,
.page-hero--courses .display {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem) !important;
  line-height: 1.15 !important;
  margin-bottom: var(--sp-3) !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.hero--courses .lead,
.page-hero--courses .lead {
  font-size: 0.98rem !important;
  color: #C8D7E8 !important;
  max-width: 50ch !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.hero--courses .eyebrow,
.page-hero--courses .eyebrow {
  letter-spacing: 0.18em !important;
  margin-bottom: var(--sp-2) !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

/* ══════════════════════════════════
   COURSE CARDS (EQUAL HEIGHT & CLEAN SPACING)
══════════════════════════════════ */
.course-card-grid {
  align-items: stretch;
}

.course-card {
  position: relative;
  padding: 2.2rem 2rem 2rem 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-color: var(--surface-hairline);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

.course-card:hover {
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.course-card .tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-card .tag .badge {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid rgba(139, 155, 174, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.course-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--white);
}

.course-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 100%;
  color: #A6B8CB;
  margin-bottom: 1.5rem;
  word-break: break-word;
}

.course-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: auto;
  transition: gap 0.2s var(--ease), color 0.15s var(--ease);
}

.course-card .arrow-link:hover {
  gap: 0.65rem;
  color: var(--white);
}

.course-card .arrow-link::after {
  content: '→';
}

/* ══════════════════════════════════
   PULL QUOTE (CENTERED & REFINED)
══════════════════════════════════ */
.pull-quote {
  background: var(--navy);
  position: relative;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pull-quote-centered {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.45;
  color: var(--white);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  border-left: none;
  padding: 0;
  position: relative;
}

.pull-quote-centered::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.5rem auto;
}

.pull-quote-centered cite {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.5rem;
  font-style: normal;
}

/* ══════════════════════════════════
   WHO WE SERVE (SPACED GRID TILES)
══════════════════════════════════ */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--sp-6);
  background: transparent;
  border: none;
  box-shadow: none;
}

.serve-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(201, 150, 58, 0.4);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.serve-item:hover {
  background: var(--surface-hover);
  border-top-color: var(--gold-light);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.serve-icon {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  display: inline-block;
}

.serve-item h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.serve-item p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #A0B2C4;
  max-width: 100%;
}

@media (max-width: 860px) {
  .serve-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 580px) {
  .serve-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════
   METRICS
══════════════════════════════════ */
.metrics { background: var(--navy); position: relative; }
.metrics::before, .metrics::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; }
.metrics::before { top: 0; background: linear-gradient(90deg, transparent, var(--border-gold) 30%, var(--border-gold) 70%, transparent); }
.metrics::after { bottom: 0; background: var(--border); }
.metrics-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: var(--sp-5) 1.5rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.2rem; }
.metric:last-child { border-right: none; }
.metric-val { font-family: var(--serif); font-size: 1.75rem; color: var(--white); line-height: 1; }
.metric-val em { font-style: normal; color: var(--gold-light); }
.metric-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
@media (max-width: 700px) { .metrics-inner { grid-template-columns: 1fr 1fr; } .metric { border-bottom: 1px solid var(--border); } }

/* ── CTA BAND ── */
.cta-band { background: var(--navy); position: relative; padding: 4.5rem 0; text-align: center; }
.cta-band::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-gold) 30%, var(--border-gold) 70%, transparent); }
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { margin: 0 auto var(--sp-5); max-width: 46ch; text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* ══════════════════════════════════
   PAGE HERO (DEFAULT)
══════════════════════════════════ */
.page-hero {
  padding-top: calc(66px + 4rem);
  padding-bottom: 4rem;
  background: linear-gradient(165deg, var(--navy) 0%, var(--ink) 70%);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero .display { max-width: 700px; margin-bottom: var(--sp-3); }
.page-hero .lead { max-width: 60ch; }

/* ══════════════════════════════════
   ABOUT: HERO & CORE PILLARS
══════════════════════════════════ */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.about-hero-main .display {
  margin-bottom: var(--sp-3);
}

.about-hero-aside {
  border-left: 1px solid var(--border-gold);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.aside-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aside-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.aside-stat p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #BCC8D6;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.about-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-color: var(--surface-hairline);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}

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

.card-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.card-badge--gold {
  color: var(--gold-light);
  border-color: var(--border-gold);
  background: var(--gold-faint);
}

.about-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: var(--sp-3);
  color: var(--white);
}

.about-card p + p {
  margin-top: 1rem;
}

/* ══════════════════════════════════
   ABOUT: VALUES GRID & CARDS
══════════════════════════════════ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--sp-6);
}

.value-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(201, 150, 58, 0.4);
  padding: 2.2rem 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.value-item:hover {
  transform: translateY(-4px);
  border-top-color: var(--gold-light);
  border-color: var(--border-gold);
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
}

.value-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.value-index {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.14em;
}

.value-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-gold);
  transition: background 0.2s var(--ease);
}

.value-item:hover .value-dot {
  background: var(--gold-light);
}

.value-item h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.value-item p {
  font-size: 0.88rem;
  color: #A4B5C6;
  line-height: 1.65;
  max-width: 100%;
}

@media (max-width: 860px) {
  .values-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .about-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-hero-aside {
    border-left: none;
    border-top: 1px solid var(--border-gold);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  .about-split { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════
   ABOUT: FOUNDER PROFILE
══════════════════════════════════ */
.founder-profile {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-color: var(--surface-hairline);
  padding: clamp(2rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-md);
  align-items: start;
}

.founder-col-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founder-portrait-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--slate);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.founder-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.founder-portrait-border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 150, 58, 0.2);
  pointer-events: none;
}

.founder-quickfacts h3 {
  font-size: 1.3rem;
  font-family: var(--serif);
  color: var(--white);
  margin-bottom: 0.15rem;
}

.founder-role {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

.fact-row {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.fact-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.fact-val {
  font-size: 0.82rem;
  color: var(--mist);
  line-height: 1.5;
}

.founder-col-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founder-quote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  color: var(--gold-light);
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  font-style: italic;
}

.founder-narrative p {
  font-size: 0.94rem;
  line-height: 1.75;
  color: #CCD8E6;
  max-width: 68ch;
}

.founder-narrative p + p {
  margin-top: 1.1rem;
}

.network-banner {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--border-gold);
}

.network-banner p {
  font-size: 0.86rem;
  color: var(--text-dim);
  max-width: 100%;
}

@media (max-width: 900px) {
  .founder-profile { grid-template-columns: 1fr; }
  .founder-col-media { max-width: 320px; }
}

/* ══════════════════════════════════
   COURSE DETAIL HEROES
══════════════════════════════════ */
.course-hero,
.cs-hero {
  position: relative;
  padding-top: calc(66px + 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.course-hero { background: linear-gradient(165deg, var(--navy) 0%, var(--ink) 70%); }
.cs-hero { background: linear-gradient(165deg, #162438 0%, var(--ink) 65%); }
.course-hero .display, .cs-hero .display { max-width: 820px; margin-bottom: var(--sp-3); }
.course-hero .lead, .cs-hero .lead { max-width: 68ch; font-size: 1.05rem; line-height: 1.7; }

.course-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
  font-weight: 500;
}

.cs-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: var(--gold-faint);
  border: 1px solid var(--border-gold);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-bottom: var(--sp-3);
}

.course-intro { margin-bottom: var(--sp-10); }

.outcomes-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--sp-4);
}

.outcome-item {
  position: relative;
  padding-left: 1.5rem;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.5;
}

.outcome-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: bold;
}

.week-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-10);
}

.week-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.week-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.week-content h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.week-content p { max-width: 100%; font-size: 0.88rem; color: #B4C4D4; }

.details-cta,
.interest-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
  margin-top: var(--sp-8);
}

@media (max-width: 760px) {
  .details-cta, .interest-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.preview-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.preview-topic {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
}

.preview-topic h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.preview-topic p { font-size: 0.85rem; color: #9AAAB8; }

.course-footnote {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ══════════════════════════════════
   PUBLICATIONS
══════════════════════════════════ */
.pub-filters { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: var(--sp-6); margin-top: var(--sp-6); }
.filter-btn {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border: 1px solid var(--border); background: none; color: var(--text-dim);
  cursor: pointer; transition: all 0.15s var(--ease);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); }
.pub-card {
  display: block; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-top-color: var(--surface-hairline);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pub-card:hover { border-color: var(--border-gold); background: var(--surface-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pub-tag { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; display: block; }
.pub-card h3 { font-size: 0.92rem; margin-bottom: 0.4rem; line-height: 1.35; color: var(--white); }
.pub-card p { font-size: 0.8rem; max-width: 100%; margin-bottom: var(--sp-3); color: #90A0B0; }
.pub-meta { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.07em; color: var(--text-dim); display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.read-link { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); transition: gap 0.2s var(--ease); }
.read-link:hover { gap: 0.55rem; }
.read-link::after { content: '→'; }

.article-body { max-width: 680px; font-size: 0.98rem; line-height: 1.75; color: var(--mist); }
.article-body h2, .article-body h3 { color: var(--gold); margin: var(--sp-5) 0 0.6rem; }
.article-body p { margin-bottom: var(--sp-4); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: var(--sp-4); }
.article-body li { margin-bottom: 0.35rem; }
.article-body blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--text-dim); font-style: italic; margin: var(--sp-4) 0; }
.article-body a { color: var(--gold-light); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); transition: color 0.15s var(--ease), gap 0.15s var(--ease); margin-top: var(--sp-6); }
.back-link:hover { color: var(--white); gap: 0.7rem; }

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: var(--pad) 0; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-intro h2 { margin-bottom: 0.55rem; }
.contact-intro > p { font-size: 0.88rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-top: var(--sp-4); }
.contact-item { padding-left: 1.15rem; border-left: 2px solid var(--border-gold); }
.contact-item .label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.1rem; display: block; }
.contact-item .val { font-size: 0.88rem; color: var(--mist); }
.contact-item .val a { color: var(--mist); transition: color 0.15s var(--ease); }
.contact-item .val a:hover { color: var(--gold-light); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-top-color: var(--surface-hairline); box-shadow: var(--shadow-md); padding: var(--sp-6); }
.contact-form .btn { width: 100%; justify-content: center; }
.form-group { margin-bottom: var(--sp-3); }
.form-group label { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--mist);
  font-family: var(--sans); font-size: 0.85rem; padding: 0.65rem 0.85rem; outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); border-radius: 0; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-faint); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--navy); color: var(--mist); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.74rem; color: var(--text-dim); margin-top: 0.75rem; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer { background: var(--ink); border-top: 1px solid var(--border); padding: var(--sp-6) 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: var(--sp-6); }
@media (max-width: 680px) { .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-brand p { font-size: 0.8rem; margin-top: 0.75rem; max-width: 30ch; color: var(--text-dim); }
.footer-col h4 { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col ul li a { font-size: 0.8rem; color: var(--text-dim); transition: color 0.15s var(--ease); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom p { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.06em; color: var(--text-dim); max-width: 100%; }

/* ══════════════════════════════════
   REVEAL-ON-SCROLL
══════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ══════════════════════════════════
   PUBLICATIONS HERO (MATCHES HOME PAGE)
══════════════════════════════════ */
.hero--publications .hero-bg {
  background-image:
    linear-gradient(180deg, rgba(14, 22, 36, 0.25) 0%, rgba(14, 22, 36, 0.55) 60%, rgba(14, 22, 36, 0.92) 100%),
    url('/assets/images/cover_images/publication_cover_image.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}


/* ══════════════════════════════════════════════════════════════════════════
   PUBLICATIONS EDITORIAL HERO (TWO-COLUMN UNCLIPPED ARTWORK)
   ══════════════════════════════════════════════════════════════════════════ */
.hero--publications {
  position: relative;
  padding-top: calc(66px + 4rem);
  padding-bottom: 4.5rem;
  background: linear-gradient(165deg, #102B33 0%, var(--navy) 45%, var(--ink) 90%);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.pub-hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.pub-hero-copy .eyebrow {
  margin-bottom: var(--sp-3);
}

.pub-hero-copy .display {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.pub-hero-copy .lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #CADAE8;
  max-width: 52ch;
}

/* Pristine, Uncropped Artwork Frame */
.pub-hero-visual {
  display: flex;
  justify-content: center;
}

.pub-cover-card {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  background: #0E1D24;
  border-radius: 4px;
  border: 1px solid rgba(201, 150, 58, 0.3);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.pub-cover-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow: 0 26px 50px -14px rgba(0, 0, 0, 0.9), 0 0 20px rgba(201, 150, 58, 0.15);
}

.pub-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 860px) {
  .pub-hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pub-hero-visual {
    justify-content: flex-start;
  }

  .pub-cover-card {
    max-width: 300px;
  }
}



/* ══════════════════════════════════════════════════════════════════════════
   PUBLICATIONS HERO (FULL IMMERSIVE EDITORIAL BANNER)
   ══════════════════════════════════════════════════════════════════════════ */
.hero--publications {
  min-height: clamp(380px, 46vw, 480px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.85);
}

.hero--publications .hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0c1b22;
  /* Multi-stage linear mask: gives 100% legibility to the left typography while letting the green cover art flourish naturally on the right */
  background-image:
    linear-gradient(90deg, 
      rgba(14, 22, 36, 0.96) 0%, 
      rgba(14, 22, 36, 0.85) 38%, 
      rgba(14, 22, 36, 0.35) 68%, 
      rgba(14, 22, 36, 0.15) 100%
    ),
    linear-gradient(180deg, 
      rgba(14, 22, 36, 0.45) 0%, 
      transparent 35%, 
      rgba(14, 22, 36, 0.7) 100%
    ),
    url('/assets/images/cover_images/publication_cover_image.jpeg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero--publications .hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero--publications .eyebrow {
  margin-bottom: var(--sp-3);
  letter-spacing: 0.16em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.hero--publications .display {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.18;
  max-width: 22ch;
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.hero--publications .lead {
  font-size: 1rem;
  line-height: 1.65;
  color: #C8D8E8;
  max-width: 52ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
  .hero--publications {
    min-height: auto;
    padding: 6.5rem 0 3.5rem;
  }
  .hero--publications .hero-bg {
    background-image:
      linear-gradient(180deg, 
        rgba(14, 22, 36, 0.92) 0%, 
        rgba(14, 22, 36, 0.85) 60%, 
        rgba(14, 22, 36, 0.95) 100%
      ),
      url('/assets/images/cover_images/publication_cover_image.jpeg');
    background-position: center center;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PUBLICATIONS FULL-WIDTH BANNER (STRETCHED 100% WIDTH, BALANCED HEIGHT)
   ══════════════════════════════════════════════════════════════════════════ */
.hero-publications-showcase {
  position: relative;
  padding-top: calc(66px + 2rem);
  padding-bottom: 0;
  background: var(--ink);
  border-bottom: 1px solid var(--border-gold);
  overflow: hidden;
}

.pub-showcase-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.pub-showcase-eyebrow {
  display: inline-block;
  margin-bottom: 0;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Edge-to-edge full width container with balanced vertical proportion */
.pub-fullwidth-banner {
  width: 100%;
  height: clamp(440px, 46vw, 620px);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 36px -16px rgba(0, 0, 0, 0.7);
}

/* Pseudo-element overlays disabled so the image reaches both edges */
.pub-fullwidth-banner::before,
.pub-fullwidth-banner::after {
  display: none;
}

/* Stretches the image edge-to-edge horizontally while maintaining natural text scale */
.pub-fullwidth-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

@media (max-width: 768px) {
  .hero-publications-showcase {
    padding-top: calc(66px + 1.25rem);
  }
  .pub-fullwidth-banner {
    height: clamp(300px, 58vw, 420px);
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   PUBLICATIONS HERO TEXT BLOCK (CENTERED & EDITORIAL)
   ══════════════════════════════════════════════════════════════════════════ */
.pub-hero-text {
  text-align: center;
  max-width: 68ch;
  margin: var(--sp-6) auto var(--sp-4);
  padding: 0 1rem;
}

.pub-hero-text .display {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.015em;
}

.pub-hero-text .lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #BCC8D6;
  max-width: 58ch;
  margin: 0 auto;
}




/* ══════════════════════════════════════════════════════════════════════════
   COURSE DETAILS & OVERFLOW DEFENSE
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. Global defense against long URLs breaking the layout */
.course-detail-section,
.course-hero,
.cs-hero {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.course-detail-section a,
.course-hero a,
.cs-hero a {
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* 2. Hero Header Calibration */
.course-hero,
.cs-hero {
  padding: calc(66px + 3rem) 0 3.5rem;
  background: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--border-gold);
}

.course-hero-content {
  max-width: 820px;
}

.course-label {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}

.course-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-3);
}

.course-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #C2D2E4;
  max-width: 68ch;
  margin: 0;
}

/* 3. Structured Curriculum & Overview Cards */
.course-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

@media (min-width: 768px) {
  .course-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
}

.course-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 150, 58, 0.2);
  border-radius: 6px;
  padding: var(--sp-6);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.course-card .eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
}

.course-card h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0 0 var(--sp-3);
  color: var(--white);
}

.course-card p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #A8B8C8;
  margin: 0;
}

.course-structure-head {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 4. Coming Soon Topic Grid */
.preview-topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

@media (min-width: 700px) {
  .preview-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.preview-topic-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: var(--sp-5);
}

.preview-topic-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-2);
  color: var(--white);
}

.preview-topic-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #A0B0C0;
  margin: 0;
}



/* ══════════════════════════════════════════════════════════════════════════
   PUBLICATION / ARTICLE POST HERO CALIBRATION
   ══════════════════════════════════════════════════════════════════════════ */
.page-hero .display {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 26ch;
  margin-bottom: var(--sp-3, 0.75rem);
}

.page-hero .lead {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 58ch;
  color: #CADAE8;
}

/* Also ensure long links inside article bodies don't cause horizontal scroll */
.article-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body a {
  overflow-wrap: anywhere;
  word-break: break-word;
}




/* Delete code from here */

/* 1. Cleaner Active Tab (Subtle bottom underline or text color instead of heavy box) */
.nav-links a {
  color: #A0B0C0;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0.25rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
  background: transparent; /* Remove heavy grey/blue pill */
}

/* Gold accent underline for current active route */
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold, #C9963A);
  border-radius: 2px;
}

/* 2. Elevated "Get in Touch" Button (Solid gold or polished border) */
.nav-cta,
.btn-nav {
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0E1624;
  background: var(--gold, #C9963A);
  border: 1px solid var(--gold, #C9963A);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-cta:hover,
.btn-nav:hover {
  background: var(--gold-light, #DFC07A);
  border-color: var(--gold-light, #DFC07A);
  transform: translateY(-1px);
}

/* 3. Smooth Logo Blend 
.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(201, 150, 58, 0.25);  Subtle gold ring to frame circular mark 
}
  */
