/* English Campus — colorful & dynamic build, 2026
   Palette extracted from the English Campus logo:
   navy (book spine, brand wordmark), lime (book pages),
   yellow (accent dots), cyan (network nodes). */

:root {
  /* core brand palette — straight from the logo */
  --navy:        #1e3a8c;
  --navy-deep:   #142866;
  --navy-soft:   #4f63a8;
  --green:       #7cc242;
  --green-deep:  #5fa128;
  --yellow:      #fbd72b;
  --yellow-deep: #e8c000;
  --cyan:        #3cb6e8;
  --cyan-deep:   #1a8fc0;

  /* surfaces & ink */
  --ink:         #142242;
  --ink-muted:   #5b6885;
  --line:        #e6ecf5;
  --white:       #ffffff;
  --cream:       #f7faff;
  --cream-2:     #eef5ff;

  /* shadows in brand-tinted versions */
  --sh-sm:       0 2px 8px rgba(20, 34, 66, 0.06);
  --sh-md:       0 10px 28px rgba(20, 34, 66, 0.10);
  --sh-lg:       0 18px 50px rgba(30, 58, 140, 0.22);
  --sh-green:    0 16px 40px rgba(124, 194, 66, 0.30);
  --sh-yellow:   0 16px 40px rgba(251, 215, 43, 0.40);
  --sh-cyan:     0 16px 40px rgba(60, 182, 232, 0.30);
  --sh-navy:     0 16px 40px rgba(30, 58, 140, 0.28);

  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --max-w:       1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--cyan-deep); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- Reveal-on-scroll animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].in { transition-delay: .08s; }
[data-reveal-delay="2"].in { transition-delay: .16s; }
[data-reveal-delay="3"].in { transition-delay: .24s; }
[data-reveal-delay="4"].in { transition-delay: .32s; }
[data-reveal-delay="5"].in { transition-delay: .40s; }
[data-reveal-delay="6"].in { transition-delay: .48s; }
[data-reveal-delay="7"].in { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .floaty, .pulse, .blob, .marquee-track { animation: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none; white-space: nowrap; font-family: inherit;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.35), transparent 50%);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--sh-navy); }
.btn-primary:hover { background: var(--navy-deep); color: var(--white); box-shadow: 0 22px 50px rgba(30,58,140,0.38); }

.btn-accent { background: var(--green); color: var(--white); box-shadow: var(--sh-green); }
.btn-accent:hover { background: var(--green-deep); color: var(--white); }

.btn-sun { background: var(--yellow); color: var(--navy); box-shadow: var(--sh-yellow); }
.btn-sun:hover { background: var(--yellow-deep); color: var(--navy-deep); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; padding: 14px 18px; }
.btn-ghost:hover { background: var(--cream-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; padding: 12px 0; flex-wrap: nowrap; }
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy); font-weight: 800;
  flex-shrink: 0;
}
.brand img { width: 48px; height: 48px; object-fit: contain; transition: transform .3s ease; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { font-size: 17px; letter-spacing: 0.2px; line-height: 1.1; white-space: nowrap; }
.brand-text small { display: block; font-weight: 500; color: var(--ink-muted); font-size: 12px; }

.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; flex-wrap: nowrap; }
.nav-links > a {
  color: var(--ink); font-weight: 600; padding: 8px 11px; border-radius: 999px;
  font-size: 14.5px; white-space: nowrap;
  position: relative; transition: color .15s ease, background .15s ease;
}
.nav-links > a::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left center;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav-links > a:hover { color: var(--navy); }
.nav-links > a:hover::before { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; margin-left: 8px; }

.menu-toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px auto; transition: transform .2s ease, opacity .2s ease; border-radius: 2px; }

/* ---------- Nav utilities (cart link, login link) ---------- */
.cart-link {
  position: relative; display: inline-flex; align-items: center;
  padding: 8px 10px; color: var(--ink);
  border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.cart-link:hover { background: var(--cream-2); color: var(--navy); }
.cart-link .badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--green-deep); color: white;
  font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; display: grid; place-items: center;
  border: 2px solid var(--white);
}
.nav-login-link { font-weight: 700; color: var(--navy); padding: 8px 12px; }
.nav-login-link:hover { color: var(--cyan-deep); }
@media (max-width: 960px) {
  .cart-link, .nav-login-link { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: flex-start; gap: 10px; }
  .cart-link .badge { position: static; }
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex; padding: 4px;
  background: var(--cream-2); border-radius: 999px;
  margin-right: 4px; gap: 2px;
}
.lang-switch a {
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; color: var(--ink-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color .15s ease, background .15s ease;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active {
  background: var(--navy); color: var(--white);
  box-shadow: 0 4px 10px rgba(30,58,140,0.20);
}
@media (max-width: 1100px) {
  .lang-switch { width: 100%; justify-content: center; margin: 0 0 4px; }
  .lang-switch a { padding: 10px 28px; flex: 1; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(60,182,232,0.22), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(251,215,43,0.30), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(124,194,66,0.22), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ecf3ff 100%);
  padding: 88px 0 100px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }

/* Floating colored blobs in background */
.blob {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.blob.b1 { width: 220px; height: 220px; background: var(--green);  top: 12%; left: -60px; animation-delay: 0s; }
.blob.b2 { width: 180px; height: 180px; background: var(--yellow); top: 60%; left: 30%;  animation-delay: -3s; }
.blob.b3 { width: 240px; height: 240px; background: var(--cyan);   top: 70%; right: -50px; animation-delay: -6s; }
.blob.b4 { width: 160px; height: 160px; background: var(--navy);   top: 8%;  right: 18%; animation-delay: -9s; opacity: 0.18; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -28px) scale(1.08); }
  66% { transform: translate(-18px, 18px) scale(0.95); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 700; box-shadow: var(--sh-sm); color: var(--ink-muted);
  position: relative; z-index: 2;
}
.hero-eyebrow .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(124,194,66,0.6);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,194,66,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(124,194,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,194,66,0); }
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04;
  margin: 20px 0 18px; font-weight: 800; letter-spacing: -0.025em;
  position: relative; z-index: 2;
}
.hero h1 .a1 { color: var(--green); }
.hero h1 .a2 {
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .a3 { color: var(--yellow-deep); position: relative; display: inline-block; }
.hero h1 .a3::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 8px;
  background: var(--yellow); z-index: -1; border-radius: 4px; transform: skewX(-12deg);
}
.hero p.lede {
  font-size: 19px; color: var(--ink-muted); max-width: 560px; margin: 0 0 28px;
  position: relative; z-index: 2;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; position: relative; z-index: 2; }
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; color: var(--ink-muted); font-size: 14px; position: relative; z-index: 2; }
.hero-meta b { color: var(--navy); }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 480px; justify-self: end;
  display: grid; place-items: center; z-index: 1;
}
.hero-card {
  position: absolute; background: var(--white); border-radius: var(--radius-lg);
  padding: 18px 22px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh-md); animation: floaty 6s ease-in-out infinite;
}
.hero-card .emoji { width: 42px; height: 42px; flex-shrink: 0; }
.hero-card .t { font-size: 14px; line-height: 1.3; }
.hero-card .t b { display: block; color: var(--navy); font-size: 16px; }
.hero-card .t span { color: var(--ink-muted); font-size: 13px; }
.hero-card.c1 { top: 4%;  left: -4%;  border-left: 4px solid var(--green);  animation-delay: 0s; }
.hero-card.c2 { top: 36%; right: -8%; border-left: 4px solid var(--cyan);   animation-delay: -2s; }
.hero-card.c3 { bottom: 6%; left: 10%; border-left: 4px solid var(--yellow); animation-delay: -4s; }

.hero-center {
  width: 62%; aspect-ratio: 1/1; max-width: 280px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan-deep) 100%);
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--sh-lg);
  position: relative;
}
.hero-center::before {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 2px dashed var(--green); animation: spin 22s linear infinite;
}
.hero-center::after {
  content: ""; position: absolute; inset: -36px; border-radius: 50%;
  border: 2px dotted var(--yellow); animation: spin 30s linear infinite reverse;
}
.hero-center img { width: 56%; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Confetti dots scattered for energy */
.confetti { position: absolute; width: 14px; height: 14px; border-radius: 50%; opacity: 0.85; z-index: 1; }
.confetti.c-g { background: var(--green); }
.confetti.c-y { background: var(--yellow); }
.confetti.c-c { background: var(--cyan); }
.confetti.c-n { background: var(--navy); }

/* ---------- Marquee strip — color accent between sections ---------- */
.color-strip {
  background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 33%, var(--cyan) 66%, var(--navy) 100%);
  height: 6px;
}

.marquee {
  background: var(--navy); color: var(--white); overflow: hidden;
  padding: 18px 0; position: relative;
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-weight: 700; font-size: 18px; letter-spacing: 0.04em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 16px; }
.marquee-track .sep {
  width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex-shrink: 0;
}
.marquee-track .sep:nth-child(4n+1) { background: var(--green); }
.marquee-track .sep:nth-child(4n+2) { background: var(--yellow); }
.marquee-track .sep:nth-child(4n+3) { background: var(--cyan); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section base ---------- */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; position: relative; z-index: 2; }
.section-eyebrow {
  display: inline-block; color: var(--cyan-deep);
  font-weight: 800; font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 14px;
  position: relative; padding: 0 16px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ""; position: absolute; top: 50%; width: 18px; height: 2px; background: currentColor; opacity: 0.4;
}
.section-eyebrow::before { right: 100%; }
.section-eyebrow::after { left: 100%; }

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 44px); margin: 0 0 14px;
  letter-spacing: -0.022em; line-height: 1.12; color: var(--navy);
}
.section-head h2 mark {
  background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%);
  color: inherit; padding: 0 4px;
}
.section-head p { color: var(--ink-muted); font-size: 18px; margin: 0; }

/* ---------- Programs ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.program-card {
  --c: var(--green);
  --c-deep: var(--green-deep);
  --c-glow: rgba(124,194,66,0.30);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.program-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--c); transform: scaleX(0); transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.program-card::after {
  content: ""; position: absolute; bottom: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--c); opacity: 0.06;
  transition: transform .35s ease;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px var(--c-glow);
  border-color: transparent;
}
.program-card:hover::before { transform: scaleX(1); }
.program-card:hover::after { transform: scale(1.4); }

.program-card.c-green  { --c: var(--green);  --c-deep: var(--green-deep);  --c-glow: rgba(124,194,66,0.30); }
.program-card.c-yellow { --c: var(--yellow); --c-deep: var(--yellow-deep); --c-glow: rgba(251,215,43,0.40); }
.program-card.c-cyan   { --c: var(--cyan);   --c-deep: var(--cyan-deep);   --c-glow: rgba(60,182,232,0.30); }
.program-card.c-navy   { --c: var(--navy);   --c-deep: var(--navy-deep);   --c-glow: rgba(30,58,140,0.28); }

.program-card .age-pill {
  display: inline-block; background: color-mix(in srgb, var(--c) 16%, white);
  color: var(--c-deep); border-radius: 999px;
  padding: 5px 14px; font-size: 12px; font-weight: 800;
  margin-bottom: 14px; align-self: flex-start; letter-spacing: 0.02em;
}
.program-card .icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--c) 0%, var(--c-deep) 100%);
  box-shadow: 0 10px 24px var(--c-glow);
  transform: rotate(-4deg);
  transition: transform .3s ease;
}
.program-card:hover .icon { transform: rotate(0deg) scale(1.08); }
.program-card .icon img { width: 36px; height: 36px; }
.program-card h3 { font-size: 19px; margin: 0 0 8px; line-height: 1.25; color: var(--navy); }
.program-card p { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.program-card .price {
  font-weight: 800; color: var(--navy); font-size: 15px;
  border-top: 1px dashed var(--line); padding-top: 14px; margin-top: auto;
}
.program-card .price span { color: var(--ink-muted); font-weight: 500; }
.program-card .price em { font-style: normal; color: var(--c-deep); }

/* ---------- Pillars / why us ---------- */
.pillars {
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(124,194,66,0.10), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(60,182,232,0.10), transparent 60%),
    var(--cream);
}
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  --c: var(--green);
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 32px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--c);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.pillar.p-green { --c: var(--green); }
.pillar.p-yellow { --c: var(--yellow); }
.pillar.p-cyan { --c: var(--cyan); }
.pillar .num {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; color: var(--c); letter-spacing: 0.18em; margin-bottom: 14px;
}
.pillar .num::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--c);
  display: inline-block; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, white);
}
.pillar h3 { font-size: 22px; margin: 0 0 12px; color: var(--navy); }
.pillar p { color: var(--ink-muted); margin: 0; font-size: 16px; }

/* ---------- Format ---------- */
.format-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.format-list { list-style: none; padding: 0; margin: 0; }
.format-list li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start; font-size: 17px;
}
.format-list li:last-child { border-bottom: 0; }
.format-list .check {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  color: var(--white); display: grid; place-items: center; font-weight: 800; margin-top: 1px;
  font-size: 14px;
}
.format-list li:nth-child(6n+1) .check { background: var(--green); }
.format-list li:nth-child(6n+2) .check { background: var(--cyan); }
.format-list li:nth-child(6n+3) .check { background: var(--yellow); color: var(--navy); }
.format-list li:nth-child(6n+4) .check { background: var(--navy); }
.format-list li:nth-child(6n+5) .check { background: var(--green); }
.format-list li:nth-child(6n+6) .check { background: var(--cyan); }

.format-visual {
  position: relative;
  border-radius: var(--radius-xl); padding: 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan-deep) 100%);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.format-visual::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%; background: var(--yellow); opacity: 0.25;
}
.format-visual::after {
  content: ""; position: absolute; bottom: -50px; left: -50px;
  width: 220px; height: 220px; border-radius: 50%; background: var(--green); opacity: 0.30;
}
.format-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 2; }
.stat {
  background: var(--white); border-radius: 16px; padding: 22px;
  text-align: center; transition: transform .2s ease;
}
.stat:hover { transform: translateY(-4px); }
.stat .v { font-size: 34px; font-weight: 800; line-height: 1; }
.stat:nth-child(1) .v { color: var(--green-deep); }
.stat:nth-child(2) .v { color: var(--cyan-deep); }
.stat:nth-child(3) .v { color: var(--yellow-deep); }
.stat:nth-child(4) .v { color: var(--navy); }
.stat .l { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }

/* ---------- Teachers ---------- */
.teachers {
  background:
    radial-gradient(600px 280px at 90% 0%, rgba(251,215,43,0.18), transparent 60%),
    radial-gradient(600px 280px at 10% 100%, rgba(124,194,66,0.14), transparent 60%),
    #f4f7fc;
}
.teachers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teacher {
  --c: var(--navy);
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.teacher:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.teacher.t-green { --c: var(--green); }
.teacher.t-cyan  { --c: var(--cyan); }
.teacher.t-navy  { --c: var(--navy); }
.teacher .photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, white) 0%, color-mix(in srgb, var(--c) 14%, white) 100%);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.teacher .photo::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 70%, color-mix(in srgb, var(--c) 30%, transparent) 0, transparent 30%),
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--c) 22%, transparent) 0, transparent 35%);
}
.teacher .photo .initials {
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--c); color: var(--white);
  display: grid; place-items: center; font-size: 38px; font-weight: 800;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 35%, transparent);
  position: relative; z-index: 2;
  transition: transform .3s ease;
}
.teacher:hover .initials { transform: scale(1.05) rotate(-4deg); }

/* Real photo variant — fills the card slot, crops cleanly */
.teacher .photo.has-photo { aspect-ratio: 4/3; }
.teacher .photo.has-photo::before { display: none; }
.teacher .photo.has-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  display: block; position: relative; z-index: 2;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.teacher:hover .photo.has-photo img { transform: scale(1.04); }
.teacher .body { padding: 26px; }
.teacher h3 { margin: 0 0 4px; font-size: 20px; color: var(--navy); }
.teacher .role { color: var(--c); font-weight: 700; font-size: 13.5px; margin-bottom: 14px; }
.teacher ul { list-style: none; padding: 0; margin: 0; }
.teacher ul li {
  font-size: 14px; color: var(--ink-muted); padding: 4px 0;
  display: flex; gap: 8px;
}
.teacher ul li::before { content: "—"; color: var(--c); flex-shrink: 0; font-weight: 700; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  --c: var(--green);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--c); }
.price-card.p-green  { --c: var(--green); }
.price-card.p-yellow { --c: var(--yellow-deep); }
.price-card.p-cyan   { --c: var(--cyan); }
.price-card.hot {
  border-color: var(--c); position: relative;
  background: linear-gradient(180deg, var(--white) 0%, color-mix(in srgb, var(--c) 8%, white) 100%);
}
.price-card.hot::before {
  content: "− 20% сейчас"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c); color: var(--navy); padding: 6px 16px;
  border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.05em;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 40%, transparent);
}
.price-card h3 { margin: 0 0 8px; font-size: 20px; color: var(--navy); }
.price-card .sub { color: var(--ink-muted); font-size: 14px; margin-bottom: 18px; }
.price-card .amount { font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1; }
.price-card .amount .from { font-size: 14px; color: var(--ink-muted); font-weight: 500; }
.price-card .amount .unit { font-size: 16px; color: var(--ink-muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 24px; text-align: left; }
.price-card ul li {
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px;
  display: flex; gap: 10px;
}
.price-card ul li:last-child { border-bottom: 0; }
.price-card ul li::before { content: "✓"; color: var(--c); font-weight: 800; }

/* ---------- CTA / form ---------- */
.cta {
  background:
    radial-gradient(900px 400px at 10% 10%, rgba(124,194,66,0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 90%, rgba(60,182,232,0.45), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--yellow); opacity: 0.18; filter: blur(10px);
  animation: float 18s ease-in-out infinite;
}
.cta .container {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr); gap: 44px; align-items: start;
  position: relative; z-index: 2;
}
.cta { scroll-margin-top: 84px; }
.cta-copy { text-align: left; align-self: start; }
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 14px; color: var(--white); }
.cta h2 mark { background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%); color: inherit; padding: 0 4px; }
.cta p { font-size: 18px; opacity: 0.92; margin: 0 0 24px; color: var(--white); }
.cta a { color: var(--yellow); }
.cta a:hover { color: var(--white); }
.cta-channels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cta-channel {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.10); padding: 10px 16px; border-radius: 999px;
  color: var(--white); font-weight: 600; backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.cta-channel:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); color: var(--white); }
.cta-channel .ic { width: 18px; height: 18px; }
.cta-trust {
  grid-template-columns: 1fr;
  margin: 22px 0 0;
}
.cta-trust .conversion-card {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  text-align: left;
}
.cta-trust .conversion-card b,
.cta-trust .conversion-card span { color: var(--white); }
.cta-trust .conversion-card span { opacity: 0.88; }

.cta-form {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 26px; color: var(--ink); box-shadow: var(--sh-lg);
  position: relative;
}
.cta-form::before {
  content: ""; position: absolute; top: -10px; left: -10px;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--yellow); z-index: -1; opacity: 0.7;
}
.cta-form::after {
  content: ""; position: absolute; bottom: -10px; right: -10px;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--green); z-index: -1; opacity: 0.7;
}
.cta-form label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; color: var(--navy); }
.cta-form input, .cta-form select, .cta-form textarea {
  width: 100%; padding: 11px 13px; border: 2px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  margin-bottom: 10px; transition: border-color .15s ease, box-shadow .15s ease;
  background: var(--white); color: var(--ink);
}
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  outline: 0; border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(60,182,232,0.18);
}
.cta-form .fine { font-size: 12px; color: var(--ink-muted); margin: 4px 0 0; }
.cta-form .fine a { color: var(--navy); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: #c8d1ea; padding: 72px 0 28px;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 33%, var(--cyan) 66%, var(--navy-soft) 100%);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 16px; }
.footer-grid a { color: #b5c0db; }
.footer-grid a:hover { color: var(--yellow); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: 5px 0; }
.footer-brand p { color: #97a2bf; font-size: 14px; margin: 16px 0 0; line-height: 1.6; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand img { background: var(--white); padding: 4px; border-radius: 12px; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text small { color: #b5c0db; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  color: var(--white); transition: background .2s ease, transform .2s ease;
}
.socials a:nth-child(1):hover { background: var(--green); }
.socials a:nth-child(2):hover { background: var(--cyan); }
.socials a:nth-child(3):hover { background: var(--yellow); color: var(--navy); }
.socials a:hover { transform: translateY(-3px); color: var(--white); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #8a93b0; font-size: 13px;
}
.footer-bottom a { color: #b5c0db; }
.footer-bottom a:hover { color: var(--yellow); }

/* ---------- Policy page ---------- */
.policy-page { padding: 56px 0 80px; background: var(--cream); }
.policy-page h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 24px; letter-spacing: -0.02em; color: var(--navy); }
.policy-page h1::after {
  content: ""; display: block; width: 80px; height: 6px; margin-top: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--cyan));
}
.policy-page h2 { font-size: 22px; margin: 36px 0 12px; color: var(--navy); }
.policy-page p, .policy-page li { color: #3d4866; font-size: 15.5px; line-height: 1.7; }
.policy-page ul { padding-left: 22px; }
.policy-page .back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: var(--cyan-deep); font-weight: 700; }
.policy-page .back-link:hover { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Hide brand subtitle on medium-width laptops so the nav has room to breathe */
@media (max-width: 1280px) and (min-width: 1101px) {
  .brand-text small { display: none; }
  .brand-text { font-size: 16px; }
}

/* Hamburger triggers at 1100px (raised from 960px to avoid nav overflow on narrow laptops) */
@media (max-width: 1100px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 16px 24px; gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-110%); transition: transform .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal; }
  .nav-links > a::before { display: none; }
  .nav-links > a:last-of-type { border-bottom: 0; }
  .nav-cta { width: 100%; margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 380px; margin: 0 auto; justify-self: center; }

  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid, .teachers-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .format-grid, .cta .container { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .programs-grid, .pillars-grid, .teachers-grid, .pricing-grid { grid-template-columns: 1fr; }
  .format-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}

/* ===================================================================
   PROGRAMME PATHS — 3-tile selector on homepage + programme landing pages.
   =================================================================== */

/* 3-tile path selector */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.path-tile {
  --c: var(--green);
  --c2: var(--green-deep);
  position: relative;
  border-radius: var(--radius-xl);
  padding: 36px 28px 28px;
  background: linear-gradient(160deg, var(--c) 0%, var(--c2) 100%);
  color: var(--white);
  text-decoration: none;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 340px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.path-tile::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.path-tile::after {
  content: ""; position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.path-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px color-mix(in srgb, var(--c) 35%, transparent);
  color: var(--white);
}
.path-tile.eng  { --c: #7cc242; --c2: #5fa128; }
.path-tile.code { --c: #3cb6e8; --c2: #1a8fc0; }
.path-tile.robo { --c: #2c4b9c; --c2: #142866; }
.path-tile .icon {
  width: 76px; height: 76px; border-radius: 18px;
  background: rgba(255,255,255,0.20);
  display: grid; place-items: center;
  position: relative; z-index: 2;
}
.path-tile .icon img { width: 52px; height: 52px; }
.path-tile .count {
  font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,0.22);
  padding: 4px 12px; border-radius: 999px;
  align-self: flex-start; letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; z-index: 2;
}
.path-tile h3 {
  font-size: 28px; margin: 4px 0 0; line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 800;
  position: relative; z-index: 2;
}
.path-tile p {
  font-size: 15px; opacity: 0.92; margin: 0; line-height: 1.5;
  flex: 1; position: relative; z-index: 2;
}
.path-tile .more {
  font-weight: 800; opacity: 0.95;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; position: relative; z-index: 2;
}
.path-tile:hover .more { gap: 10px; }
@media (max-width: 900px) {
  .path-grid { grid-template-columns: 1fr; }
  .path-tile { min-height: 260px; }
}

/* Programme landing hero — focused, with tinted backdrop */
.prog-hero {
  --c: var(--green);
  position: relative; overflow: hidden;
  padding: 72px 0 80px;
  background:
    radial-gradient(900px 500px at 10% 10%, color-mix(in srgb, var(--c) 35%, transparent), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%),
    var(--cream);
}
.prog-hero.eng  { --c: #7cc242; }
.prog-hero.code { --c: #3cb6e8; }
.prog-hero.robo { --c: #2c4b9c; }
.prog-hero .container { position: relative; z-index: 2; }
.prog-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--c);
  box-shadow: var(--sh-sm);
}
.prog-hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.05;
  margin: 16px 0 14px; color: var(--navy);
  letter-spacing: -0.022em; max-width: 760px;
}
.prog-hero h1 mark {
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--c) 60%, white) 60%);
  color: inherit; padding: 0 6px;
}
.prog-hero .lede {
  font-size: 19px; color: var(--ink-muted);
  max-width: 640px; margin: 0 0 24px;
}
.prog-hero .meta-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 24px;
}
.prog-hero .meta-row .chip {
  background: var(--white); padding: 7px 14px; border-radius: 999px;
  font-size: 13px; color: var(--navy); font-weight: 700;
  box-shadow: var(--sh-sm);
}
.prog-hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Programme USP triplets sit under hero */
.prog-usps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 36px;
}
.prog-usp {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 22px; border: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start;
}
.prog-usp .ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--c, var(--green)) 14%, white);
  color: var(--c, var(--green-deep));
}
.prog-usp h4 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.prog-usp p { margin: 0; font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 900px) { .prog-usps { grid-template-columns: 1fr; } }

/* Cross-link callout — used between programmes (e.g. English → Robotics) */
.cross-link {
  margin-top: 32px;
  background: linear-gradient(135deg, #2c4b9c 0%, #142866 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: var(--sh-md);
}
.cross-link::before {
  content: ""; position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(124, 194, 66, 0.18);
}
.cross-link-icon {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center; position: relative; z-index: 2;
}
.cross-link-icon img { width: 40px; height: 40px; }
.cross-link-body { flex: 1; min-width: 240px; position: relative; z-index: 2; }
.cross-link-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 4px;
}
.cross-link h3 { margin: 0 0 6px; font-size: 20px; color: var(--white); }
.cross-link p { margin: 0; opacity: 0.92; font-size: 14.5px; line-height: 1.55; }
.cross-link .btn { position: relative; z-index: 2; }
@media (max-width: 700px) {
  .cross-link { padding: 22px; }
  .cross-link .btn { width: 100%; }
}

/* ===================================================================
   PLATFORM PAGES — catalog, course detail, cart, checkout, auth, dashboard.
   Static UX prototype; structured for Next.js component conversion.
   =================================================================== */

/* ----- Page shell & breadcrumbs ----- */
.page-shell { padding: 32px 0 80px; min-height: calc(100vh - 80px); background: var(--cream); }
.page-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; color: var(--navy); letter-spacing: -0.018em; }
.page-head .sub { color: var(--ink-muted); font-size: 15px; margin-top: 4px; }
.breadcrumb { font-size: 13px; color: var(--ink-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* ----- Toast ----- */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 14px 22px; border-radius: 12px;
  box-shadow: var(--sh-lg); font-weight: 600; font-size: 15px;
  opacity: 0; transform: translateY(20px); transition: opacity .25s ease, transform .25s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green-deep); }
.toast.error { background: #c0392b; }

/* ----- Catalog page ----- */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters-panel {
  background: var(--white); border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--line); position: sticky; top: 90px;
}
.filters-panel h3 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin: 0 0 14px; }
.filter-group { margin-bottom: 22px; }
.filter-group h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; color: var(--ink); cursor: pointer; }
.filter-option input[type="checkbox"] { accent-color: var(--navy); width: 16px; height: 16px; cursor: pointer; }
.filter-option .count { color: var(--ink-muted); font-size: 12px; margin-left: auto; }
.range-slider { width: 100%; accent-color: var(--navy); }
.range-values { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.btn-clear { width: 100%; padding: 10px; border: 2px solid var(--line); background: transparent; color: var(--ink-muted); border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 13px; }
.btn-clear:hover { border-color: var(--navy); color: var(--navy); }

.catalog-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 200px;
  padding: 12px 16px 12px 42px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235b6885'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") no-repeat 14px center / 18px;
  font-size: 15px; font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(60,182,232,0.15); }
.sort-select {
  padding: 12px 16px; border: 2px solid var(--line); border-radius: 999px;
  background: var(--white); font-size: 14px; font-family: inherit; cursor: pointer;
}
.applied-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; min-height: 28px; }
.applied-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream-2); padding: 5px 10px 5px 12px; border-radius: 999px;
  font-size: 13px; color: var(--navy); font-weight: 600;
}
.applied-chip button { border: 0; background: transparent; cursor: pointer; color: var(--ink-muted); font-size: 16px; line-height: 1; padding: 0; }
.applied-chip button:hover { color: var(--navy); }

.offline-request-note {
  background: color-mix(in srgb, var(--yellow) 28%, white);
  border: 1px solid color-mix(in srgb, var(--yellow-deep) 34%, white);
  border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px;
  color: var(--ink); font-size: 14px;
}
.offline-request-note a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.conversion-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin: 0 0 20px;
}
.conversion-strip.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.conversion-strip.compact .conversion-card { padding: 13px; }
.conversion-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; min-width: 0;
}
.conversion-card b { display: block; color: var(--navy); margin-bottom: 4px; }
.conversion-card span { color: var(--ink-muted); font-size: 13.5px; line-height: 1.45; }
.social-proof-band {
  margin: 18px 0; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--white);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center;
}
.social-proof-band blockquote { margin: 0; color: var(--navy); font-weight: 800; line-height: 1.45; }
.social-proof-band p { margin: 6px 0 0; color: var(--ink-muted); font-size: 13.5px; }
.proof-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.proof-metrics span {
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; color: var(--ink-muted); font-size: 12.5px;
}
.proof-metrics b { display: block; color: var(--navy); font-size: 18px; line-height: 1; margin-bottom: 4px; }

.offline-timetable {
  padding: 18px; margin: 0 0 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.request-page-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px; align-items: start;
}
.request-schedule-panel { min-width: 0; }
.timetable-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px;
  padding: 4px; border-radius: 999px; background: var(--cream-2); width: fit-content;
}
.timetable-tabs button {
  border: 0; border-radius: 999px; padding: 9px 14px; background: transparent;
  color: var(--ink-muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.timetable-tabs button.active { background: var(--navy); color: var(--white); }
.timetable-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.timetable-head h2 { color: var(--navy); font-size: 20px; margin: 0 0 4px; }
.timetable-head p { color: var(--ink-muted); margin: 0; font-size: 13.5px; }
.timetable-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.timetable-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.timetable-card h3 { color: var(--navy); font-size: 15px; margin: 0; }
.timetable-format {
  align-self: flex-start; background: var(--navy); color: var(--white);
  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800;
}
.timetable-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-muted); font-size: 12.5px; }
.timetable-meta span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.offline-request-form {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.offline-request-form.request-panel {
  margin: 0; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--cream);
  position: sticky; top: 96px; scroll-margin-top: 118px;
}
.offline-request-form h3 { color: var(--navy); font-size: 16px; margin: 0 0 10px; }
.request-lede { color: var(--ink-muted); font-size: 13.5px; margin: -2px 0 14px; line-height: 1.5; }
.offline-request-form input, .offline-request-form select, .offline-request-form textarea,
.admin-form input, .admin-form select, .input-group select {
  width: 100%; border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; background: var(--white); color: var(--ink);
}
.offline-request-form textarea { margin: 12px 0; resize: vertical; }
.form-label {
  display: block; margin: 12px 0 6px; color: var(--navy);
  font-size: 13px; font-weight: 800;
}
.custom-time-panel {
  margin-top: 10px; padding: 12px; border: 1px dashed var(--cyan);
  border-radius: var(--radius); background: color-mix(in srgb, var(--cyan) 8%, white);
}
.request-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin: 16px 0 0;
}
.request-trust span {
  border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
  padding: 10px 12px; color: var(--ink-muted); font-size: 12.5px; line-height: 1.4;
}
.request-trust b { display: block; color: var(--navy); font-size: 13px; margin-bottom: 2px; }

.sticky-conversion-cta {
  position: fixed; left: 50%; bottom: 16px; z-index: 80;
  transform: translateX(-50%); width: min(960px, calc(100% - 24px));
  background: rgba(255,255,255,0.96); border: 1px solid var(--line);
  box-shadow: var(--sh-lg); border-radius: 16px; padding: 10px;
  display: flex; align-items: center; justify-content: center; gap: 10px; backdrop-filter: blur(12px);
}
.sticky-cta-copy { color: var(--navy); font-weight: 800; font-size: 13.5px; margin: 0 6px; }
.sticky-conversion-cta .btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
.admin-export-btn { margin: 0 0 14px; }
.thanks-summary {
  margin: 28px auto 0; max-width: 620px; text-align: left;
  background: rgba(255,255,255,0.78); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px;
}
.thanks-summary h2 { margin: 0 0 12px; color: var(--navy); font-size: 18px; }
.thanks-summary-list { margin: 0; display: grid; gap: 10px; }
.thanks-summary-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.thanks-summary-list dt { color: var(--ink-muted); font-size: 13px; font-weight: 800; }
.thanks-summary-list dd { margin: 0; color: var(--navy); font-size: 13.5px; font-weight: 700; }

.result-count { color: var(--ink-muted); font-size: 14px; margin-bottom: 14px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.cat-card {
  --c: var(--green);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none; color: inherit;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.cat-thumb {
  aspect-ratio: 16/10; position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 36%, white) 0%, color-mix(in srgb, var(--c) 16%, white) 100%);
  display: grid; place-items: center;
}
.cat-thumb img { width: 60%; max-width: 110px; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18)); }
.cat-thumb .mode-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--white); color: var(--navy);
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.cat-thumb .discount-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--yellow); color: var(--navy);
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
}
.cat-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.cat-category { font-size: 11px; font-weight: 800; color: var(--c); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.cat-body h3 { font-size: 17px; margin: 0 0 6px; color: var(--navy); line-height: 1.3; }
.cat-body p { color: var(--ink-muted); font-size: 13.5px; margin: 0 0 12px; flex: 1; }
.cat-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-muted); margin-bottom: 12px; }
.cat-meta .rating { color: var(--yellow-deep); font-weight: 700; }
.cat-meta .rating::before { content: "★ "; }
.cat-meta .pill { background: var(--cream-2); padding: 2px 8px; border-radius: 999px; }
.cat-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
.cat-price { font-weight: 800; color: var(--navy); font-size: 17px; }
.cat-price .old { color: var(--ink-muted); text-decoration: line-through; font-weight: 500; font-size: 14px; margin-right: 6px; }

.cat-card.c-green  { --c: var(--green); }
.cat-card.c-cyan   { --c: var(--cyan); }
.cat-card.c-yellow { --c: var(--yellow-deep); }
.cat-card.c-navy   { --c: var(--navy); }

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .conversion-strip, .conversion-strip.compact, .social-proof-band, .request-trust, .request-page-grid { grid-template-columns: 1fr; }
  .offline-request-form.request-panel { position: static; scroll-margin-top: 96px; }
  .proof-metrics { grid-template-columns: 1fr; }
  .sticky-conversion-cta { flex-wrap: wrap; border-radius: 14px; }
  .sticky-cta-copy { flex-basis: 100%; text-align: center; }
}

/* ----- Course detail ----- */
.course-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.course-hero {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--line);
}
.course-hero .meta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-muted); margin-bottom: 14px; }
.course-hero .meta-row .pill { background: var(--cream-2); color: var(--navy); padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.course-hero h1 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 14px; color: var(--navy); line-height: 1.15; letter-spacing: -0.018em; }
.course-hero .lede { font-size: 17px; color: var(--ink-muted); margin: 0 0 18px; line-height: 1.55; }
.course-stats { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink); }
.course-stats b { color: var(--navy); }

.course-preview {
  margin: 24px 0;
  aspect-ratio: 16/9; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--cyan-deep));
  display: grid; place-items: center; position: relative; overflow: hidden;
  cursor: pointer;
}
.course-preview::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(124,194,66,0.25), transparent 50%);
}
.play-btn {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--white); display: grid; place-items: center;
  box-shadow: var(--sh-lg); transition: transform .2s ease;
  position: relative; z-index: 2;
}
.course-preview:hover .play-btn { transform: scale(1.08); }
.play-btn::after { content: ""; border-left: 22px solid var(--navy); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.preview-label { position: absolute; bottom: 16px; left: 16px; color: var(--white); font-size: 13px; font-weight: 600; z-index: 2; background: rgba(0,0,0,0.4); padding: 6px 12px; border-radius: 999px; }

.course-body-section { background: var(--white); border-radius: var(--radius-lg); padding: 28px 32px; border: 1px solid var(--line); margin-top: 20px; }
.course-body-section h2 { font-size: 22px; color: var(--navy); margin: 0 0 18px; }
.what-list { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.what-list li { padding: 8px 0 8px 28px; position: relative; break-inside: avoid; color: var(--ink); font-size: 15px; }
.what-list li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--green-deep); font-weight: 800; }
@media (max-width: 700px) { .what-list { columns: 1; } }

/* Outline */
.outline-section { border-bottom: 1px solid var(--line); padding: 16px 0; }
.outline-section:last-child { border-bottom: 0; }
.outline-section h3 { font-size: 16px; margin: 0 0 10px; color: var(--navy); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.outline-section h3 .meta { font-weight: 500; color: var(--ink-muted); font-size: 13px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14.5px; color: var(--ink); }
.lesson-row.locked { color: var(--ink-muted); }
.lesson-row.preview { color: var(--green-deep); font-weight: 600; }
.lesson-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px;
  background: var(--cream-2); flex-shrink: 0;
}
.lesson-row.preview .lesson-icon { background: color-mix(in srgb, var(--green) 22%, white); color: var(--green-deep); }
.lesson-row .duration { margin-left: auto; color: var(--ink-muted); font-size: 13px; }
.lesson-row.preview .free-tag {
  background: var(--green); color: white; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}
.progress-gate-note {
  background: color-mix(in srgb, var(--yellow) 24%, white);
  border: 1px solid color-mix(in srgb, var(--yellow-deep) 35%, white);
  border-radius: var(--radius); padding: 12px 14px; color: var(--ink);
  font-size: 14px; margin-bottom: 10px;
}
.progress-gate-note.complete {
  background: color-mix(in srgb, var(--green) 16%, white);
  border-color: color-mix(in srgb, var(--green) 38%, white);
}
.lesson-row.checkpoint {
  margin-top: 6px; padding: 12px; border: 1px dashed var(--cyan);
  border-radius: 12px; background: color-mix(in srgb, var(--cyan) 10%, white);
  color: var(--navy); font-weight: 800; text-decoration: none;
}
.lesson-row.checkpoint.locked { border-color: var(--line); background: var(--cream-2); }
.gate-tag {
  margin-left: auto; background: var(--yellow); color: var(--navy);
  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800;
}
.outline-section.gated:not(.is-unlocked) { opacity: 0.78; }
.outline-section.is-unlocked .lesson-row { color: var(--ink); }

/* Enroll panel (sticky) */
.enroll-panel {
  position: sticky; top: 90px;
  background: var(--white); border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.enroll-panel .price-row { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.enroll-panel .price-now { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1; }
.enroll-panel .price-was { color: var(--ink-muted); text-decoration: line-through; font-size: 16px; }
.enroll-panel .discount-tag { display: inline-block; background: var(--yellow); color: var(--navy); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; margin-bottom: 16px; }
.enroll-panel ul.includes { list-style: none; padding: 0; margin: 18px 0; }
.enroll-panel ul.includes li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: var(--ink); }
.enroll-panel ul.includes li::before { content: "•"; position: absolute; left: 4px; color: var(--cyan-deep); }

/* Instructor mini cards */
.instructor-mini { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.instructor-mini img, .instructor-mini .ph {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--navy)); color: white;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.instructor-mini b { color: var(--navy); display: block; font-size: 15px; }
.instructor-mini span { color: var(--ink-muted); font-size: 13px; }

/* Teacher scheduler */
.scheduler-section { overflow: hidden; }
.scheduler-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.scheduler-head h2 { margin-bottom: 0; }
.scheduler-kicker {
  display: inline-block; color: var(--green-deep); font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px;
}
.scheduler-status {
  background: color-mix(in srgb, var(--cyan) 16%, white);
  color: var(--navy); border: 1px solid color-mix(in srgb, var(--cyan) 34%, white);
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.scheduler-intro { color: var(--ink-muted); margin: 0 0 20px; }
.scheduler-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); gap: 20px; align-items: start; }
.scheduler-panel, .scheduler-form {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; min-width: 0;
}
.scheduler-panel label, .scheduler-form label {
  display: block; color: var(--navy); font-size: 13px; font-weight: 800; margin: 0 0 8px;
}
.scheduler-select, .scheduler-form input {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; background: var(--white);
  padding: 12px 14px; font: inherit; color: var(--ink); margin-bottom: 14px;
}
.scheduler-select:focus, .scheduler-form input:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(60,182,232,0.14);
}
.scheduler-days, .scheduler-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.scheduler-day, .scheduler-slot {
  border: 2px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.scheduler-day:hover, .scheduler-slot:hover { border-color: var(--cyan); color: var(--navy); }
.scheduler-day.active, .scheduler-slot.active {
  background: var(--navy); border-color: var(--navy); color: var(--white);
}
.scheduler-slot[disabled] {
  cursor: not-allowed; color: var(--ink-muted); background: var(--cream-2); text-decoration: line-through; opacity: 0.62;
}
.scheduler-form .btn { width: 100%; margin-top: 4px; }
.scheduler-note { color: var(--ink-muted); font-size: 12.5px; margin: 10px 0 0; }
.scheduler-confirmation {
  margin-top: 14px; background: color-mix(in srgb, var(--green) 16%, white);
  border: 1px solid color-mix(in srgb, var(--green) 38%, white);
  color: var(--navy); border-radius: 12px; padding: 12px; font-size: 13.5px; font-weight: 700;
}

@media (max-width: 900px) {
  .course-detail-grid { grid-template-columns: 1fr; }
  .enroll-panel { position: static; }
  .scheduler-grid { grid-template-columns: 1fr; }
  .scheduler-head { flex-direction: column; }
  .scheduler-status { white-space: normal; }
}

/* ----- Cart page ----- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); padding: 16px; margin-bottom: 12px;
}
.cart-item .thumb { aspect-ratio: 1/1; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cream-2), #d4e0ff); }
.cart-item .thumb img { width: 60%; }
.cart-item h4 { font-size: 16px; color: var(--navy); margin: 0 0 4px; }
.cart-item .meta { color: var(--ink-muted); font-size: 13px; }
.cart-item .item-price { font-weight: 800; color: var(--navy); font-size: 17px; text-align: right; }
.cart-item .item-actions { font-size: 13px; }
.cart-item .item-actions button { background: none; border: 0; color: var(--ink-muted); cursor: pointer; text-decoration: underline; font-family: inherit; padding: 0; }
.cart-item .item-actions button:hover { color: #c0392b; }

.cart-summary {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--line); position: sticky; top: 90px;
}
.cart-summary h3 { margin: 0 0 16px; font-size: 18px; color: var(--navy); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink); font-size: 15px; }
.summary-row.total { border-top: 2px solid var(--navy); padding-top: 14px; margin-top: 8px; font-weight: 800; font-size: 19px; color: var(--navy); }

.empty-state { text-align: center; padding: 80px 24px; }
.empty-state .icon { font-size: 64px; margin-bottom: 12px; }
.empty-state h2 { color: var(--navy); margin: 0 0 8px; }
.empty-state p { color: var(--ink-muted); max-width: 380px; margin: 0 auto 24px; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

/* ----- Checkout ----- */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); margin-bottom: 16px; }
.checkout-card h3 { font-size: 18px; color: var(--navy); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.checkout-card h3 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: white; display: grid; place-items: center; font-size: 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.input-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.input-group input, .input-group select, .input-group textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(60,182,232,0.15);
}

.payment-options { display: grid; gap: 12px; }
.payment-option {
  display: flex; gap: 14px; align-items: center;
  border: 2px solid var(--line); border-radius: 12px; padding: 14px 18px;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.payment-option:hover { border-color: var(--cyan); }
.payment-option input[type="radio"] { accent-color: var(--navy); width: 18px; height: 18px; }
.payment-option:has(input:checked) { border-color: var(--navy); background: var(--cream-2); }
.payment-option .logo { font-weight: 800; color: var(--navy); }
.payment-option .desc { color: var(--ink-muted); font-size: 13px; }

/* ----- Auth pages (login, register) ----- */
.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid; place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(124,194,66,0.20), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(251,215,43,0.24), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(60,182,232,0.20), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ecf3ff 100%);
  position: relative; overflow: hidden;
}
.auth-card {
  width: 100%; max-width: 460px; background: var(--white);
  border-radius: var(--radius-xl); padding: 36px;
  box-shadow: var(--sh-lg); position: relative; z-index: 2;
}
.auth-card .brand { justify-content: center; margin-bottom: 20px; }
.auth-card h1 { font-size: 26px; color: var(--navy); margin: 0 0 6px; text-align: center; letter-spacing: -0.018em; }
.auth-card .auth-sub { color: var(--ink-muted); text-align: center; margin: 0 0 24px; font-size: 14px; }
.auth-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--cream-2); border-radius: 12px; margin-bottom: 20px;
}
.auth-tabs button {
  flex: 1; border: 0; background: transparent; padding: 10px;
  border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer;
  color: var(--ink-muted); font-family: inherit;
}
.auth-tabs button.active { background: var(--white); color: var(--navy); box-shadow: 0 2px 6px rgba(20,34,66,0.08); }
.auth-form-panel { display: none; }
.auth-form-panel.active { display: block; }

.password-strength { margin-top: -8px; margin-bottom: 14px; }
.strength-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.strength-bar-fill { height: 100%; width: 0; background: #c0392b; transition: width .25s ease, background .25s ease; }
.strength-bar-fill.weak { width: 33%; background: #c0392b; }
.strength-bar-fill.medium { width: 66%; background: var(--yellow-deep); }
.strength-bar-fill.strong { width: 100%; background: var(--green-deep); }
.strength-label { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }

.otp-input { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.otp-digit {
  width: 48px; height: 56px;
  border: 2px solid var(--line); border-radius: 10px;
  text-align: center; font-size: 22px; font-weight: 800; color: var(--navy);
  font-family: inherit;
}
.otp-digit:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(30,58,140,0.18); }
.auth-meta { text-align: center; font-size: 14px; color: var(--ink-muted); margin-top: 14px; }
.auth-meta a { color: var(--navy); font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ----- Dashboard ----- */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.dash-sidebar {
  background: var(--white); border-radius: var(--radius-lg); padding: 22px 16px;
  border: 1px solid var(--line); position: sticky; top: 90px;
}
.dash-user { padding: 0 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.dash-user .ava { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: white; display: grid; place-items: center; font-weight: 800; }
.dash-user .name { font-weight: 800; color: var(--navy); font-size: 15px; }
.dash-user .email { color: var(--ink-muted); font-size: 12px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink); font-size: 14.5px; font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.dash-nav a:hover { background: var(--cream-2); color: var(--navy); }
.dash-nav a.active { background: var(--navy); color: var(--white); }
.dash-nav .badge {
  margin-left: auto; background: var(--yellow); color: var(--navy);
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.dash-nav a.active .badge { background: var(--yellow); color: var(--navy); }

.dash-content { min-width: 0; }
.welcome-row { background: var(--white); border-radius: var(--radius-lg); padding: 22px 28px; border: 1px solid var(--line); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.welcome-row h2 { color: var(--navy); margin: 0 0 4px; font-size: 22px; }
.welcome-row p { color: var(--ink-muted); margin: 0; font-size: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric-card { background: var(--white); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.metric-card .v { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; }
.metric-card .l { color: var(--ink-muted); font-size: 13px; margin-top: 4px; }

.dash-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.dash-tabs button {
  border: 0; background: transparent;
  padding: 12px 18px; font-size: 14.5px; font-weight: 700;
  color: var(--ink-muted); cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s ease, border-color .15s ease;
}
.dash-tabs button.active { color: var(--navy); border-bottom-color: var(--navy); }
.dash-tabs button:hover { color: var(--navy); }

.mycourse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.mycourse-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.mycourse-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--cyan), var(--navy)); display: grid; place-items: center; position: relative; }
.mycourse-card .thumb img { width: 50%; max-width: 110px; }
.mycourse-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.mycourse-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.mycourse-card .progress-bar {
  height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin: 6px 0 8px;
}
.mycourse-card .progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); border-radius: 999px; }
.mycourse-card .progress-label { font-size: 12px; color: var(--ink-muted); margin-bottom: 14px; display: flex; justify-content: space-between; }
.mycourse-card .actions { margin-top: auto; display: flex; gap: 8px; }
.mycourse-card .actions .btn { flex: 1; padding: 10px 14px; font-size: 13.5px; }
.completed-badge { position: absolute; top: 10px; right: 10px; background: var(--green); color: white; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.classroom-status { font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; }
.classroom-status.ready { color: var(--green-deep); }
.classroom-status.pending { color: var(--yellow-deep); }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cert-card {
  background: linear-gradient(135deg, #fafcff 0%, #e7eeff 100%);
  border: 2px solid color-mix(in srgb, var(--navy) 25%, white);
  border-radius: var(--radius-lg); padding: 22px;
}
.cert-card .seal {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-deep));
  display: grid; place-items: center; font-size: 22px; margin-bottom: 12px;
  box-shadow: 0 8px 18px rgba(251,215,43,0.35);
}
.cert-card h4 { color: var(--navy); margin: 0 0 6px; font-size: 16px; }
.cert-card .cert-id { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; color: var(--ink-muted); margin-bottom: 14px; }
.cert-card .cert-actions { display: flex; gap: 8px; }
.cert-card .cert-actions .btn { flex: 1; padding: 8px 12px; font-size: 13px; }

.admin-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; margin-top: 20px;
}
.admin-panel h2 { color: var(--navy); font-size: 22px; margin: 0 0 14px; }
.admin-muted { color: var(--ink-muted); margin: 0 0 14px; font-size: 14px; }
.admin-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-form .btn { align-self: flex-start; }
.admin-timetable-list { margin-top: 8px; }
.admin-meeting-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.admin-request-list { display: grid; gap: 12px; }
.admin-request-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.admin-request-card h3 { color: var(--navy); margin: 8px 0 8px; font-size: 17px; }
.admin-request-card p { color: var(--ink-muted); margin: 5px 0; font-size: 13.5px; }
.admin-request-card b { color: var(--navy); }
.admin-meeting-card h3 { color: var(--navy); margin: 8px 0 6px; font-size: 17px; }
.admin-meeting-card p { color: var(--ink-muted); margin: 0 0 12px; }
.attendance-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px;
}
.attendance-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.attendance-table-wrap { overflow-x: auto; }
.attendance-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.attendance-table th, .attendance-table td {
  text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; white-space: nowrap;
}
.attendance-table th { background: var(--cream-2); color: var(--navy); font-weight: 800; }
.attendance-table tr:last-child td { border-bottom: 0; }
.attendance-status {
  display: inline-flex; border-radius: 999px; padding: 3px 9px;
  font-size: 12px; font-weight: 800;
}
.attendance-status.present { background: color-mix(in srgb, var(--green) 20%, white); color: var(--green-deep); }
.attendance-status.absent { background: #feecec; color: #b8322a; }
.meeting-status {
  display: inline-flex; background: var(--yellow); color: var(--navy);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800;
}
.meeting-status.complete { background: var(--green); color: var(--white); }

/* Notification drawer (basic, not fully functional in static prototype) */
.bell-btn { position: relative; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.bell-btn .bell-count {
  position: absolute; top: 0; right: 0;
  background: #c0392b; color: white; border-radius: 50%;
  width: 18px; height: 18px; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--white);
}

@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .timetable-head { align-items: flex-start; flex-direction: column; }
  .attendance-summary { grid-template-columns: 1fr; }
}
