/* =========================================================
   Phase 6 — Landing Page
   Append this block to public/css/style.css
   ========================================================= */

.landing-page {
  --landing-navy: #0f172a;
  --landing-slate: #1e293b;
  --landing-blue: #2563eb;
  --landing-sky: #38bdf8;
  --landing-mist: #f1f5f9;
  --landing-border: rgba(148, 163, 184, 0.28);
  min-height: 100vh;
  margin: 0;
  color: var(--landing-navy);
  background:
    radial-gradient(circle at 12% 12%, rgba(96, 165, 250, 0.17), transparent 25rem),
    radial-gradient(circle at 88% 82%, rgba(14, 165, 233, 0.13), transparent 27rem),
    var(--landing-mist);
  overflow-x: hidden;
  position: relative;
}

.landing-page *,
.landing-page *::before,
.landing-page *::after {
  box-sizing: border-box;
}

.landing-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.landing-grid {
  position: absolute;
  top: 50%;
  left: -11rem;
  width: min(62vw, 43rem);
  opacity: 0.28;
  stroke: #93c5fd;
  stroke-width: 1;
  transform: translateY(-48%) rotate(-10deg);
}

.landing-grid .grid-curve {
  stroke: #3b82f6;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.orbit {
  position: absolute;
  display: block;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(59, 130, 246, 0.17);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 27%;
  border: inherit;
  border-radius: inherit;
}

.orbit::before {
  transform: rotate(58deg) scaleX(1.9);
}

.orbit::after {
  transform: rotate(-58deg) scaleX(1.9);
}

.orbit-one {
  top: -7rem;
  right: 7vw;
  animation: float-orbit 14s ease-in-out infinite alternate;
}

.orbit-two {
  bottom: -12rem;
  left: 28vw;
  width: 15rem;
  height: 15rem;
  opacity: 0.65;
  animation: float-orbit 18s ease-in-out infinite alternate-reverse;
}

.formula {
  position: absolute;
  color: rgba(30, 41, 59, 0.19);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
}

.formula-one {
  top: 23%;
  right: 7%;
  transform: rotate(-11deg);
}

.formula-two {
  bottom: 17%;
  right: 15%;
  transform: rotate(9deg);
}

.formula-three {
  top: 67%;
  left: 8%;
  transform: rotate(-7deg);
}

.landing-header {
  width: min(100% - 3rem, 76rem);
  min-height: 6.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--landing-navy);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--landing-blue), #0f3d9d);
  border-radius: 0.95rem;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.brand-mark svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-text {
  display: grid;
  line-height: 1.22;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-text small {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 600;
}

.header-access-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.teacher-entry-card {
  display: inline-flex;
  align-items: center;
  gap: 0.64rem;
  min-height: 4.25rem;
  padding: 0.42rem 0.55rem 0.42rem 0.88rem;
  color: #f8fafc;
  background:
    radial-gradient(circle at 92% 10%, rgba(56, 189, 248, 0.19), transparent 38%),
    linear-gradient(135deg, #17223a 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.15rem;
  box-shadow: 0 13px 28px rgba(15, 23, 42, 0.19);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.teacher-entry-photo {
  width: 3.05rem;
  height: 3.05rem;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(125, 211, 252, 0.58);
  border-radius: 0.88rem;
  box-shadow: 0 5px 14px rgba(2, 6, 23, 0.35);
}

.teacher-entry-copy {
  display: grid;
  gap: 0.09rem;
  min-width: 0;
  line-height: 1.25;
}

.teacher-entry-copy strong {
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.teacher-entry-copy small {
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.teacher-entry-arrow {
  color: #7dd3fc;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.teacher-entry-card:hover {
  border-color: rgba(125, 211, 252, 0.48);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.27);
  transform: translateY(-0.2rem);
}

.teacher-entry-card:hover .teacher-entry-arrow {
  transform: translateX(-0.22rem);
}

.header-login-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-login-link span {
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.header-login-link:hover {
  color: var(--landing-blue);
}

.header-login-link:hover span {
  transform: translateX(-0.28rem);
}

.landing-hero {
  display: grid;
  width: min(100% - 3rem, 76rem);
  min-height: calc(100vh - 10.5rem);
  margin: 0 auto;
  place-items: center;
  padding: 2.5rem 0 3.5rem;
}

.hero-content {
  width: min(100%, 61rem);
  text-align: center;
  animation: hero-enter 0.8s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.48rem 0.85rem;
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.68);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 700;
}

.kicker-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 0 0.24rem rgba(59, 130, 246, 0.13);
}

.hero-content h1 {
  max-width: 50rem;
  margin: 0 auto;
  color: var(--landing-navy);
  font-size: clamp(2.05rem, 5.25vw, 4.25rem);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.035em;
}

.hero-content h1::first-line {
  color: #1d4ed8;
}

.hero-description {
  max-width: 42rem;
  margin: 1.25rem auto 1.6rem;
  color: #475569;
  font-size: clamp(0.97rem, 1.7vw, 1.12rem);
  font-weight: 500;
  line-height: 2;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  margin-bottom: 2rem;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
}

.highlight-icon {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  color: #2563eb;
  background: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 0.53rem;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.highlight-icon svg,
.cta-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.landing-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
}

.landing-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.9rem;
  padding: 1rem 1.05rem;
  overflow: hidden;
  border-radius: 1.15rem;
  text-align: right;
  text-decoration: none;
  transition: all 0.3s ease;
}

.landing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.2), transparent 65%);
  transform: translateX(125%);
  transition: transform 0.6s ease;
}

.landing-cta:hover::before {
  transform: translateX(-125%);
}

.landing-cta:focus-visible,
.teacher-entry-card:focus-visible,
.header-login-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.44);
  outline-offset: 4px;
}

.cta-icon {
  display: grid;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  margin-left: 0.72rem;
  place-items: center;
  border-radius: 0.8rem;
}

.landing-cta > span:nth-child(2) {
  display: grid;
  gap: 0.08rem;
}

.landing-cta strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.landing-cta small {
  font-size: 0.72rem;
  font-weight: 600;
}

.cta-arrow {
  position: absolute;
  inset-inline-start: 1.05rem;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.landing-cta:hover {
  transform: translateY(-0.38rem);
}

.landing-cta:hover .cta-arrow {
  transform: translateX(-0.3rem);
}

.cta-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 13px 25px rgba(37, 99, 235, 0.28);
}

.cta-primary .cta-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.cta-primary small {
  color: rgba(255, 255, 255, 0.76);
}

.cta-primary:hover {
  box-shadow: 0 19px 34px rgba(37, 99, 235, 0.38);
}

.cta-parent {
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.26);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.cta-parent .cta-icon {
  color: #2563eb;
  background: #eff6ff;
}

.cta-parent small {
  color: #64748b;
}

.cta-parent:hover {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.11);
}

.cta-public-free {
  color: #991b1b;
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  border: 1px solid #eab308;
  box-shadow: 0 13px 28px rgba(202, 138, 4, 0.28);
  animation: publicCtaPulse 2.4s ease-in-out infinite;
}

.cta-public-free .cta-icon {
  color: #b91c1c;
  background: rgba(255, 255, 255, 0.48);
}

.cta-public-free small { color: #7f1d1d; }
.cta-public-free:hover {
  color: #7f1d1d;
  box-shadow: 0 20px 38px rgba(185, 28, 28, 0.25);
  filter: saturate(1.12);
}

@keyframes publicCtaPulse {
  0%, 100% { box-shadow: 0 13px 28px rgba(202, 138, 4, 0.22); }
  50% { box-shadow: 0 16px 35px rgba(220, 38, 38, 0.32); }
}

.public-class-modal[hidden] { display: none; }
.public-class-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.public-class-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  animation: publicModalFade 0.2s ease both;
}
.public-class-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 27rem);
  padding: 2rem 1.45rem 1.35rem;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(254, 202, 202, 0.92);
  border-radius: 1.35rem;
  background: linear-gradient(160deg, #ffffff 0%, #fff7f7 100%);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.3);
  animation: publicModalRise 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.public-class-modal-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.28rem;
  content: "";
  background: linear-gradient(90deg, #dc2626, #f59e0b);
}
.public-class-modal-close {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
}
.public-class-modal-icon {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 0.8rem;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: 0.45rem solid #fee2e2;
  border-radius: 1.1rem;
  font-size: 1.5rem;
  font-weight: 900;
}
.public-class-modal-kicker {
  margin: 0;
  color: #b91c1c;
  font-size: 0.74rem;
  font-weight: 900;
}
.public-class-modal-card h2 {
  margin: 0.35rem 0 0;
  color: #7f1d1d;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  line-height: 1.55;
}
.public-class-modal-card p:not(.public-class-modal-kicker) {
  margin: 0.7rem auto 1.3rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.8;
}
.public-class-modal-action {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 0;
  border-radius: 0.8rem;
  box-shadow: 0 10px 22px rgba(185, 28, 28, 0.22);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.public-class-modal-action:hover { box-shadow: 0 14px 28px rgba(185, 28, 28, 0.32); transform: translateY(-0.08rem); }
.public-class-modal-close:focus-visible,
.public-class-modal-action:focus-visible { outline: 3px solid rgba(220, 38, 38, 0.28); outline-offset: 3px; }
body.public-class-modal-open { overflow: hidden; }
@keyframes publicModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes publicModalRise { from { opacity: 0; transform: translateY(0.7rem) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.cta-teacher {
  color: #e2e8f0;
  background: #172033;
  border: 1px solid #25334b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.17);
}

.cta-teacher .cta-icon {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
}

.cta-teacher small {
  color: #94a3b8;
}

.cta-teacher:hover {
  color: #ffffff;
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 19px 34px rgba(15, 23, 42, 0.28);
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: min(100% - 3rem, 76rem);
  min-height: 4rem;
  margin: 0 auto;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.landing-footer p {
  margin: 0;
}

.footer-rule {
  width: 1.5rem;
  height: 1px;
  background: #cbd5e1;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-orbit {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(0, 1.4rem, 0) rotate(9deg);
  }
}

@media (max-width: 52rem) {
  .landing-actions {
    grid-template-columns: 1fr;
    max-width: 30rem;
  }

  .landing-cta {
    min-height: 5.2rem;
  }

  .formula-three,
  .orbit-two {
    display: none;
  }
}

@media (max-width: 34rem) {
  .landing-header,
  .landing-hero,
  .landing-footer {
    width: min(100% - 2rem, 76rem);
  }

  .landing-header {
    min-height: 5.5rem;
  }

  .brand-mark {
    width: 2.55rem;
    height: 2.55rem;
  }

  .brand-text strong {
    font-size: 0.88rem;
  }

  .brand-text small {
    font-size: 0.65rem;
  }

  .header-access-links {
    gap: 0.5rem;
  }

  .teacher-entry-card {
    min-height: 3.35rem;
    gap: 0.4rem;
    padding: 0.28rem 0.35rem 0.28rem 0.55rem;
    border-radius: 0.85rem;
  }

  .teacher-entry-photo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.66rem;
  }

  .teacher-entry-copy small,
  .teacher-entry-arrow {
    display: none;
  }

  .teacher-entry-copy strong {
    font-size: 0.7rem;
  }

  .header-login-link {
    font-size: 0.76rem;
  }

  .landing-hero {
    min-height: calc(100vh - 9.5rem);
    padding: 1.25rem 0 2rem;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
    line-height: 1.43;
  }

  .hero-description {
    margin-top: 1rem;
    font-size: 0.91rem;
    line-height: 1.9;
  }

  .hero-highlights {
    gap: 0.55rem 0.8rem;
    margin-bottom: 1.45rem;
  }

  .hero-highlight {
    font-size: 0.76rem;
  }

  .formula-two {
    right: 2%;
    bottom: 11%;
  }

  .landing-footer {
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    padding: 0.7rem 0;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page *,
  .landing-page *::before,
  .landing-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Keep the academy identity visually centered on the landing page. */
.landing-header {
  position: relative;
  justify-content: flex-start;
}

.landing-header .brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 52rem) {
  .landing-header {
    justify-content: center;
  }

  .landing-header .brand {
    position: static;
    transform: none;
  }

  .landing-header .header-access-links {
    position: absolute;
    inset-inline-start: 0;
  }
}

@media (max-width: 34rem) {
  .landing-header .header-access-links {
    position: static;
  }
}

/* WebRTC QoS indicators in the teacher studio */
.attendee-qos{display:block;margin-top:.18rem;color:#94a3b8;font-size:.66rem;font-weight:700;line-height:1.35}.attendee-qos.good{color:#86efac}.attendee-qos.warn{color:#fde68a}.attendee-qos.bad{color:#fca5a5}


/* Weekly class schedule section */
.class-schedule {
  --schedule-body: var(--background-body, #f3f4f6);
  --schedule-text: var(--text-main, var(--landing-navy, #111827));
  position: relative;
  padding: 4rem 1rem;
  overflow: hidden;
  background: var(--schedule-body);
}

.class-schedule::before {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  width: min(80vw, 48rem);
  height: 12rem;
  content: "";
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.class-schedule-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.class-schedule-heading {
  max-width: 46rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.class-schedule-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: #2563eb;
  font-family: "Tajawal", "Cairo", Tahoma, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.class-schedule .section-title {
  margin: 0;
  color: var(--schedule-text);
  font-family: "Tajawal", "Cairo", Tahoma, sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.5;
}

.class-schedule-heading p {
  margin: 0.65rem auto 0;
  color: #64748b;
  font-family: "Tajawal", "Cairo", Tahoma, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.8;
}

.class-schedule-frame {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.3rem;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.class-schedule-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-schedule-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

@media (max-width: 34rem) {
  .class-schedule {
    padding: 3rem 0.75rem;
  }

  .class-schedule-heading {
    margin-bottom: 1.35rem;
  }

  .class-schedule-heading p {
    font-size: 0.82rem;
  }

  .class-schedule-frame {
    padding: 0.35rem;
    border-radius: 0.95rem;
  }

  .class-schedule-image {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .class-schedule-image {
    transition: none;
  }

  .class-schedule-image:hover {
    transform: none;
  }
}

/* Student testimonials */
.student-testimonials {
  position: relative;
  overflow: hidden;
  padding: clamp(4.2rem, 8vw, 7rem) 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}
.student-testimonials::before,
.student-testimonials::after { position: absolute; content: ""; width: 18rem; height: 18rem; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.student-testimonials::before { top: 4rem; right: -8rem; background: rgba(37, 99, 235, 0.08); }
.student-testimonials::after { bottom: -10rem; left: -7rem; background: rgba(14, 165, 233, 0.08); }
.student-testimonials-inner { position: relative; z-index: 1; width: min(100%, 70rem); margin: 0 auto; }
.student-testimonials-heading { max-width: 42rem; margin: 0 auto 2rem; text-align: center; }
.student-testimonials-kicker,
.testimonial-featured-label { display: inline-flex; align-items: center; gap: 0.45rem; color: #2563eb; font-size: 0.74rem; font-weight: 900; }
.student-testimonials-kicker::before,
.testimonial-featured-label::before { width: 0.45rem; height: 0.45rem; content: ""; background: #2563eb; border-radius: 50%; box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.12); }
.student-testimonials-heading .section-title { margin: 0.5rem 0 0; color: #0f172a; }
.student-testimonials-heading p { margin: 0.7rem auto 0; color: #64748b; font-size: 0.86rem; line-height: 1.9; }
.testimonial-featured { display: grid; grid-template-columns: minmax(13rem, 0.78fr) minmax(0, 1.5fr); gap: clamp(1rem, 3vw, 2rem); align-items: center; margin-bottom: 1.2rem; padding: clamp(1rem, 3vw, 1.5rem); background: #0f1f3d; border: 1px solid rgba(147, 197, 253, 0.32); border-radius: 1.35rem; box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.16); }
.testimonial-featured-copy { padding: 0.5rem; }
.testimonial-featured-label { color: #bfdbfe; }
.testimonial-featured-label::before { background: #60a5fa; box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.16); }
.testimonial-featured-copy h3 { margin: 0.7rem 0 0; color: #ffffff; font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.45; }
.testimonial-featured-copy p { margin: 0.65rem 0 0; color: #cbd5e1; font-size: 0.82rem; line-height: 1.85; }
.testimonial-featured-video,
.testimonial-card video { display: block; width: 100%; background: #020617; object-fit: cover; border-radius: 0.9rem; }
.testimonial-featured-video { aspect-ratio: 16 / 9; }
.testimonial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.testimonial-card { min-width: 0; padding: 0.55rem; background: rgba(255, 255, 255, 0.9); border: 1px solid #dbeafe; border-radius: 1rem; box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.06); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.testimonial-card:hover { border-color: #93c5fd; box-shadow: 0 1rem 2rem rgba(37, 99, 235, 0.12); transform: translateY(-0.18rem); }
.testimonial-card video { aspect-ratio: 9 / 13; }
.testimonial-card > div { display: grid; gap: 0.15rem; padding: 0.55rem 0.35rem 0.25rem; }
.testimonial-card strong { color: #0f172a; font-size: 0.76rem; }
.testimonial-card span { overflow: hidden; color: #64748b; font-size: 0.64rem; text-overflow: ellipsis; white-space: nowrap; }
.testimonial-card.is-more { display: none; }
.testimonial-card.is-more.is-visible { display: block; animation: testimonial-card-in 0.25s ease both; }
.testimonials-more-button { display: block; min-height: 2.6rem; margin: 1.3rem auto 0; padding: 0.55rem 1rem; color: #1d4ed8; background: #ffffff; border: 1px solid #93c5fd; border-radius: 0.75rem; font: inherit; font-size: 0.76rem; font-weight: 900; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.testimonials-more-button:hover { background: #eff6ff; box-shadow: 0 0.7rem 1.3rem rgba(37, 99, 235, 0.12); transform: translateY(-0.1rem); }
@keyframes testimonial-card-in { from { opacity: 0; transform: translateY(0.35rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 48rem) { .testimonial-featured { grid-template-columns: 1fr; } .testimonial-featured-copy { padding: 0.15rem; } .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .student-testimonials { padding-inline: 0.75rem; } .testimonial-featured { padding: 0.8rem; border-radius: 1rem; } .testimonial-grid { gap: 0.6rem; } .testimonial-card { padding: 0.4rem; border-radius: 0.75rem; } }
@media (prefers-reduced-motion: reduce) { .testimonial-card, .testimonials-more-button { transition: none; } .testimonial-card.is-more.is-visible { animation: none; } }

/* Parent dashboard level schedule card */
.level-schedule-card { display: grid; gap: 1rem; margin: 1rem 0 1.35rem; padding: clamp(1rem, 2.5vw, 1.35rem); background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%); border: 1px solid #bfdbfe; border-radius: 1.2rem; box-shadow: 0 0.9rem 2.2rem rgba(30, 64, 175, 0.08); }
.level-schedule-card[hidden] { display: none; }
.level-schedule-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.level-schedule-kicker { display: inline-flex; color: #2563eb; font-size: 0.7rem; font-weight: 900; }
.level-schedule-heading h2 { margin: 0.25rem 0 0; color: #0f172a; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.level-schedule-heading p { margin: 0.35rem 0 0; color: #64748b; font-size: 0.73rem; line-height: 1.8; }
.level-schedule-badge { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 2rem; padding: 0.35rem 0.65rem; color: #1d4ed8; background: #dbeafe; border: 1px solid #93c5fd; border-radius: 999px; font-size: 0.68rem; font-weight: 900; }
.level-schedule-image-button { position: relative; display: block; width: min(100%, 31rem); margin: 0 auto; padding: 0.45rem; overflow: hidden; background: #ffffff; border: 1px solid #dbeafe; border-radius: 0.95rem; cursor: zoom-in; box-shadow: 0 0.6rem 1.5rem rgba(15, 23, 42, 0.08); }
.level-schedule-image-button img { display: block; width: 100%; height: auto; max-height: 34rem; object-fit: contain; border-radius: 0.65rem; }
.level-schedule-image-button span { position: absolute; right: 0.9rem; bottom: 0.9rem; padding: 0.35rem 0.55rem; color: #ffffff; background: rgba(15, 23, 42, 0.72); border-radius: 0.45rem; font-size: 0.65rem; font-weight: 800; }
.level-schedule-image-modal[hidden] { display: none; }
.level-schedule-image-modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 1rem; }
.level-schedule-image-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.78); backdrop-filter: blur(8px); }
.level-schedule-image-dialog { position: relative; z-index: 1; width: min(100%, 44rem); max-height: 94vh; padding: 1rem; overflow: auto; background: #ffffff; border-radius: 1rem; box-shadow: 0 1.5rem 4rem rgba(2, 6, 23, 0.35); }
.level-schedule-image-dialog h2 { margin: 0.2rem 0 0.8rem; color: #0f172a; font-size: 1.05rem; }
.level-schedule-image-dialog img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 0.65rem; }
.level-schedule-image-close { position: absolute; top: 0.65rem; left: 0.65rem; z-index: 2; display: grid; width: 2rem; height: 2rem; place-items: center; color: #991b1b; background: #fff1f2; border: 1px solid #fecaca; border-radius: 0.55rem; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 38rem) { .level-schedule-heading { flex-direction: column; } .level-schedule-badge { align-self: flex-start; } .level-schedule-card { margin-inline: 0; } }

/* Parent dashboard: prominent next-class card */
.parent-next-class-card { margin: 0 0 1rem; padding: clamp(1.15rem, 3vw, 1.65rem); border: 1px solid #bfdbfe; border-radius: 1.25rem; background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%); box-shadow: 0 1rem 2.6rem rgba(37, 99, 235, 0.13); }
.parent-next-class-card[hidden] { display: none; }
.parent-next-class-card .parent-schedule-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid #dbeafe; }
.parent-next-class-card .parent-schedule-head span:first-child { color: #2563eb; font-size: .72rem; font-weight: 900; }
.parent-next-class-card .parent-schedule-head h2 { margin: .2rem 0 0; color: #0f172a; font-size: clamp(1.15rem, 3vw, 1.55rem); }
.parent-next-class-status { display: inline-flex; align-items: center; min-height: 2rem; padding: .35rem .7rem; color: #1d4ed8; background: #dbeafe; border: 1px solid #93c5fd; border-radius: 999px; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.parent-next-class-status.is-live { color: #ffffff; background: #2563eb; border-color: #2563eb; box-shadow: 0 .35rem .9rem rgba(37, 99, 235, .25); }
.parent-next-class-card .parent-schedule-list { margin-top: 1rem; }
.parent-next-class-state {
  display: grid;
  min-height: 6.2rem;
  align-content: center;
  gap: .35rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  color: #991b1b;
  background: linear-gradient(135deg, #fff1f2, #fee2e2);
  border: 3px solid #ef4444;
  border-radius: 1rem;
  box-shadow: 0 .55rem 1.25rem rgba(220, 38, 38, .16);
  text-align: center;
}
.parent-next-class-state[hidden] { display: none; }
.parent-next-class-state strong { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 950; }
.parent-next-class-state span { color: #b91c1c; font-size: .78rem; font-weight: 800; line-height: 1.7; }
.parent-next-class-state.is-live { color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: #60a5fa; box-shadow: 0 .55rem 1.25rem rgba(37, 99, 235, .25); }
.parent-next-class-state.is-live span { color: #dbeafe; }
.parent-next-class-card .teacher-absence-notice { margin: .9rem 0 0; }
.parent-next-class-card .parent-schedule-item { grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; min-height: 7rem; padding: 1rem 1.1rem; border: 1px solid #bfdbfe; border-radius: 1rem; background: rgba(255, 255, 255, .86); box-shadow: 0 .45rem 1.2rem rgba(15, 23, 42, .06); }
.parent-next-class-card .parent-schedule-item strong { color: #0f172a; font-size: clamp(1rem, 2.2vw, 1.3rem); }
.parent-next-class-card .parent-schedule-item span { margin-top: .45rem; color: #475569; font-size: clamp(.78rem, 1.8vw, .95rem); }
.parent-next-class-card .parent-schedule-subject-icon { width: 3rem; height: 3rem; color: #1d4ed8; background: #dbeafe; border-radius: .9rem; font-size: 1.55rem; }
.parent-next-class-card .parent-schedule-join { grid-column: 1 / -1; justify-self: center; width: min(100%, 30rem); min-height: 3.35rem; padding: .75rem 1rem; border-radius: .8rem; font-size: .88rem; font-weight: 900; }
.parent-next-class-card .parent-schedule-join.is-live { color: #ffffff; background: #2563eb; border-color: #2563eb; box-shadow: 0 .55rem 1.2rem rgba(37, 99, 235, .28); animation: next-class-live-pulse 1.8s ease-in-out infinite; }
.parent-next-class-card .parent-schedule-join.is-live:hover { background: #1d4ed8; }
@keyframes next-class-live-pulse { 0%, 100% { box-shadow: 0 .55rem 1.2rem rgba(37, 99, 235, .22); } 50% { box-shadow: 0 .55rem 1.7rem rgba(37, 99, 235, .44); } }
@media (max-width: 650px) { .parent-next-class-state { min-height: 5.7rem; padding: .85rem .75rem; } .parent-next-class-card .parent-schedule-item { grid-template-columns: 2.5rem minmax(0, 1fr); min-height: 0; } .parent-next-class-card .parent-schedule-subject-icon { width: 2.5rem; height: 2.5rem; } .parent-next-class-card .parent-schedule-join { grid-column: 1 / -1; justify-self: stretch; width: 100%; } .parent-next-class-card .parent-schedule-head { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .parent-next-class-card .parent-schedule-join.is-live { animation: none; } }

/* Parent class registry: collapsible three-bar navigation */
.class-registry-student { overflow: hidden; margin: 1rem 0; border: 1px solid #dbeafe; border-radius: 1.25rem; background: #ffffff; box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .06); }
.class-registry-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; padding: 1.1rem 1.25rem; color: #0f172a; background: linear-gradient(135deg, #ffffff, #eff6ff); border: 0; text-align: right; font: inherit; cursor: pointer; }
.class-registry-toggle-copy { display: grid; gap: .18rem; min-width: 0; }
.class-registry-toggle-copy > span { color: #2563eb; font-size: .72rem; font-weight: 900; }
.class-registry-toggle-copy strong { font-size: clamp(1rem, 2.8vw, 1.35rem); line-height: 1.5; }
.class-registry-toggle-copy small { color: #64748b; font-size: .7rem; font-weight: 600; }
.class-registry-toggle-icon { display: grid; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; place-items: center; color: #1d4ed8; background: #dbeafe; border: 1px solid #93c5fd; border-radius: .75rem; font-size: 1.45rem; font-weight: 900; }
.class-registry-toggle:hover { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.class-registry-toggle:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: -3px; }
.class-registry-controls { display: grid; gap: .9rem; padding: 1rem 1.1rem 1.2rem; border-top: 1px solid #dbeafe; background: #f8fbff; }
.class-registry-controls[hidden] { display: none; }
.class-registry-filter-bar { display: grid; gap: .55rem; padding: .75rem; border: 1px solid #dbeafe; border-radius: .9rem; background: #ffffff; }
.class-registry-filter-label { color: #334155; font-size: .75rem; font-weight: 900; }
.class-registry-select { width: 100%; min-height: 2.65rem; padding: .55rem .75rem; color: #1e293b; background: #f8fbff; border: 1px solid #bfdbfe; border-radius: .7rem; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.class-registry-select:focus { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: 1px; border-color: #2563eb; }
.class-registry-select:disabled { color: #94a3b8; background: #f8fafc; border-color: #e2e8f0; cursor: not-allowed; }
.class-registry-options { display: flex; flex-wrap: wrap; gap: .55rem; }
.class-registry-option { min-height: 2.55rem; padding: .55rem .8rem; color: #475569; background: #ffffff; border: 1px solid #cbd5e1; border-radius: .7rem; font: inherit; font-size: .73rem; font-weight: 800; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.class-registry-option:hover { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; transform: translateY(-1px); }
.class-registry-option.is-active { color: #ffffff; background: #2563eb; border-color: #2563eb; box-shadow: 0 .35rem .8rem rgba(37, 99, 235, .2); }
.class-registry-option:focus-visible { outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 2px; }
.class-registry-option:disabled { color: #94a3b8; background: #f8fafc; border-color: #e2e8f0; cursor: not-allowed; transform: none; }
.class-registry-filter-placeholder { display: inline-flex; align-items: center; min-height: 2.55rem; padding: .55rem .8rem; color: #94a3b8; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: .7rem; font-size: .73rem; font-weight: 700; }
.class-registry-list { display: grid; gap: .75rem; }
.class-registry-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid #dbe3ef; border-radius: 1rem; background: #ffffff; box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .04); }
.class-registry-item-copy { display: grid; gap: .22rem; min-width: 0; }
.class-registry-item-copy strong { color: #0f172a; font-size: .95rem; }
.class-registry-item-copy span { color: #64748b; font-size: .74rem; font-weight: 700; }
.class-registry-item-copy em { justify-self: start; padding: .25rem .55rem; color: #64748b; background: #f1f5f9; border-radius: 999px; font-size: .67rem; font-style: normal; font-weight: 800; }
.class-registry-item.status-completed { border-color: #86efac; background: linear-gradient(135deg, #f0fdf4, #ffffff); }
.class-registry-item.status-completed .class-registry-item-copy em { color: #15803d; background: #dcfce7; }
.class-registry-item.status-teacher_absent { border-color: #fecaca; background: #fff7f7; }
.registry-watch-button, .registry-lock-button { min-height: 2.7rem; padding: .55rem .8rem; border-radius: .7rem; font: inherit; font-size: .72rem; font-weight: 900; cursor: pointer; }
.registry-watch-button { color: #166534; background: #dcfce7; border: 1px solid #86efac; }
.registry-watch-button:hover { color: #ffffff; background: #16a34a; }
.registry-lock-button { color: #b45309; background: #fff7ed; border: 1px solid #fed7aa; }
.registry-lock-button:not(:disabled):hover { color: #ffffff; background: #ea580c; }
.registry-lock-button:disabled { color: #94a3b8; background: #f1f5f9; border-color: #e2e8f0; cursor: not-allowed; }
.class-registry-note { grid-column: 1 / -1; margin: 0; padding: .55rem .7rem; color: #475569; background: #f8fafc; border-radius: .6rem; font-size: .72rem; line-height: 1.8; }
.class-registry-empty, .class-registry-loading { margin: 0; padding: 1.2rem; color: #64748b; border: 1px dashed #cbd5e1; border-radius: .8rem; background: #ffffff; text-align: center; font-size: .78rem; font-weight: 700; }
@media (max-width: 560px) { .class-registry-toggle { padding: .95rem; } .class-registry-controls { padding: .8rem; } .class-registry-item { grid-template-columns: 1fr; } .registry-watch-button, .registry-lock-button { width: 100%; } }


/* Teacher dashboard: student certificates management */
.teacher-certificates-modal-card { width: min(100% - 2rem, 46rem); max-height: min(92vh, 54rem); overflow-y: auto; }
.teacher-certificates-student-name { margin: -.35rem 0 1rem; color: #2563eb; font-weight: 900; }
.teacher-certificates-modal-card small { display: block; margin-top: .35rem; color: #64748b; font-size: .72rem; line-height: 1.7; }
.teacher-student-certificates-list { display: grid; gap: .7rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid #e2e8f0; }
.teacher-certificate-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem; border: 1px solid #dbeafe; border-radius: .85rem; background: linear-gradient(135deg, #f8fbff, #ffffff); }
.teacher-certificate-copy { display: grid; gap: .2rem; min-width: 0; }
.teacher-certificate-copy strong { color: #0f172a; font-size: .82rem; line-height: 1.6; }
.teacher-certificate-copy small { margin: 0; color: #64748b; font-size: .68rem; }
.teacher-certificate-copy p { margin: .15rem 0 0; color: #475569; font-size: .72rem; line-height: 1.7; }
.teacher-certificate-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: .4rem; }
.teacher-certificate-actions button { min-height: 2.2rem; padding: .4rem .65rem; border-radius: .55rem; font: inherit; font-size: .68rem; font-weight: 900; cursor: pointer; }
.certificate-preview-btn { color: #1d4ed8; background: #dbeafe; border: 1px solid #93c5fd; }
.certificate-preview-btn:hover { color: #ffffff; background: #2563eb; }
.teacher-certificate-actions .delete { color: #b91c1c; background: #fff1f2; border: 1px solid #fecaca; }
.teacher-certificate-actions .delete:hover { color: #ffffff; background: #dc2626; }
.teacher-certificates-empty { margin: 0; padding: 1rem; color: #64748b; border: 1px dashed #cbd5e1; border-radius: .75rem; background: #f8fafc; text-align: center; font-size: .75rem; font-weight: 700; }
.student-certificates-btn { min-height: 2.15rem; padding: .35rem .55rem; color: #7c3aed; background: #f5f3ff; border: 1px solid #c4b5fd; border-radius: .55rem; font: inherit; font-size: .68rem; font-weight: 900; cursor: pointer; }
.student-certificates-btn:hover { color: #ffffff; background: #7c3aed; border-color: #7c3aed; }
@media (max-width: 560px) { .teacher-certificate-item { align-items: stretch; flex-direction: column; } .teacher-certificate-actions { justify-content: flex-start; } .teacher-certificates-modal-card { width: min(100% - 1rem, 46rem); } }

.teacher-dashboard-page .table-action-group { flex-wrap: wrap; }
.teacher-dashboard-page .table-action-group .student-certificates-btn { flex-basis: auto; }
.student-contact-note { margin: -.25rem 0 1rem; color: #64748b; font-size: .78rem; line-height: 1.75; }
#student-contact-message[data-state="error"] { background: #fee2e2; color: #991b1b; }
@media (max-width: 560px) { #student-contact-modal .modal-card { width: min(100% - 1rem, 32rem); max-height: 90vh; overflow-y: auto; padding: 1.2rem; } .student-contact-note { font-size: .72rem; } }

/* Assignment Manager Styles */
.assignment-manager { margin-top: 2rem; padding: 1.5rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.assignment-manager-head { margin-bottom: 1.5rem; border-bottom: 1px solid #edf2f7; padding-bottom: 1rem; }
.assignment-form { display: grid; gap: 1rem; margin-bottom: 2rem; padding: 1.25rem; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.assignment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.assignment-form label { display: grid; gap: 0.4rem; color: #475569; font-size: 0.85rem; font-weight: 700; }
.assignment-form input, .assignment-form select, .assignment-form textarea { padding: 0.65rem; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 0.9rem; }
.assignment-form textarea { resize: vertical; }
.teacher-assignments-list { display: grid; gap: 1rem; }
.teacher-assignment-card { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; transition: transform 0.2s; }
.teacher-assignment-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.teacher-assignment-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.teacher-assignment-header h4 { margin: 0; color: #1e293b; font-size: 1rem; }
.teacher-assignment-meta { display: flex; gap: 0.75rem; color: #64748b; font-size: 0.75rem; }
.teacher-assignment-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.teacher-assignment-actions button, .teacher-assignment-actions a { padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.btn-view-submissions { background: #eff6ff; color: #2563eb; border-color: #bfdbfe !important; }
.btn-delete-assignment { background: #fff5f5; color: #dc2626; border-color: #fecaca !important; }
.assignment-attachment-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; color: #2563eb; font-size: 0.8rem; text-decoration: none; }
.assignment-attachment-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .assignment-form .form-row { grid-template-columns: 1fr; }
}

.teacher-assignment-empty { margin: 0; padding: 1rem; color: #64748b; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc; text-align: center; font-size: .82rem; }
.teacher-assignment-subject { padding: .2rem .55rem; color: #1d4ed8; border-radius: 999px; background: #dbeafe; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.teacher-assignment-description { margin: .55rem 0 0; color: #475569; font-size: .82rem; line-height: 1.7; white-space: pre-wrap; }
.teacher-assignment-actions button { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; font: inherit; }
.teacher-assignment-actions button:hover { background: #dbeafe; }
.teacher-assignment-actions button.danger-action { color: #b91c1c; background: #fff1f2; border-color: #fecdd3; }
.teacher-assignment-actions button.danger-action:hover { background: #ffe4e6; }
.student-homework-empty { margin: 0; padding: 1rem; color: var(--text-muted); border: 1px dashed #d1d5db; border-radius: .8rem; background: #f9fafb; text-align: center; font-size: .82rem; }
.student-homework-item .homework-subject { display: inline-block; color: var(--primary-blue); font-size: .72rem; font-weight: 800; }
.homework-grade { color: #047857; font-size: .78rem; }

.schedule-manager-head { gap: 1rem; }
.schedule-manager-toggle { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem 0; color: inherit; background: transparent; border: 0; cursor: pointer; text-align: right; }
.schedule-manager-toggle-copy { display: grid; gap: .18rem; min-width: 0; }
.schedule-manager-toggle-copy strong { color: #0f172a; font-size: 1.15rem; }
.schedule-manager-toggle-copy small { color: #64748b; font-size: .78rem; font-weight: 600; }
.schedule-manager-toggle-icon { flex: 0 0 auto; color: #2563eb; font-size: 1.35rem; transition: transform .2s ease; }
.schedule-manager.is-open .schedule-manager-toggle-icon { transform: rotate(180deg); }
.schedule-manager-toggle:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 4px; border-radius: 8px; }
.schedule-manager-content { padding-top: 1rem; border-top: 1px solid #edf2f7; }

/* Simplified homework workflow: paste the assignment image into instructions. */
.assignment-paste-editor {
  min-height: 180px;
  padding: 1rem;
  border: 1px dashed #93c5fd;
  border-radius: .85rem;
  background: #f8fbff;
  color: #1e293b;
  outline: none;
  white-space: pre-wrap;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.assignment-paste-editor:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.assignment-paste-editor:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.assignment-paste-editor .assignment-pasted-image { display: block; max-width: 100%; max-height: 420px; margin: .5rem auto 0; border-radius: .65rem; object-fit: contain; pointer-events: none; }
.assignment-paste-help { display: block; margin-top: .45rem; color: #64748b; font-size: .76rem; }
.student-homework-instruction-preview { display: block; width: 100%; margin: .9rem 0; padding: .45rem; border: 1px solid #dbeafe; border-radius: .9rem; background: #f8fbff; cursor: zoom-in; }
.student-homework-instruction-preview img { display: block; width: 100%; max-height: 480px; object-fit: contain; border-radius: .6rem; }
.student-homework-instruction-preview:hover { border-color: #60a5fa; }
.status-received, .teacher-submission-status.is-received { color: #047857; background: #ecfdf5; }
.teacher-submissions-card { width: min(720px, calc(100vw - 2rem)); max-height: min(82vh, 760px); overflow: auto; }
.teacher-submissions-assignment-title { margin: 0 0 1rem; color: #475569; font-weight: 700; }
.teacher-submissions-list { display: grid; gap: .75rem; }
.teacher-submission-card { padding: 1rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #f8fafc; }
.teacher-submission-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.teacher-submission-status { padding: .25rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.teacher-submission-status.is-pending { color: #92400e; background: #fffbeb; }
.teacher-submission-answer { margin: .75rem 0; white-space: pre-wrap; color: #334155; line-height: 1.8; }
.teacher-submission-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.teacher-submission-actions button { padding: .45rem .75rem; border: 1px solid #bfdbfe; border-radius: .5rem; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; }
.confirm-receipt-btn { color: #fff; border-color: #047857 !important; background: #047857; }
.confirm-receipt-btn:hover { background: #065f46; }
.teacher-submission-preview { display: block; max-width: 100%; max-height: 520px; margin: .8rem auto 0; border-radius: .7rem; object-fit: contain; background: #0f172a; }
@media (max-width: 640px) {
  .assignment-paste-editor { min-height: 140px; }
  .student-homework-instruction-preview img { max-height: 360px; }
  .teacher-submission-head { align-items: flex-start; flex-direction: column; }
}


/* Landing page refinement: compact hero and clearer access actions */

.cta-parent {
  color: #064e3b;
  background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
  border-color: rgba(22, 163, 74, 0.32);
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.18);
}

.cta-parent .cta-icon {
  color: #047857;
  background: rgba(255, 255, 255, 0.52);
}

.cta-parent small {
  color: #166534;
}

.cta-parent:hover {
  border-color: rgba(22, 163, 74, 0.56);
  box-shadow: 0 18px 32px rgba(22, 163, 74, 0.25);
}

.landing-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 42rem;
}

.landing-cta {
  min-height: 6rem;
  padding: 1.12rem 1.18rem;
}

.landing-cta strong {
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
}

.landing-cta small {
  font-size: 0.8rem;
}

.hero-content {
  display: grid;
  place-items: center;
}

@media (max-width: 52rem) {
  .header-access-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 34rem) {
  .header-ai-chat-link {
    min-height: 2.4rem;
    padding: 0.45rem 0.62rem;
    font-size: 0.68rem;
  }

  .landing-hero {
    min-height: calc(100vh - 8.5rem);
    padding-top: 0.65rem;
  }

  .landing-cta {
    min-height: 5.25rem;
  }
}


/* In-app browser guidance */
.in-app-browser-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, .76);
  backdrop-filter: blur(10px);
}

.in-app-browser-modal[hidden] { display: none; }

.in-app-browser-card {
  width: min(100%, 31rem);
  padding: clamp(1.25rem, 5vw, 2rem);
  color: #e2e8f0;
  text-align: center;
  background: linear-gradient(145deg, #142d55, #0b1c34 72%);
  border: 1px solid rgba(147, 197, 253, .42);
  border-radius: 1.2rem;
  box-shadow: 0 25px 75px rgba(0, 0, 0, .46), 0 0 0 1px rgba(37, 99, 235, .12);
}

.in-app-browser-icon {
  display: grid;
  width: 3.3rem;
  height: 3.3rem;
  margin: 0 auto .8rem;
  place-items: center;
  color: #eff6ff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .3);
  font-size: 1.7rem;
  font-weight: 900;
}

.in-app-browser-kicker { margin: 0 0 .35rem; color: #93c5fd; font-size: .72rem; font-weight: 900; }
.in-app-browser-card h2 { margin: 0; color: #ffffff; font-size: clamp(1.1rem, 4vw, 1.5rem); }
.in-app-browser-copy,
.in-app-browser-instruction,
.in-app-browser-status { margin: .7rem 0 0; color: #cbd5e1; font-size: .82rem; line-height: 1.8; }
.in-app-browser-instruction { color: #bfdbfe; font-size: .76rem; font-weight: 700; }
.in-app-browser-status { min-height: 1.4rem; color: #86efac; font-size: .72rem; font-weight: 800; }
.in-app-browser-actions { display: grid; gap: .55rem; margin-top: 1rem; }
.in-app-browser-actions button { min-height: 2.8rem; padding: .6rem .8rem; border-radius: .7rem; font: inherit; font-size: .8rem; font-weight: 900; cursor: pointer; transition: transform .16s ease, filter .16s ease, background .16s ease; }
.in-app-browser-actions button:active { transform: scale(.97); }
.in-app-browser-primary { color: #052e16; background: #4ade80; border: 1px solid #86efac; }
.in-app-browser-secondary { color: #dbeafe; background: rgba(37, 99, 235, .24); border: 1px solid rgba(147, 197, 253, .42); }
.in-app-browser-continue { color: #cbd5e1; background: transparent; border: 1px solid rgba(148, 163, 184, .3); }
.in-app-browser-actions button:hover { filter: brightness(1.1); }

@media (max-width: 480px) {
  .in-app-browser-modal { padding: .75rem; }
  .in-app-browser-card { padding: 1.15rem; border-radius: 1rem; }
  .in-app-browser-copy { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .in-app-browser-actions button { transition: none; }
}


/* Single-action in-app browser gate */
.in-app-browser-actions { margin-top: 1.15rem; }
.in-app-browser-actions button.in-app-browser-primary {
  width: 100%;
  min-height: 4rem;
  padding: .9rem 1rem;
  border-radius: .95rem;
  font-size: clamp(1rem, 3.7vw, 1.18rem);
  box-shadow: 0 12px 24px rgba(74, 222, 128, .22);
}


/* Desktop landing layout: the mobile landing DOM remains unchanged. */
.desktop-landing-layout { display: none; }

@media (min-width: 901px) {
  body.desktop-landing-home {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
  }

  body.desktop-landing-home > .landing-background { z-index: 0; }
  body.desktop-landing-home > .landing-header,
  body.desktop-landing-home > .landing-hero,
  body.desktop-landing-home > .student-testimonials,
  body.desktop-landing-home > .class-schedule,
  body.desktop-landing-home > .landing-footer { display: none; }

  body.desktop-landing-home .desktop-landing-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(19rem, .82fr) minmax(0, 1.2fr);
    gap: 1.15rem;
    width: min(100% - 3rem, 96rem);
    height: calc(100vh - 3rem);
    min-height: 0;
    margin: 1.5rem auto;
    direction: ltr;
  }

  .desktop-landing-panel {
    min-width: 0;
    min-height: 0;
    direction: rtl;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .1);
    backdrop-filter: blur(12px);
  }

  .desktop-landing-left {
    display: grid;
    grid-template-rows: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: .95rem;
    padding: .9rem;
    overflow: hidden;
  }

  .desktop-schedule-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: .9rem;
    background: #f8fafc;
  }

  .desktop-testimonials-block {
    min-height: 0;
    padding: .25rem;
  }

  .desktop-testimonials-block h2,
  .desktop-landing-right h2 {
    margin: 0;
    color: #0f2d58;
    font-size: clamp(1rem, 1.45vw, 1.28rem);
    font-weight: 900;
  }

  .desktop-testimonial-video-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    height: calc(100% - 2rem);
    min-height: 0;
    margin-top: .65rem;
  }

  .desktop-testimonial-video-card {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, .28);
    border-radius: .72rem;
    background: #0f172a;
    box-shadow: 0 7px 16px rgba(15, 23, 42, .1);
  }

  .desktop-testimonial-video-card video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    cursor: pointer;
  }

  .desktop-landing-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.4rem;
    text-align: center;
    background: linear-gradient(160deg, rgba(255,255,255,.94), rgba(239,246,255,.87));
  }

  .desktop-academy-identity {
    width: 100%;
    padding: 1.35rem 1rem;
    color: #eff6ff;
    background: linear-gradient(145deg, #143b73, #0f2345);
    border: 1px solid rgba(96, 165, 250, .48);
    border-radius: 1.15rem;
    box-shadow: 0 16px 30px rgba(15, 47, 88, .22);
  }

  .desktop-teacher-photo {
    display: block;
    width: 100%;
    height: clamp(11rem, 28vh, 18rem);
    margin: 0 auto .75rem;
    object-fit: cover;
    object-position: center top;
    border: 2px solid rgba(147, 197, 253, .42);
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(2, 6, 23, .22);
  }

  .desktop-doctor-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    border-radius: .65rem;
    transition: transform .2s ease, filter .2s ease;
  }

  .desktop-doctor-link:hover,
  .desktop-doctor-link:focus-visible {
    transform: translateY(-.1rem);
    filter: brightness(1.15);
    outline: none;
  }

  .desktop-doctor-name {
    margin: 0 0 .75rem;
    color: #dbeafe;
    font-size: clamp(1.35rem, 2vw, 2.1rem);
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
  }

  .desktop-academy-identity h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 2.15vw, 2.25rem);
    font-weight: 900;
    line-height: 1.55;
  }

  .desktop-academy-identity h1 span { color: #bfdbfe; }
  .desktop-academy-welcome { margin: 1.3rem 0 1.45rem; color: #475569; font-size: .9rem; font-weight: 700; }
  .desktop-entry-actions { display: grid; gap: .8rem; width: 100%; }
  .desktop-entry-button { display: grid; min-height: 3.5rem; place-items: center; border-radius: .9rem; font-size: 1rem; font-weight: 900; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
  .desktop-entry-button:hover { transform: translateY(-.16rem); filter: brightness(1.05); }
  .desktop-entry-primary { color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 12px 24px rgba(37, 99, 235, .25); }
  .desktop-entry-secondary { color: #064e3b; background: linear-gradient(135deg, #dcfce7, #86efac); box-shadow: 0 12px 24px rgba(22, 163, 74, .18); }

  .desktop-landing-right {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(15, 47, 88, .96), rgba(15, 23, 42, .94));
  }

  .desktop-landing-right h2 { color: #fff; font-size: clamp(1.15rem, 1.7vw, 1.55rem); }
  .desktop-benefits-intro { margin: .45rem 0 1rem; color: #bfdbfe; font-size: .8rem; line-height: 1.75; }
  .desktop-benefits-list {
    display: grid;
    flex: 1 1 auto;
    gap: .62rem;
    min-height: 0;
    margin: 0;
    padding: 0 .35rem 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(134, 239, 172, .8) rgba(255, 255, 255, .08);
    list-style: none;
  }

  .desktop-benefits-list::-webkit-scrollbar { width: .5rem; }
  .desktop-benefits-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); border-radius: 999px; }
  .desktop-benefits-list::-webkit-scrollbar-thumb { background: #86efac; border-radius: 999px; }
  .desktop-benefits-list li { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); column-gap: .55rem; align-items: start; padding: .66rem .65rem; color: #e2e8f0; background: rgba(255,255,255,.07); border: 1px solid rgba(147,197,253,.16); border-radius: .8rem; }
  .desktop-benefits-list li > span { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; color: #052e16; background: #86efac; border-radius: 50%; font-weight: 900; }
  .desktop-benefits-list strong { display: block; color: #fff; font-size: .88rem; font-weight: 900; line-height: 1.4; }
  .desktop-benefits-list small { display: block; grid-column: 2; margin-top: .16rem; color: #cbd5e1; font-size: .7rem; line-height: 1.55; }
}


@media (min-width: 901px) {
  .desktop-entry-button {
    min-height: 4.15rem;
    font-size: 2rem;
    letter-spacing: -.02em;
  }

  .desktop-benefits-list small {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.45;
  }

  .desktop-schedule-image {
    cursor: zoom-in;
  }

  .desktop-schedule-image-modal {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(2, 6, 23, .86);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
  }

  .desktop-schedule-image-modal[hidden] { display: none; }

  .desktop-schedule-image-modal img {
    display: block;
    width: min(94vw, 86rem);
    height: min(88vh, 52rem);
    object-fit: contain;
    border: 2px solid rgba(191, 219, 254, .7);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
    cursor: zoom-out;
  }

  body.desktop-schedule-modal-open { overflow: hidden; }
}


/* Mobile landing — one fixed viewport split into three sections */
.mobile-landing-benefits { display: none; }

@media (max-width: 900px) {
  html:has(body.landing-page),
  body.landing-page {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.landing-page {
    display: grid;
    grid-template-rows: minmax(4.8rem, 18dvh) minmax(0, 1fr) minmax(8rem, 30dvh);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.landing-page > .landing-background {
    z-index: -1;
  }

  body.landing-page > .landing-header,
  body.landing-page > .landing-hero,
  body.landing-page > .mobile-landing-benefits {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  body.landing-page > .landing-header {
    display: flex;
    min-height: 0;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    padding: .45rem clamp(.55rem, 3vw, 1rem) .25rem;
  }

  .landing-header .brand {
    position: static;
    display: inline-flex;
    min-width: 0;
    flex: 1 1 auto;
    transform: none;
  }

  .landing-header .brand-mark {
    width: clamp(2rem, 9vw, 2.65rem);
    height: clamp(2rem, 9vw, 2.65rem);
    flex: 0 0 auto;
    border-radius: .72rem;
  }

  .landing-header .brand-mark svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .landing-header .brand-text {
    min-width: 0;
  }

  .landing-header .brand-text strong {
    overflow: hidden;
    font-size: clamp(.72rem, 3vw, .93rem);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .landing-header .brand-text small {
    font-size: clamp(.52rem, 2.1vw, .68rem);
    white-space: nowrap;
  }

  .landing-header .header-access-links {
    display: inline-flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
  }

  .landing-header .teacher-entry-card {
    min-height: 2.65rem;
    gap: .25rem;
    padding: .2rem .25rem .2rem .35rem;
    border-radius: .7rem;
  }

  .landing-header .teacher-entry-photo {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: .52rem;
  }

  .landing-header .teacher-entry-copy strong {
    font-size: clamp(.57rem, 2.1vw, .72rem);
  }

  .landing-header .teacher-entry-copy small,
  .landing-header .teacher-entry-arrow {
    display: none;
  }

  .landing-header .header-login-link {
    gap: .12rem;
    font-size: clamp(.56rem, 2.2vw, .72rem);
    white-space: nowrap;
  }

  .landing-header .header-login-link span {
    font-size: .86rem;
  }

  body.landing-page > .landing-hero {
    display: grid;
    height: 100%;
    min-height: 0;
    place-items: center;
    padding: .3rem clamp(.55rem, 3vw, 1rem);
    overflow: hidden;
  }

  .landing-hero .hero-content {
    width: 100%;
    min-width: 0;
  }

  .landing-hero .landing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.45rem, 2.3vw, .8rem);
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
  }

  .landing-hero .landing-cta {
    min-width: 0;
    min-height: clamp(5.2rem, 15dvh, 7.2rem);
    padding: .7rem .55rem;
    border-radius: 1.1rem;
    text-align: center;
  }

  .landing-hero .landing-cta > span:nth-child(2) {
    min-width: 0;
    justify-items: center;
  }

  .landing-hero .landing-cta strong {
    font-size: clamp(.84rem, 3.8vw, 1.2rem);
    line-height: 1.35;
  }

  .landing-hero .landing-cta small {
    font-size: clamp(.56rem, 2.4vw, .75rem);
    line-height: 1.35;
  }

  .landing-hero .landing-cta .cta-icon {
    width: clamp(2rem, 9vw, 2.6rem);
    height: clamp(2rem, 9vw, 2.6rem);
    margin: 0 0 .28rem;
    border-radius: .68rem;
  }

  .landing-hero .landing-cta .cta-arrow {
    display: none;
  }

  body.landing-page > .mobile-landing-benefits {
    display: grid;
    align-content: center;
    gap: .45rem;
    height: 100%;
    min-height: 0;
    padding: .45rem clamp(.55rem, 3vw, 1rem) calc(.55rem + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .mobile-benefits-heading {
    text-align: center;
  }

  .mobile-benefits-heading span {
    display: block;
    color: #2563eb;
    font-size: clamp(.58rem, 2.2vw, .72rem);
    font-weight: 800;
  }

  .mobile-benefits-heading h2 {
    margin: .08rem 0 0;
    color: #0f172a;
    font-size: clamp(.95rem, 3.7vw, 1.25rem);
    line-height: 1.25;
  }

  .mobile-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.28rem, 1.5vw, .55rem);
    min-width: 0;
  }

  .mobile-benefit-card {
    display: grid;
    min-width: 0;
    min-height: clamp(4.3rem, 13dvh, 6.2rem);
    align-content: center;
    justify-items: center;
    gap: .18rem;
    padding: .45rem .25rem;
    text-align: center;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(147, 197, 253, .28);
    border-radius: .85rem;
    box-shadow: 0 8px 18px rgba(30, 64, 175, .08);
  }

  .mobile-benefit-icon {
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    color: #fff;
    background: #2563eb;
    border-radius: 50%;
    font-size: .66rem;
    font-weight: 900;
  }

  .mobile-benefit-card strong {
    overflow: hidden;
    color: #1e3a8a;
    font-size: clamp(.58rem, 2.2vw, .75rem);
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-benefit-card small {
    overflow: hidden;
    color: #64748b;
    font-size: clamp(.48rem, 1.85vw, .62rem);
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-benefits-note {
    margin: 0;
    color: #64748b;
    font-size: clamp(.54rem, 2vw, .68rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
  }

  body.landing-page > .student-testimonials,
  body.landing-page > .class-schedule,
  body.landing-page > .landing-footer {
    display: none;
  }
}

@media (max-width: 380px) {
  body.landing-page {
    grid-template-rows: minmax(4.4rem, 17dvh) minmax(0, 1fr) minmax(7.4rem, 31dvh);
  }

  .landing-header .brand-text small,
  .landing-header .teacher-entry-copy {
    display: none;
  }

  .landing-header .brand-text strong {
    font-size: .7rem;
  }

  .landing-hero .landing-cta {
    min-height: 4.8rem;
  }

  .mobile-benefit-card {
    min-height: 3.95rem;
  }
}

@media (max-height: 620px) and (max-width: 900px) {
  body.landing-page {
    grid-template-rows: minmax(3.8rem, 16dvh) minmax(0, 1fr) minmax(6.6rem, 29dvh);
  }

  .landing-hero .landing-cta {
    min-height: 4.5rem;
  }

  .mobile-benefit-card {
    min-height: 3.6rem;
    padding-block: .25rem;
  }
}


/* Mobile landing refinement: fixed header + actions + testimonials + benefits */
@media (max-width: 900px) {
  body.landing-page {
    grid-template-rows: minmax(4.5rem, 15dvh) minmax(5.4rem, 22dvh) minmax(7rem, 29dvh) minmax(8rem, 34dvh);
  }

  body.landing-page > .landing-hero {
    padding-block: .25rem;
  }

  body.landing-page > .student-testimonials {
    display: grid;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: .3rem clamp(.55rem, 3vw, 1rem);
    overflow: hidden;
    background: transparent;
  }

  .student-testimonials-inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: .28rem;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: .35rem;
    border: 1px solid rgba(147, 197, 253, .24);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 8px 18px rgba(30, 64, 175, .06);
  }

  .student-testimonials-heading {
    display: grid;
    gap: .05rem;
    min-width: 0;
    text-align: center;
  }

  .student-testimonials-heading .student-testimonials-kicker {
    font-size: clamp(.5rem, 1.9vw, .64rem);
    line-height: 1.2;
  }

  .student-testimonials-heading .section-title {
    margin: 0;
    font-size: clamp(.78rem, 3.1vw, 1rem);
    line-height: 1.25;
  }

  .student-testimonials-heading p {
    display: none;
  }

  .student-testimonials .testimonial-featured,
  .student-testimonials .testimonials-more-button {
    display: none;
  }

  .student-testimonials .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-content: center;
    gap: clamp(.18rem, 1vw, .35rem);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .student-testimonials .testimonial-card,
  .student-testimonials .testimonial-card.is-more,
  .student-testimonials .testimonial-card.is-more.is-visible {
    display: block;
    min-width: 0;
    padding: .15rem;
    border-radius: .42rem;
    box-shadow: none;
    animation: none;
  }

  .student-testimonials .testimonial-card > div {
    display: none;
  }

  .student-testimonials .testimonial-card video {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: .3rem;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }

  body.landing-page > .mobile-landing-benefits {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: .28rem;
    height: 100%;
    min-height: 0;
    padding: .35rem clamp(.55rem, 3vw, 1rem) calc(.45rem + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .mobile-benefits-heading span {
    font-size: clamp(.5rem, 1.9vw, .64rem);
  }

  .mobile-benefits-heading h2 {
    font-size: clamp(.82rem, 3.2vw, 1.08rem);
  }

  .mobile-benefits-list {
    display: grid;
    align-content: start;
    gap: .24rem;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: .12rem .18rem .25rem 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, .6) rgba(147, 197, 253, .15);
    list-style: none;
  }

  .mobile-benefits-list::-webkit-scrollbar { width: .35rem; }
  .mobile-benefits-list::-webkit-scrollbar-track { background: rgba(147, 197, 253, .16); border-radius: 999px; }
  .mobile-benefits-list::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, .6); border-radius: 999px; }

  .mobile-benefits-list li {
    min-height: 1.7rem;
    padding: .28rem .42rem;
    color: #1e3a8a;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(147, 197, 253, .24);
    border-radius: .46rem;
    font-size: clamp(.55rem, 2.05vw, .68rem);
    font-weight: 800;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  body.landing-page {
    grid-template-rows: minmax(4rem, 13dvh) minmax(5rem, 21dvh) minmax(6.6rem, 28dvh) minmax(8rem, 38dvh);
  }

  .student-testimonials-inner { padding: .25rem; }
  .student-testimonials .testimonial-grid { gap: .14rem; }
  .student-testimonials .testimonial-card { padding: .1rem; }
  .mobile-benefits-list li { min-height: 1.55rem; padding-block: .22rem; }
}

@media (max-height: 620px) and (max-width: 900px) {
  body.landing-page {
    grid-template-rows: minmax(3.6rem, 13dvh) minmax(4.7rem, 21dvh) minmax(6rem, 27dvh) minmax(8rem, 39dvh);
  }
}


/* Small public site-visit counter on the landing page. */
.site-visit-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  width: fit-content;
  min-height: 1.85rem;
  margin: .8rem auto 0;
  padding: .28rem .62rem;
  color: #475569;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .07);
  font-size: .66rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-visit-counter strong {
  min-width: 1.2rem;
  color: #1d4ed8;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .landing-hero .site-visit-counter {
    margin-top: .35rem;
    min-height: 1.65rem;
    padding: .24rem .52rem;
    font-size: .58rem;
  }

  .landing-hero .site-visit-counter strong {
    font-size: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-visit-counter {
    transition: none;
  }
}
