/* IIHE Cambodia — website styles
   Built from the "IIHE Cambodia — Home Page" design: Newsreader display, Archivo UI/body,
   square corners, no shadows or gradients, twin red bars as the section motif. */

:root {
  --red: #D72027;
  --red-dark: #A8171D;
  --red-tint: #FBD3D4;
  --charcoal: #202124;
  --charcoal-2: #2B2D31;
  --graphite: #404245;
  --bluegrey: #607585;
  --grey: #EAEAEB;
  --line: #E3E4E5;
  --soft: #F7F8F7;
  --white: #FFFFFF;
  --muted-dark: #A8ADB2;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
  --section-y: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; --section-y: 84px; } }
@media (min-width: 1200px) { :root { --section-y: 100px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; color: var(--charcoal); text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--charcoal); color: #fff; padding: 8px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 600; color: var(--charcoal); }
.h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 3.6vw, 36px); line-height: 1.12; letter-spacing: -0.015em; }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; }
.h4 { font-family: var(--font-body); font-size: 20px; font-weight: 700; line-height: 1.35; }
.accent { color: var(--red); }
.lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--graphite); }
.body-lg { font-size: 18px; line-height: 1.7; color: var(--graphite); }
.muted { color: var(--bluegrey); }
.fine-print { font-size: 14px; color: var(--bluegrey); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 24px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bluegrey);
}
.eyebrow::before {
  content: ""; flex: none; width: 10px; height: 16px;
  background: linear-gradient(90deg, var(--red) 0 3px, transparent 3px 7px, var(--red) 7px 10px);
}
.eyebrow.is-red { color: var(--red); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bluegrey); margin: 0 0 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 0;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.5;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover { background: var(--charcoal); color: #fff; }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--charcoal); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--charcoal); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link {
  display: inline-block; padding-bottom: 4px; border-bottom: 2px solid var(--red);
  font-size: 14px; font-weight: 600; color: var(--charcoal);
  transition: color 300ms var(--ease);
}
.text-link:hover { color: var(--red); }
.text-link.is-red { color: var(--red); }
.text-link.is-light { color: #fff; }
.text-link.is-light:hover { color: var(--red-tint); }

.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--bluegrey); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks li::before {
  content: ""; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg) translateY(-2px);
}

.tbd { display: inline-block; padding: 0 4px; background: #FFF4D6; color: #7A5A00; font-size: .92em; font-weight: 600; }

/* ---------- Utility bar + header ---------- */
.utility-bar { background: var(--charcoal); color: #C9CBCD; font-size: 12px; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.utility-contacts { display: flex; gap: 24px; }
.utility-contacts a { color: #C9CBCD; }
.utility-contacts a:hover { color: #fff; }
.utility-contacts .tbd { background: transparent; color: #8A8D91; padding: 0; font-weight: 400; }
@media (max-width: 767px) { .utility-contacts .hide-sm { display: none; } }

.lang-switch { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.06em; }
.lang.is-current { color: #fff; }
.lang.is-disabled { color: #8A8D91; cursor: not-allowed; }
.lang-sep { color: #5A5C60; }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--grey); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
@media (min-width: 1100px) { .header-inner { min-height: 88px; } }
.brand img { height: 34px; width: auto; }
@media (min-width: 1100px) { .brand img { height: 40px; } }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: var(--charcoal); position: relative; transition: transform 500ms var(--ease), background-color 300ms var(--ease); }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; } .nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; border: 0; background: none;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--graphite); white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { color: var(--red); }
.nav-link.is-active { font-weight: 700; }
.nav-link svg { color: var(--bluegrey); }
.subnav { list-style: none; margin: 0; padding: 0; }
.subnav a { display: block; color: var(--charcoal); font-weight: 600; }
.subnav a:hover, .subnav a[aria-current] { color: var(--red); }
.subnav-note { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bluegrey); }

@media (max-width: 1099px) {
  .nav-open .site-nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - var(--header-h, 120px));
    background: #fff;
    overflow: auto; padding: 8px var(--gutter) 32px;
  }
  .nav-open .site-nav .nav-item, .nav-open .site-nav .nav-actions { animation: nav-in 500ms var(--ease) both; }
  .nav-open .nav-item:nth-child(2) { animation-delay: 60ms; } .nav-open .nav-item:nth-child(3) { animation-delay: 120ms; }
  .nav-open .nav-item:nth-child(4) { animation-delay: 180ms; } .nav-open .nav-item:nth-child(5) { animation-delay: 240ms; }
  .nav-open .nav-item:nth-child(6) { animation-delay: 300ms; } .nav-open .nav-actions { animation-delay: 360ms; }
  .nav-item { border-bottom: 1px solid var(--grey); }
  .nav-link { width: 100%; min-height: 54px; justify-content: space-between; font-size: 14px; }
  .subnav { display: none; padding: 0 0 12px 12px; }
  .nav-item.is-open .subnav { display: block; }
  .subnav a { padding: 8px 0; }
  .nav-actions { padding-top: 16px; }
  .nav-actions .btn { width: 100%; }
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 24px; }
  .nav-list { display: flex; align-items: center; gap: 24px; }
  .nav-item { position: relative; }
  .subnav {
    position: absolute; top: calc(100% + 18px); left: -20px; min-width: 260px;
    background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red);
    padding: 8px 16px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 300ms var(--ease), transform 500ms var(--ease), visibility 300ms;
  }
  .subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 22px; }
  .has-children:hover .subnav, .has-children:focus-within .subnav, .nav-item.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
  .subnav li + li { border-top: 1px solid var(--grey); }
  .subnav a { padding: 12px 0; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.bg-soft { background: var(--soft); }
.bg-white { background: #fff; }
.bg-dark { background: var(--charcoal); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .eyebrow { color: var(--muted-dark); }
.bg-red { background: var(--red); color: #fff; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .h2 + .lead, .section-head .h2 + p { margin-top: 16px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section-head-row > div { max-width: 660px; }

.split { display: grid; gap: 32px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 96px; } }
.split-narrow { display: grid; gap: 40px; }
@media (min-width: 960px) { .split-narrow { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 80px; } }

.pull { margin: 32px 0 0; padding: 0; font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.4; color: var(--charcoal); }

.prompt-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #DCDDDE;
  font-size: 18px; color: var(--graphite);
}
.bg-dark .prompt-row { border-color: #44474B; color: #E4E5E6; }

/* ---------- Hero ---------- */
.hero { background: var(--soft); padding: 48px 0 64px; }
@media (min-width: 960px) { .hero { padding: 80px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 636px) minmax(0, 1fr); gap: 64px; } }
.hero-single > div { max-width: 860px; }
.hero .h1 { margin-bottom: 24px; }
.hero .h1, .hero .lead { max-width: 680px; }
.hero .btn-row { margin-top: 32px; gap: 24px; }

.page-hero { background: var(--soft); padding: 48px 0; border-bottom: 1px solid var(--grey); }
@media (min-width: 960px) { .page-hero { padding: 80px 0; } }
.page-hero .h1 { max-width: 880px; margin-bottom: 24px; }
.page-hero .lead { max-width: 720px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; } }

/* ---------- Brand art (stands in for photography until the campus opens) ---------- */
.art { position: relative; }
.art-well { position: relative; overflow: hidden; background: var(--grey); aspect-ratio: 4 / 3; }
.art-bars { position: absolute; left: -22px; top: 46px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.art-bars span { display: block; width: 10px; height: 96px; background: var(--red); }
@media (max-width: 959px) { .art-bars { left: -10px; } .art-bars span { width: 8px; height: 64px; } }
.art-well svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-well.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .art-well { aspect-ratio: 3 / 2; }
@media (min-width: 960px) { .hero-grid { align-items: center; } }
.split-photo { margin-top: 32px; }


/* ---------- Trust bar + intake band ---------- */
.trust-bar { background: var(--graphite); color: #fff; }
.trust-list { list-style: none; margin: 0; padding: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
@media (min-width: 960px) {
  .trust-list { display: flex; justify-content: center; align-items: center; min-height: 88px; padding: 0; font-size: 14px; gap: 0; }
  .trust-list li { padding: 0 32px; }
  .trust-list li + li { border-left: 1px solid #6A6D71; }
}

.intake-band { background: #fff; border-bottom: 1px solid var(--grey); }
.intake-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 24px; padding-bottom: 24px; }
.intake-items { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.intake-items .eyebrow { margin: 0; color: var(--red); }
.intake-item { display: flex; align-items: baseline; gap: 8px; }
.intake-item span:first-child { font-size: 14px; color: var(--bluegrey); }
.intake-item strong { font-size: 16px; color: var(--charcoal); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 { display: grid; gap: 32px; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 32px 24px; }
@media (min-width: 960px) { .card { padding: 40px 32px; } }
.card.top-graphite { border-top-color: var(--graphite); }
.card.top-bluegrey { border-top-color: var(--bluegrey); }
.card .h3 { margin-bottom: 16px; }
.card p { font-size: 16px; line-height: 1.7; color: var(--graphite); }

.features { display: grid; gap: 40px; }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.feature { border-top: 2px solid var(--charcoal); padding-top: 24px; }
.feature .h4 { margin-bottom: 16px; }
.feature p { font-size: 16px; line-height: 1.7; color: var(--graphite); }

.list-grid { display: grid; gap: 0 48px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.list-grid li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; color: var(--charcoal); }
.list-grid li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--red); transform: translateY(-2px); }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 2px solid var(--charcoal); padding-top: 16px; font-size: 16px; color: var(--graphite); }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; color: var(--red); }

/* ---------- Pathway (dark band) ---------- */
.pathway { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .pathway { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pathway { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stage { display: grid; grid-template-columns: 52px 1fr; gap: 8px 16px; background: var(--charcoal-2); border-top: 3px solid var(--red); padding: 24px 16px 24px; }
.stage > :not(.stage-num) { grid-column: 2; }
.stage-num { grid-row: 1 / span 4; font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; color: var(--red); }
.stage hr { display: none; }
@media (min-width: 640px) {
  .stage { display: flex; flex-direction: column; gap: 16px; padding: 32px 24px 32px; }
  .stage-num { font-size: 48px; }
  .stage hr { display: block; }
}
.stage h3 { font-family: var(--font-body); font-size: 20px; font-weight: 700; }
.stage hr { width: 100%; height: 1px; margin: 0; border: 0; background: #44474B; }
@media (max-width: 639px) { .stage hr { display: none; } }
.stage-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8E9398; }
.stage-value { margin: 0; font-size: 16px; line-height: 1.5; color: #E4E5E6; }
.stage-value.is-qual { color: #fff; font-weight: 600; }
.stage.is-final { background: var(--red); border-top-color: #fff; }
.stage.is-final .stage-num { color: #fff; }
.stage.is-final hr { background: rgba(255,255,255,.35); }
.stage.is-final .stage-label { color: var(--red-tint); }
.stage.is-final .stage-value { color: #fff; }
.bg-dark .fine-print { margin-top: 32px; color: var(--muted-dark); }
.inset-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 40px; padding: 32px 32px; background: var(--charcoal-2); border: 1px solid #44474B; }
.inset-cta p { margin: 0; max-width: 820px; font-size: 16px; line-height: 1.6; color: #E4E5E6; }

/* Light pathway table (programme pages) */
.qual-path { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--charcoal); }
.qual-path li { display: grid; gap: 4px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .qual-path li { grid-template-columns: 180px 1fr; align-items: baseline; } }
.qual-path .qp-stage { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bluegrey); }
.qual-path .qp-qual { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3; }
.qual-path li.is-final .qp-stage { color: var(--red); }
.qual-path li.is-final .qp-qual { color: var(--red); }

/* ---------- Programme cards ---------- */
.programme-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.programme-card .art-well { aspect-ratio: 16 / 9; }
.programme-body { display: flex; flex-direction: column; gap: 16px; padding: 32px 24px 32px; flex: 1; }
@media (min-width: 960px) { .programme-body { padding: 40px 40px 40px; } }
.programme-body .kicker { margin: 0; color: var(--red); }
.programme-body > p { font-size: 16px; line-height: 1.7; color: var(--graphite); }
.mini-path { list-style: none; margin: 4px 0 8px; padding: 0; border-top: 1px solid var(--line); }
.mini-path li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--graphite); }
.mini-path li span:first-child { font-weight: 700; color: var(--charcoal); }
.mini-path li.is-final span:last-child { color: var(--charcoal); font-weight: 600; }
.programme-body .btn-row { margin-top: auto; padding-top: 8px; gap: 24px; }

/* ---------- Facts ("A first for Cambodia") ---------- */
.facts { display: grid; gap: 0; border-top: 2px solid var(--charcoal); margin-bottom: 48px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts.facts-3 { margin-bottom: 0; }
.fact { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1100px) { .fact { border-bottom: 0; } .fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); } }
.fact-num { margin-bottom: 12px; font-family: var(--font-display); font-size: 48px; font-weight: 600; line-height: 1; color: var(--charcoal); }
.fact:first-child .fact-num { color: var(--red); }
.fact p { font-size: 14px; line-height: 1.6; color: var(--graphite); }
.unis { display: grid; gap: 24px; padding: 32px 32px; background: var(--soft); }
@media (min-width: 960px) { .unis { grid-template-columns: 260px 1fr; gap: 48px; } }
.unis ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.unis li { padding: 8px 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--charcoal); }
.unis p { font-size: 14px; color: var(--graphite); }

/* ---------- Fees ---------- */
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-top: 4px solid var(--red); }
.fee-table th, .fee-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .fee-table th, .fee-table td { padding: 16px 24px; } }
.fee-table td:first-child { width: 62%; }
.fee-table thead th { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bluegrey); background: #fff; }
.fee-table td { font-size: 16px; color: var(--graphite); }
.fee-table td:last-child, .fee-table th:last-child { text-align: right; }
.fee-table td:last-child { white-space: nowrap; }
.fee-table td:last-child { font-weight: 700; color: var(--charcoal); }
.fee-table tfoot td { background: var(--charcoal); color: #fff; border: 0; font-weight: 700; }
.fee-table tfoot td:last-child { font-family: var(--font-display); font-size: 24px; color: #fff; }

.intake-card { background: var(--charcoal); color: #fff; padding: 32px; border-top: 4px solid var(--red); }
.intake-card dl { margin: 0 0 24px; display: grid; gap: 16px; }
.intake-card dt { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8E9398; }
.intake-card dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; }

/* ---------- News ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: inherit; }
.post-card:hover { color: inherit; }
.post-card:hover .post-title { color: var(--red); }
.post-card .art-well { aspect-ratio: 16 / 9; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 32px; flex: 1; }
.post-meta { display: flex; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.post-meta time { color: var(--bluegrey); }
.post-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.25; transition: color 300ms var(--ease); }
.post-summary { font-size: 14px; line-height: 1.6; color: var(--graphite); }
.post-card .text-link { margin-top: auto; align-self: flex-start; }
.empty-state { padding: 40px; border: 1px dashed #C9CBCD; background: #fff; color: var(--graphite); }

.article { padding: var(--section-y) 0; }
.article-head { max-width: 760px; margin: 0 auto 40px; }
.article-head .h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 16px 0 16px; }
.article-art { max-width: 960px; margin: 0 auto 48px; }
.article-art .art-well { aspect-ratio: 21 / 9; }
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--graphite); }
.prose h2 { margin: 1.8em 0 .6em; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.2; }
.prose h3 { margin: 1.5em 0 .5em; font-size: 20px; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--charcoal); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14px; line-height: 1.5; }
@media (min-width: 768px) { .prose table { font-size: 16px; } }
.prose th, .prose td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-size: 12px; letter-spacing: .04em; color: var(--charcoal); }
.prose blockquote { margin: 1.5em 0; border-left: 4px solid var(--red); padding: 4px 0 4px 24px; font-family: var(--font-display); font-size: 20px; color: var(--charcoal); }
.back-link { display: inline-block; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bluegrey); }

.social-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--charcoal); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 18px; font-weight: 700; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--charcoal); font-size: 20px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--red); border-color: var(--red); color: #fff; }
.faq summary:hover { color: var(--red); }
.faq details p { margin: -8px 0 24px; max-width: 720px; font-size: 16px; line-height: 1.7; color: var(--graphite); }

/* ---------- Consultation form ---------- */
.consult-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .consult-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 64px; } }
.know-list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.know-list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--charcoal); }
.know-list li::before { content: ""; flex: none; width: 12px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg) translateY(-3px); }
.contact-box { padding: 24px 24px; background: #fff; border: 1px solid var(--line); }
.contact-box dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.contact-box dt { color: var(--bluegrey); }
.contact-box dd { margin: 0; font-weight: 600; }

.form { background: #fff; border-top: 4px solid var(--red); padding: 32px 24px; }
@media (min-width: 768px) { .form { padding: 40px; } }
.form-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal); }
.field .req { color: var(--red); }
.field .opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--bluegrey); }
.field fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field input[type=text], .field input[type=tel], .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 12px;
  border: 1px solid #C9CBCD; border-radius: 0; background: #fff;
  font: inherit; font-size: 16px; color: var(--charcoal);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--charcoal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field .chip { position: relative; display: inline-block; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #C9CBCD; font-size: 14px; font-weight: 600; color: var(--graphite); background: #fff; transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease); }
.chip input:hover + span { border-color: var(--charcoal); }
.chip input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 8px; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--bluegrey); }
.hp { position: absolute; left: -9999px; }

/* ---------- Closing CTA ---------- */
.cta-band { background: var(--red); color: #fff; padding: 64px 0; }
@media (min-width: 960px) { .cta-band { padding: 96px 0; } }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.cta-copy { max-width: 660px; }
.cta-copy .h2 { color: #fff; margin-bottom: 16px; }
.cta-copy p { font-size: 18px; line-height: 1.65; color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #C9CBCD; padding: 64px 0 96px; font-size: 14px; }
@media (min-width: 960px) { .site-footer { padding: 80px 0 32px; } }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 48px; } .footer-brand { grid-column: auto; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 24px; }
.footer-tagline { font-family: var(--font-display); font-size: 20px; line-height: 1.4; color: #fff; max-width: 380px; }
.footer-heading { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8E9398; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .footer-links button { padding: 0; border: 0; background: none; color: #E4E5E6; font-size: 14px; text-align: left; }
.footer-links a:hover, .footer-links button:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a, .socials span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #44474B; color: #E4E5E6; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials span { opacity: .45; }
.footer-legal { padding-top: 24px; border-top: 1px solid #44474B; font-size: 12px; line-height: 1.7; color: var(--muted-dark); }
.footer-legal p { max-width: 980px; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.footer-contacts a { color: #E4E5E6; }
.footer-contacts .tbd { background: transparent; color: #8A8D91; padding: 0; font-weight: 400; }
.footer-bottom a { color: #C9CBCD; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 12px; color: #8E9398; }

/* ---------- Message admissions ---------- */
.msg-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: none; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px;
  border: 0; background: var(--charcoal); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.msg-fab:hover { background: var(--red); }
@media (min-width: 960px) { .msg-fab { display: inline-flex; } }

.mobile-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--grey);
}
.mobile-actions .btn { min-height: 48px; padding: 8px 8px; font-size: 12px; letter-spacing: 0.04em; }
@media (min-width: 960px) { .mobile-actions { display: none; } }

.msg-panel {
  position: fixed; z-index: 60; right: 12px; left: 12px; bottom: 84px;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red);
  padding: 24px; box-shadow: 0 18px 50px rgba(32,33,36,.18);
}
@media (min-width: 960px) { .msg-panel { left: auto; right: 24px; bottom: 90px; width: 360px; } }
.msg-panel[hidden] { display: none; }
.msg-head { display: flex; justify-content: space-between; align-items: center; }
.msg-title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--charcoal); }
.msg-close { width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; color: var(--graphite); display: grid; place-items: center; }
.msg-sub { margin: 4px 0 16px; font-size: 14px; color: var(--graphite); }
.msg-options { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.msg-option { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border: 1px solid var(--line); color: var(--charcoal); }
a.msg-option:hover { border-color: var(--charcoal); color: var(--charcoal); }
.msg-option.is-pending { opacity: .55; }
.msg-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; color: #fff; }
.msg-telegram { background: #229ED9; }
.msg-messenger { background: #0866FF; }
.msg-phone { background: var(--charcoal); }
.msg-label { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; line-height: 1.3; }
.msg-label small { font-weight: 400; font-size: 12px; color: var(--bluegrey); }
.msg-book { font-size: 14px; font-weight: 700; }

@keyframes nav-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal (sections rise 32px and fade in once) ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tagline reveal ---------- */
.tagline { padding-block: var(--section-y); }
.tagline-text { max-width: 880px; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.15; letter-spacing: -0.015em; color: var(--charcoal); text-wrap: balance; }
.tagline-text .w { color: rgba(32, 33, 36, 0.28); transition: color 500ms var(--ease); }
.tagline-text .w.on { color: var(--charcoal); }
.tagline-text .w.accent.on { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { transform: none; }
  .tagline-text .w { color: var(--charcoal); }
}

/* ---------- NCC Education partner band (NCC marketing guideline 2025) ---------- */
.ncc-band { background: #fff; border-bottom: 1px solid var(--grey); }
.ncc-band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 24px; padding-bottom: 24px; }
.ncc-logo-wrap { flex: none; padding: 12px 0; } /* clear space around the logo: at least the height of the "N" */
.ncc-logo-wrap img { width: 220px; height: auto; }
@media (min-width: 768px) { .ncc-logo-wrap img { width: 260px; } }
.ncc-band-copy { flex: 1 1 320px; }
.ncc-band-title { margin: 0 0 4px; font-weight: 700; font-size: 16px; color: var(--charcoal); }
.ncc-band-copy p:last-child { font-size: 14px; color: var(--graphite); }

/* ---------- University partner logo ---------- */
.partner-logo { display: inline-flex; flex-direction: column; gap: 8px; margin-top: 24px; color: var(--bluegrey); }
.partner-logo:hover { color: var(--bluegrey); opacity: .85; }
.partner-logo-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.partner-logo img { width: 180px; height: auto; }
.fact-num-logo { display: flex; align-items: center; gap: 12px; }
.fact-num-logo img { width: auto; height: 54px; flex: none; }
.field-error { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--red-dark); }
.field input[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.menu-open .mobile-actions, .menu-open .msg-fab { display: none; }
