/* ============================================================
   P'S International Education — Design System
   Layout language inspired by crimsoneducation.org/tw
   Brand palette derived from PSI logo (blue + green)
   ============================================================ */

:root {
  /* Brand — matches old Elementor site palette */
  --navy: #253C56;
  --navy-light: #4B6B90;
  --navy-darker: #1A2A3D;
  --gold: #FBC102;
  --gold-dark: #D9A500;

  /* Neutrals */
  --ink: #253C56;
  --ink-2: #333333;
  --ink-3: #54595F;
  --ink-4: #7A7A7A;
  --line: #E5E7EB;
  --line-2: #EEEEEE;
  --bg: #FFFFFF;
  --bg-2: #F9F9F9;
  --bg-3: #FCFCFC;

  /* State */
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);
  --accent-ink: var(--navy);

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(37, 60, 86, .04), 0 1px 3px rgba(37, 60, 86, .06);
  --shadow: 0 4px 12px rgba(37, 60, 86, .08), 0 8px 24px rgba(37, 60, 86, .06);
  --shadow-lg: 0 16px 48px rgba(37, 60, 86, .14);

  /* Type — matches old site (Open Sans headings, Montserrat body) */
  --sans: "Montserrat", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading: "Open Sans", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Noto Serif TC", Georgia, serif;
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: var(--heading); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 4.2vw, 4rem); letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow--green { color: var(--gold-dark); }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--ink-3); }

/* -------- Layout -------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-2); }
.section--ink { background: var(--ink); color: #CFD8E3; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #FFFFFF; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head--left { text-align: left; margin-left: 0; }
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .section-head { margin-bottom: 40px; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(37, 60, 86, .25); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--navy-darker); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink-4); color: var(--ink); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { padding: 18px 36px; font-size: 16px; }

/* -------- Header -------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-header__logo { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); font-size: 17px; letter-spacing: .01em; }
.site-header__logo img { width: 36px; height: 36px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 16px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.site-nav__link:hover { color: var(--accent); background: var(--bg-2); }
.site-nav__link.is-active { color: var(--accent); }
.site-nav__dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 240px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.site-nav__dropdown a {
  display: block; padding: 10px 14px;
  color: var(--ink-2); font-size: 14px; border-radius: 8px;
}
.site-nav__dropdown a:hover { background: var(--bg-2); color: var(--accent); }
.site-header__cta { margin-left: 8px; }
.site-header__toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink);
}
@media (max-width: 1024px) {
  .site-nav, .site-header__cta { display: none; }
  .site-header__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header[data-mobile-open] .site-nav-mobile { display: block; }
  body.no-scroll { overflow: hidden; }
}
.site-nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  padding: 20px 24px 32px;
  background: #fff;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.site-nav-mobile__group { margin-bottom: 18px; }
.site-nav-mobile__group:last-child { margin-bottom: 0; }
.site-nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 16px; font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
}
.site-nav-mobile a:hover { background: var(--bg-2); color: var(--accent); }
.site-nav-mobile__sub {
  margin: 6px 0 0 12px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.site-nav-mobile__sub a {
  padding: 10px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
}
.site-nav-mobile__sub a:hover { color: var(--accent); }
.site-nav-mobile__label {
  display: block;
  padding: 8px 14px 4px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 700;
}
.site-nav-mobile__cta { margin-top: 24px; }
.site-nav-mobile__cta .btn { width: 100%; }

/* -------- Crimson Editorial Hero (homepage) -------- */
.hero-crimson {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px 0 160px; /* extra bottom for sticky CTA bar */
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 1100px 900px at 50% 62%, #8a0f0f 0%, #4a0606 40%, #1a0202 70%, #000 100%);
}
.hero-crimson__inner {
  position: relative; z-index: 5;
  max-width: 780px; margin: 0 auto; padding: 0 32px;
  text-align: center;
}
.hero-crimson__eyebrow {
  display: inline-block;
  font-family: "Noto Serif TC", "Playfair Display", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #fff; letter-spacing: .01em;
  margin: clamp(32px, 6vw, 72px) 0 28px;
}
.hero-crimson__title {
  font-family: "Open Sans", "Noto Sans TC", sans-serif;
  font-weight: 900; font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08; letter-spacing: -.01em;
  color: #fff; margin: 0 0 28px;
}
.hero-crimson__sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7; color: rgba(255, 255, 255, .8);
  max-width: 620px; margin: 0 auto 40px;
}
/* Subject photo: faked cutout using radial mask */
.hero-crimson__photo {
  position: relative; z-index: 3;
  margin: 40px auto 0;
  width: min(720px, 90%);
  aspect-ratio: 3 / 4;
  max-height: 580px;
  background-image: var(--hero-photo);
  background-size: cover; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 75% at 50% 45%, #000 55%, transparent 100%);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.6));
}
.hero-crimson__name-overlay {
  position: absolute; left: 6%; bottom: 18%; z-index: 4;
  text-align: left;
}
.hero-crimson__name {
  font-family: "Noto Serif TC", "Playfair Display", Georgia, serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: #e8d9b8; line-height: 1;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hero-crimson__caption {
  font-size: 14px; color: #fff; line-height: 1.4;
  max-width: 320px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.hero-crimson__cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #fff;
  padding: 16px 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
}
.hero-crimson__cta-text {
  color: #333; font-size: 15px; line-height: 1.4;
}
.hero-crimson__cta-text strong { color: #0a0a0a; font-weight: 700; }
.hero-crimson__cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  background: #e21b1b; color: #fff;
  border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.hero-crimson__cta-btn:hover { background: #c21414; color: #fff; transform: translateY(-1px); }

/* Transparent header when over crimson hero */
body.has-crimson-hero .site-header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
body.has-crimson-hero .site-header__logo { color: #fff; }
body.has-crimson-hero .site-nav__link { color: rgba(255,255,255,.9); }
body.has-crimson-hero .site-nav__link:hover { color: #e8d9b8; background: rgba(255,255,255,.08); }
body.has-crimson-hero .site-header__toggle { color: #fff; border-color: rgba(255,255,255,.3); }
body.has-crimson-hero .site-header__cta { background: #e21b1b; border-color: transparent; color: #fff; }
body.has-crimson-hero .site-header__cta:hover { background: #c21414; color: #fff; }

@media (max-width: 760px) {
  .hero-crimson { min-height: 90vh; padding: 16px 0 140px; }
  .hero-crimson__name-overlay { left: 8%; bottom: 12%; }
  .hero-crimson__cta-bar { grid-template-columns: 1fr; gap: 12px; padding: 14px 20px; }
  .hero-crimson__cta-text { font-size: 13px; }
  .hero-crimson__cta-btn { width: 100%; padding: 14px 24px; }
}

/* -------- Hero Banner (homepage full-width) -------- */
.hero-banner {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  padding: 120px 0 100px;
  overflow: hidden;
  color: #fff;
}
.hero-banner__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(37, 60, 86, .88) 0%, rgba(37, 60, 86, .55) 55%, rgba(37, 60, 86, .20) 100%),
              linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .3) 100%);
  z-index: 1;
}
.hero-banner__inner { position: relative; z-index: 2; max-width: 820px; }
.hero-banner__title {
  color: #fff;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero-banner__title em { font-style: normal; color: var(--gold); }
.hero-banner__sub {
  color: rgba(255, 255, 255, .92);
  font-size: 1.25rem;
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-banner__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-banner .eyebrow { display: inline-block; margin-bottom: 20px; }
@media (max-width: 760px) {
  .hero-banner { min-height: 480px; padding: 80px 0 72px; }
  .hero-banner__sub { font-size: 1.0625rem; }
}

.hero-stats-strip {
  background: var(--navy-darker);
  color: #fff;
  padding: 40px 0;
}
.hero-stats-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.hero-stats-strip__stat strong {
  display: block; font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -.02em; color: #fff;
  line-height: 1; font-family: var(--heading);
}
.hero-stats-strip__stat span {
  display: block; margin-top: 8px; font-size: 13px;
  color: rgba(255, 255, 255, .7); letter-spacing: .04em;
}
@media (max-width: 760px) {
  .hero-stats-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* -------- Hero (old two-column, kept for other contexts if needed) -------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  background:
    radial-gradient(1200px 480px at 85% -10%, rgba(37, 60, 86, .12), transparent 60%),
    radial-gradient(900px 360px at 10% 110%, rgba(251, 193, 2, .14), transparent 60%),
    linear-gradient(180deg, #FAFBFD 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: auto 0 -1px 0; height: 120px;
  background: linear-gradient(180deg, transparent 0%, #FFFFFF 100%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.08; color: var(--ink); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { margin: 24px 0 40px; font-size: 1.125rem; line-height: 1.7; color: var(--ink-3); max-width: 560px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.hero__stat strong { display: block; font-size: 2.25rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hero__stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-4); }
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(37, 60, 86, .55) 100%);
  pointer-events: none;
}
.hero__visual-badge {
  position: absolute; left: 24px; bottom: 24px;
  padding: 14px 20px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.hero__visual-badge strong { display: block; font-size: 22px; color: var(--ink); line-height: 1; }
.hero__visual-badge span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 4px; }
@media (max-width: 960px) {
  .hero { padding: 72px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { aspect-ratio: 4 / 3; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
  .hero__stat strong { font-size: 1.75rem; }
}

/* -------- Ribbon announcement -------- */
.ribbon {
  background: var(--ink);
  color: #E2E8F0;
  padding: 14px 0;
  font-size: 14px;
}
.ribbon a { color: #fff; font-weight: 600; text-decoration: underline; }
.ribbon__inner { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.ribbon__tag {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px;
  background: var(--accent); color: #fff; font-weight: 700;
}

/* -------- Cards / grids -------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy));
  color: #fff;
  margin-bottom: 20px;
  font-size: 22px;
}
.card__icon--green { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.card__title { font-size: 1.25rem; margin-bottom: 12px; color: var(--ink); }
.card__desc { color: var(--ink-3); font-size: 15px; margin-bottom: 20px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.card__link::after { content: "→"; transition: transform .2s ease; }
.card:hover .card__link::after { transform: translateX(4px); }

.card--dark { background: var(--ink); color: #CFD8E3; border-color: transparent; }
.card--dark .card__title { color: #fff; }
.card--dark .card__desc { color: #A0AEC0; }

.card--feature {
  padding: 40px 32px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--navy), var(--gold)) 1;
}

/* Study-Info Resource Hub */
.hub-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  max-width: 1120px; margin: 0 auto;
}
.hub-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  transition: box-shadow .2s, transform .2s;
}
.hub-block:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hub-block__header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 2px solid var(--gold);
}
.hub-block__icon { font-size: 28px; line-height: 1; }
.hub-block__header h2 { margin: 0; font-size: 1.5rem; color: var(--ink); }
.hub-block__desc { color: var(--ink-3); font-size: 14.5px; margin: 0 0 18px; }
.hub-block__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.hub-block__list a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px;
  color: var(--ink); font-weight: 500; font-size: 14.5px;
  border-radius: 6px; text-decoration: none;
  transition: background .12s, color .12s;
}
.hub-block__list a:hover { background: var(--bg-2); color: var(--navy); }
.hub-block__list a:hover .hub-block__meta { color: var(--navy); }
.hub-block__flag { font-size: 18px; line-height: 1; }
.hub-block__meta {
  font-size: 12px; color: var(--ink-4); font-weight: 400;
  text-align: right; white-space: nowrap;
}
@media (max-width: 860px) {
  .hub-grid { grid-template-columns: 1fr; gap: 20px; }
  .hub-block { padding: 24px 20px; }
}

.hub-cta {
  max-width: 1120px; margin: 64px auto 0;
  padding: 40px 48px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-darker) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.hub-cta h2 { color: #fff; margin: 0 0 8px; font-size: 1.625rem; }
.hub-cta p.lead { color: rgba(255,255,255,.85); margin: 0; font-size: 1rem; }
@media (max-width: 760px) { .hub-cta { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; } }

/* Individual blog post layout */
.post-body { max-width: 760px; margin: 0 auto; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.post-body h2 { font-size: 1.75rem; margin-top: 2em; margin-bottom: .5em; color: var(--ink); }
.post-body h3 { font-size: 1.35rem; margin-top: 1.6em; margin-bottom: .4em; color: var(--ink); }
.post-body p { margin: 0 0 1.2em; line-height: 1.8; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.post-body li { margin-bottom: .5em; line-height: 1.75; }
.post-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 24px; margin: 2em 0;
  color: var(--ink-3); font-style: italic;
}
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14.5px; }
.post-body th, .post-body td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.post-body th { background: var(--bg-2); font-weight: 600; color: var(--ink); }
.post-body a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--gold-dark); }
.post-footer-nav {
  max-width: 760px; margin: 56px auto 0;
  padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* News category pills */
.news-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.news-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.news-pill:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-2); }
.news-pill.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.news-pill.is-on .news-pill__count { background: rgba(255,255,255,.2); color: #fff; }
.news-pill__count {
  background: var(--bg-3); color: var(--ink-3);
  padding: 1px 7px; border-radius: 10px;
  font-size: 11px; font-weight: 700;
}

.post-card__meta { font-size: 12px; color: var(--ink-4); letter-spacing: .04em; margin-top: 4px; }

/* Blog / news post card with featured image */
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.post-card__img {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  overflow: hidden;
}
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag {
  font-size: 12px; font-weight: 700; color: var(--gold-dark);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.post-card__title { font-size: 1.125rem; line-height: 1.4; color: var(--ink); margin: 0 0 10px; }
.post-card__excerpt { color: var(--ink-3); font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; flex: 1; }

/* Course / profile card with image */
.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.profile-card__img {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.profile-card__img img { width: 100%; height: 100%; object-fit: cover; }
.profile-card__img--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-darker) 100%);
  color: rgba(255,255,255,.35);
  font-size: 4rem; font-weight: 700;
}
.profile-card__body { padding: 24px 28px; }
.profile-card__name { font-size: 1.25rem; margin: 0 0 4px; color: var(--ink); }
.profile-card__title { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.profile-card__bio { font-size: 14px; color: var(--ink-3); line-height: 1.6; min-height: 4.8em; }

/* -------- Stats band -------- */
.stats-band { padding: 72px 0; background: var(--ink); color: #fff; }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; text-align: center; }
.stats-band__stat strong { display: block; font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stats-band__stat span { display: block; margin-top: 10px; color: #A0AEC0; font-size: 14px; letter-spacing: .05em; }
@media (max-width: 760px) { .stats-band__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

/* -------- Testimonial -------- */
.testimonial {
  max-width: 840px; margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
}
.testimonial::before {
  content: """;
  position: absolute; left: 40px; top: 20px;
  font-family: var(--serif); font-size: 9rem; line-height: 1;
  color: var(--navy); opacity: .15;
}
.testimonial__quote { font-size: 1.25rem; line-height: 1.75; color: var(--ink-2); margin-bottom: 32px; position: relative; }
.testimonial__person { display: flex; align-items: center; gap: 16px; }
.testimonial__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-3); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 20px; }
.testimonial__name { font-weight: 700; color: var(--ink); line-height: 1.2; }
.testimonial__meta { font-size: 14px; color: var(--ink-4); margin-top: 2px; }
@media (max-width: 600px) { .testimonial { padding: 40px 28px; } .testimonial__quote { font-size: 1.05rem; } }

/* -------- Feature row (icon + text block) -------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.feature { display: flex; gap: 20px; align-items: flex-start; }
.feature__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: var(--bg-2); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.feature__body h3 { font-size: 1.125rem; margin-bottom: 8px; }
.feature__body p { color: var(--ink-3); font-size: 15px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; gap: 32px; } }

/* -------- Split section (text + visual) -------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__visual { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow); }
.split__visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } .split--reverse { direction: ltr; } }

/* -------- Logo / school strip -------- */
.logo-strip { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip__label { text-align: center; font-size: 13px; color: var(--ink-4); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 24px; }
.logo-strip__items { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 32px; opacity: .7; }
.logo-strip__items span { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }

/* -------- CTA banner -------- */
.cta-banner {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--navy-darker) 0%, #131F2F 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 280px at 85% 20%, rgba(251, 193, 2, .28), transparent 60%),
              radial-gradient(500px 240px at 10% 90%, rgba(75, 107, 144, .20), transparent 60%);
  pointer-events: none;
}
.cta-banner__inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-banner__inner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner__inner p { color: #CBD5E0; font-size: 1.0625rem; margin-bottom: 32px; }
.cta-banner__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* -------- Page header / banner (sub-pages) -------- */
.page-header {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, #FAFBFD 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 280px at 90% 0%, rgba(37, 60, 86, .10), transparent 60%);
  pointer-events: none;
}
.page-header__inner { position: relative; max-width: 880px; }

/* Banner variant — page header with background photo */
.page-header--banner {
  padding: 140px 0 96px;
  background: var(--navy);
  color: #fff;
  border-bottom: 0;
  min-height: 420px;
  display: flex; align-items: center;
}
.page-header--banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--banner-image);
  background-size: cover; background-position: center;
  opacity: 1;
  z-index: 0;
}
.page-header--banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(37,60,86,.85) 0%, rgba(37,60,86,.55) 55%, rgba(37,60,86,.25) 100%),
              linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);
  z-index: 1;
}
.page-header--banner .page-header__inner { z-index: 2; width: 100%; }
.page-header--banner h1 { color: #fff; font-size: clamp(2.5rem, 4.5vw, 3.5rem); }
.page-header--banner .page-header__sub { color: rgba(255, 255, 255, .9); font-size: 1.125rem; max-width: 720px; }
.page-header--banner .breadcrumb,
.page-header--banner .breadcrumb a { color: rgba(255, 255, 255, .75); }
.page-header--banner .breadcrumb a:hover { color: var(--gold); }
.page-header--banner .eyebrow { color: var(--gold); }
@media (max-width: 760px) {
  .page-header--banner { padding: 96px 0 72px; min-height: 280px; }
}
.breadcrumb { font-size: 13px; color: var(--ink-4); margin-bottom: 16px; letter-spacing: .02em; }
.breadcrumb a { color: var(--ink-4); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { margin: 0 8px; opacity: .5; }
.page-header h1 { margin-bottom: 12px; }
.page-header__sub { font-size: 1.125rem; color: var(--ink-3); margin: 0; max-width: 640px; }

/* -------- Rich prose (for article-style pages) -------- */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.8; color: var(--ink-2); }
.prose h2 { font-size: 1.75rem; margin-top: 2em; margin-bottom: .6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; margin-bottom: .4em; }
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 2em 0;
  color: var(--ink-3);
  font-style: italic;
}
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* -------- Form -------- */
.form { display: grid; gap: 20px; max-width: 560px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; gap: 20px; } }
.form__field { display: grid; gap: 6px; }
.form__field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form__field input, .form__field textarea, .form__field select {
  padding: 12px 14px;
  font: inherit;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__field input:focus, .form__field textarea:focus, .form__field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 193, 2, .25);
}
.form__field textarea { min-height: 120px; resize: vertical; }

/* -------- Footer -------- */
.site-footer {
  background: #131F2F;
  color: #A0AEC0;
  padding: 72px 0 32px;
}
.site-footer a { color: #CBD5E0; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.site-footer__brand { max-width: 320px; }
.site-footer__brand-title { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.site-footer__brand-title img { width: 36px; height: 36px; }
.site-footer__brand-desc { font-size: 14px; line-height: 1.8; color: #A0AEC0; margin-bottom: 20px; }
.site-footer__col h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 10px; font-size: 14px; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); color: #CBD5E0;
  transition: background .15s ease, color .15s ease;
}
.site-footer__social a:hover { background: var(--accent); color: #fff; }
.site-footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: #718096;
}
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__bottom { flex-direction: column; } }

/* -------- Utility -------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.u-ink { color: var(--ink); }
.u-accent { color: var(--accent); }
.u-green { color: var(--gold-dark); }
.divider { height: 1px; background: var(--line); margin: 48px 0; border: 0; }
