:root {
  --ink: #151922;
  --muted: #5f6875;
  --line: #e1e6ee;
  --paper: #fbfcff;
  --white: #ffffff;
  --blue: #075dae;
  --blue-dark: #064680;
  --red: #ee171a;
  --red-dark: #c91014;
  --yellow: #f9b21b;
  --sky: #eaf5ff;
  --rose: #fff1f1;
  --shadow: 0 22px 50px rgba(13, 48, 88, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(225, 230, 238, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--blue);
  font-weight: 900;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav a:hover {
  color: var(--red);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
}

.header-action,
.primary-button {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 28px rgba(238, 23, 26, 0.22);
}

.secondary-button {
  color: var(--blue);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: clamp(38px, 7vw, 86px);
  min-height: calc(100vh - 87px);
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 72px) 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 560px;
  margin: 0;
}

.hero-stats div {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(13, 48, 88, 0.1);
}

.hero-stats div:first-child {
  grid-column: 1 / -1;
  min-height: 214px;
  color: var(--white);
  background: var(--blue);
}

.hero-stats dt {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  color: var(--blue);
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-stats div:first-child dt {
  color: var(--white);
}

.hero-stats div:first-child dd {
  color: rgba(255, 255, 255, 0.78);
}

.hero-stats-featured {
  justify-self: end;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  padding: 34px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(234, 245, 255, 0.98), rgba(255, 241, 241, 0.95)),
    radial-gradient(circle at 88% 18%, rgba(249, 178, 27, 0.6), transparent 26%);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(7, 93, 174, 0.14);
  border-radius: 8px;
}

.hero-slogan-card {
  position: relative;
  display: grid;
  gap: 4px;
  max-width: 260px;
  margin: 0 auto 18px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(13, 48, 88, 0.12);
  text-align: center;
}

.hero-slogan-card span {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.hero-slogan-card strong {
  color: var(--blue);
  font-size: 38px;
  line-height: 0.98;
  font-weight: 900;
}

.hero-slogan-card small {
  color: var(--muted);
  font-weight: 800;
}

.lesson-board {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 24px 42px rgba(13, 48, 88, 0.24);
}

.board-top,
.mentor-card,
.mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.board-top span,
.board-top strong {
  font-size: 14px;
}

.progress-line {
  height: 12px;
  margin: 24px 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}

.progress-line span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-grid div {
  padding: 18px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.mentor-card,
.mini-card {
  position: absolute;
  border: 1px solid rgba(225, 230, 238, 0.86);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(13, 48, 88, 0.12);
}

.mentor-card {
  left: 22px;
  bottom: 54px;
  padding: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.mentor-card span,
.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mini-card {
  right: 28px;
  bottom: 114px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.mini-card strong {
  font-size: 26px;
  color: var(--red);
}

.section,
.contact,
.site-footer {
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.intro p:last-child,
.section-heading + p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.program-grid,
.test-grid,
.review-grid {
  display: grid;
  gap: 18px;
}

.program-grid.two-columns,
.test-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-card,
.test-card,
blockquote {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.program-card.highlight,
.test-card:first-child {
  border-color: rgba(238, 23, 26, 0.28);
  background: linear-gradient(180deg, var(--rose), var(--white) 58%);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(7, 93, 174, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.program-card p,
.program-card li,
.test-card p,
.feature p,
.contact p,
blockquote p,
cite {
  color: var(--muted);
  line-height: 1.65;
}

.program-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 18px;
}

.program-card-link {
  display: block;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.program-card-link:hover,
.program-card-link:focus-visible {
  border-color: var(--red);
  box-shadow: 0 18px 36px rgba(13, 48, 88, 0.12);
  transform: translateY(-3px);
}

.program-card-action {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  color: var(--red);
  font-weight: 900;
}

.free-tests {
  background: var(--white);
}

.test-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.test-card:nth-child(2) .test-icon {
  background: var(--blue);
}

.test-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red);
  font-weight: 900;
}

.test-card-link {
  display: block;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.test-card-link:hover,
.test-card-link:focus-visible {
  border-color: var(--red);
  box-shadow: 0 18px 36px rgba(13, 48, 88, 0.12);
  transform: translateY(-3px);
}

.test-card-action {
  display: inline-flex;
  gap: 8px;
  margin-top: 10px;
  color: var(--red);
  font-weight: 900;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.feature {
  padding: 46px 30px;
  background: var(--blue-dark);
}

.feature span {
  display: block;
  margin-bottom: 20px;
  color: var(--yellow);
  font-weight: 900;
}

.feature h3 {
  color: var(--white);
}

.feature p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.schedule {
  background: var(--white);
}

.schedule-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-table [role="row"] {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.schedule-table [role="row"]:last-child {
  border-bottom: 0;
}

.table-head {
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.google-review {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 38px;
  align-items: start;
}

.rating-summary {
  display: inline-grid;
  gap: 6px;
  min-width: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(13, 48, 88, 0.08);
}

.rating-summary strong {
  color: var(--blue);
  font-size: 48px;
  line-height: 1;
}

.rating-summary span {
  color: var(--yellow);
  font-size: 22px;
}

.rating-summary small {
  color: var(--muted);
  font-weight: 800;
}

blockquote {
  margin: 0;
}

blockquote p {
  font-size: 18px;
}

cite {
  font-style: normal;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  color: var(--white);
  background: var(--blue-dark);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

button.primary-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.test-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(234, 245, 255, 0.98), rgba(255, 241, 241, 0.95)),
    radial-gradient(circle at 85% 20%, rgba(249, 178, 27, 0.55), transparent 24%);
}

.test-note {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow);
}

.test-note strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.test-note span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.test-choice-section {
  background: var(--white);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.choice-panel {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 30px;
  border: 1px solid rgba(238, 23, 26, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--rose), var(--white) 60%);
}

.choice-panel.paid {
  border-color: rgba(7, 93, 174, 0.28);
  background: linear-gradient(180deg, var(--sky), var(--white) 60%);
}

.choice-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.choice-panel strong {
  margin-top: 8px;
  color: var(--red);
}

.choice-panel.paid strong {
  color: var(--blue);
}

.choice-panel .choice-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.choice-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.choice-panel .choice-price strong {
  margin: 0;
  font-size: 22px;
}

.registration-section {
  scroll-margin-top: 86px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-section,
.test-room {
  scroll-margin-top: 86px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
}

.email-preview,
.login-card,
.question-card,
.timer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(13, 48, 88, 0.08);
}

.email-preview,
.login-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.email-preview > span {
  color: var(--muted);
  font-size: 14px;
}

.email-preview dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.email-preview dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.email-preview dt {
  color: var(--muted);
  font-weight: 800;
}

.email-preview dd {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
  word-break: break-word;
}

.error-text {
  color: var(--red) !important;
  font-weight: 800;
}

.test-room {
  background: var(--white);
}

.test-room-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.timer-card {
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 18px;
}

.timer-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timer-card strong {
  color: var(--red);
  font-size: 30px;
}

.question-list {
  display: grid;
  gap: 18px;
}

.question-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.question-card > span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.question-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.question-card input {
  width: auto;
  margin-top: 3px;
}

.result-box {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--sky);
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  font: inherit;
  background: var(--paper);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-button {
  width: 100%;
  margin-top: 4px;
}

.whatsapp-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 18px 38px rgba(18, 102, 58, 0.32);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-popup:hover,
.whatsapp-popup:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(18, 102, 58, 0.38);
}

.whatsapp-icon {
  display: block;
  width: 34px;
  height: 34px;
}

.language-switcher {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(13, 48, 88, 0.18);
  backdrop-filter: blur(12px);
}

.language-switcher-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.language-switcher > div {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  padding: 3px;
  border-radius: 6px;
  background: #eef2f7;
}

.language-switcher button {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.active {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 5px 12px rgba(7, 93, 174, 0.22);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 110px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero,
  .intro,
  .google-review,
  .test-hero,
  .account-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 500px;
  }

  .program-grid.two-columns,
  .test-grid,
  .choice-grid,
  .feature-band,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .language-switcher {
    left: 14px;
    bottom: 14px;
    padding: 7px;
  }

  .language-switcher-label {
    display: none;
  }

  .site-header {
    padding: 12px 18px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand small {
    display: none;
  }

  .header-action {
    min-height: 40px;
    padding: 0 14px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .hero-stats div:first-child {
    grid-column: auto;
  }

  .hero-stats div,
  .hero-stats div:first-child {
    min-height: 148px;
  }

  .hero-visual {
    min-height: auto;
    padding: 20px;
  }

  .lesson-board {
    padding: 20px;
  }

  .mentor-card,
  .mini-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 14px 0 0;
  }

  .schedule-table [role="row"] {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-head {
    display: none !important;
  }

  .whatsapp-popup {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-popup > span:last-child {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }

  .test-room-header {
    align-items: stretch;
    flex-direction: column;
  }

  .email-preview dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Homepage trust and decision sections */
.proof-section {
  background: #f4f8fc;
}

.proof-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  column-gap: 42px;
}

.proof-heading .eyebrow,
.proof-heading h2 {
  grid-column: 1;
}

.proof-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  color: var(--muted);
  line-height: 1.7;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.sample-score-report,
.sample-speaking-report,
.sample-certificate-card {
  position: relative;
  min-width: 0;
  min-height: 430px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.sample-label {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--red-dark);
  background: var(--rose);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-score-head,
.sample-speaking-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.sample-score-head span,
.sample-speaking-head span {
  font-size: 14px;
  font-weight: 900;
}

.sample-score-head strong {
  color: var(--blue);
  font-size: 56px;
  line-height: 0.9;
}

.sample-speaking-head strong {
  color: var(--red);
  font-size: 26px;
}

.sample-score-bars {
  display: grid;
  gap: 14px;
}

.sample-score-bars > div {
  display: grid;
  grid-template-columns: 76px minmax(50px, 1fr) 26px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}

.sample-score-bars i {
  height: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf1f5;
}

.sample-score-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.sample-score-report > p,
.sample-speaking-report > p,
.sample-certificate-card > p {
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.sample-speaking-report dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.sample-speaking-report dl div {
  padding: 12px;
  border-left: 3px solid var(--yellow);
  background: #fffaf0;
}

.sample-speaking-report dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sample-speaking-report dd {
  margin: 5px 0 0;
  font-weight: 900;
}

.sample-certificate-card {
  display: grid;
  align-content: center;
  justify-items: center;
  border: 10px solid var(--blue);
  outline: 2px solid var(--yellow);
  outline-offset: -18px;
  text-align: center;
}

.sample-certificate-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.sample-certificate-card > span {
  margin: 8px 0 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.sample-certificate-card h3 {
  color: var(--red);
  font-size: 27px;
}

.sample-certificate-card > strong {
  color: var(--blue);
  font-size: 20px;
}

.sample-certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  color: var(--red);
  font-size: 64px;
  font-weight: 900;
  transform: translate(-50%, -50%) rotate(-28deg);
  opacity: 0.08;
  pointer-events: none;
}

.mentor-section {
  background: var(--white);
}

.mentor-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.mentor-profile {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: var(--paper);
}

.toefl-mentor-profile {
  border-left-color: var(--blue);
}

.mentor-profile-avatar {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.toefl-mentor-profile .mentor-profile-avatar {
  background: var(--blue);
}

.mentor-profile > div:last-child > span,
.package-item > span,
.review-ready-panel > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mentor-profile h3 {
  margin-top: 8px;
}

.mentor-profile p,
.mentor-profile li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.mentor-profile ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.mentor-profile li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.package-section {
  background: #fffaf0;
}

.package-heading > p:last-child,
.review-disclaimer {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.package-item {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.package-item:hover,
.package-item:focus-visible {
  border-color: #b8c9dc;
  box-shadow: 0 18px 36px rgba(13, 48, 88, 0.13);
  transform: translateY(-3px);
  outline: none;
}

.free-package {
  border-top-color: var(--yellow);
}

.featured-package {
  border-top-color: var(--red);
}

.package-item h3 {
  margin-top: 10px;
}

.package-item > strong {
  margin: 8px 0 20px;
  color: var(--blue);
  font-size: 24px;
}

.featured-package > strong {
  color: var(--red);
}

.package-item ul {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.package-item > .package-cta {
  width: 100%;
  margin-top: auto;
}

.review-ready-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: var(--white);
}

.review-ready-panel h3 {
  margin-top: 10px;
  font-size: 28px;
}

.review-ready-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.faq-section {
  background: var(--white);
}

.faq-list {
  max-width: 940px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 52px 22px 0;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 4px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--sky);
  font-size: 22px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 800px;
  padding: 0 52px 22px 0;
  color: var(--muted);
  line-height: 1.7;
}

.simulation-notice {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: #42310b;
  background: #fff2c9;
  border-top: 1px solid #f0d582;
  border-bottom: 1px solid #f0d582;
}

.simulation-notice strong {
  font-weight: 900;
}

.simulation-notice p {
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .proof-heading {
    grid-template-columns: 1fr;
  }

  .proof-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .proof-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .sample-score-report,
  .sample-speaking-report,
  .sample-certificate-card,
  .package-item {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .mentor-profile-grid {
    grid-template-columns: 1fr;
  }

  .simulation-notice {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .mentor-profile {
    grid-template-columns: 1fr;
  }

  .mentor-profile-avatar {
    width: 64px;
    height: 64px;
  }

  .sample-speaking-report dl {
    grid-template-columns: 1fr;
  }

  .sample-score-bars > div {
    grid-template-columns: 70px minmax(40px, 1fr) 24px;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 8px;
    padding: 10px;
  }

  .brand {
    min-width: 0;
    gap: 6px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 13px;
    white-space: nowrap;
  }

  .header-action {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .sample-certificate-watermark {
    width: 100%;
    font-size: 48px;
  }
}

/* Speaking registration and placement test */
.speaking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  align-items: center;
  gap: clamp(30px, 6vw, 76px);
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background: linear-gradient(135deg, #eaf5ff 0 58%, #fff1f1 58% 100%);
}

.speaking-hero h1 {
  font-size: clamp(40px, 5vw, 66px);
}

.speaking-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.speaking-steps span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.speaking-steps strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
}

.speaking-hero-note {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow);
}

.speaking-hero-note span,
.speaking-hero-note small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.speaking-hero-note strong {
  font-size: 32px;
}

.speaking-registration {
  max-width: 920px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(13, 48, 88, 0.08);
}

.speaking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-wide {
  grid-column: 1 / -1;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.consent-field input,
.self-assessment input {
  width: auto;
  margin-top: 3px;
}

.speaking-submit {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.last-speaking-result {
  margin-top: 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
}

.speaking-test-section {
  scroll-margin-top: 88px;
  background: var(--white);
}

.speaking-test-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}

.speaking-test-heading p:last-child {
  color: var(--muted);
}

.speaking-progress {
  display: grid;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.speaking-progress > div {
  height: 9px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.speaking-progress > div span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 180ms ease;
}

.speaking-test-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 18px;
  max-width: 1050px;
  scroll-margin-top: 110px;
}

.speaking-prompt,
.recording-panel,
.self-assessment {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.speaking-prompt > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.speaking-prompt h3 {
  margin-top: 12px;
  font-size: 28px;
}

.speaking-prompt p,
.prompt-support {
  color: var(--muted);
  line-height: 1.65;
}

.prompt-support {
  margin-top: 20px;
  padding: 16px;
  border-left: 4px solid var(--yellow);
  background: var(--white);
  font-size: 14px;
  white-space: pre-line;
}

.recording-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.recording-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recording-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9aa3af;
}

.recording-status.is-recording .recording-dot {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(238, 23, 26, 0.12);
}

.recording-actions,
.task-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recording-actions button,
.task-navigation button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.recording-actions .secondary-button,
.task-navigation .secondary-button {
  border: 1px solid var(--line);
}

.recording-panel audio {
  width: 100%;
}

.self-assessment {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin: 0;
}

.speech-transcript,
.task-analysis {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.analysis-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.analysis-heading span:first-child {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.analysis-heading h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

.analysis-state {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--sky);
  font-size: 12px;
  font-weight: 900;
}

.speech-transcript > p {
  min-height: 70px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.task-analysis .analysis-heading > strong {
  color: var(--red);
  font-size: 36px;
}

.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.analysis-metrics div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 5px;
  padding: 15px;
  background: var(--white);
}

.analysis-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.analysis-metrics strong {
  color: var(--blue);
  font-size: 21px;
}

.analysis-metrics small {
  color: var(--muted);
}

.task-analysis > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.self-assessment legend {
  padding: 0 8px;
  font-weight: 900;
}

.self-assessment label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.task-message {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 800;
}

.task-navigation {
  grid-column: 1 / -1;
  justify-content: space-between;
}

.speaking-result-section {
  scroll-margin-top: 88px;
  background: linear-gradient(135deg, var(--sky), var(--white));
}

.speaking-result {
  display: grid;
  grid-template-columns: 240px minmax(0, 620px);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
}

.level-badge {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow);
}

.level-badge span {
  align-self: end;
  font-size: 14px;
  font-weight: 800;
}

.level-badge strong {
  align-self: start;
  font-size: 76px;
  line-height: 1;
}

.level-copy > p:not(.eyebrow),
.result-disclaimer {
  color: var(--muted);
  line-height: 1.65;
}

.result-details {
  display: grid;
  gap: 0;
  margin: 24px 0;
}

.result-details div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.result-details dt {
  color: var(--muted);
  font-weight: 700;
}

.result-details dd {
  margin: 0;
  font-weight: 900;
}

.result-disclaimer {
  font-size: 13px;
}

.final-score-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.final-score-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
}

.final-score-table span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.final-score-table strong {
  color: var(--blue);
}

.result-recommendations {
  margin-bottom: 22px;
  padding: 18px;
  border-left: 4px solid var(--yellow);
  background: var(--white);
}

.result-recommendations p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.result-recommendations p + p {
  margin-top: 8px;
}

.speaking-actions-heading {
  max-width: 720px;
  margin-top: 54px;
  margin-bottom: 24px;
}

.speaking-actions-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.5vw, 40px);
}

.speaking-next-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.speaking-action-panel {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(13, 48, 88, 0.08);
}

.certificate-option-panel {
  border-top: 4px solid var(--yellow);
}

.mentor-option-panel {
  border-top: 4px solid var(--blue);
}

.speaking-action-header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.speaking-action-header .eyebrow {
  margin-bottom: 5px;
}

.speaking-action-header h3 {
  margin: 0;
  font-size: 23px;
}

.speaking-action-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  font-size: 15px;
  font-weight: 900;
}

.mentor-option-panel .speaking-action-icon {
  background: var(--blue);
}

.speaking-action-description {
  min-height: 82px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.speaking-action-details {
  display: grid;
  gap: 0;
  margin: 18px 0 24px;
}

.speaking-action-details div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.speaking-action-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.speaking-action-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 900;
}

.mentor-result-details dd {
  color: var(--blue);
}

.speaking-action-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.speaking-action-footer .primary-button,
.speaking-action-footer .secondary-button {
  width: 100%;
  min-height: 50px;
  text-align: center;
}

.speaking-certificate-dialog .certificate-document {
  user-select: none;
}

.speaking-certificate-dialog .certificate-modal-actions {
  justify-content: space-between;
}

.speaking-action-panel button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 820px) {
  .speaking-hero,
  .speaking-test-heading,
  .speaking-test-tool,
  .speaking-result {
    grid-template-columns: 1fr;
  }

  .speaking-next-actions {
    grid-template-columns: 1fr;
  }

  .level-badge {
    width: 210px;
  }
}

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

  .field-wide {
    grid-column: auto;
  }

  .speaking-hero h1 {
    font-size: 38px;
  }

  .speaking-test-tool {
    display: block;
  }

  .speaking-prompt,
  .recording-panel,
  .self-assessment {
    margin-bottom: 16px;
  }

  .task-navigation {
    justify-content: stretch;
  }

  .task-navigation button {
    flex: 1 1 100%;
  }

  .result-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .analysis-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-metrics,
  .final-score-table {
    grid-template-columns: 1fr;
  }

  .speaking-action-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .speaking-action-panel {
    min-height: 0;
  }

  .speaking-action-description {
    min-height: 0;
  }
}

.certificate-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  margin-top: 34px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  text-align: left;
  background: var(--white);
}

.certificate-status-mark {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border: 6px solid #eef1f5;
  border-radius: 50%;
  color: var(--muted);
  background: #f7f8fa;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-status-mark.certificate-ready {
  color: #08723c;
  border-color: #d7f1e2;
  background: #edfaf2;
}

.certificate-status-mark.certificate-eligible {
  color: #08723c;
  border-color: #bfe8d1;
  background: #edfaf2;
}

.toefl-course-hero {
  background: #eef6ff;
}

.toefl-course-note {
  background: var(--red);
}

.course-outcome {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #bfe8d1;
  border-left: 6px solid #168654;
  border-radius: 8px;
  text-align: left;
  background: #effaf4;
}

.course-outcome[hidden] {
  display: none;
}

.course-outcome > span {
  color: #08723c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-outcome h2 {
  margin-bottom: 6px;
  font-size: clamp(23px, 3vw, 32px);
}

.course-outcome p,
.course-mentor-panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.course-outcome-retry {
  border-color: #ffd2d3;
  border-left-color: var(--red);
  background: #fff4f4;
}

.course-outcome-retry > span {
  color: var(--red);
}

.course-test-mode .toefl-result-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.course-test-mode .certificate-panel {
  grid-template-columns: 94px minmax(0, 1fr);
  align-content: start;
  gap: 20px;
  margin-top: 0;
  padding: 26px;
}

.course-test-mode .certificate-status-mark {
  width: 84px;
  height: 84px;
  border-width: 5px;
  font-size: 11px;
}

.course-test-mode .certificate-details {
  grid-template-columns: 1fr;
}

.course-mentor-panel {
  position: relative;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  text-align: left;
  background: var(--white);
}

.course-mentor-panel[hidden] {
  display: none;
}

.course-mentor-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.course-mentor-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.course-mentor-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.course-mentor-details div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.course-mentor-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-mentor-details dd {
  margin: 5px 0 0;
  font-weight: 900;
}

@media (max-width: 860px) {
  .course-test-mode .toefl-result-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .course-outcome,
  .course-test-mode .certificate-panel {
    grid-template-columns: 1fr;
  }

  .course-mentor-details {
    grid-template-columns: 1fr;
  }
}

.certificate-copy h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.certificate-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.certificate-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.certificate-details div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.certificate-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.certificate-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}

.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.certificate-actions [hidden] {
  display: none !important;
}

.payment-card label {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 6px;
  background: var(--soft);
}

.payment-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-summary strong {
  color: var(--blue);
  font-size: 22px;
}

.payment-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.certificate-dialog {
  overflow-y: auto;
}

.certificate-modal {
  width: min(900px, 100%);
}

.certificate-document {
  position: relative;
  min-height: 590px;
  padding: clamp(38px, 7vw, 72px);
  overflow: hidden;
  border: 14px solid var(--blue);
  outline: 3px solid var(--yellow);
  outline-offset: -24px;
  text-align: center;
  background: var(--white);
}

.certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 125%;
  color: var(--red);
  font-size: clamp(38px, 7vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-28deg);
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

.certificate-watermark[hidden] {
  display: none;
}

.certificate-document img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.certificate-brand {
  margin: 8px 0 30px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
}

.certificate-document h2 {
  margin-bottom: 24px;
  color: var(--red);
  font-size: clamp(34px, 6vw, 58px);
}

.certificate-document > p:not(.certificate-brand) {
  color: var(--muted);
  line-height: 1.6;
}

.certificate-document > strong {
  display: block;
  margin: 18px 0;
  color: var(--blue-dark);
  font-size: clamp(30px, 5vw, 48px);
}

.certificate-document > b {
  display: block;
  margin: 14px 0 38px;
  color: var(--red);
  font-size: 64px;
}

.certificate-footer-data {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.certificate-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  background: #eef2f7;
}

.certificate-preview-note {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .certificate-panel {
    grid-template-columns: 1fr;
  }

  .certificate-status-mark {
    width: auto;
    height: 48px;
    border-width: 3px;
    border-radius: 6px;
  }

  .certificate-details {
    grid-template-columns: 1fr;
  }

  .certificate-actions > *,
  .certificate-modal-actions > * {
    width: 100%;
  }

  .certificate-modal-actions,
  .certificate-footer-data {
    flex-direction: column;
  }
}

@media print {
  .certificate-dialog {
    display: none !important;
  }
}

/* TOEFL exam workspace */
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.exam-body {
  min-height: 100vh;
  background: #f3f6fa;
}

.exam-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 10px clamp(18px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.exam-header .brand img {
  width: 52px;
  height: 52px;
}

.exam-user {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.text-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  background: var(--white);
  font-weight: 800;
}

.exam-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

.exam-welcome {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.exam-welcome h1,
.exam-result h1 {
  max-width: none;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
}

.exam-welcome .lead {
  margin-right: auto;
  margin-left: auto;
}

.exam-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0 20px;
  text-align: left;
}

.exam-overview article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
}

.exam-overview strong {
  grid-row: 1 / 3;
  color: var(--red);
  font-size: 38px;
}

.exam-overview span {
  font-weight: 900;
}

.exam-overview small {
  color: var(--muted);
}

.instruction-box {
  margin-bottom: 24px;
  padding: 22px 26px;
  border-left: 4px solid var(--yellow);
  border-radius: 6px;
  text-align: left;
  background: #fff9e9;
}

.instruction-box h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.instruction-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.paid-access-gate {
  max-width: 820px;
}

.paid-test-payment {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 18px;
  margin-top: 32px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 8px;
  text-align: left;
  background: var(--white);
  box-shadow: var(--shadow);
}

.paid-test-payment > div {
  grid-row: span 2;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.paid-test-payment span,
.paid-test-payment strong,
.paid-test-payment small {
  display: block;
}

.paid-test-payment span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.paid-test-payment strong {
  margin: 8px 0;
  color: var(--blue);
  font-size: 24px;
}

.paid-test-payment .payment-amount {
  display: block;
  margin: 2px 0 12px;
  color: var(--red);
  font-size: 28px;
}

.paid-test-payment small {
  color: var(--muted);
  line-height: 1.6;
}

.paid-test-payment label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.paid-test-payment select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.paid-test-payment .form-note {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.primary-button,
.secondary-button {
  border: 0;
}

.secondary-button {
  border: 1px solid var(--line);
}

.exam-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: var(--white);
}

.exam-statusbar > div:first-child span,
.exam-statusbar > div:first-child strong {
  display: block;
}

.exam-statusbar > div:first-child span {
  margin-bottom: 5px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.exam-statusbar > div:first-child strong {
  font-size: 20px;
}

.exam-progress-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.exam-progress-summary .timer-card {
  min-width: 130px;
  padding: 9px 14px;
  text-align: center;
}

.exam-progress-summary .timer-card span,
.exam-progress-summary .timer-card strong {
  display: block;
}

.exam-progress-summary .timer-card strong {
  margin-top: 2px;
  color: var(--blue);
  font-size: 24px;
}

.exam-progress-summary .timer-warning {
  color: var(--red) !important;
}

.section-progress {
  height: 5px;
  overflow: hidden;
  background: #dfe7f0;
}

.section-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 180ms ease;
}

.exam-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.question-navigator,
.exam-question-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.question-navigator {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.navigator-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}

.navigator-heading span {
  color: var(--muted);
  font-size: 10px;
}

.navigator-heading i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--blue);
}

.question-number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.question-number {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.question-number.answered {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.question-number.current {
  outline: 3px solid rgba(249, 178, 27, 0.48);
  outline-offset: 1px;
}

.finish-section-button {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 1px solid #efb1b2;
  border-radius: 6px;
  color: var(--red-dark);
  background: var(--rose);
  font-weight: 900;
}

.exam-question-panel {
  min-height: 610px;
  padding: clamp(22px, 4vw, 42px);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.question-meta span {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.exam-question-title {
  margin-bottom: 24px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.4;
}

.audio-question {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid #bcd8f3;
  border-radius: 8px;
  background: var(--sky);
}

.audio-button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.audio-question span {
  color: var(--muted);
  font-size: 12px;
}

.reading-passage {
  max-height: 270px;
  margin-bottom: 28px;
  padding: 22px;
  overflow-y: auto;
  border-left: 4px solid var(--blue);
  background: #f5f9fd;
}

.reading-passage h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.reading-passage p {
  margin-bottom: 0;
  color: #394351;
  line-height: 1.85;
}

.exam-answer-list {
  display: grid;
  gap: 10px;
}

.exam-answer-list label {
  display: grid;
  grid-template-columns: auto 38px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  cursor: pointer;
}

.exam-answer-list label:has(input:checked) {
  border-color: var(--blue);
  background: #f0f7ff;
}

.exam-answer-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.exam-answer-list strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  color: var(--blue);
  background: var(--sky);
}

.question-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(21, 25, 34, 0.58);
}

.confirm-dialog[hidden] {
  display: none;
}

.confirm-card {
  width: min(480px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.confirm-card h2 {
  font-size: 26px;
}

.confirm-card p {
  color: var(--muted);
  line-height: 1.6;
}

.confirm-card > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.exam-result {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.final-score {
  display: grid;
  width: 260px;
  min-height: 220px;
  margin: 28px auto;
  place-content: center;
  border: 8px solid var(--sky);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
}

.final-score span,
.final-score small {
  color: var(--muted);
}

.final-score strong {
  color: var(--blue);
  font-size: 72px;
  line-height: 1;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 20px;
}

.score-grid article {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.score-grid span {
  font-weight: 900;
}

.score-grid strong {
  color: var(--red);
  font-size: 38px;
}

.score-grid small,
.score-note {
  color: var(--muted);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 820px) {
  .exam-layout {
    grid-template-columns: 1fr;
  }

  .question-navigator {
    position: static;
  }

  .question-number-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  .question-number {
    aspect-ratio: auto;
    min-height: 34px;
  }
}

@media (max-width: 640px) {
  .exam-header .brand strong {
    font-size: 13px;
  }

  .exam-user > span {
    display: none;
  }

  .exam-shell {
    width: min(100% - 24px, 1240px);
    padding-top: 28px;
  }

  .exam-overview,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .exam-statusbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .exam-progress-summary {
    justify-content: space-between;
    width: 100%;
  }

  .question-number-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .exam-question-panel {
    min-height: 0;
    padding: 20px;
  }

  .audio-question {
    align-items: stretch;
    flex-direction: column;
  }

  .exam-answer-list label {
    grid-template-columns: auto 32px 1fr;
    padding: 10px;
  }

  .question-actions,
  .result-actions,
  .confirm-card > div {
    flex-direction: column;
  }

  .question-actions button,
  .result-actions > *,
  .confirm-card button {
    width: 100%;
  }

  .paid-test-payment {
    grid-template-columns: 1fr;
  }

  .paid-test-payment > div {
    grid-row: auto;
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
