:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --red: #dc2626;
  --redDark: #b91c1c;
  --accentGreen: #16a34a;
  --promoRed: #B22222;
  --ash: #8F8F8E;
  --focus: #2563eb;
  --topicBadge: #90D5FF;
  --heroIntro: #911D21;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.5;
}

/* -------------------------
   Test Taker Portal Layout
   ------------------------- */

.portal-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

/* -------------------------
   Mock Test Packages Page
   ------------------------- */

.packages-page {
  min-height: 100vh;
  padding: 28px 16px;
  background: #f8fafc;
}

.packages-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.packages-top {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.packages-back {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  font-weight: 700;
  color: var(--text);
}

.packages-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  color: var(--heroIntro);
}

.packages-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
}

.package-card {
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid var(--border);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.package-card--basic {
  border-color: #16a34a;
}

.package-card--standard {
  border-color: #dc2626;
}

.package-card--pro {
  border-color: #2563eb;
}

.package-card--custom {
  border-color: #b91c1c;
}

.package-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.package-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.package-features {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
}

.package-features li {
  margin: 7px 0;
}

.package-cta {
  margin-top: auto;
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 2px solid currentColor;
  background: #ffffff;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}

.package-card--basic .package-cta {
  color: #16a34a;
}

.package-card--standard .package-cta {
  color: #dc2626;
}

.package-card--pro .package-cta {
  color: #2563eb;
}

.package-card--custom .package-cta {
  color: #b91c1c;
}

.package-cta:hover {
  filter: brightness(0.98);
}

.package-cta:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus), transparent 65%);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .packages-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 520px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

.portal-shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(248, 250, 252, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 60%),
    #1f2937;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
}

.portal-left {
  padding: 40px 36px;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.13), rgba(15, 23, 42, 0.95));
}

.portal-welcome-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #93c5fd;
}

.portal-welcome-subtitle {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #f9fafb;
}

.portal-welcome-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1d5db;
  max-width: 30rem;
}

.portal-card {
  background: #ffffff;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-card-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #111827;
}

.portal-card-intro {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #6b7280;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.portal-label {
  font-size: 0.86rem;
  font-weight: 500;
  color: #374151;
}

.portal-input {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.portal-submit {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.portal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.5);
  filter: brightness(1.03);
}

.portal-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.portal-small-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .portal-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-left {
    padding: 28px 24px 16px;
  }

  .portal-card {
    padding: 20px 20px 24px;
    border-radius: 0 0 24px 24px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* Booking page */
.booking-page {
  padding: calc(var(--headerHeight, 0px) + 28px) 0 48px;
  background: var(--bg);
}

.booking-container {
  display: grid;
  gap: 10px;
}

.booking-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  color: var(--heroIntro);
}

.booking-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.booking-embeds {
  width: min(860px, 100%);
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 380px));
  gap: 12px;
  align-items: start;
  justify-content: center;
}

.booking-embed {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.booking-embed--bc {
  cursor: pointer;
}

.booking-embed--bc .booking-embed-frame {
  pointer-events: none;
}

.booking-embed--idp {
  cursor: pointer;
}

.booking-embed--idp .booking-embed-frame {
  pointer-events: none;
}

.booking-embed-label {
  padding: 10px 12px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-embed-label-text {
  text-align: center;
}

.booking-embed-placeholder {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 1;
}

.booking-embed-frame-wrap iframe {
  position: relative;
  z-index: 1;
}
  justify-content: center;
  min-width: 108px;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--topicBadge);
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.booking-embed-cta:hover {
  filter: brightness(0.98);
}

.booking-embed-cta:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus), transparent 65%);
  outline-offset: 2px;
}

.booking-embed-label--idp {
  background: var(--heroIntro);
  color: #ffffff;
}

.booking-embed-label--bc {
  background: #1b004f;
  color: #ffffff;
}

.booking-embed-frame {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
  background: #ffffff;
}

.booking-embed-frame-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #ffffff;
}

.booking-embed-frame-wrap .booking-embed-frame {
  height: 100%;
}

.booking-embed-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  opacity: 0.85;
  mix-blend-mode: multiply;
  filter: contrast(1.15) saturate(1.1);
  pointer-events: none;
  z-index: 2;
}

.booking-embed-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.booking-embed-cta--bottom {
  pointer-events: auto;
}

.booking-embed-frame-wrap iframe {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .booking-embeds {
    width: min(520px, 100%);
    grid-template-columns: 1fr;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus), transparent 65%);
  outline-offset: 3px;
}

.container {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 16px;
  z-index: 1000;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  background: var(--bg);
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

main {
  padding-top: var(--headerHeight, 0px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-ielts {
  color: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: clamp(36px, 7vw, 62px);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 16px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 12px;
  color: color-mix(in srgb, var(--muted), transparent 20%);
}

.nav-dropdown[open] > summary {
  background: var(--surface);
  color: var(--text);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.about-dropdown-menu {
  min-width: 340px;
  max-width: min(480px, 90vw);
  max-height: 420px;
  overflow-y: auto;
  padding: 18px 18px 14px 18px;
}

.contact-dropdown-menu {
  min-width: 340px;
  max-width: min(420px, 95vw);
  max-height: 440px;
  overflow-y: auto;
  padding: 18px 18px 14px 18px;
}
.contact-dropdown-content {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.contact-info {
  margin-bottom: 14px;
  font-size: 15px;
}
.contact-info a {
  color: var(--focus);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font-size: 15px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}
.contact-form input:required,
.contact-form textarea:required {
  border-left: 3px solid var(--red);
}
.contact-submit {
  margin-top: 8px;
  padding: 8px 0;
  border-radius: 10px;
  background: var(--focus);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.contact-submit:hover {
  background: var(--red);
}

.privacy-dropdown-menu {
  min-width: 340px;
  max-width: min(520px, 98vw);
  max-height: 480px;
  overflow-y: auto;
  padding: 18px 18px 14px 18px;
}
.privacy-dropdown-content {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.privacy-dropdown-content p {
  margin: 0 0 12px;
}
.privacy-dropdown-content ol {
  margin: 0 0 12px 18px;
  padding-left: 0;
}
.privacy-dropdown-content ul {
  margin: 0 0 10px 18px;
  padding-left: 0;
}
.privacy-dropdown-content li {
  margin: 6px 0;
  font-size: 15px;
}

.about-dropdown-content {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.about-dropdown-content p {
  margin: 0 0 12px;
}
.about-dropdown-content ul {
  margin: 0 0 12px 18px;
  padding-left: 0;
}
.about-dropdown-content li {
  margin: 6px 0;
  font-size: 15px;
}

.dropdown-item {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

.dropdown-item:hover {
  background: var(--surface);
}

.nav-link:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-cta {
  margin-left: 4px;
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--redDark);
}

.hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), #ffffff);
}

.hero-topic {
  padding: 34px 0 18px;
  background: #ffffff;
}

.hero-topic-title {
  margin: 0;
  text-align: center;
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.2px;
  line-height: 1.05;
  white-space: nowrap;
  display: inline-block;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--topicBadge);
}

.success-stories-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: calc(clamp(22px, 2.8vw, 38px) + 6px);
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.2px;
  line-height: 1.05;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.success-stories-title + .hero-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

.success-slider {
  padding: 10px 0 26px;
  background: #ffffff;
}

.success-slider-shell {
  position: relative;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}

.success-slider-shell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: var(--heroIntro);
}

.success-slider-viewport {
  overflow: hidden;
  padding: 34px 18px 26px;
}

.success-slider-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: successMarquee 55s linear infinite;
}

@keyframes successMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-slider-track {
    animation: none;
  }
}

.testimonial-card {
  width: min(520px, calc(100vw - 96px));
  min-height: 420px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: #ffffff;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  justify-items: center;
}

.testimonial-avatar {
  width: 156px;
  height: 156px;
  border-radius: 999px;
  border: 6px solid var(--heroIntro);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  margin-bottom: 12px;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.testimonial-card--sayuri .testimonial-avatar img {
  transform: scale(1.32);
  transform-origin: center;
}

.testimonial-card--rajapaksa .testimonial-avatar img {
  object-position: center;
  transform: scale(1.12) translateY(-18px);
  transform-origin: center;
}

.testimonial-card--upul .testimonial-avatar img {
  object-position: center;
  transform: scale(1.42) translateY(-22px);
  transform-origin: center;
}

.testimonial-card--ishani .testimonial-avatar img {
  object-position: center;
  transform: scale(1.04) translateY(-6px);
  transform-origin: center;
}

.testimonial-name {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}

.testimonial-role {
  margin: 4px 0 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--heroIntro);
  text-align: center;
}

.testimonial-stars {
  margin: 6px 0 12px;
  letter-spacing: 4px;
  color: #f59e0b;
  font-size: 18px;
}

.testimonial-quote {
  margin: 0;
  max-width: 44ch;
  text-align: center;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}

.testimonial-verified {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--accentGreen);
  font-family: "Poppins", sans-serif;
}

.verified-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accentGreen), transparent 82%);
  display: grid;
  place-items: center;
}

.verified-icon img {
  width: 14px;
  height: 14px;
  display: block;
}

.promo-grid,
.promo-gids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
  padding-top: 10px;
  padding-bottom: 6px;
  align-items: stretch;
  justify-items: center;
}

.why-platform {
  position: relative;
  padding: 64px 0 56px;
  background: var(--bg);
}

.why-platform::before {
  content: "";
  position: absolute;
  right: 56px;
  top: 28px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ash), transparent 72%);
  transform: none;
  pointer-events: none;
}

.why-platform::after {
  content: "";
  position: absolute;
  right: 96px;
  top: 220px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ash), transparent 68%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 56px;
  align-items: center;
}

.why-media-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  background: var(--surface);
  aspect-ratio: 1 / 1;
}

.why-media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.why-media-tags {
  position: absolute;
  right: 22px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
}

.why-media-tag {
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.why-media-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.14);
}

.why-book {
  width: 22px;
  height: 22px;
  color: color-mix(in srgb, var(--text), transparent 15%);
}

.why-media-accent {
  position: absolute;
  right: 44px;
  bottom: 28px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--heroIntro);
  opacity: 0.9;
}

.why-title {
  margin: 0 0 18px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text);
}

.why-text {
  margin: 0 0 18px;
  color: color-mix(in srgb, var(--text), transparent 18%);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.85;
  max-width: 78ch;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  background: color-mix(in srgb, var(--heroIntro), transparent 94%);
  border-left: 4px solid var(--heroIntro);
  padding: 14px 16px;
  border-radius: 12px;
}

.why-highlight {
  margin: 0 0 22px;
  font-weight: 800;
  color: color-mix(in srgb, var(--text), transparent 18%);
  padding-bottom: 10px;
  border-bottom: 3px solid color-mix(in srgb, var(--heroIntro), transparent 78%);
  max-width: 78ch;
}

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
}

.why-stat {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--heroIntro), transparent 85%);
  background: color-mix(in srgb, var(--heroIntro), transparent 94%);
  padding: 18px 18px;
  text-align: center;
}

.why-stat-value {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--heroIntro);
  margin-bottom: 6px;
}

.why-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: color-mix(in srgb, var(--muted), transparent 15%);
}

@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .why-media-frame {
    max-width: 620px;
  }
}

.mock-test-promo {
  --promoAccent: var(--accentGreen);
  width: 100%;
  max-width: 300px;
  min-height: 460px;
  height: auto;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 18px;
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  z-index: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mock-test-promo--red {
  --promoAccent: var(--promoRed);
}

.mock-test-promo--blue {
  --promoAccent: var(--focus);
}

.mock-test-promo::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -8px;
  width: calc(100% + 8px);
  height: 26px;
  background: transparent;
  border: 4px solid var(--promoAccent);
  border-bottom: 0;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
}

.badge-free {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accentGreen);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.promo-icon {
  width: 86px;
  height: 86px;
  margin: 2px auto 12px;
  border-radius: 22px;
  background: var(--promoAccent);
  display: grid;
  place-items: center;
}

.promo-icon--doc {
  background: var(--promoAccent);
}

.promo-doc {
  width: 34px;
  height: 34px;
  color: #ffffff;
}

.promo-icon--calendar {
  background: var(--promoAccent);
}

.promo-calendar {
  width: 36px;
  height: 36px;
  color: #ffffff;
}

.promo-icon--search {
  background: var(--promoAccent);
}

.promo-search {
  width: 36px;
  height: 36px;
  color: #ffffff;
}

.promo-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.promo-check {
  width: 30px;
  height: 30px;
  color: var(--promoAccent);
}

.promo-title {
  margin: 0 0 18px;
  width: 100%;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--promoAccent);
}

.promo-description {
  margin: 0 auto 18px;
  text-align: center;
  color: color-mix(in srgb, var(--muted), transparent 18%);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  max-width: 28ch;
}

.cta-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  font-weight: 800;
  background: transparent;
  color: var(--promoAccent);
  border: 2px solid var(--promoAccent);
  font-family: "Poppins", sans-serif;
}

.cta-button:hover {
  background: color-mix(in srgb, var(--promoAccent), transparent 92%);
}

.cta-button:active {
  transform: translateY(1px);
}

.promo-slot {
  width: 300px;
  height: 460px;
  border-radius: 16px;
  border: 2px dashed color-mix(in srgb, var(--border), transparent 0%);
  background: color-mix(in srgb, var(--surface), transparent 25%);
}

.dots-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px;
}

.chapter-breakdown {
  padding: 10px 0 6px;
  background: #ffffff;
}

.about-section {
  padding: 54px 0 18px;
  scroll-margin-top: calc(var(--headerHeight, 0px) + 16px);
}

.dots-divider .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--heroIntro);
  opacity: 0.35;
  transform: scale(0.9);
  animation: dotBlink 1.1s ease-in-out infinite;
}

.dots-divider .dot:nth-child(2) { animation-delay: 0.12s; }
.dots-divider .dot:nth-child(3) { animation-delay: 0.24s; }
.dots-divider .dot:nth-child(4) { animation-delay: 0.36s; }
.dots-divider .dot:nth-child(5) { animation-delay: 0.48s; }
.dots-divider .dot:nth-child(6) { animation-delay: 0.60s; }
.dots-divider .dot:nth-child(7) { animation-delay: 0.72s; }
.dots-divider .dot:nth-child(8) { animation-delay: 0.84s; }
.dots-divider .dot:nth-child(9) { animation-delay: 0.96s; }
.dots-divider .dot:nth-child(10) { animation-delay: 1.08s; }
.dots-divider .dot:nth-child(11) { animation-delay: 1.20s; }
.dots-divider .dot:nth-child(12) { animation-delay: 1.32s; }

@keyframes dotBlink {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dots-divider .dot {
    animation: none;
    opacity: 0.75;
    transform: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  padding: 56px 0;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.hero-intro {
  margin: 0 0 16px;
  color: var(--heroIntro);
  font-size: 22px;
  font-weight: 700;
}


.hero-copy p:not(.hero-intro) {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-weight: 700;
}

.button:hover {
  background: var(--surface);
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--redDark);
  border-color: var(--redDark);
}

.hero-features {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}

.hero-features li {
  line-height: 1.25;
}

.hero-video {
  margin-top: auto;
  width: 100%;
  max-width: calc(680px + 3cm);
}

.hero-video-frame {
  width: 100%;
  aspect-ratio: 32 / 9;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-video-frame img,
.hero-video-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.feature-title {
  display: block;
  font-weight: 800;
  color: var(--text);
  font-size: 20px;
}

.feature-desc {
  display: block;
  font-size: 18px;
}

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.hero-media-frame {
  width: min(680px, 100%);
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
}

.current-students {
  width: min(680px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.current-students-left {
  display: grid;
  gap: 2px;
}

.current-students-number {
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--red);
}

.current-students-label {
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.current-student-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}


.current-students-slideshow {
  position: relative;
  width: 160px;
  height: 44px;
  flex: 0 0 auto;
}

.current-students-reset {
  display: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.current-students-reset:hover {
  background: #ffffff;
}

.student-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 220ms ease;
}

.student-slide.is-active {
  opacity: 1;
}

.section {
  padding: 36px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  width: 100%;
  padding: 0;
  background: transparent;
}

.footer-bg {
  min-height: 6cm;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  position: relative;
  display: block;
  isolation: isolate;
}

.footer-bg::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--heroIntro);
  z-index: 5;
  pointer-events: none;
}

.footer-bg::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
  z-index: 4;
  pointer-events: none;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  padding: 18px 0 12px;
  align-items: start;
}

.footer-left {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  align-items: start;
  position: relative;
}

.footer-brand,
.footer-meta {
  position: relative;
  z-index: 2;
}

.footer-brand .brand-ielts {
  font-size: 46px;
}

.footer-meta {
  display: grid;
  gap: 6px;
  grid-column: 2;
}

.footer-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  color: var(--text);
}

.footer-subtitle {
  margin: 0;
  font-weight: 800;
  color: color-mix(in srgb, var(--text), transparent 20%);
}

.footer-contact {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  margin: 2px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.footer-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  z-index: 1;
}

.footer-image img {
  display: block;
  height: var(--lecturerBoxHeight, 240px);
  width: auto;
  max-width: min(680px, 100%);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}


.footer-center {
  display: flex;
  justify-content: flex-end;
}

.footer-lecturer-box {
  width: min(680px, 100%);
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.footer-lecturer-kicker {
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 12px;
  color: color-mix(in srgb, var(--heroIntro), transparent 10%);
}

.footer-lecturer-title {
  margin: 0 0 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}

.footer-lecturer-topic {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}

.footer-lecturer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer-field {
  display: grid;
  gap: 6px;
}

.footer-field:nth-last-child(2) {
  grid-column: 1 / -1;
}

.footer-label {
  font-size: 12px;
  font-weight: 800;
  color: color-mix(in srgb, var(--text), transparent 25%);
}

.footer-input,
.footer-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

.footer-textarea {
  resize: none;
}

.footer-input:focus-visible,
.footer-textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus), transparent 65%);
  outline-offset: 2px;
}

.footer-submit {
  grid-column: 1 / -1;
  justify-self: start;
  border: 1px solid color-mix(in srgb, var(--heroIntro), transparent 50%);
  background: color-mix(in srgb, var(--heroIntro), transparent 90%);
  color: var(--heroIntro);
  font-weight: 900;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.footer-submit:hover {
  background: color-mix(in srgb, var(--heroIntro), transparent 84%);
}

.footer-col-title {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  color: var(--text);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  background: var(--surface);
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 0 18px;
  border-top: 1px solid color-mix(in srgb, var(--border), transparent 20%);
}

.footer-bottom-email a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-left {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    grid-column: auto;
  }

  .footer-image {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 12px;
  }

  .footer-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
  }

  .footer-lecturer-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header-row {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px 0;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-link {
    font-size: 14px;
    padding: 6px 6px;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero-topic-title {
    white-space: normal;
    width: 100%;
    max-width: 40ch;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nav {
    gap: 8px;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-video {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1600px, calc(100% - 24px));
  }

  .dropdown-menu {
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 24px));
    min-width: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-desc {
    font-size: 16px;
  }

  .current-students {
    flex-wrap: wrap;
    gap: 10px;
  }

  .current-students-slideshow {
    width: 120px;
  }

  .promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    justify-items: stretch;
  }

  .mock-test-promo {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .footer-lecturer-box {
    padding: 10px 10px;
  }

  .footer-lecturer-title {
    font-size: 16px;
  }

  .footer-lecturer-topic {
    font-size: 12px;
  }
}
