/* ==========================================================================
   LYCEUM — Education, College & Online Learning HTML Template
   Version 1.0.0

   TABLE OF CONTENTS
   01. Design tokens
   02. Base & utilities
   03. Buttons & shared components
   04. Top bar, header & navigation
   05. Hero
   06. Highlights
   07. About
   08. Categories
   09. Courses
   10. Programs
   11. Counters
   12. Instructors
   13. How it works
   14. Admission & countdown
   15. Events
   16. Pricing
   17. Testimonials
   18. Blog
   19. Partners
   20. FAQ
   21. Contact & map
   22. Footer
   23. Overlays (search, video modal) & back to top
   24. Responsive
   25. Reduced motion
   ========================================================================== */


/* 01. DESIGN TOKENS ------------------------------------------------------ */
:root {
  /* Colour */
  --ink: #0E1238;          /* deep indigo: headings, dark sections */
  --ink-2: #1A1F55;        /* raised dark surface */
  --cobalt: #2B3AF0;       /* primary brand */
  --cobalt-dark: #1F2CC4;
  --sky: #E6E9FF;          /* light brand tint */
  --paper: #F3F5FC;        /* alternate section background */
  --marigold: #FFB81C;     /* accent / call to action */
  --coral: #FF6A57;
  --mint: #12B08F;
  --text: #3B4166;         /* body copy */
  --muted: #5F6590;        /* secondary copy (4.9:1 on white) */
  --line: #E1E5F2;
  --line-strong: #C9CFE6;

  /* Type */
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --h1: clamp(2.6rem, 5.4vw, 4.6rem);
  --h2: clamp(2rem, 3.6vw, 3rem);

  /* Shape & layout */
  --radius-lg: 28px;
  --radius-md: 20px;
  --header-h: 80px;
  --shadow-lift: 0 30px 60px -30px rgba(14, 18, 56, .35);
}


/* 02. BASE & UTILITIES --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--ink); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
time { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--marigold); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Icons: inline SVG sprite */
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

/* Dark-surface text colours */
.on-dark { color: #C9CDF0; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lead { color: #D9DCF7; }

/* Image wrapper with gradient fallback (image is removed on error) */
.media { position: relative; overflow: hidden; background: var(--ph, linear-gradient(135deg, #2B3AF0, #7A5CFF)); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-1 { --ph: linear-gradient(135deg, #2B3AF0, #7A5CFF); }
.ph-2 { --ph: linear-gradient(135deg, #0B8A70, #56D6B8); }
.ph-3 { --ph: linear-gradient(135deg, #FF6A57, #FFB81C); }
.ph-4 { --ph: linear-gradient(135deg, #1A1F55, #4A57D8); }

/* Star rating driven by --r (0 to 5) */
.stars { --r: 5; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; white-space: nowrap;
  background: linear-gradient(90deg, var(--marigold) calc(var(--r) / 5 * 100%), #D3D8EE 0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stars::before { content: "★★★★★"; }

.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--muted); max-width: 34em; }

.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--h2); }
.section-head p { margin-top: 16px; color: var(--muted); }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.section-head--split > div:first-child { max-width: 660px; }
.section-head--center { text-align: center; margin-inline: auto; }


/* 03. BUTTONS & SHARED COMPONENTS --------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.7rem; border: 2px solid transparent; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.1; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn .i { font-size: 1.15em; }
.btn--sm { padding: .7rem 1.25rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.btn--gold { background: var(--marigold); color: var(--ink); }
.btn--gold:hover { background: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

.link-line { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--marigold); padding-bottom: 2px; }
.link-line:hover { color: var(--cobalt); }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; color: var(--ink); transition: background-color .2s; }
.icon-btn:hover { background: var(--sky); }
.round-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; transition: background-color .2s, color .2s; }
.round-btn:hover { background: #fff; color: var(--ink); }

.social { display: flex; gap: 6px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; transition: background-color .2s, color .2s; }
.social a:hover { background: var(--marigold); color: var(--ink); }
.social--dark a { color: var(--ink); background: var(--paper); }
.social--dark a:hover { background: var(--cobalt); color: #fff; }

.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.tag--soft { background: var(--sky); color: var(--cobalt-dark); }

/* Tabs (shared by About and Programs) */
.tabs__list { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.tab { padding: 12px 0; margin-bottom: -1px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--cobalt); }
.tabs__panel { padding-top: 20px; min-height: 96px; }

/* Forms */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #8B91B5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(43, 58, 240, .14); }
.field .is-invalid, .field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--coral); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230E1238' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px !important; }
.form-note { min-height: 1.5em; margin-top: 14px; font-size: .9375rem; font-weight: 600; color: var(--mint); }
.form-note.is-error { color: #D6402D; }
.form-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lift); }
.form-card--light { border: 1px solid var(--line); box-shadow: none; }
.form-card h3 { color: var(--ink); font-size: 1.5rem; margin-bottom: 24px; }


/* 04. TOP BAR, HEADER & NAVIGATION -------------------------------------- */
.topbar { background: var(--ink); font-size: .875rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; }
.topbar__info, .topbar__end { display: flex; align-items: center; gap: 24px; }
.topbar__info a, .topbar__info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar__info a:hover, .topbar__link:hover { color: #fff; }
.topbar__info .i { color: var(--marigold); font-size: 16px; }
.topbar__end { gap: 16px; }
.topbar__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .2); }
.topbar__cta { padding: 6px 16px; border-radius: 999px; background: var(--marigold); color: var(--ink); font-weight: 600; }
.topbar__cta:hover { background: #fff; }

.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile nav inside it */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(14, 18, 56, .35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; color: var(--cobalt); }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 1.65rem; letter-spacing: -.03em; }
.logo--light { color: #fff; }
.logo--light .logo__mark { color: #fff; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list > li > a { display: block; padding: 10px 15px; border-radius: 999px; font-weight: 600; font-size: 1rem; color: var(--ink); transition: background-color .2s, color .2s; }
.nav__list > li > a:hover { background: var(--paper); }
.nav__list > li > a.is-active { background: var(--sky); color: var(--cobalt-dark); }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { width: 26px; height: 26px; margin-left: -10px; display: grid; place-items: center; border-radius: 50%; font-size: 16px; color: var(--ink); }
.sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.sub a { display: block; padding: 11px 14px; border-radius: 12px; font-weight: 500; color: var(--ink); }
.sub a:hover { background: var(--paper); color: var(--cobalt); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; place-items: center; border-radius: 50%; font-size: 24px; color: var(--ink); background: var(--paper); }
.burger .i--close { display: none; }
.burger[aria-expanded="true"] .i--open { display: none; }
.burger[aria-expanded="true"] .i--close { display: block; }


/* 05. HERO --------------------------------------------------------------- */
.hero { position: relative; background: var(--paper); padding: clamp(48px, 6vw, 80px) 0 clamp(120px, 12vw, 168px); overflow: hidden; }
/* concentric arches, a quiet nod to the logo */
.hero::before { content: ""; position: absolute; right: -6%; top: 6%; width: 620px; height: 780px; border-radius: 999px 999px 0 0; border: 2px solid rgba(43, 58, 240, .1);
  box-shadow: 0 0 0 46px var(--paper), 0 0 0 48px rgba(43, 58, 240, .08), 0 0 0 94px var(--paper), 0 0 0 96px rgba(43, 58, 240, .06); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__note { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 28px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(18, 176, 143, .2); }
.hero h1 { font-size: var(--h1); line-height: 1.02; letter-spacing: -.035em; }
.hero .lead { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.play-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; }
.play-dot .i { transform: translateX(1px); }

.hero-search { display: flex; align-items: center; gap: 8px; max-width: 660px; margin-top: 40px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 24px 48px -28px rgba(14, 18, 56, .35); transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(43, 58, 240, .12); }
.hero-search__field { flex: 1 1 auto; min-width: 0; }
.hero-search__field--select { flex: 0 0 auto; border-right: 1px solid var(--line); }
.hero-search select, .hero-search input { width: 100%; border: 0; outline: 0; background-color: transparent; color: var(--ink); padding: 12px 16px; font-weight: 500; }
.hero-search select { width: 168px; padding-right: 36px !important; background-color: transparent; }
.hero-search input::placeholder { color: #8B91B5; }
.hero-search .btn { flex: none; }

.hero__proof { display: flex; align-items: center; gap: 16px; margin-top: 32px; font-size: .9375rem; color: var(--muted); }
.avatars { display: flex; }
.avatars li { width: 40px; height: 40px; border-radius: 50%; background: var(--cobalt); border: 3px solid var(--paper); overflow: hidden; }
.avatars li + li { margin-left: -12px; }
.avatars li:nth-child(2) { background: var(--mint); }
.avatars li:nth-child(3) { background: var(--coral); }
.avatars li:nth-child(4) { background: var(--marigold); }
.avatars img { width: 100%; height: 100%; object-fit: cover; }
.hero__proof strong { color: var(--ink); }

/* Hero visual: three arches + two floating notes */
.hero__art { position: relative; height: min(600px, 74vw); display: flex; align-items: flex-end; gap: 16px; }
.arch { border-radius: 999px 999px 28px 28px; }
.arch--a { flex: 1; height: 70%; }
.arch--b { flex: 1.1; height: 100%; }
.arch--c { flex: 1; height: 54%; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 28px 20px; background: var(--cobalt); color: #fff; }
.arch--c .i { font-size: 36px; color: var(--marigold); }
.arch--c p { font-family: var(--font-head); font-weight: 500; font-size: 1.125rem; line-height: 1.25; }
/* The one orchestrated moment: arches rise on page load */
@keyframes rise { from { clip-path: inset(100% 0 0 0); transform: translateY(28px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.arch { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.arch--b { animation-delay: .12s; }
.arch--c { animation-delay: .24s; }

.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 20px; font-size: .875rem; line-height: 1.35; color: var(--muted); box-shadow: 0 24px 48px -24px rgba(14, 18, 56, .5); }
.chip strong { display: block; color: var(--ink); font-size: .9375rem; }
.chip--live { left: -34px; bottom: 56px; }
.chip__pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255, 106, 87, .22); }
.chip--rating { right: -10px; top: 18px; }
.chip--rating > div { display: grid; gap: 4px; }
.chip__score { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }


/* 06. HIGHLIGHTS --------------------------------------------------------- */
.highlights { position: relative; z-index: 2; margin-top: -76px; }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.hl { display: flex; gap: 16px; padding: 30px 28px; }
.hl + .hl { border-left: 1px solid var(--line); }
.hl__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px 16px 16px 4px; background: var(--tint); color: var(--tone); font-size: 24px; }
.hl h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.hl p { font-size: .9375rem; line-height: 1.5; color: var(--muted); }


/* 07. ABOUT -------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__media { position: relative; padding-bottom: 44px; }
.about__arch { width: 88%; max-width: 480px; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; }
.about__inset { position: absolute; right: 0; bottom: 0; width: 44%; max-width: 230px; aspect-ratio: 1; border-radius: 50%; border: 8px solid #fff; }
.about__play { position: absolute; left: 44%; top: 46%; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--cobalt); font-size: 28px; transform: translate(-50%, -50%); box-shadow: 0 20px 40px -16px rgba(14, 18, 56, .55); transition: transform .2s; }
.about__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.about__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.about__play .i { transform: translateX(2px); }
.about__badge { position: absolute; left: -16px; top: 56px; max-width: 190px; padding: 18px 22px; background: var(--marigold); color: var(--ink); border-radius: 24px 24px 24px 4px; line-height: 1.3; font-size: .9375rem; font-weight: 500; }
.about__badge strong { display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; }
.about__copy h2 { font-size: var(--h2); }
.about__copy .lead { margin: 20px 0 32px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 28px 0 36px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.checks .i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(18, 176, 143, .16); color: #0B8A70; stroke-width: 2.4; }
.about__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }


/* 08. CATEGORIES --------------------------------------------------------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); transition: background-color .25s, border-color .25s, color .25s; }
.cat__icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 36px; border-radius: 18px 18px 18px 4px; background: var(--tint); color: var(--tone); font-size: 27px; transition: background-color .25s, color .25s; }
.cat__name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; transition: color .25s; }
.cat__count { font-size: .9375rem; color: var(--muted); transition: color .25s; }
.cat:hover { background: var(--ink); border-color: var(--ink); }
.cat:hover .cat__name { color: #fff; }
.cat:hover .cat__count { color: #B7BCE6; }
.cat:hover .cat__icon { background: var(--marigold); color: var(--ink); }


/* 09. COURSES ------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 10px 20px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.course { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color .2s; }
.course:hover { border-color: var(--cobalt); }
.course__thumb { display: block; aspect-ratio: 16 / 10; }
.course__thumb .tag { position: absolute; left: 14px; bottom: 14px; }
.wish { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 18px; transition: color .2s; }
.wish:hover { color: var(--coral); }
.wish[aria-pressed="true"] { color: var(--coral); }
.wish[aria-pressed="true"] .i { fill: currentColor; }
.course__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 20px 20px 18px; }
.course h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course h3 a:hover { color: var(--cobalt); }
.rating { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--muted); }
.rating b { color: var(--ink); }
.course__stats { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8125rem; color: var(--muted); }
.course__stats li { display: inline-flex; align-items: center; gap: 6px; }
.course__stats .i { font-size: 16px; color: var(--cobalt); }
.course__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.by { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.by img { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; background: var(--sky); }
.by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); white-space: nowrap; }
.price s { margin-right: 6px; font-family: var(--font-body); font-weight: 400; font-size: .875rem; color: var(--muted); }
.price--free { color: #0B8A70; }


/* Stretched links: the whole course, instructor and blog card opens its popup */
.teacher, .post { position: relative; }
.course h3 a::after, .teacher h3 a::after, .post h3 a::after { content: ""; position: absolute; inset: 0; }
:is(.course, .teacher, .post) h3 a:focus-visible { outline: 0; }
:is(.course, .teacher, .post) h3 a:focus-visible::after { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: var(--radius-md); }
.wish { z-index: 2; }
.teacher .social { position: relative; z-index: 2; }
.teacher h3 a { transition: color .2s; }
.teacher:hover h3 a { color: var(--cobalt); }
.teacher:hover .teacher__photo { box-shadow: 0 0 0 4px var(--marigold); }
.teacher__photo { transition: box-shadow .25s; }


/* 10. PROGRAMS ----------------------------------------------------------- */
.programs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: stretch; }
.programs__list { display: grid; gap: 12px; align-content: start; }
.prog-tab { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); transition: background-color .2s, border-color .2s, color .2s; }
.prog-tab:hover { border-color: var(--cobalt); }
.prog-tab__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; background: var(--sky); color: var(--cobalt); font-size: 22px; transition: background-color .2s, color .2s; }
.prog-tab__text { flex: 1; display: grid; line-height: 1.3; }
.prog-tab__text strong { font-family: var(--font-head); font-size: 1.125rem; color: var(--ink); }
.prog-tab__text small { font-size: .875rem; color: var(--muted); }
.prog-tab__chev { font-size: 20px; color: var(--muted); }
.prog-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }
.prog-tab[aria-selected="true"] strong { color: #fff; }
.prog-tab[aria-selected="true"] small { color: #B7BCE6; }
.prog-tab[aria-selected="true"] .prog-tab__icon { background: var(--marigold); color: var(--ink); }
.prog-tab[aria-selected="true"] .prog-tab__chev { color: var(--marigold); }

.prog-panel { display: grid; grid-template-columns: .9fr 1.1fr; height: 100%; min-height: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.prog-panel__img { min-height: 280px; }
.prog-panel__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: clamp(28px, 4vw, 48px); }
.prog-panel__body h3 { font-size: 2rem; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 32px; padding: 20px 0; margin: 4px 0 8px; width: 100%; border-block: 1px solid var(--line); }
.facts li { display: grid; line-height: 1.3; }
.facts b { font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }
.facts span { font-size: .875rem; color: var(--muted); }


/* 11. COUNTERS ----------------------------------------------------------- */
.counters { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 88px) 0; background: var(--ink); }
.counters::before, .counters::after { content: ""; position: absolute; bottom: -60%; width: 420px; height: 560px; border: 2px solid rgba(255, 255, 255, .07); border-radius: 999px 999px 0 0; pointer-events: none; }
.counters::before { left: -120px; }
.counters::after { right: -120px; }
.counters__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.counter { padding: 8px 32px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .14); }
.counter:first-child { border-left: 0; }
.counter__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.1rem); line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.counter__num em { font-style: normal; color: var(--marigold); }
.counter__label { margin-top: 10px; font-size: 1rem; }


/* 12. INSTRUCTORS -------------------------------------------------------- */
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.teacher__photo { aspect-ratio: 4 / 5; margin-bottom: 22px; border-radius: 999px 999px 24px 24px; }
.teacher h3 { font-size: 1.3125rem; }
.teacher > p { margin: 4px 0 14px; font-size: .9375rem; color: var(--muted); }


/* 13. HOW IT WORKS ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; }
.step__num { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border-radius: 50%; background: var(--cobalt); color: #fff; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.step:nth-child(2) .step__num { background: var(--mint); }
.step:nth-child(3) .step__num { background: var(--marigold); color: var(--ink); }
.step:nth-child(4) .step__num { background: var(--coral); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 72px; right: -16px; border-top: 2px dashed var(--line-strong); }
.step h3 { font-size: 1.3125rem; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 22em; }


/* 14. ADMISSION & COUNTDOWN --------------------------------------------- */
.admission { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0; background: var(--cobalt); color: #DDE0FF; }
.admission::before { content: ""; position: absolute; left: -140px; bottom: -220px; width: 520px; height: 680px; border-radius: 999px 999px 0 0; border: 2px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 44px var(--cobalt), 0 0 0 46px rgba(255, 255, 255, .1); pointer-events: none; }
.admission__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.admission h2 { font-size: var(--h2); }
.admission .lead { margin-top: 20px; color: #DDE0FF; }
.countdown-title { margin: 36px 0 14px; font-weight: 600; color: #fff; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 460px; }
.countdown > div { padding: 16px 8px 14px; text-align: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 22px 22px 12px 12px; }
.countdown b { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 6px; font-size: .8125rem; color: #DDE0FF; }
.admission__list { display: grid; gap: 12px; margin-top: 32px; }
.admission__list li { display: flex; align-items: center; gap: 12px; color: #fff; }
.admission__list .i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--marigold); color: var(--ink); stroke-width: 2.6; }


/* 15. EVENTS ------------------------------------------------------------- */
.events { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; }
.event-feature { position: relative; display: flex; align-items: flex-end; min-height: 520px; border-radius: var(--radius-lg); }
.event-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 18, 56, 0) 25%, rgba(14, 18, 56, .92) 100%); }
.event-feature__body { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; padding: 32px; color: #E3E5FA; }
.event-feature__body h3 { font-size: 2rem; }
.event-feature__meta { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--marigold); }
.event-list { display: grid; gap: 16px; align-content: stretch; }
.event { display: flex; align-items: center; gap: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: border-color .2s; }
.event:hover { border-color: var(--cobalt); }
.date { flex: none; width: 72px; padding: 12px 0 10px; text-align: center; background: var(--sky); border-radius: 36px 36px 14px 14px; color: var(--cobalt-dark); line-height: 1.1; }
.date b { display: block; font-family: var(--font-head); font-size: 1.75rem; }
.date span { font-size: .875rem; font-weight: 600; }
.event__info { flex: 1; min-width: 0; }
.event__info h3 { font-size: 1.25rem; margin-bottom: 6px; }
.event__info p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .9375rem; color: var(--muted); }
.event__info .i { font-size: 16px; color: var(--cobalt); }
.event__info .i:not(:first-child) { margin-left: 10px; }


/* 16. PRICING ------------------------------------------------------------ */
.billing { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; font-weight: 600; color: var(--muted); }
.billing .is-on { color: var(--ink); }
.billing em { margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(18, 176, 143, .16); color: #0B7A63; font-style: normal; font-size: .8125rem; }
.switch { position: relative; width: 54px; height: 30px; border-radius: 999px; background: var(--line-strong); transition: background-color .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--cobalt); }
.switch[aria-checked="true"] span { transform: translateX(24px); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan h3 { font-size: 1.5rem; }
.plan__desc { color: var(--muted); min-height: 3.3em; }
.plan__price { display: flex; align-items: baseline; gap: 10px; }
.plan__price b { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.plan__price span { color: var(--muted); }
.plan__list { display: grid; gap: 14px; flex: 1; margin-bottom: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.plan__list .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(18, 176, 143, .16); color: #0B8A70; stroke-width: 2.6; }
.plan--featured { background: var(--ink); border-color: var(--ink); color: #C9CDF0; padding-block: 48px; margin-block: -12px; }
.plan--featured h3, .plan--featured .plan__price b, .plan--featured .plan__list li { color: #fff; }
.plan--featured .plan__desc, .plan--featured .plan__price span { color: #B7BCE6; }
.plan--featured .plan__list { border-color: rgba(255, 255, 255, .16); }
.plan--featured .plan__list .i { background: var(--marigold); color: var(--ink); }
.plan__badge { position: absolute; top: 0; left: 36px; transform: translateY(-50%); padding: 6px 16px; border-radius: 999px; background: var(--marigold); color: var(--ink); font-size: .8125rem; font-weight: 700; }


/* 17. TESTIMONIALS ------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.reviews__intro h2 { font-size: var(--h2); }
.reviews__intro > p { margin-top: 16px; }
.reviews__score { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.reviews__score b { font-family: var(--font-head); font-size: 3.6rem; line-height: 1; color: #fff; letter-spacing: -.04em; }
.reviews__score > div { display: grid; gap: 6px; font-size: .9375rem; }
.reviews__controls { display: flex; gap: 12px; margin-top: 36px; }
.slider { position: relative; padding: clamp(28px, 4vw, 48px); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); }
.review { display: none; }
.review.is-active { display: block; animation: fadein .5s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.review__quote { font-size: 44px; color: var(--marigold); fill: currentColor; stroke: none; }
.review blockquote { margin: 20px 0 32px; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.32; letter-spacing: -.015em; color: #fff; }
.review figcaption { display: flex; align-items: center; gap: 16px; }
.review figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--cobalt); }
.review figcaption div { display: grid; line-height: 1.4; }
.review figcaption strong { color: #fff; font-size: 1.0625rem; }
.review figcaption span { font-size: .9375rem; }
.slider__dots { display: flex; gap: 10px; margin-top: 32px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .3); transition: width .25s, background-color .25s; }
.slider__dots button.is-active { width: 32px; background: var(--marigold); }


/* 18. BLOG --------------------------------------------------------------- */
.blog { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.post__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .875rem; color: var(--muted); }
.post h3 { font-size: 1.375rem; line-height: 1.25; }
.post h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.post h3 a:hover { background-size: 100% 2px; }
.post--lead .post__body { display: grid; gap: 14px; padding-top: 24px; }
.post--lead h3 { font-size: 1.85rem; }
.post--lead .post__body > p:last-child { color: var(--muted); }
.blog__side { display: grid; gap: 32px; }
.post--row { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; }
.post--row .post__img { aspect-ratio: 1; border-radius: var(--radius-md); }
.post--row .post__body { display: grid; gap: 12px; }


/* 19. PARTNERS ----------------------------------------------------------- */
.partners { padding: 56px 0; background: var(--paper); border-block: 1px solid var(--line); }
.partners__title { margin-bottom: 36px; text-align: center; font-weight: 500; color: var(--muted); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-w { display: flex; flex-direction: column; justify-content: center; margin-right: 80px; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1; letter-spacing: -.03em; color: #737AA8; white-space: nowrap; }
.logo-w small { margin-top: 5px; font-family: var(--font-body); font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.w2 { font-weight: 500; letter-spacing: -.05em; }
.w3 { font-size: 1.25rem; letter-spacing: .2em; }
.w4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; font-size: 1.4rem; }
.w5 { font-style: italic; font-weight: 500; }
.w6 { font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; }


/* 20. FAQ ---------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__intro h2 { font-size: var(--h2); }
.faq__intro p { margin: 16px 0 28px; color: var(--muted); }
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc h3 { font-size: inherit; letter-spacing: 0; }
.acc__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 24px 0; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.acc__q .i { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform .3s, background-color .2s, color .2s; }
.acc.is-open .acc__q .i { transform: rotate(45deg); background: var(--cobalt); color: #fff; }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 60px 26px 0; color: var(--muted); }
.acc.is-open .acc__a { grid-template-rows: 1fr; }


/* 21. CONTACT & MAP ------------------------------------------------------ */
.contact__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info { display: grid; gap: 32px; padding-top: 12px; }
.contact__info li { display: flex; gap: 18px; }
.contact__icon { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 16px 16px 16px 4px; background: var(--cobalt); color: #fff; font-size: 23px; }
.contact__info h3 { font-size: 1.25rem; margin-bottom: 4px; }
.contact__info p { color: var(--muted); line-height: 1.6; }
.contact__info a:hover { color: var(--cobalt); }
.map { height: 380px; margin-top: 56px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sky); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }


/* 22. FOOTER ------------------------------------------------------------- */
.footer { display: flow-root; background: var(--ink); }
.newsletter { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; margin: -64px 0 72px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px); background: var(--marigold); color: var(--ink); border-radius: var(--radius-lg); }
.newsletter > div { flex: 1 1 340px; }
.newsletter h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--ink); }
.newsletter p { margin-top: 6px; color: #3B3200; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 380px; max-width: 520px; padding: 8px; background: #fff; border-radius: 32px; }
.newsletter__form input { flex: 1 1 200px; min-width: 0; padding: 12px 18px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.newsletter__form .btn { background: var(--ink); color: #fff; }
.newsletter__form .btn:hover { background: var(--cobalt); }
.newsletter__form .form-note { flex-basis: 100%; margin: 0 0 4px 18px; min-height: 0; }
.newsletter__form .form-note:empty { display: none; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.3fr; gap: 48px; padding-bottom: 64px; }
.footer__about p { margin: 20px 0 24px; max-width: 30em; }
.footer__about .social a { background: rgba(255, 255, 255, .08); color: #fff; }
.footer__about .social a:hover { background: var(--marigold); color: var(--ink); }
.footer__col h3 { margin-bottom: 20px; font-size: 1.125rem; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__notice li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; }
.footer__notice time { font-size: .875rem; font-weight: 600; color: var(--marigold); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 26px 0 32px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9375rem; }
.footer__bar ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__bar a:hover { color: #fff; }


/* 23. OVERLAYS & BACK TO TOP -------------------------------------------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 22px; box-shadow: 0 16px 32px -12px rgba(14, 18, 56, .6); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cobalt); }

.search-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(14, 18, 56, .97); }
.search-overlay__close { position: absolute; top: 28px; right: 28px; }
.search-overlay__form { display: flex; gap: 12px; padding-bottom: 20px; border-bottom: 2px solid rgba(255, 255, 255, .25); }
.search-overlay__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 500; }
.search-overlay__form input::placeholder { color: rgba(255, 255, 255, .45); }
.search-overlay__hint { margin-top: 24px; }
.search-overlay__hint a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.search-overlay__inner { max-width: 860px; }

.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(14, 18, 56, .9); }
.modal__box { position: relative; width: min(960px, 100%); }
.modal__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: -64px; right: 0; }


/* Detail popups (course, instructor, blog) --------------------------------- */
.modal--info { padding: 24px; }
.modal__box--info { display: flex; width: min(940px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); animation: pop .3s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal--info .modal__close { top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 8px 20px -8px rgba(14, 18, 56, .45); }
.modal--info .modal__close:hover { background: var(--ink); color: #fff; }
.info { width: 100%; overflow-y: auto; overscroll-behavior: contain; }
.info__media { aspect-ratio: 21 / 8; min-height: 170px; }
.info__media .tag { position: absolute; left: clamp(20px, 4vw, 40px); bottom: 20px; }
.info__body { padding: clamp(24px, 4vw, 40px); }
.info__title { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; margin-bottom: 14px; padding-right: 48px; }
.info__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: .9375rem; color: var(--muted); }
.info__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.info__meta .i { font-size: 18px; color: var(--cobalt); }
.info__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 28px; }
.info h4 { font-size: 1.1875rem; margin: 28px 0 14px; }
.info__main h4:first-child { margin-top: 0; }
.info__main .checks { grid-template-columns: 1fr; margin: 0; }
.modules { display: grid; gap: 10px; counter-reset: mod; }
.modules li { counter-increment: mod; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-weight: 500; color: var(--ink); }
.modules li::before { content: counter(mod); width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--cobalt-dark); font-size: .875rem; font-weight: 700; }
.modules small { margin-left: auto; font-size: .875rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
.buy { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); }
.buy__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.buy__price b { font-family: var(--font-head); font-size: 2.5rem; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.buy__price b.is-free { color: #0B8A70; }
.buy__price s { color: var(--muted); }
.buy__list { display: grid; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-strong); font-size: .9375rem; }
.buy__list li { display: flex; justify-content: space-between; gap: 12px; }
.buy__list span { color: var(--muted); }
.buy__list b { color: var(--ink); text-align: right; font-weight: 600; }
.who { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 4px 4px 0; }
.who img { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--sky); }
.who div { display: grid; line-height: 1.35; }
.who strong { color: var(--ink); font-size: 1.0625rem; }
.who span { font-size: .875rem; color: var(--muted); }

.info--person { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.info__side { padding: 40px 0 40px 40px; }
.info__portrait { aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; }
.info--person .info__body { padding-left: 40px; }
.info__role { margin: -6px 0 18px; font-weight: 500; color: var(--cobalt-dark); }
.info--person .facts { margin: 0 0 20px; }
.info--person h4 { font-size: 1.0625rem; margin: 22px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag--link { border: 1.5px solid var(--line-strong); background: #fff; transition: border-color .2s, color .2s; }
.tag--link:hover { border-color: var(--cobalt); color: var(--cobalt); }
.info__actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

.byline { margin: -4px 0 24px; font-weight: 500; color: var(--muted); }
.article { max-width: 680px; }
.article p { margin-bottom: 18px; }
.article h4 { margin: 28px 0 14px; }
.article ul { margin: 0 0 18px; padding-left: 1.25em; list-style: disc; }
.article li { margin-bottom: 10px; padding-left: 4px; }
.article li::marker { color: var(--cobalt); }
.article strong { color: var(--ink); }
.info__body--article .post__meta { margin-bottom: 14px; }


/* 24. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1180px) {
  .courses { grid-template-columns: repeat(3, 1fr); }
  .chip--live { left: 0; }
  .chip--rating { right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .hide-md { display: none; }

  /* Off-canvas navigation */
  .burger { display: grid; }
  .nav { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; top: var(--nav-top, var(--header-h)); overflow-y: auto; padding: 16px 24px 40px; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list > li > a { padding: 18px 4px; border-radius: 0; font-family: var(--font-head); font-size: 1.35rem; }
  .nav__list > li > a:hover, .nav__list > li > a.is-active { background: transparent; color: var(--cobalt); }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; font-size: 22px; background: var(--paper); }
  .sub-toggle .i { transition: transform .25s; }
  .has-sub.is-open .sub-toggle .i { transform: rotate(180deg); }
  .sub { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 12px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.is-open .sub { display: block; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 640px; height: min(520px, 90vw); }
  .hero::before { display: none; }
  .highlights__grid { grid-template-columns: 1fr 1fr; }
  .hl:nth-child(3) { border-left: 0; }
  .hl:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about__grid, .admission__grid, .reviews, .faq, .contact__grid, .events { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .faq__intro { position: static; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .programs { grid-template-columns: 1fr; }
  .programs__list { grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .prog-tab { scroll-snap-align: start; }
  .prog-tab__chev { display: none; }
  .counters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .counter:nth-child(3) { border-left: 0; }
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .step:nth-child(2)::after, .step:nth-child(4)::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--featured { margin-block: 12px; }
  .blog { grid-template-columns: 1fr; }
  .event-feature { min-height: 420px; }
}

@media (max-width: 860px) {
  .info__grid { grid-template-columns: 1fr; gap: 28px; }
  .info--person { grid-template-columns: 1fr; }
  .info__side { padding: 28px 28px 0; }
  .info__portrait { max-width: 240px; }
  .info--person .info__body { padding-left: clamp(24px, 4vw, 40px); }
  .topbar { display: none; }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .prog-panel { grid-template-columns: 1fr; }
  .footer__grid { gap: 40px 32px; }
}

@media (max-width: 640px) {
  .modal--info { padding: 12px; }
  .modal__box--info { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; }
  .modules small { display: none; }
  body { font-size: 1rem; }
  .container { width: min(1240px, 100% - 32px); }
  .header__cta { display: none; }
  .hero-search { flex-wrap: wrap; border-radius: 24px; padding: 10px; }
  .hero-search__field, .hero-search__field--select { flex: 1 1 100%; border: 0; border-bottom: 1px solid var(--line); }
  .hero-search select { width: 100%; }
  .hero-search .btn { flex: 1 1 100%; margin-top: 6px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .chip--live { display: none; }
  .chip { padding: 10px 14px; font-size: .8125rem; }
  .chip--rating { top: 8px; }
  .highlights { margin-top: -56px; }
  .highlights__grid { grid-template-columns: 1fr; }
  .hl + .hl { border-left: 0; border-top: 1px solid var(--line); }
  .checks { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { padding: 20px; }
  .cat__icon { margin-bottom: 24px; }
  .courses { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .counter { padding-inline: 16px; }
  .teachers { gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .event { flex-wrap: wrap; gap: 16px; }
  .event .btn { margin-left: 96px; }
  .post--row { grid-template-columns: 110px 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .acc__a p { padding-right: 0; }
  .search-overlay__form .btn { display: none; }
  .modal__close { top: -60px; }
}

@media (max-width: 420px) {
  .teachers { grid-template-columns: 1fr; }
  .countdown b { font-size: 1.7rem; }
}


/* 25. REDUCED MOTION ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 24px 0; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-w[aria-hidden="true"] { display: none; }
}
