/* ==========================================================================
   MASTER STUDY — shared design tokens & components
   ========================================================================== */

:root {
  /* Brand palette */
  --brand: #1B9CDC;        /* logo cyan */
  --brand-deep: #0E7CC1;
  --brand-ink: #074C7C;
  --brand-soft: #E6F4FC;
  --brand-mist: #F4FAFE;

  /* Neutrals */
  --bg: #FAFAF7;
  --bg-warm: #F4F1EA;
  --paper: #FFFFFF;
  --ink: #0B1A2A;
  --ink-2: #29384B;
  --ink-3: #5A6B82;
  --rule: #E6E3DB;
  --rule-2: #EFECE5;

  /* Accent */
  --accent: #F59E0B;       /* amber */
  --accent-soft: #FDF3D9;
  --rose: #E45A6F;

  /* Type */
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(11,26,42,.04), 0 2px 8px rgba(11,26,42,.04);
  --shadow-2: 0 4px 14px rgba(11,26,42,.08), 0 24px 60px -20px rgba(11,26,42,.18);
  --shadow-brand: 0 12px 28px -10px rgba(27,156,220,.45);

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

/* Theme variants for Tweaks */
[data-theme="midnight"] {
  --bg: #0B1422;
  --bg-warm: #0F1B2C;
  --paper: #11203A;
  --ink: #F4F8FD;
  --ink-2: #C9D6E7;
  --ink-3: #8194AE;
  --rule: #1B2B43;
  --rule-2: #14233A;
  --brand-soft: #0E2A41;
  --brand-mist: #0C2236;
}

[data-theme="paper"] {
  --bg: #F2EDE3;
  --bg-warm: #EAE2D2;
  --paper: #FBF7EE;
  --rule: #DDD3BE;
  --rule-2: #E5DCC8;
}

[data-accent="amber"] { --accent: #F59E0B; --accent-soft: #FDF3D9; }
[data-accent="rose"] { --accent: #E45A6F; --accent-soft: #FDE5E9; }
[data-accent="lime"] { --accent: #84CC16; --accent-soft: #ECFCCB; }
[data-accent="violet"] { --accent: #8B5CF6; --accent-soft: #EDE9FE; }

/* Font pairing variants */
[data-fonts="outfit-inter"] { --display: 'Outfit', sans-serif; --body: 'Inter Tight', sans-serif; }
[data-fonts="bricolage-jakarta"] { --display: 'Bricolage Grotesque', sans-serif; --body: 'Plus Jakarta Sans', sans-serif; }
[data-fonts="space-mono"] { --display: 'Space Grotesk', sans-serif; --body: 'Inter Tight', sans-serif; }

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; } /* prevent page-wide horizontal scroll without breaking position:sticky */
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.05; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--brand);
  border-radius: 2px;
}

.h-display {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.h-1 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.h-2 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.h-3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--brand-ink); box-shadow: var(--shadow-brand); }

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }

.btn-arrow::after {
  content: "→";
  font-family: var(--display);
  font-weight: 400;
  transition: transform .18s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-brand img { height: 44px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.nav-brand-text > span { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.nav-brand-text small { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; color: var(--brand-deep); margin-top: 5px; text-transform: uppercase; }
@media (max-width: 720px) { .nav-brand-text { display: none; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--paper); }
.nav-links a.active { color: var(--ink); background: var(--paper); box-shadow: var(--shadow-1); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 4px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang button {
  background: transparent;
  border: 0;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang button.active { background: var(--ink); color: var(--paper); }

/* Mobile menu & Navigation Drawer */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 8px;
  border-radius: var(--r-xs);
  transition: background .18s, color .18s;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover {
  background: var(--rule-2);
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s;
}
.nav-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-drawer.open .nav-drawer-backdrop {
  opacity: 1;
}

.nav-drawer-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 380px;
  background: var(--bg);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-drawer.open .nav-drawer-sheet {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--rule-2);
  height: 72px;
}
.nav-drawer-close {
  background: transparent;
  border: 0;
  padding: 8px;
  display: inline-flex;
  color: var(--ink);
  border-radius: 50%;
  transition: background 0.18s;
}
.nav-drawer-close:hover {
  background: var(--rule-2);
}

.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px var(--pad);
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-drawer-links a {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 12px 18px;
  border-radius: var(--r-md);
  transition: background 0.18s, color 0.18s, transform 0.15s, padding-left 0.18s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-drawer-links a::after {
  content: "→";
  font-family: var(--display);
  font-weight: 400;
  opacity: 0.3;
  transition: transform 0.18s, opacity 0.18s;
}
.nav-drawer-links a:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateX(4px);
}
.nav-drawer-links a:hover::after {
  opacity: 0.8;
  transform: translateX(3px);
}
.nav-drawer-links a.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  border-left: 4px solid var(--brand);
  padding-left: 14px;
}
.nav-drawer-links a.active::after {
  opacity: 0.8;
}

.nav-drawer-footer {
  padding: 24px var(--pad);
  border-top: 1px solid var(--rule-2);
  background: var(--bg-warm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav-drawer-footer .lang {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 4px;
  width: 100%;
}
.nav-drawer-footer .lang button {
  flex: 1;
  text-align: center;
}
.btn-drawer-cta {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
}
.nav-drawer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.drawer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.15s;
}
.drawer-contact-link:hover {
  color: var(--brand-deep);
}
.drawer-contact-link svg {
  color: var(--brand);
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-right .btn-brand { display: none; }
  .nav-right .lang { display: none; } /* Hide language selector on mobile header to save space */
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  color: #C9D6E7;
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer h4 { color: white; margin-bottom: 18px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.footer a { color: #C9D6E7; transition: color .15s; }
.footer a:hover { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 28px; color: white; letter-spacing: -0.02em; line-height: 1; }
.footer-brand small { display: block; font-size: 11px; letter-spacing: 0.18em; color: var(--brand); margin-top: 8px; font-weight: 600; text-transform: uppercase; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6B7C95;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .float-contact { bottom: 16px; right: 16px; }
}

/* ==========================================================================
   Cards & utility
   ========================================================================== */

.card {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--rule); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.divider { height: 1px; background: var(--rule); margin: 0; border: 0; }

/* Placeholder image style */
.ph {
  background:
    repeating-linear-gradient(135deg,
      var(--brand-soft) 0 12px,
      var(--brand-mist) 12px 24px);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand-ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}
.ph::after {
  content: attr(data-label);
}

/* Floating contact buttons */
.float-contact {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.3);
  color: white;
  transition: transform .15s ease;
  position: relative;
}
.float-btn:hover { transform: scale(1.06); }
.float-btn[data-svc="whatsapp"] { background: #25D366; }
.float-btn[data-svc="telegram"] { background: #229ED9; }
.float-btn svg { width: 26px; height: 26px; fill: white; }
.float-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: inherit;
  opacity: 0.4;
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Section heading */
.sect-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.sect-head .lead { margin-top: 14px; }

/* Reveal on load animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal .9s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
.reveal[data-d="1"] { animation-delay: .05s; }
.reveal[data-d="2"] { animation-delay: .15s; }
.reveal[data-d="3"] { animation-delay: .25s; }
.reveal[data-d="4"] { animation-delay: .35s; }
.reveal[data-d="5"] { animation-delay: .45s; }
.reveal[data-d="6"] { animation-delay: .55s; }
.reveal[data-d="7"] { animation-delay: .65s; }
.reveal[data-d="8"] { animation-delay: .75s; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .float-btn::before { animation: none; }
}

/* ==========================================================================
   WHY-US ICON CHIPS
   ========================================================================== */

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  transition: background .25s cubic-bezier(.2,.7,.2,1), color .25s;
}
.why-icon svg { width: 26px; height: 26px; }
.why-card:hover .why-icon { background: var(--brand); color: white; }

/* ==========================================================================
   STAT CHIPS — small accent label above big numbers
   ========================================================================== */

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 7px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  width: fit-content;
}
.stat-chip svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ==========================================================================
   PHOTO GALLERY BENTO
   ========================================================================== */

.gallery-section { padding-bottom: 0; }
.gb-header { margin-bottom: 28px; }

.gb-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: 300px 210px;
  gap: 14px;
}
.gb-tall { grid-row: span 2; }
.gb-wide { grid-column: span 2; }

.gb-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--brand-soft);
  border: 1px solid var(--rule-2);
}
.gb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.gb-item:hover img { transform: scale(1.05); }

.gb-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 44px 20px 18px;
  background: linear-gradient(to top, rgba(11,26,42,.72), transparent);
  color: white;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  pointer-events: none;
}

@media (max-width: 900px) {
  .gb-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px;
  }
  .gb-tall { grid-row: span 1; }
  .gb-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gb-grid { grid-template-columns: 1fr; }
  .gb-tall, .gb-wide { grid-row: span 1; grid-column: span 1; }
  .gb-item { height: 200px; }
}

/* ==========================================================================
   SECTION BACKGROUND VARIANTS
   ========================================================================== */

.section-warm { background: var(--bg-warm); }

.section-dots {
  background-image: radial-gradient(circle, var(--rule) 1.3px, transparent 1.3px);
  background-size: 28px 28px;
}

/* ==========================================================================
   PARENT REPORTS SECTION
   ========================================================================== */

.pr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 820px) { .pr-grid { grid-template-columns: 1fr; } }

.pr-card {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  max-width: 420px;
}
@media (max-width: 820px) { .pr-card { max-width: 100%; } }

.pr-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #0088CC;
  color: white;
}
.pr-tg-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pr-channel-name { font-weight: 700; font-size: 15px; }
.pr-channel-sub { font-size: 12px; opacity: 0.8; margin-top: 2px; }

.pr-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-2);
}
.pr-row:first-child { padding-top: 0; }
.pr-row:last-child { border-bottom: none; padding-bottom: 0; }
.pr-label { color: var(--ink-3); font-weight: 500; }
.pr-value { font-weight: 600; color: var(--ink); }
.pr-value.pr-ok { color: #16A34A; }

.pr-card-footer {
  padding: 12px 20px;
  background: var(--brand-soft);
  font-size: 12px;
  color: var(--brand-deep);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   SCROLL-REVEAL — triggered by IntersectionObserver in nav.js
   ========================================================================== */

.sr-init {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .65s cubic-bezier(.2,.7,.2,1) var(--sr-delay, 0s),
    transform .65s cubic-bezier(.2,.7,.2,1) var(--sr-delay, 0s);
}
.sr-init.sr-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .sr-init { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   HOMEPAGE TEACHERS PREVIEW GRID
   ========================================================================== */

.home-teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .home-teachers-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  .home-teachers-grid {
    grid-template-columns: 1fr;
  }
  .sect-head .btn-ghost {
    display: none; /* Hide top CTA on mobile */
  }
}

.h-teacher-card {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.h-teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--rule);
}

.h-teacher-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.h-teacher-photo::before {
  content: attr(data-initials);
  font-family: var(--display);
  font-weight: 900;
  font-size: 88px;
  color: rgba(255,255,255,.22);
  letter-spacing: -0.04em;
  user-select: none;
  position: relative;
  z-index: 1;
}
.h-teacher-photo::after {
  content: "";
  position: absolute;
  bottom: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 36px solid rgba(255,255,255,.07);
  pointer-events: none;
}

.h-teacher-tag {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--brand-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.h-teacher-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.h-teacher-info h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.h-teacher-bio {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-top: 8px;
}
.h-teacher-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ============================================================
   LEVEL-TEST PROMO (homepage)
   ============================================================ */
.leveltest-promo {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--brand-soft);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.leveltest-promo::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(27, 156, 220, 0.14) 0%, transparent 65%);
  pointer-events: none;
}
.leveltest-promo-text { position: relative; z-index: 1; }
.leveltest-promo-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
}

/* CEFR ladder visual */
.leveltest-promo-ladder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lt-ladder-cap {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.lt-rung {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  box-shadow: var(--shadow-1);
}
.lt-rung span {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lt-rung--goal {
  background: var(--brand);
  border-color: var(--brand);
}
.lt-rung--goal span { color: #fff; }

@media (max-width: 760px) {
  .leveltest-promo {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }
  .leveltest-promo-ladder {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
  }
  .lt-ladder-cap { flex: 1 0 100%; }
  .lt-rung {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 6px;
    justify-content: center;
  }
  .lt-rung span { font-size: 16px; }
}
