/* =========
   Design tokens (edit these to change theme)
   ========= */
:root {
  --bg: #F8FAFC;         /* snow */
  --text: #0B1220;       /* charcoal */
  --primary: #2563EB;    /* royal blue */
  --accent: #F59E0B;     /* golden */
  --success: #10B981;

  --glass-bg: rgba(255,255,255,0.55);
  --glass-border: rgba(255,255,255,0.6);
  --glass-shadow: 0 6px 20px rgba(15,23,42,0.08);
  --blur: 20px;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1100px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
}

/* =========
   Simple Reset
   ========= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

/* =========
   Base
   ========= */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}
/* Global heading scale for consistency */
h1 { margin: 0 0 var(--space-3); font-weight: 800; line-height: 1.15; font-size: clamp(28px, 4.5vw, 44px); }
h2 { margin: 0 0 var(--space-2); font-weight: 800; line-height: 1.2;  font-size: clamp(22px, 3.5vw, 32px); }
h3 { margin: 0 0 6px;             font-weight: 800; line-height: 1.2;  font-size: 1.12rem; }
a:focus-visible { outline: 3px solid rgba(37,99,235,0.4); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Accessibility helpers */
.visually-hidden { 
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; 
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: -9999px;
}
.skip-link:focus {
  left: var(--space-3); top: var(--space-3);
  background: white; color: black; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); outline: 3px solid var(--primary);
}

/* =========
   Header / Nav (glassy)
   ========= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-2);
}

/* Brand */

/* Brand */
.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: var(--space-2); 
  text-decoration: none;          /* no underline on brand link */
  line-height: 1;                 /* tighter vertical alignment */
}
.brand:hover,
.brand:focus { 
  text-decoration: none;          /* keep brand link clean on hover/focus */
}
.brand-name { 
  font-weight: 900;               /* bolder title */
  letter-spacing: 0.2px; 
}
/* Navbar brand logo size */
.brand-logo{
  width: 36px;                    /* slightly larger logo */
  height: 36px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;                 /* keep size stable in flex row */
}

/* Nav */
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--space-3);
}
.primary-nav a {
  padding: 8px 10px; border-radius: var(--radius-sm);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.primary-nav a:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  text-decoration: none;
}
.primary-nav a[aria-current="page"] {
  outline: 2px solid rgba(37,99,235,0.2);
  background: rgba(37,99,235,0.05);
}

/* Specific styling for navbar buttons when they are the active page */
.primary-nav a.btn[aria-current="page"] {
  background: rgba(37,99,235,0.12); /* lighter blue */
  color: #000; /* black text */
  font-weight: 800; /* bold */
}

/* Mobile nav */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 8px; border-radius: var(--radius-sm);
}
.nav-toggle:focus { outline: 3px solid rgba(37,99,235,0.4); }
@media (max-width: 860px) {
  /* Mobile: floating, rounded nav panel that slides down */
  .primary-nav {
    position: fixed;
    left: 50%;
    top: 60px; /* sits below the sticky header and slightly overlaps to look connected */
    transform: translateX(-50%) translateY(-10px);
    width: calc(100% - 48px);
    max-width: 540px;
    /* stronger opaque background with heavy blur so content underneath is not readable */
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 28px 48px rgba(15,23,42,0.16);
    padding: calc(var(--space-3) + 6px);
    /* outward, prominent top radius to show connection to the header */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    /* animation-friendly state */
    opacity: 0;
    transform-origin: top center;
    transition: opacity .32s cubic-bezier(.2,.9,.2,1), transform .32s cubic-bezier(.2,.9,.2,1), max-height .36s ease;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1500;
  }

  /* Open state: slide down, become visible and interactive */
  .primary-nav.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  max-height: 78vh; /* allow the panel to expand with content */
  pointer-events: auto;
  }

  .primary-nav ul { flex-direction: column; align-items: stretch; gap: var(--space-2); }

  /* Make each link fill the panel and look like a stacked menu */
  .primary-nav a {
    display: block;
    padding: 14px 12px;
    border-radius: 12px;
    text-align: center; /* center the link text */
    font-weight: 600;
    color: var(--text);
    background: transparent;
  }

  /* Ensure primary CTA inside nav fills the panel width and sits with the links */
  .primary-nav .btn { width: 100%; margin: 8px 0 0; display: inline-flex; justify-content: center; align-items: center; }

  /* Make the primary CTA inside the nav prominent and opaque */
  .primary-nav .btn.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 0;
    padding: 12px 16px;
    border-radius: 9999px; /* pill */
    box-shadow: 0 10px 24px rgba(37,99,235,0.12);
  }

  /* Slight inner spacing so the panel top visually connects to the header with outward curve */
  .primary-nav::before{
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: -10px;
    height: 22px;
    background: rgba(255,255,255,0.96);
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
    z-index: -1;
    filter: blur(6px);
    pointer-events: none;
  }
}

/* Desktop: hide hamburger */
@media (min-width: 861px) {
  .nav-toggle { display: none; }
}

/* =========
   Buttons
   ========= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 16px; border-radius: 9999px;
  border: 1px solid transparent; cursor: pointer; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.btn:focus-visible { outline: 3px solid rgba(37,99,235,0.4); outline-offset: 2px; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #1f54c7; }

.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(37,99,235,0.08); }

/* =========
   Footer
   ========= */
.site-footer {
  margin-top: var(--space-6);
  border-top: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.6);
}
.footer-inner {
  padding-block: var(--space-4);
  display: grid; gap: var(--space-2);
}
.footer-nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* =========
   Motion preferences
   ========= */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* ===== Glass utility (reusable) ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}

/* ===== Hero ===== */
.hero {
  margin-top: var(--space-5);
  /* soft, friendly background */
  background: radial-gradient(1000px 500px at 10% -10%, rgba(37,99,235,0.08), transparent),
              radial-gradient(800px 400px at 110% 20%, rgba(245,158,11,0.08), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}
.hero-inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  /* 2 columns on desktop */
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-copy {
  padding: var(--space-5);
}
.hero-copy .badge {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .2px;
}
.hero-copy h1 {
  margin: 0 0 var(--space-3);
  line-height: 1.15;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
}
.hero-copy .sub {
  margin: 0 0 var(--space-4);
  font-size: clamp(16px, 2.2vw, 18px);
  color: rgba(11,18,32,0.85);
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.link-ghost {
  display: inline-block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.link-ghost:hover {
  transform: translateY(-2px);
  background: rgba(15,23,42,0.04);
  text-decoration: none;
}

/* trust points with subtle check marks */
.trust-points {
  display: grid; gap: 8px; padding: 0; margin: 0;
  list-style: none;
}
.trust-points li {
  position: relative; padding-left: 26px;
}
.trust-points li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--success);
  font-weight: 800;
}

/* Hero visual */
.hero-art {
  position: relative;
  padding: var(--space-3);
}
.hero-art img {
  display: block; width: 100%;
  height: clamp(260px, 40vw, 520px);
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(245,158,11,0.9);
  color: #1a1300;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: rotate(-2deg);
}

/* spacing to next sections you’ll add later */
section + section { margin-top: var(--space-6); }
/* ===== Generic section utilities ===== */
.section { margin-top: var(--space-6); }
.section-head { margin-bottom: var(--space-4); text-align: left; }
.section-head.center { text-align: center; }
.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.2;
}
.section-head .section-sub {
  margin: 0;
  color: rgba(11,18,32,0.75);
  font-size: 0.98rem;
}

/* ===== Why Us v2 ===== */
.why-us-v2 {
  /* subtle section background to separate from hero */
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(37,99,235,0.06), transparent),
    radial-gradient(700px 300px at 110% 20%, rgba(245,158,11,0.06), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

/* Responsive grid with real spacing */
.card-grid-why {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

/* Premium glass cards */
.card-why {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
  /* extra soft gradient tint layered under the glass */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.45));
  /* glass class already adds blur, border, shadow */
}
.card-why:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.14);
}

/* Accent top line for visual polish */
.card-why .topline {
  width: 42px; height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: var(--space-3);
}

/* Icon chip */
.card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(245,158,11,0.12));
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--primary);
  margin-bottom: var(--space-3);
}

/* Text hierarchy */
.card-why h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}
.card-why p {
  margin: 0 0 var(--space-3);
  color: rgba(11,18,32,0.86);
}

/* Link styled as a neat inline button */
.card-link {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: transform .2s ease, background-color .2s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  background: rgba(15,23,42,0.05);
  text-decoration: none;
}
/* ===== Programs at a Glance ===== */
.programs {
  background:
    radial-gradient(900px 400px at -5% 0%, rgba(37,99,235,0.05), transparent),
    radial-gradient(700px 300px at 105% 25%, rgba(245,158,11,0.05), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

.card-grid-programs {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

/* Program cards */
.card-program {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.45));
}
.card-program:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.14);
}

/* Accent top line */
.card-program .topline {
  width: 42px; height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: var(--space-3);
}

/* Grade chip */
.grade-chip {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: .2px;
  background: rgba(37,99,235,0.10);
  color: var(--primary);
  border: 1px solid rgba(255,255,255,0.55);
}

/* Text hierarchy */
.card-program h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}
.card-program p {
  margin: 0 0 var(--space-3);
  color: rgba(11,18,32,0.86);
}

/* Topic chips (no bullets) */
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0; margin: 0 0 var(--space-3);
}
.chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 0.9rem;
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(255,255,255,0.55);
}

/* Inline link button */
.card-link {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: transform .2s ease, background-color .2s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  background: rgba(15,23,42,0.05);
  text-decoration: none;
}

/* Section CTA row */
.section-cta.center {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}
/* ===== Value & Pricing ===== */
.pricing-highlight {
  background:
    radial-gradient(900px 400px at 0% -10%, rgba(37,99,235,0.05), transparent),
    radial-gradient(700px 300px at 105% 20%, rgba(245,158,11,0.05), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

.pricing-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: 1.2fr .8fr; }
}

/* Main price card */
.price-card {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.5));
  transition: transform .22s ease, box-shadow .22s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.14);
}
.price-card .topline {
  width: 56px; height: 5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: var(--space-3);
}
.plan-name { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; }
.plan-desc { margin: 0 0 var(--space-3); color: rgba(11,18,32,0.8); }

/* Price typography */
.price-row {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: var(--space-3);
}
.currency { font-weight: 700; opacity: 0.9; }
.amount {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 900; line-height: 1;
  letter-spacing: -0.02em;
}
.per { opacity: 0.8; font-weight: 600; }

/* Styled tick list (no default bullets) */
.ticks {
  list-style: none; padding: 0; margin: 0 0 var(--space-3);
  display: grid; gap: 10px;
}
.ticks li {
  position: relative; padding-left: 28px;
  color: rgba(11,18,32,0.9);
}
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 900;
}

/* CTAs under price */
.price-ctas {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.fine-print {
  margin: 0; font-size: 0.92rem; color: rgba(11,18,32,0.7);
}

/* Side value card */
.value-card {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.48));
  transition: transform .22s ease, box-shadow .22s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.14);
}
.value-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.value-card p { margin: 0 0 var(--space-3); color: rgba(11,18,32,0.86); }

/* Mini value points */
.value-points {
  display: grid; gap: var(--space-2);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .value-points { grid-template-columns: repeat(3, 1fr); }
}
.vp {
  display: grid; gap: 6px;
  align-content: start;
}
.vp-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(37,99,235,0.12);
  color: var(--primary);
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.6);
}

/* Link styled button inside side card */
.value-card .card-link {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: transform .2s ease, background-color .2s ease;
}
.value-card .card-link:hover {
  transform: translateY(-2px);
  background: rgba(15,23,42,0.05);
  text-decoration: none;
}
/* ===== Worksheets Teaser ===== */
.worksheets-teaser {
  background:
    radial-gradient(900px 400px at -5% 0%, rgba(37,99,235,0.05), transparent),
    radial-gradient(700px 300px at 105% 25%, rgba(245,158,11,0.05), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

.card-grid-worksheets {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;          /* 1 card per line by default (mobile-first) */
  align-items: stretch;
}

@media (min-width: 740px) {
  .card-grid-worksheets {
    grid-template-columns: 1fr 1fr;    /* exactly two columns */
  }
}

/* Worksheet cards */
.ws-card {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.48));
}
.ws-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.14);
}

/* Accent top line */
.ws-card .topline {
  width: 42px; height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: var(--space-3);
}

/* Grade chip reuse */
.ws-card .grade-chip {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: .2px;
  background: rgba(37,99,235,0.10);
  color: var(--primary);
  border: 1px solid rgba(255,255,255,0.55);
}

/* Description */
.ws-desc { margin: 0 0 var(--space-3); color: rgba(11,18,32,0.86); }

/* Topic chips (reusing style from programs; kept here for clarity) */
.topic-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0; margin: 0 0 var(--space-3);
}
.chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 0.9rem;
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(255,255,255,0.55);
}

/* Actions row */
.ws-actions {
  display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center;
}
/* ===== Testimonials ===== */
.testimonials {
  background:
    radial-gradient(900px 400px at -5% 0%, rgba(37,99,235,0.05), transparent),
    radial-gradient(700px 300px at 105% 25%, rgba(245,158,11,0.05), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

/* Grid: 1-up mobile, 2-up from 740px+ */
.t-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 740px) {
  .t-grid { grid-template-columns: 1fr 1fr; }
}

.t-card {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.48));
  transition: transform .22s ease, box-shadow .22s ease;
}
.t-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.14);
}

/* Accent top line */
.t-card .topline {
  width: 42px; height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: var(--space-3);
}

/* Stars */
.t-stars {
  font-weight: 900;
  letter-spacing: 2px;
  color: #f59e0b; /* uses accent tone; acceptable here as a local tweak */
  margin-bottom: var(--space-2);
}

/* Quote text */
.t-quote { margin: 0 0 var(--space-3); }
.t-quote p { margin: 0; color: rgba(11,18,32,0.9); }

/* Meta row */
.t-meta {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--space-2);
  align-items: center;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 3px 10px rgba(15,23,42,0.10);
}

/* Avatar fallback: if src is missing/empty, show default graphic */
img.t-avatar:not([src]),
img.t-avatar[src=""],
img.t-avatar[src=" "] {
  /* Swap in default image purely with CSS for robustness */
  content: url("../img/avatar-default.png");
}

/* Defensive background (old browsers that ignore `content` on <img>) */
img.t-avatar:not([src]),
img.t-avatar[src=""],
img.t-avatar[src=" "] {
  background: #eef3fb url("../img/avatar-default.png") center/70% no-repeat;
}
.t-name { display: block; font-weight: 800; }
.t-note { display: block; color: rgba(11,18,32,0.70); font-size: 0.95rem; }
/* ===== About (OCT Teacher) ===== */
.about-teacher {
  background:
    radial-gradient(900px 400px at -5% 0%, rgba(37,99,235,0.05), transparent),
    radial-gradient(700px 300px at 105% 25%, rgba(245,158,11,0.05), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

/* Card layout: image + text */
.about-card {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.48));
  transition: transform .22s ease, box-shadow .22s ease;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.14);
}
@media (min-width: 900px) {
  .about-card { grid-template-columns: 0.95fr 1.05fr; }
}

/* Media */
.about-media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Text block */
.about-name { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.25; }
.about-body p { margin: 0 0 var(--space-3); color: rgba(11,18,32,0.88); }

/* Bulleted list with custom ticks (not default bullets) */
.about-bullets {
  list-style: none; padding: 0; margin: 0 0 var(--space-3);
  display: grid; gap: 10px;
}
.about-bullets li {
  position: relative; padding-left: 26px;
}
.about-bullets li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 900;
}

/* CTAs */
.about-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* ===== Programs & Pricing: Hero ===== */
.pp-hero {
  background:
    radial-gradient(900px 400px at -5% 0%, rgba(37,99,235,0.06), transparent),
    radial-gradient(700px 300px at 105% 25%, rgba(59,130,246,0.06), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}

/* ===== Pricing Table ===== */
.pricing-table { padding: var(--space-5) var(--space-4); }
.plan-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }

.plan-card {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.50));
  transition: transform .22s ease, box-shadow .22s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(15,23,42,0.14); }
.plan-card .topline {
  width: 48px; height: 4px; border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  margin-bottom: var(--space-3);
}
.plan-name { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; }
.plan-sub { margin: 0 0 var(--space-3); color: rgba(11,18,32,0.78); }
.price { margin: 0 0 var(--space-3); font-size: clamp(32px, 4.8vw, 44px); font-weight: 900; }
.price span { font-weight: 700; }
.price .per { font-size: 0.55em; font-weight: 700; opacity: .8; margin-left: 4px; }

/* "Most Popular" ribbon */
.plan-card.popular { border: 2px solid rgba(37,99,235,0.35); }
.plan-card.popular .ribbon {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  color: #fff; font-weight: 800; font-size: .78rem;
  padding: 6px 10px; border-radius: 9999px; box-shadow: 0 8px 20px rgba(37,99,235,.25);
}

/* Reuse your tick list style; scoped here for safety */
.pricing-table .ticks { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: 10px; }
.pricing-table .ticks li { position: relative; padding-left: 26px; color: rgba(11,18,32,0.9); }
.pricing-table .ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900;
}

/* ===== Scheduler (Weekly Timeline) ===== */
.pp-scheduler { padding: var(--space-5) var(--space-4); }
.sched-layout {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) { .sched-layout { grid-template-columns: 1.2fr .8fr; } }

.grid-panel {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.50));
}
.grid-head {
  display: grid; gap: 8px;
  grid-template-columns: 110px repeat(4, 1fr);
  margin-bottom: var(--space-2);
  color: rgba(11,18,32,0.70); font-weight: 700;
}
.grid-head .time-col { text-align: left; }

.slot-grid {
  display: grid; gap: 8px;
  grid-template-columns: 110px repeat(4, 1fr);
  overflow-x: auto;
}
.timecell {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 10px; font-weight: 700; color: rgba(11,18,32,0.75);
}
.slot {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px; min-height: 44px; border-radius: var(--radius-sm);
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(255,255,255,0.60);
  cursor: pointer; user-select: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.slot:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,0.12); }
.slot[aria-pressed="true"] {
  background: rgba(37,99,235,0.12);
  outline: 2px solid rgba(37,99,235,0.35);
}
.slot:focus-visible { outline: 3px solid rgba(37,99,235,0.45); outline-offset: 2px; }

.legend { margin-top: var(--space-3); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.legend .selected { background: rgba(37,99,235,0.9); }
.legend .available { background: rgba(15,23,42,0.25); }

.summary {
  padding: var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.50));
}
.summary h3 { margin: 0 0 8px; font-size: 1.1rem; }
.sum { display: grid; gap: 8px; margin: 0 0 var(--space-3); }
.sum > div { display: flex; justify-content: space-between; }
.sum dt { font-weight: 800; }
.sum dd { margin: 0; }
.selected-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.selected-list li {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 12px; border-radius: 9999px;
  background: rgba(15,23,42,0.06); border: 1px solid rgba(255,255,255,0.55);
}
.limit-note { margin-top: var(--space-2); color: #9b1b1b; font-weight: 700; }
/* --- Scheduler desktop alignment fix --- */
.grid-head,
.slot-grid{
  /* Always place items left-to-right, row by row */
  direction: ltr;
  grid-auto-flow: row;
  width: 100%;
}

/* Remove horizontal scroll on wide screens (kept on narrow for safety) */
@media (min-width: 900px){
  .grid-head,
  .slot-grid{
    overflow-x: visible;
  }
}

/* Guard: make sure the 110px time column is truly the first column */
.grid-head{
  grid-template-columns: 110px repeat(4, 1fr);
}
.slot-grid{
  grid-template-columns: 110px repeat(4, 1fr);
  justify-items: stretch;
  align-items: stretch;
}
/* CTA state */
#proceed-btn.disabled { opacity: .55; pointer-events: none; }
/* ===============================
   Worksheets page styles (wks-*)
   =============================== */
 
/* Hero */
.wks-hero {
  background:
    radial-gradient(900px 400px at -5% 0%, rgba(37,99,235,0.06), transparent),
    radial-gradient(700px 300px at 105% 25%, rgba(59,130,246,0.06), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}
.wks-hero-card {
  display: grid; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.50));
  box-shadow: var(--glass-shadow);
}
.wks-hero-text { margin: 0; color: rgba(11,18,32,0.86); }
.wks-hero-ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.wks-hero-card,
.wks-carousel,
.wks-pillars,
.wks-how-text,
.wks-faq-item {
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 30px rgba(15,23,42,0.10);
}
/* Tabs + Carousel */
.wks-grades { padding: var(--space-5) var(--space-4); }
.wks-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.48));
  margin-bottom: var(--space-4);
}
@media (min-width: 800px) { .wks-tabs { grid-template-columns: repeat(8, 1fr); } }
.wks-tab {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(255,255,255,0.60);
  cursor: pointer; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}
.wks-tab[aria-selected="true"] {
  background: rgba(37,99,235,0.12);
  outline: 2px solid rgba(37,99,235,0.35);
}
.wks-tab:focus-visible { outline: 3px solid rgba(37,99,235,0.45); outline-offset: 2px; }

.wks-carousel {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.50));
}
.wks-carousel-track { display: grid; gap: var(--space-3); }

/* Slide card */
.wks-slide { display: grid; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius); background: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.6); }
.wks-slide h3 { margin: 0; font-size: 1.02rem; }
.wks-slide img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.wks-slide .wks-topics { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.wks-slide .wks-topics li { padding: 6px 10px; border-radius: 9999px; background: rgba(15,23,42,0.06); border: 1px solid rgba(255,255,255,0.6); font-size: 0.92rem; }
.wks-slide .wks-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Carousel controls */
.wks-carousel-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.wks-prev, .wks-next {
  padding: 8px 12px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.6);
  background: rgba(15,23,42,0.05); cursor: pointer; font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wks-prev:hover, .wks-next:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,0.12); }
.wks-dots { display: flex; gap: 8px; justify-content: center; }
.wks-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(15,23,42,0.25); border: 1px solid rgba(255,255,255,0.6); cursor: pointer; }
.wks-dot[aria-current="true"] { background: rgba(37,99,235,0.9); }

/* How We Teach */
.wks-how { padding: var(--space-5) var(--space-4); }
.wks-how-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 960px) { .wks-how-grid { grid-template-columns: .9fr 1.1fr; } }
.wks-pillars { padding: var(--space-4); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.50)); }
.wks-pillar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.wks-pillar-list li {
  /* Stack badge + paragraph vertically and center-align them in the pillar box */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.wks-pill-badge { display: inline-block; padding: 6px 10px; border-radius: 9999px; background: rgba(37,99,235,0.12); color: var(--primary); font-weight: 800; border: 1px solid rgba(255,255,255,0.6); margin-bottom: 6px; }
.wks-how-text { padding: var(--space-4); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.50)); }
.wks-checklist { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 10px; }
.wks-checklist li { position: relative; padding-left: 26px; }
.wks-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; }

/* Center content inside the How We Teach article */
.wks-how-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wks-how-text p {
  max-width: 56ch;
  margin: 0 0 var(--space-3);
}
.wks-checklist {
  justify-items: center;
  margin-top: var(--space-3);
}
.wks-checklist li {
  padding-left: 0; /* remove left padding for centered layout */
  display: inline-flex;
  align-items: center;
}
.wks-checklist li::before {
  position: static;
  margin-right: 10px;
}

/* FAQ */
.wks-faq { padding: var(--space-5) var(--space-4); }
.wks-faq-list { display: grid; gap: var(--space-3); }
.wks-faq-item { padding: 0; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.50)); transition: box-shadow .25s ease, transform .25s ease; }
.wks-faq-item:hover { box-shadow: 0 16px 40px rgba(37,99,235,0.18); transform: translateY(-2px); }
.wks-faq-q { width: 100%; text-align: left; font-weight: 800; background: transparent; border: 0; padding: 12px 16px; cursor: pointer; position: relative; }
.wks-faq-q:focus-visible { outline: 3px solid rgba(37,99,235,0.45); outline-offset: 2px; }

/* Hide answers by default via CSS so collapsed cards remain small. JS may still set inline max-heights, but this gives a reliable initial state. */

.wks-faq-a {
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 16px;
  padding-right: 16px;
  transition: max-height .28s ease, padding .28s ease;
}
.wks-faq-a p { margin: 0 0 8px; color: rgba(11,18,32,0.86); }

/* When the button is expanded, reveal the adjacent answer */
.wks-faq-q[aria-expanded="true"] + .wks-faq-a {
  max-height: 600px; /* plenty to show the content */
  padding-top: 8px;
  padding-bottom: 8px;
}
.wks-dot { width: 10px; height: 10px; }

/* Add a plus sign indicator on the right of each FAQ question; switch to × when open */
.wks-faq-q { padding-right: 52px; }
.wks-faq-q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  font-size: 1.1rem;
  color: rgba(11,18,32,0.45);
  transition: transform .18s ease, color .18s ease;
  pointer-events: none;
  z-index: 2;
}
.wks-faq-q[aria-expanded="true"]::after {
  content: "\00D7"; /* multiply sign */
  color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

/* Slight visual emphasis for open item */
.wks-faq-q[aria-expanded="true"] {
  color: rgba(11,18,32,0.95);
}

/* Modal */
.wks-modal { border: 0; padding: 0; background: transparent; }
.wks-modal::backdrop { background: rgba(2,8,23,0.45); backdrop-filter: blur(2px); }
.wks-modal-content { position: relative; width: min(100%, 900px); margin: 10vh auto; padding: var(--space-4); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.55)); }
.wks-modal-close { position: absolute; top: 10px; right: 10px; border: 0; background: rgba(15,23,42,0.06); border-radius: 9999px; padding: 6px 10px; cursor: pointer; }
.wks-pdf-holder { height: 70vh; display: grid; place-items: center; background: rgba(15,23,42,0.04); border: 1px solid rgba(255,255,255,0.65); border-radius: var(--radius); margin-bottom: var(--space-3); }
.wks-pdf-holder object { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
/* Worksheets polish */
.wks-tab,
.wks-prev,
.wks-next { -webkit-appearance: none; appearance: none; }

.wks-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15,23,42,0.12);
}

/* Keyboard focus ring for the arrows too */
.wks-prev:focus-visible,
.wks-next:focus-visible {
  outline: 3px solid rgba(37,99,235,0.45);
  outline-offset: 2px;
}
@media (max-width: 420px) {
  .wks-tabs { padding: var(--space-2); gap: var(--space-2); }
  /* Make the grade buttons slightly smaller and guarantee centered, multi-line layout */
  .wks-tab {
    padding: 8px;
    font-size: 0.82rem; /* reduced so "Grade X" fits comfortably */
    text-align: center;
    line-height: 1.05;
    min-height: 56px; /* gives vertical breathing room so text is centered in each box */
    display: inline-flex; /* reinforce centering for multi-line text */
    align-items: center;
    justify-content: center;
    white-space: normal;
  }
}
/* ===== Chat widget (chat-*) ===== */
.chat-launcher{
  position: fixed; right: 18px; bottom: 18px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(37,99,235,0.95); color:#fff; font-size: 22px;
  box-shadow: 0 12px 28px rgba(37,99,235,0.25);
  cursor: pointer;
}
.chat-launcher:hover{ transform: translateY(-2px); }

.chat-widget{ position: fixed; inset: 0; z-index: 998; display: none; }
.chat-widget.open{ display:block; }

.chat-panel{
  position: fixed; right: 18px; bottom: 86px; width: min(360px, 92vw);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(15,23,42,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.55));
  overflow: hidden;
}

.chat-header{ display:flex; justify-content:space-between; align-items:center;
  padding: 12px 14px; border-bottom: 1px solid rgba(15,23,42,.08); }
.chat-close{ background: transparent; border: 0; font-size: 18px; cursor: pointer; }

.chat-body{
  display:flex; flex-direction:column; gap:10px;
  max-height: 55vh; overflow:auto; padding: 12px 14px;
}
.chat-msg{ padding: 10px 12px; border-radius: 14px; max-width: 85%; }
.chat-msg.bot{ align-self:flex-start; background: rgba(15,23,42,0.06); }
.chat-msg.me{ align-self:flex-end; background: rgba(37,99,235,0.12); }

.chat-input-row{
  display:flex; gap:8px; padding: 12px 14px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.chat-input{
  flex:1; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(15,23,42,.04);
}
.chat-footer{
  display:flex; gap: var(--space-2); align-items:center; flex-wrap:wrap;
  padding: 10px 14px; border-top: 1px solid rgba(15,23,42,.08);
}
.chat-note{ color: rgba(11,18,32,.7); }
/* ===== Registration page (reg-*) ===== */
.reg-hero{
  background:
    radial-gradient(900px 400px at -5% 0%, rgba(37,99,235,0.06), transparent),
    radial-gradient(700px 300px at 105% 25%, rgba(59,130,246,0.06), transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
}
.reg-grid{ display:grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 1000px){ .reg-grid{ grid-template-columns: 1.2fr .8fr; } }
.reg-links{ margin-top: var(--space-3); }

.reg-form .input{
  width:100%; padding:12px 14px; border-radius: var(--radius-sm);
  border:1px solid var(--glass-border); background: rgba(15,23,42,.04);
}
.reg-fields{ display:grid; gap: var(--space-3); }
.reg-divider{ border:0; height:1px; background: rgba(15,23,42,.08); margin: var(--space-3) 0; }

/* Toast after redirect */
#hst-toast{
  position: fixed; left:50%; transform: translateX(-50%); bottom: 18px; z-index: 2000;
  background: rgba(37,99,235,.98); color:#fff; padding: 12px 16px; border-radius: 9999px;
  box-shadow: 0 16px 38px rgba(37,99,235,.30);
}
/* About teacher image polish */
.about-media img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:16px;        /* matches your rounded theme */
  object-fit:cover;
  box-shadow: var(--shadow-1);
}
.hero-art img {
  display: block; width: 100%;
  height: clamp(260px, 40vw, 520px);
  object-fit: cover;
  border-radius: var(--radius);
}
/* wks: locked thumbnail default */
.wks-carousel img,
.wks-slide img,
.wks-thumb img,
img[data-role="wks-thumb"]{
  display: block;
  width: 100%;
  height: clamp(180px, 28vw, 260px);
  object-fit: contain;         /* show the full lock image */
  background: #fff;
  border-radius: var(--radius-lg);
}
/* ===============================
   Contact / Enroll page (ce-*)
   =============================== */

/* Two-panel layout (left: times summary, right: form) */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Selected times pills */
#ce-slots,
.selected-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}
#ce-slots .slot-pill,
.selected-slots .slot-pill {
  list-style: none;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid rgba(25, 69, 154, 0.12);
  color: var(--text-1);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
#ce-slots .muted,
.selected-slots .muted {
  list-style: none;
  opacity: 0.65;
}

/* Contact/enroll form */
.reg-form label {
  display: block;
  color: var(--text-1);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.reg-form .input,
.reg-form label .input {
  appearance: none;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(25, 69, 154, 0.15);
  background: var(--glass-bg);
  color: var(--text-1);
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.03);
}
.reg-form .input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(45, 119, 255, 0.2);
}

/* Contact card list */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.contact-list a {
  color: var(--brand-primary);
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

/* CTA container: use gap so buttons get consistent horizontal and vertical spacing when wrapped */
.section-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.section-cta .btn { margin: 0; }
/* ===============================
   Contact / Enroll page (ce-*)
   =============================== */

/* Two-panel layout (left: times summary, right: form) */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Selected times pills */
#ce-slots,
.selected-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}
#ce-slots .slot-pill,
.selected-slots .slot-pill {
  list-style: none;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid rgba(25, 69, 154, 0.12);
  color: var(--text-1);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
#ce-slots .muted,
.selected-slots .muted {
  list-style: none;
  opacity: 0.65;
}

/* Contact/enroll form */
.reg-form label {
  display: block;
  color: var(--text-1);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.reg-form .input,
.reg-form label .input {
  appearance: none;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(25, 69, 154, 0.15);
  background: var(--glass-bg);
  color: var(--text-1);
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.03);
}
.reg-form .input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(45, 119, 255, 0.2);
}

/* Contact card list */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.contact-list a {
  color: var(--brand-primary);
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

/* Minor spacing for CTA buttons */
.section-cta .btn { margin-right: var(--space-2); }
/* ===========================
   Site background (scroll-reactive)
   =========================== */

/* Tunables (JS will update these) */
:root{
  /* How visible the droplets are (0–1) */
  --bg-drop-opacity: 0.22;   /* at top — stronger default */
  /* How blurry the droplets are (px) */
  --bg-drop-blur: 36px;      /* at top — heavier blur initially */
  /* Overlay color that sits above the image and below content */
  --bg-overlay: rgba(255,255,255,0.9);     /* mostly opaque to start */
}

/* Create two fixed layers behind everything using pseudo elements.
   No HTML changes needed. */
body::before,
body::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;            /* keep behind all content */
}

/* Droplets image layer */
body::before{
  background-image: url("../img/bg-droplets.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;   /* subtle parallax feel */
  opacity: var(--bg-drop-opacity);
  filter: blur(var(--bg-drop-blur));
  transform: scale(1.03);         /* hide blur edges */
  will-change: opacity, filter, transform;
}

/* Tint/overlay layer – makes start white, blends to brand blue */
body::after{
  z-index: -1;                    /* above image, below page */
  background: var(--bg-overlay);
  transition: background 200ms linear; /* smooth color change on resize */
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  body::before{ filter: blur(14px); }
}
/* ===========================
   Mobile fit: scheduler + page sizing
   =========================== */
@media (max-width: 640px) {
  /* Tighter container padding so the grid has more room */
  .container { padding-inline: 14px; }

  /* Headline & helper text already use clamp(), so they scale fine.
     We only tighten the grid itself. */

  /* Apply to BOTH pages:
     - Programs & Pricing grid uses .grid-head + .slot-grid
     - Registration grid uses #reg-slot-grid (time cells carry .timecell) */
  .grid-head,
  .slot-grid,
  #reg-slot-grid {
    /* Make time column narrower on phones, keep 4 equal day columns */
    grid-template-columns: 84px repeat(4, 1fr);
    column-gap: 8px;
  }

  /* Time labels: smaller, wrap nicely */
  .timecell {
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.15;
    word-break: break-word;
    white-space: normal; /* allow wrap for times like "4:00 PM – 5:30 PM" */
  }

  /* Slot buttons: shorter & tighter for more rows on screen */
  .slot {
    min-height: 40px;
    padding: 6px 6px;
    font-size: 0.95rem;
  }

  /* Legend pills: shrink spacing a touch */
  .legend { gap: 12px; }
}

/* Extra guard for super-small screens */
@media (max-width: 380px) {
  .grid-head,
  .slot-grid,
  #reg-slot-grid {
    grid-template-columns: 76px repeat(4, 1fr);
  }
  .timecell { font-size: 11px; }
  .slot     { min-height: 38px; font-size: 0.9rem; }
}
/* ============================================
   Mobile polish — Programs & Pricing + Register
   ============================================ */

/* Make the sticky header span the full device width
   (handles iOS safe-area too) */
.site-header{
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  border-radius: 0;                 /* no rounded edge on mobile */
}

/* When the page contains Programs or Registration sections,
   let the header’s inner container go full-bleed */
body:has(.pp-hero) .site-header .container,
body:has(.reg-hero) .site-header .container{
  max-width: 100%;
  width: 100%;
  padding-inline: clamp(16px, 4vw, 24px);
}

/* Keep all content nicely centered on these two pages */
body:has(.pp-hero) .container,
body:has(.reg-hero) .container{
  max-width: 980px; /* slightly larger so content feels balanced with the grid */
}

/* Center the scheduler panels and give them comfortable width */
@media (max-width: 640px){

  /* Center the cards */
  body:has(.pp-scheduler) .sched-layout,
  body:has(.reg-grid) .reg-grid{
    justify-items: center;
  }

  /* Make the grid cards fill available width but remain readable */
  body:has(.pp-scheduler) .grid-panel,
  body:has(.pp-scheduler) .summary,
  body:has(.reg-hero) .grid-panel,
  body:has(.reg-hero) .summary{
    width: min(100%, 680px);
    margin-inline: auto;
  }

  /* Slightly larger, centered grid for better tap-targets */
  .grid-head,
  .slot-grid,
  #reg-slot-grid{
    grid-template-columns: 92px repeat(4, 1fr); /* wider time column + even day cols */
    column-gap: 12px;
  }
  .timecell{ font-size: 13px; line-height: 1.2; padding: 8px 6px; }
  .slot{ min-height: 46px; font-size: 1rem; }
}

/* Super-small phones */
@media (max-width: 380px){
  .grid-head,
  .slot-grid,
  #reg-slot-grid{ grid-template-columns: 84px repeat(4, 1fr); }
}