: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);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.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 {
  position: relative;
  display: flex;
  min-height: min(760px, calc(100svh - 76px));
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: #071c32;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 18, 34, 0.96) 0%, rgba(3, 18, 34, 0.83) 42%, rgba(3, 18, 34, 0.28) 72%, rgba(3, 18, 34, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 18, 34, 0.76) 0%, transparent 42%);
}

.hero-background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-content {
  display: flex;
  width: 100%;
  max-width: 1440px;
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(30px, 3vw, 40px) clamp(20px, 5vw, 72px) 24px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-copy {
  max-width: 760px;
}

.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;
}

.hero-topic {
  color: inherit;
}

.hero-brand-name {
  color: #70bcff;
}

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 .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 14px;
  font-size: clamp(40px, 5vw, 60px);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.34);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.55;
}

.hero .hero-actions {
  margin: 22px 0 0;
}

.hero .secondary-button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero .secondary-button:hover,
.hero .secondary-button:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

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

.public-visitor-count {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(5, 31, 58, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.public-visitor-count strong {
  color: #fff;
  font-size: 16px;
}

.visitor-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #46d68c;
  box-shadow: 0 0 0 4px rgba(70, 214, 140, 0.17);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.hero-stat {
  position: relative;
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  color: var(--white);
  background: rgba(5, 31, 58, 0.7);
  transition: background 160ms ease;
}

.hero-stat::after {
  position: absolute;
  top: 18px;
  right: 20px;
  content: "\2192";
  font-size: 24px;
  font-weight: 900;
}

.hero-stat:hover,
.hero-stat:focus-visible {
  background: #f0f5f7;
}

.hero-stat:focus-visible {
  outline: 3px solid rgba(249, 178, 27, 0.7);
  outline-offset: 3px;
}

.hero-stat-free {
  min-height: 104px;
  color: #24465b;
  background: #dce9f1;
}

.hero-stat-program {
  color: #284d43;
  background: #deebe5;
}

.hero-stat-schedule {
  background: rgba(116, 76, 4, 0.76);
}

.hero-stat strong {
  padding-right: 26px;
  font-size: 24px;
  font-weight: 900;
}

.hero-stat span {
  margin-top: 4px;
  color: currentColor;
  opacity: 0.78;
}

.hero-stats-featured {
  align-self: flex-start;
}

.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);
}

.section[id] {
  scroll-margin-top: 88px;
}

.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 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.test-card.panel-examiner { border: 2px solid #087e8b; background: #f1fbfc; }
.panel-examiner .test-icon { color: white; background: #087e8b; }
.panel-examiner .test-card-action { color: #066570; }

.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%);
}

.program-card.panel-red,
.test-card.panel-red {
  color: var(--ink);
  border: 2px solid var(--red);
  background: var(--white);
}

.program-card.panel-blue,
.test-card.panel-blue {
  color: var(--ink);
  border: 2px solid var(--blue);
  background: var(--white);
}

.program-card.panel-yellow,
.test-card.panel-yellow {
  color: var(--ink);
  border: 2px solid #e4b914;
  background: var(--white);
}

.test-card.panel-green {
  color: var(--ink);
  border: 2px solid #16845b;
  background: var(--white);
}

.test-card.panel-green p { color: var(--muted); }
.panel-green .test-icon { color: var(--white); background: #16845b; }
.panel-green .test-card-action { color: #106342; }
.test-card.panel-green:hover,
.test-card.panel-green:focus-visible { border-color: #0b5035; }

.program-card.panel-red p,
.program-card.panel-red li,
.program-card.panel-blue p,
.program-card.panel-blue li,
.test-card.panel-red p,
.test-card.panel-blue p {
  color: var(--muted);
}

.program-card.panel-yellow p,
.program-card.panel-yellow li,
.test-card.panel-yellow p {
  color: var(--muted);
}

.panel-red .tag {
  color: var(--red-dark);
  background: var(--rose);
}

.panel-blue .tag {
  color: var(--blue-dark);
  background: var(--sky);
}

.panel-yellow .tag {
  color: #614b00;
  background: #fff6cf;
}

.panel-red .test-icon {
  color: var(--white);
  background: var(--red);
}

.panel-blue .test-icon {
  color: var(--white);
  background: var(--blue);
}

.panel-yellow .test-icon {
  color: #3f3000;
  background: var(--yellow);
}

.panel-red .program-card-action,
.panel-blue .program-card-action,
.panel-red .test-card-action,
.panel-blue .test-card-action {
  color: inherit;
}

.panel-red .program-card-action,
.panel-red .test-card-action {
  color: var(--red-dark);
}

.panel-blue .program-card-action,
.panel-blue .test-card-action {
  color: var(--blue-dark);
}

.panel-yellow .program-card-action,
.panel-yellow .test-card-action {
  color: #614b00;
}

.program-card.panel-red:hover,
.program-card.panel-red:focus-visible,
.test-card.panel-red:hover,
.test-card.panel-red:focus-visible {
  border-color: #9f0d10;
}

.program-card.panel-blue:hover,
.program-card.panel-blue:focus-visible,
.test-card.panel-blue:hover,
.test-card.panel-blue:focus-visible {
  border-color: #043663;
}

.program-card.panel-yellow:hover,
.program-card.panel-yellow:focus-visible,
.test-card.panel-yellow:hover,
.test-card.panel-yellow:focus-visible {
  border-color: #b58d00;
}

.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,
.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.panel-red .test-icon {
  color: var(--white);
  background: var(--red);
}

.test-card.panel-green .test-icon {
  color: var(--white);
  background: #16845b;
}

.test-card.panel-blue .test-icon {
  color: var(--white);
  background: var(--blue);
}

.test-card.panel-yellow .test-icon {
  color: #3f3000;
  background: var(--yellow);
}

.ielts-program-card {
  border-top: 4px solid var(--yellow);
}

.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;
}

.online-test-benefits {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 52px;
  align-items: center;
  background: #f3f8fd;
}

.online-benefits-intro {
  max-width: 520px;
}

.online-benefits-intro > p:last-child,
.result-use-heading > p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.online-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #cfdce8;
  border-left: 1px solid #cfdce8;
}

.online-benefits-list article {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid #cfdce8;
  border-bottom: 1px solid #cfdce8;
}

.online-benefits-list article > span,
.result-use-list article > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.online-benefits-list h3,
.result-use-list h3 {
  margin: 9px 0 8px;
  font-size: 18px;
}

.online-benefits-list p,
.result-use-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.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 1fr 0.8fr;
  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: minmax(0, 1fr);
  align-items: start;
  color: var(--white);
  background: var(--blue-dark);
}

.contact > div {
  max-width: 760px;
}

.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;
}

.toefl-choice-panel {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.toefl-choice-panel:disabled {
  cursor: wait;
  opacity: 0.72;
}

.toefl-choice-account-status {
  margin-top: 18px;
  text-align: center;
}

.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;
  top: 88px;
  right: 18px;
  z-index: 31;
}

.language-switcher-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 58px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(7, 93, 174, 0.2);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(13, 48, 88, 0.16);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.language-switcher-toggle:hover,
.language-switcher-toggle:focus-visible,
.language-switcher.open .language-switcher-toggle {
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(7, 93, 174, 0.23);
}

.language-switcher-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-switcher-current {
  font-size: 12px;
  font-weight: 900;
}

.language-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 156px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(13, 48, 88, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.language-switcher.open .language-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher-menu button {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.language-switcher-menu button:hover,
.language-switcher-menu button:focus-visible {
  color: var(--blue);
  background: #eef6ff;
}

.language-switcher-menu button.active {
  color: #06467e;
  background: #e3f1ff;
}

.language-switcher-menu button span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.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 {
    z-index: 40;
    align-items: center;
    gap: 12px;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: clamp(18px, 5vw, 54px);
    left: clamp(18px, 5vw, 54px);
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: 0 0 8px 8px;
    background: var(--white);
    box-shadow: 0 18px 36px rgba(13, 48, 88, 0.16);
  }

  .site-header.mobile-menu-open .nav {
    display: flex;
  }

  .nav a {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 6px;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: var(--blue);
    background: var(--sky);
  }

  .mobile-menu-toggle {
    display: grid;
    flex: 0 0 44px;
    place-content: center;
    gap: 4px;
  }

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

  .hero {
    min-height: min(760px, calc(100svh - 74px));
  }

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

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

@media (max-width: 640px) {
  .language-switcher {
    top: auto;
    left: 14px;
    bottom: 14px;
    right: auto;
  }

  .language-switcher-toggle {
    width: 54px;
    height: 40px;
  }

  .language-switcher-menu {
    top: auto;
    right: auto;
    bottom: calc(100% + 8px);
    left: 0;
    transform: translateY(5px);
  }

  .language-switcher.open .language-switcher-menu {
    transform: translateY(0);
  }

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

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

  .brand small {
    display: none;
  }

  .header-action {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  .hero {
    min-height: min(820px, calc(100svh - 72px));
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(3, 18, 34, 0.94) 0%, rgba(3, 18, 34, 0.82) 54%, rgba(3, 18, 34, 0.72) 100%),
      linear-gradient(90deg, rgba(3, 18, 34, 0.5), rgba(3, 18, 34, 0.16));
  }

  .hero-background {
    object-position: 58% center;
  }

  .hero-content {
    padding: 30px 18px 22px;
    gap: 18px;
  }

  .hero .lead {
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions {
    margin: 22px 0 0;
  }

  .hero-stats {
    display: grid;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hero-stats::-webkit-scrollbar {
    display: none;
  }

  .hero-stat,
  .hero-stat-free {
    min-width: 0;
    min-height: 108px;
    padding: 14px 12px;
    scroll-snap-align: start;
  }

  .hero-stat::after {
    content: none;
  }

  .hero-stat strong {
    padding-right: 0;
    font-size: 16px;
  }

  .hero-stat span {
    max-width: 210px;
    font-size: 13px;
  }

  .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;
  }
}

/* Mentor profile and institution legality page */
.profile-intro-band {
  padding: 64px clamp(20px, 5vw, 72px) 42px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.profile-intro-inner {
  display: grid;
  grid-template-columns: 210px minmax(0, 820px);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  max-width: 1180px;
  margin: 0 auto;
}

.profile-brand-mark {
  display: block;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1;
  object-fit: contain;
}

.profile-intro-inner h1 {
  max-width: 850px;
  font-size: clamp(38px, 5vw, 66px);
}

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

.profile-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.64fr);
  align-items: end;
  gap: 48px;
}

.profile-data-note {
  margin: 0 0 32px;
  padding-left: 20px;
  border-left: 4px solid var(--yellow);
  color: var(--muted);
  line-height: 1.7;
}

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

.profile-mentor-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 8px;
  background: var(--white);
}

.toefl-profile-card {
  border-top-color: var(--blue);
}

.ielts-profile-card {
  border-top-color: var(--yellow);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.profile-avatar-photo {
  width: 100%;
  height: 280px;
  border: 4px solid rgba(231, 29, 37, 0.18);
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 68%;
}

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

.ielts-profile-card .profile-avatar {
  color: var(--ink);
  background: var(--yellow);
}

.profile-role {
  display: grid;
  gap: 7px;
}

.profile-role span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-role strong {
  font-size: 20px;
  line-height: 1.3;
}

.profile-mentor-card > p {
  min-height: 112px;
  margin: 18px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.profile-mentor-card dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.profile-mentor-card dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-mentor-card dt,
.institution-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-mentor-card dd,
.institution-details dd {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.mentor-profile-link {
  margin-top: 24px;
}

.profile-method-section {
  padding: 72px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--blue-dark);
}

.profile-method-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 100px);
  max-width: 1180px;
  margin: 0 auto;
}

.profile-method-section .section-heading p:last-child,
.profile-method-steps p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.profile-method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-method-steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-method-steps li > span {
  color: var(--yellow);
  font-weight: 900;
}

.profile-method-steps strong {
  display: block;
  margin-bottom: 5px;
}

.profile-method-steps p {
  margin: 0;
  font-size: 14px;
}

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

.legal-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
}

.institution-details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.institution-details > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.institution-details a {
  color: var(--blue);
}

.verification-status,
.document-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #8a5b00;
  background: #fff4cf;
  font-size: 11px;
  font-weight: 900;
}

.legal-document-list {
  display: grid;
  gap: 12px;
}

.legal-document-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.document-code {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.legal-document-list strong {
  display: block;
  margin-bottom: 4px;
}

.legal-document-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ready-state {
  color: #11623a;
  background: #dff7e9;
}

.legal-disclosure {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  margin-top: 44px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-disclosure strong {
  color: var(--red);
}

.legal-disclosure p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px clamp(20px, 5vw, 72px);
  background: #eaf5ff;
}

.profile-contact-band > div {
  max-width: 760px;
}

.profile-contact-band p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .profile-heading-row,
  .profile-method-inner,
  .legal-layout {
    grid-template-columns: 1fr;
  }

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

  .profile-mentor-card > p {
    min-height: 0;
  }

  .profile-data-note {
    margin-top: -14px;
  }
}

@media (max-width: 720px) {
  .profile-intro-inner {
    grid-template-columns: 1fr;
  }

  .profile-brand-mark {
    width: 130px;
  }

  .legal-document-list article {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .document-state {
    grid-column: 2;
  }

  .profile-contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .institution-details > div,
  .legal-disclosure {
    grid-template-columns: 1fr;
  }

  .legal-document-list article {
    grid-template-columns: 1fr;
  }

  .document-state {
    grid-column: auto;
  }
}

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

.proof-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: end;
  gap: clamp(36px, 6vw, 84px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.proof-heading-title h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.proof-summary > p {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.proof-highlights {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-highlights li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.proof-highlights li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  content: "\2713";
  font-size: 11px;
  line-height: 1;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.compact-gallery {
  background: var(--white);
}

.compact-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: end;
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.compact-gallery-heading h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.compact-gallery-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 18px max(calc((100% - 1180px) / 2), 0px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f8fc;
}

.gallery-tab {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.gallery-tab.is-active {
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(16, 72, 126, 0.1);
}

.gallery-panel {
  max-width: 1180px;
  margin: 0 auto;
}

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

.gallery-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.gallery-photo {
  display: block;
  width: 100%;
  height: 156px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #e9eef4;
  cursor: zoom-in;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 180ms ease;
}

.gallery-photo:hover img,
.gallery-photo:focus-visible img {
  transform: scale(1.025);
}

.gallery-item-caption {
  min-height: 104px;
  padding: 14px 15px 16px;
}

.gallery-item-caption strong,
.gallery-item-caption span {
  display: block;
}

.gallery-item-caption strong {
  margin-bottom: 7px;
  font-size: 15px;
  line-height: 1.28;
}

.gallery-item-caption span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.gallery-lightbox {
  width: min(calc(100% - 32px), 980px);
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: #080d15;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox::backdrop {
  background: rgba(5, 10, 18, 0.82);
}

.gallery-lightbox figure {
  display: grid;
  place-items: center;
  margin: 0;
}

.gallery-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.gallery-lightbox figcaption {
  width: 100%;
  padding: 15px 58px 17px 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.gallery-lightbox-close {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}

.gallery-testimonial-ready {
  display: grid;
  grid-template-columns: auto minmax(260px, 0.8fr) minmax(300px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 142px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: #fffafa;
}

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

.gallery-testimonial-ready strong {
  font-size: 18px;
  line-height: 1.4;
}

.gallery-testimonial-ready p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.sample-score-report,
.sample-speaking-report,
.sample-ielts-report,
.sample-certificate-card {
  position: relative;
  min-width: 0;
  min-height: 390px;
  padding: 22px;
  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,
.sample-ielts-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.sample-score-head span,
.sample-speaking-head span,
.sample-ielts-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-ielts-head strong {
  color: var(--blue);
  font-size: 48px;
  line-height: 0.9;
}

.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-ielts-report > p,
.sample-certificate-card > p {
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.sample-ielts-components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sample-ielts-components > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  padding: 12px;
  border: 1px solid #dce8f3;
  border-radius: 6px;
  background: #f4f9ff;
}

.sample-ielts-components span,
.sample-ielts-focus span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sample-ielts-components i {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #dce8f3;
}

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

.sample-ielts-focus {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--yellow);
  background: #fffaf0;
}

.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: block;
  background: #f3f6f9;
}

.sample-certificate-preview {
  display: block;
  overflow: hidden;
  border: 1px solid #c9d8e8;
  background: #fff;
}

.sample-certificate-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 841.89 / 595.28;
  object-fit: contain;
}

.sample-certificate-document {
  position: relative;
  display: flex;
  aspect-ratio: 841.89 / 595.28;
  flex-direction: column;
  align-items: center;
  padding: 4.5% 7% 3.5%;
  overflow: hidden;
  border: 7px solid var(--blue);
  outline: 2px solid var(--red);
  outline-offset: -13px;
  background: var(--white);
  text-align: center;
}

.sample-certificate-document header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  width: 100%;
  padding: 4px 10px;
  border-left: 6px solid var(--red);
  background: #eff7ff;
}

.sample-certificate-document header img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.sample-certificate-document header div {
  display: grid;
  grid-column: 2;
  gap: 2px;
}

.sample-certificate-document header b {
  color: var(--blue);
  font-size: clamp(8px, 1.15vw, 14px);
  font-weight: 900;
}

.sample-certificate-document header strong {
  color: var(--blue-dark);
  font-size: clamp(10px, 1.2vw, 16px);
}

.sample-certificate-document > p {
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: clamp(6px, 0.85vw, 10px);
}

.sample-certificate-document h3 {
  margin: 2px 0;
  color: var(--blue-dark);
  font-size: clamp(14px, 2.1vw, 27px);
}

.sample-certificate-name-line {
  width: 62%;
  border-bottom: 1px solid var(--blue);
}

.sample-certificate-document h4 {
  margin: 2px 0 8px;
  color: var(--blue);
  font-size: clamp(8px, 1.05vw, 13px);
}

.sample-certificate-result {
  display: grid;
  min-width: 30%;
  gap: 2px;
  padding: 3px 12px;
  border: 1px solid var(--blue);
  background: #eff7ff;
  transform: translateY(-4px);
}

.sample-certificate-result span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.sample-certificate-result strong {
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.sample-certificate-qr {
  position: absolute;
  right: 8%;
  bottom: 17%;
  display: grid;
  gap: 2px;
}

.sample-certificate-qr b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 4px double var(--blue-dark);
  color: var(--blue-dark);
  font-size: 10px;
}

.sample-certificate-qr span {
  color: var(--blue);
  font-size: 5px;
  font-weight: 900;
}

.sample-certificate-document footer {
  position: absolute;
  right: 7%;
  bottom: 25px;
  left: 7%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: auto;
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
}

.sample-certificate-document footer span {
  white-space: nowrap;
}

.sample-certificate-document > small {
  position: absolute;
  right: 7%;
  bottom: 2px;
  left: 7%;
  margin: 0;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.2;
}

.sample-certificate-legal {
  position: absolute;
  top: 7%;
  right: 8%;
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-size: 5px;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
}

.sample-certificate-note {
  margin-bottom: 0 !important;
}

.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;
}

.result-use-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 52px;
  align-items: start;
  background: #fff8e6;
}

.result-use-heading {
  max-width: 540px;
}

.result-use-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #ead8a8;
}

.result-use-list article {
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid #ead8a8;
  border-bottom: 1px solid #ead8a8;
}

.result-use-list article:nth-child(even) {
  border-right: 0;
}

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

.trust-section {
  padding: 48px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--blue-dark);
}

.trust-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.trust-heading .eyebrow {
  margin: 0;
  color: var(--yellow);
}

.trust-heading h2 {
  max-width: 700px;
  color: var(--white);
  font-size: 32px;
  text-align: right;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-grid > div {
  min-width: 0;
  padding: 22px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 7px;
  color: var(--white);
  font-size: 14px;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.mentor-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 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);
}

.ielts-mentor-profile {
  border-left-color: var(--yellow);
}

.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;
}

.mentor-profile-photo {
  width: 156px;
  height: 190px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 52%;
}

.speaking-mentor-profile,
.toefl-mentor-profile,
.ielts-mentor-profile {
  grid-template-columns: 156px minmax(0, 1fr);
}

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

.ielts-mentor-profile .mentor-profile-avatar {
  color: var(--ink);
  background: var(--yellow);
}

.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);
}

.ielts-package {
  border-top-color: #e8b000;
}

.ielts-package-writing {
  border-top-color: #e71920;
}

.ielts-combo-package {
  border-top-color: #087a55;
}

.ielts-combo-package > strong {
  color: #087a55;
}

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

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

.package-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.package-duration {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--yellow);
  color: var(--muted);
  background: #fffaf0;
  font-size: 12px;
  font-weight: 800;
}

.package-duration strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
}

.package-item .package-program-details {
  margin-bottom: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.package-item .package-benefits {
  margin-bottom: 0;
}

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

.speaking-package {
  border-top-color: var(--blue);
}

.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;
  color: var(--white);
  font-size: 13px;
  text-transform: none;
}

@media (max-width: 1180px) and (min-width: 981px) {
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.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;
    align-items: start;
    gap: 22px;
  }

  .proof-summary > p {
    max-width: 680px;
  }

  .compact-gallery-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .gallery-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .gallery-item {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: start;
  }

  .gallery-photo {
    height: 180px;
  }

  .gallery-testimonial-ready {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .online-test-benefits,
  .result-use-section {
    grid-template-columns: 1fr;
  }

  .trust-heading {
    display: block;
  }

  .trust-heading h2 {
    margin-top: 10px;
    text-align: left;
  }

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

  .trust-grid > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .trust-grid > div:nth-child(even) {
    border-right: 0;
  }

  .trust-grid > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

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

  .sample-score-report,
  .sample-speaking-report,
  .sample-ielts-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;
  }
}

.mobile-service-switcher,
.mobile-carousel-controls {
  display: none;
}

@media (max-width: 760px) {
  .ielts-other-package-band {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .ielts-other-package-band .secondary-button {
    width: 100%;
  }

  .schedule-table[data-carousel-track],
  .proof-grid[data-carousel-track] {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    padding: 2px 12vw 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pinch-zoom;
  }

  .schedule-table[data-carousel-track]::-webkit-scrollbar,
  .proof-grid[data-carousel-track]::-webkit-scrollbar {
    display: none;
  }

  .schedule-table [data-carousel-item] {
    flex: 0 0 min(82vw, 350px);
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 270px;
    padding: 20px;
    border: 1px solid #cbd9e6;
    border-top: 5px solid var(--blue);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(18, 45, 73, 0.08);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .schedule-table [data-carousel-item]:nth-of-type(3n + 2) {
    border-top-color: var(--red);
  }

  .schedule-table [data-carousel-item]:nth-of-type(3n) {
    border-top-color: #e4b914;
  }

  .schedule-table [data-carousel-item] span {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #e5ecf3;
    font-weight: 800;
  }

  .schedule-table [data-carousel-item] span:last-child {
    border-bottom: 0;
  }

  .schedule-table [data-carousel-item] span::before {
    color: #63778a;
    content: attr(data-label);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .schedule-table [data-carousel-item] span:first-child {
    display: block;
    padding: 2px 0 13px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
  }

  .schedule-table [data-carousel-item] span:first-child::before {
    display: block;
    margin-bottom: 5px;
  }

  .proof-grid[data-carousel-track] {
    width: auto;
    max-width: none;
    margin: 0;
  }

  .proof-grid [data-carousel-item] {
    flex: 0 0 min(86vw, 380px);
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .proof-grid .sample-score-report,
  .proof-grid .sample-speaking-report,
  .proof-grid .sample-ielts-report {
    display: flex;
    flex-direction: column;
  }

  .proof-grid .sample-speaking-report dl,
  .proof-grid .sample-ielts-components {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid .secondary-button {
    align-self: flex-start;
    margin-top: auto;
  }

  .proof-grid .sample-certificate-card[data-carousel-item] {
    min-height: 0;
  }

  .schedule > .mobile-carousel-controls,
  .proof-section > .mobile-carousel-controls {
    width: min(100%, 460px);
    margin-right: auto;
    margin-left: auto;
  }

  .mobile-service-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 24px 18px 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f3f6fa;
  }

  .mobile-service-switcher button {
    min-width: 0;
    min-height: 44px;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    color: #53677b;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-service-switcher button.is-active {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 7px 16px rgba(7, 93, 174, 0.2);
  }

  /* Service sections stay visible in document order on mobile. */

  .mobile-service-section {
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .mobile-service-section .section-heading {
    margin-bottom: 20px;
  }

  .mobile-service-section .section-heading h2 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .mobile-service-section .test-grid.test-grid-four,
  .mobile-service-section .package-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin-top: 20px;
    padding: 2px 12vw 12px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pinch-zoom;
  }

  .mobile-service-section .test-grid::-webkit-scrollbar,
  .mobile-service-section .package-grid::-webkit-scrollbar {
    display: none;
  }

  .mobile-service-section .test-card,
  .mobile-service-section .package-item {
    flex: 0 0 min(82vw, 360px);
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .mobile-service-section .test-card {
    padding: 22px;
  }

  .mobile-service-section .test-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .mobile-service-section .package-item {
    padding: 22px;
  }

  .mobile-service-section .package-item > strong {
    margin-bottom: 14px;
  }

  .mobile-service-section .package-benefits,
  .mobile-service-section .package-program-details {
    display: none;
  }

  .mobile-service-section .package-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .mobile-carousel-controls {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 42px;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
  }

  .mobile-carousel-controls > button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #b9cadb;
    border-radius: 50%;
    color: var(--blue);
    background: var(--white);
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-carousel-controls > button:disabled {
    cursor: default;
    opacity: 0.35;
  }

  .mobile-carousel-controls output {
    min-width: 34px;
    color: #53677b;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
  }

  .mobile-carousel-dots {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
  }

  .mobile-carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bdc9d5;
    transition: width 160ms ease, background 160ms ease;
  }

  .mobile-carousel-dots button.is-active {
    width: 22px;
    border-radius: 8px;
    background: var(--red);
  }
}

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

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

  .mentor-profile .mentor-profile-photo {
    width: min(100%, 240px);
    height: auto;
    aspect-ratio: 4 / 5;
  }

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

  .sample-ielts-components {
    grid-template-columns: 1fr;
  }

  .online-benefits-list,
  .result-use-list,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .result-use-list article,
  .result-use-list article:nth-child(even),
  .trust-grid > div,
  .trust-grid > div:nth-child(even) {
    border-right: 0;
  }

  .trust-grid > div:last-child {
    grid-column: auto;
  }

  .sample-certificate-card {
    padding: 12px;
  }

  .sample-certificate-result {
    min-width: 36%;
    padding: 2px 8px;
    transform: translateY(-6px);
  }

  .sample-certificate-result span {
    font-size: 7px;
  }

  .sample-certificate-result strong {
    font-size: 22px;
    line-height: 1;
  }

  .sample-certificate-qr {
    right: 4%;
    bottom: 22%;
  }

  .sample-certificate-qr b {
    width: 30px;
    height: 30px;
    border-width: 3px;
    font-size: 8px;
  }

  .sample-certificate-qr span {
    font-size: 4px;
  }

  .sample-certificate-document footer {
    display: grid;
    justify-items: center;
    bottom: 19px;
    gap: 1px;
    padding-top: 4px;
    font-size: 7.5px;
    font-weight: 700;
    text-align: center;
  }

  .sample-certificate-document > small {
    bottom: 1px;
    font-size: 6px;
  }

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

@media (max-width: 380px) {
  .sample-certificate-result {
    padding: 1px 6px;
  }

  .sample-certificate-result strong {
    font-size: 20px;
  }

  .sample-certificate-document footer {
    bottom: 10px;
    font-size: 7px;
  }

  .sample-certificate-document > small {
    bottom: 1px;
    font-size: 5.5px;
  }
}

@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;
}

.microphone-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.microphone-check span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.microphone-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.microphone-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 80ms linear;
}

.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 > textarea {
  width: 100%;
  min-height: 70px;
  margin: 20px 0 0;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  font: inherit;
  line-height: 1.7;
}

.speech-transcript > textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(13, 111, 191, 0.12);
}

.transcript-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.transcript-actions .form-note {
  margin: 0;
}

.transcript-actions button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
}

.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;
  }

  .microphone-check,
  .transcript-actions,
  .analysis-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .microphone-check span {
    text-align: left;
  }

  .microphone-check button,
  .recording-actions button,
  .transcript-actions button {
    width: 100%;
  }

  .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(1000px, 100%);
}

.certificate-document {
  position: relative;
  container-type: inline-size;
  width: 100%;
  min-height: 0;
  aspect-ratio: 297 / 210;
  padding: 5.2cqi 6.5cqi 4.3cqi;
  overflow: hidden;
  border: clamp(5px, 1.5cqi, 14px) solid var(--blue);
  outline: clamp(1px, .32cqi, 3px) solid var(--yellow);
  outline-offset: clamp(-24px, -2.55cqi, -8px);
  text-align: center;
  background: var(--white);
}

.certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 125%;
  color: var(--red);
  font-size: 7.8cqi;
  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: 8.8cqi;
  height: 8.8cqi;
  object-fit: contain;
}

.certificate-brand {
  margin: .7cqi 0 2.3cqi;
  color: var(--blue);
  font-size: 1.65cqi;
  font-weight: 900;
}

.certificate-document h2 {
  margin: 0 0 2cqi;
  color: var(--red);
  font-size: 5.3cqi;
  line-height: 1.08;
}

.certificate-document > p:not(.certificate-brand) {
  margin: 0;
  color: var(--muted);
  font-size: 1.55cqi;
  line-height: 1.45;
}

.certificate-document > strong {
  display: block;
  margin: 1.25cqi 0;
  color: var(--blue-dark);
  font-size: 4.2cqi;
  font-style: italic;
  line-height: 1.12;
}

.certificate-document > b {
  display: block;
  margin: 1.1cqi 0 1.5cqi;
  color: var(--red);
  font-size: 6.8cqi;
  line-height: 1;
}

.certificate-band-profile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1cqi;
  width: min(72cqi, 620px);
  margin: 0 auto 1.6cqi;
}

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

.certificate-band-profile span {
  display: grid;
  gap: .35cqi;
  padding: .7cqi .45cqi;
  border: 1px solid #c9d8e8;
  background: #f3f8fd;
}

.certificate-band-profile small {
  color: var(--muted);
  font-size: 1.05cqi;
  font-weight: 800;
}

.certificate-band-profile strong {
  color: var(--blue-dark);
  font-size: 1.8cqi;
  line-height: 1;
}

.certificate-toefl-profile {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(45cqi, 430px);
}

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

.has-director-approval .certificate-footer-data {
  position: absolute;
  left: 6.5cqi;
  bottom: 6cqi;
  display: grid;
  justify-items: start;
  gap: .6cqi;
  width: 42cqi;
  padding: 0;
  border: 0;
  text-align: left;
}

.certificate-approval {
  position: absolute;
  right: 4.8cqi;
  bottom: 3.2cqi;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 26cqi;
  color: var(--blue-dark);
  line-height: 1.1;
}

.certificate-approval-date {
  margin-bottom: .3cqi;
  font-size: 1.15cqi;
}

.certificate-signature {
  position: relative;
  z-index: 2;
  width: 22cqi !important;
  height: 8.4cqi !important;
  margin: -1.1cqi 0 -1.2cqi;
  object-fit: contain !important;
}

.certificate-stamp-image {
  position: absolute;
  top: -.2cqi;
  left: -1.5cqi;
  z-index: 4;
  width: 7.2cqi !important;
  height: 7.2cqi !important;
  object-fit: contain !important;
  opacity: 1;
  transform: rotate(-8deg);
}

.certificate-signature-line {
  width: 23cqi;
  border-top: .12cqi solid var(--blue-dark);
}

.certificate-approval > strong {
  margin-top: .45cqi;
  font-size: 1.08cqi;
}

.certificate-approval > small {
  margin-top: .3cqi;
  color: var(--muted);
  font-size: .95cqi;
}

.certificate-legal-data {
  position: absolute;
  top: 2.1cqi;
  right: 3.5cqi;
  display: grid;
  gap: .25cqi;
  color: var(--muted);
  font-size: .95cqi;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.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 {
    flex-direction: column;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }

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

/* IELTS course and diagnostic */
.ielts-course-hero {
  padding-top: clamp(52px, 6vw, 78px);
  padding-bottom: clamp(52px, 6vw, 78px);
  background: linear-gradient(135deg, #fff8da 0 54%, #eaf5ff 54% 100%);
}

.ielts-course-hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
}

.ielts-course-note {
  border-top: 5px solid var(--yellow);
}

.ielts-course-note strong {
  color: var(--blue);
  font-size: 30px;
}

.ielts-course-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.ielts-course-price b {
  color: var(--red);
  font-size: 20px;
}

.ielts-course-overview {
  background: var(--white);
}

.ielts-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ielts-skill-grid article {
  min-width: 0;
  padding: 24px;
  border-top: 4px solid var(--blue);
  background: var(--paper);
}

.ielts-skill-grid article:nth-child(2) { border-top-color: var(--red); }
.ielts-skill-grid article:nth-child(3) { border-top-color: var(--yellow); }
.ielts-skill-grid article:nth-child(4) { border-top-color: #1e9a61; }

.ielts-skill-grid span,
.ielts-result-details article > span,
.ielts-result-actions article > span,
.ielts-speaking-task > div:first-child > span,
.ielts-writing-task > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ielts-writing-integrity-note {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-left: 4px solid #dc2626;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.ielts-skill-grid h3 {
  margin: 14px 0 8px;
}

.ielts-skill-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.ielts-diagnostic-page {
  background: #f4f7fb;
}

.ielts-test-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.ielts-header-status {
  display: grid;
  margin-left: auto;
  text-align: right;
}

.ielts-header-status span {
  color: var(--muted);
  font-size: 11px;
}

.ielts-header-status strong {
  color: var(--red);
  font-size: 13px;
}

.ielts-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.ielts-test-choice {
  padding-top: clamp(52px, 7vw, 86px);
  padding-bottom: 26px;
}

.ielts-test-choice .section-heading h1 {
  max-width: 760px;
  font-size: clamp(36px, 4.5vw, 58px);
}

.ielts-choice-panel {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ielts-choice-panel.is-selected {
  outline: 4px solid rgba(10, 92, 170, 0.16);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.ielts-choice-panel.paid.is-selected {
  outline-color: rgba(237, 28, 36, 0.13);
  border-color: var(--red);
}

.ielts-choice-status {
  margin-top: 18px;
  text-align: center;
}

.free-test-schedule {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid #f1c84b;
  border-left: 5px solid #e71b23;
  border-radius: 8px;
  background: #fffdf4;
  color: #302d27;
}

.free-test-schedule strong {
  color: #a8171d;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.free-test-schedule > span {
  color: #302d27;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.free-test-schedule small {
  display: grid;
  gap: 2px;
  color: #625d54;
}

.free-test-schedule small b {
  color: inherit;
  font-weight: 800;
}

.free-test-schedule.is-open {
  border-color: #8ccda7;
  border-left-color: #138a4b;
  background: #f3fff7;
}

.free-test-schedule.is-open strong {
  color: #0b6a39;
}

.choice-panel.is-schedule-locked {
  cursor: not-allowed;
  opacity: 1;
}

.choice-panel.is-schedule-locked .free-test-action-label { color: #a8171d; }

.ielts-back-choice { margin-top: 24px; }

.ielts-paid-target-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.ielts-account-summary {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.ielts-account-summary div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
}

.ielts-account-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ielts-account-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}

.ielts-payment-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 70px);
}

.ielts-payment-gate > div > h1 {
  max-width: 720px;
  font-size: clamp(38px, 5vw, 62px);
}

.ielts-payment-gate > div > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.ielts-paid-test-payment {
  border-top: 5px solid var(--red);
}

.speaking-test-choice {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.speaking-paid-gate {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.speaking-paid-gate .paid-test-payment {
  border-top-color: var(--red);
}

.ielts-registration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 70px);
}

.ielts-registration-copy h1,
.ielts-intro h1,
.ielts-result-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 66px);
}

.ielts-registration-copy > p:last-of-type,
.ielts-intro > div:first-child > p:last-child {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.ielts-test-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.ielts-test-facts div {
  padding: 18px;
  border-left: 4px solid var(--blue);
  background: var(--white);
}

.ielts-test-facts div:nth-child(2) { border-left-color: var(--red); }
.ielts-test-facts div:nth-child(3) { border-left-color: var(--yellow); }

.ielts-test-facts dt {
  color: var(--blue);
  font-size: 26px;
  font-weight: 900;
}

.ielts-test-facts dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ielts-registration-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(13, 48, 88, 0.1);
}

.ielts-registration-form label:not(.consent-field) {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.ielts-intro {
  min-height: calc(100vh - 84px);
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 70px);
}

.ielts-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.ielts-flow-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.ielts-flow-grid span {
  color: var(--red);
  font-weight: 900;
}

.ielts-flow-grid h3 {
  margin: 20px 0 8px;
}

.ielts-flow-grid p,
.ielts-intro-actions span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.ielts-intro-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.premium-ielts-band {
  display: grid;
  gap: 7px;
  min-width: 210px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.premium-ielts-band[hidden] {
  display: none;
}

.premium-ielts-band select {
  min-height: 46px;
  padding: 10px 38px 10px 12px;
  border: 1px solid #b8c6d8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.ielts-test-workspace {
  padding: 26px clamp(16px, 4vw, 52px) 80px;
}

.ielts-progress-panel {
  position: sticky;
  top: 77px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(160px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(13, 48, 88, 0.08);
}

.ielts-progress-panel > div:first-child {
  display: grid;
}

.ielts-progress-panel span {
  color: var(--muted);
  font-size: 12px;
}

.ielts-section-timer {
  min-width: 86px;
  padding: 8px 12px;
  border: 1px solid #b8c9d8;
  border-radius: 6px;
  color: #0b4f86;
  background: #f3f8fc;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.ielts-section-timer.is-urgent {
  border-color: #e31919;
  color: #b50f19;
  background: #fff0f1;
}

.ielts-package-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 14px 18px;
  border-left: 4px solid var(--blue);
  background: #f0f7fd;
}

.ielts-package-note span { color: var(--muted); }

.ielts-progress-track {
  height: 8px;
  overflow: hidden;
  background: #dce7f1;
}

.ielts-progress-track i {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--red);
  transition: width 220ms ease;
}

.ielts-section-panel {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.ielts-listening-preparation {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #b8c9d8;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #f3f8fc;
}

.ielts-listening-preparation > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ielts-listening-preparation span,
.ielts-listening-preparation strong {
  font-weight: 800;
}

.ielts-listening-preparation strong {
  color: #0b4f86;
  font-variant-numeric: tabular-nums;
}

.ielts-listening-preparation p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ielts-listening-preparation.is-preparing {
  border-left-color: #efa900;
  background: #fff9e8;
}

.ielts-listening-preparation.is-running {
  border-left-color: #18864b;
  background: #eef9f3;
}

.ielts-listening-preparation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ielts-listening-preparation-actions [hidden] {
  display: none;
}

@media (max-width: 640px) {
  .ielts-listening-preparation > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ielts-listening-preparation-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ielts-listening-preparation-actions button {
    width: 100%;
  }
}

.ielts-section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 30px;
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.ielts-section-heading p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.ielts-content-block,
.ielts-writing-task,
.ielts-speaking-task {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.ielts-content-block-head,
.ielts-speaking-task > div:first-child,
.ielts-record-controls,
.ielts-word-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ielts-audio-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.ielts-task-instruction {
  margin: 18px 0 0;
  padding: 13px 15px;
  color: #27384c;
  background: #eef7ff;
  border-left: 4px solid var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.ielts-writing-visual {
  min-width: 0;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #b9c8dc;
  background: #f8fbff;
  color: #13233a;
}

.ielts-writing-visual > p {
  margin: 0 0 10px;
  text-align: right;
  font-size: 0.82rem;
  color: #53657c;
}

.ielts-visual-table-wrap { overflow-x: auto; }
.ielts-writing-visual table { width: 100%; border-collapse: collapse; min-width: 420px; }
.ielts-writing-visual th,
.ielts-writing-visual td { padding: 9px 12px; border: 1px solid #aebdd0; text-align: center; }
.ielts-writing-visual thead th { background: #173f73; color: #fff; }
.ielts-writing-visual tbody th { text-align: left; background: #e8f0fa; }

.ielts-chart-scroll {
  width: 100%;
  overflow-x: auto;
}

.ielts-data-chart {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
  font-family: Arial, sans-serif;
}

.ielts-data-chart .chart-grid line {
  stroke: #d5deea;
  stroke-width: 1;
}

.ielts-data-chart .chart-grid text,
.ielts-data-chart .axis-label {
  fill: #445a72;
  font-size: 12px;
}

.ielts-data-chart .chart-axis {
  stroke: #263a51;
  stroke-width: 1.5;
}

.ielts-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 4px 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.ielts-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ielts-chart-legend i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.ielts-donut-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
  gap: 34px;
  margin: 8px auto 18px;
}

.ielts-donut-layout section {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.ielts-donut-layout svg {
  width: min(100%, 190px);
}

.ielts-donut-layout strong {
  font-size: 14px;
}

.ielts-process-diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ielts-process-diagram li {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  place-items: center start;
  gap: 8px;
  padding: 12px;
  border: 1px solid #7895b8;
  background: #fff;
  font-weight: 700;
}

.ielts-process-diagram li b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0b5cab;
  font-size: 12px;
}

.ielts-process-diagram li:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -21px;
  top: 50%;
  transform: translateY(-50%);
  color: #d9292f;
  font-size: 1.25rem;
}

.ielts-process-diagram li:nth-child(4n):not(:last-child)::after {
  content: "\2193";
  top: auto;
  right: 50%;
  bottom: -27px;
  transform: translateX(50%);
}

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

.ielts-plan-comparison > section {
  padding: 12px;
  border: 1px solid #9db0c6;
  background: #fff;
}

.ielts-plan-comparison > section > strong {
  display: block;
  margin-bottom: 10px;
  color: #173f73;
  text-align: center;
  text-transform: uppercase;
}

.ielts-plan-grid {
  position: relative;
  display: grid;
  min-height: 245px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border: 2px solid #435d79;
  background: #eef3f7;
}

.ielts-plan-grid > i {
  position: absolute;
  z-index: 0;
  top: 46%;
  right: 0;
  left: 0;
  height: 24px;
  border-block: 1px dashed #77889a;
  background: #d8e0e7;
}

.ielts-plan-grid span {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 8px;
  border: 1px solid #7895b8;
  background: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.ielts-plan-grid span[data-zone="0"] { grid-area: 1 / 1; }
.ielts-plan-grid span[data-zone="1"] { grid-area: 1 / 3; }
.ielts-plan-grid span[data-zone="2"] { grid-area: 3 / 1; }
.ielts-plan-grid span[data-zone="3"] { grid-area: 3 / 3; }
.ielts-plan-grid span[data-zone="4"] { grid-area: 1 / 2; }
.ielts-plan-grid span[data-zone="5"] { grid-area: 3 / 2; }
.ielts-preparation-button { margin-top: 16px; }
.ielts-preparation-status { display: block; margin: 8px 0 14px; color: #566980; font-weight: 700; }

@media (max-width: 640px) {
  .ielts-writing-task { min-width: 0; }
  .ielts-writing-visual { margin-inline: -4px; padding: 12px; }
  .ielts-data-chart { min-width: 0; }
  .ielts-process-diagram { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .ielts-process-diagram li { min-height: 78px; grid-template-columns: 24px minmax(0, 1fr); padding: 9px; font-size: 12px; }
  .ielts-process-diagram li b { width: 24px; height: 24px; }
  .ielts-process-diagram li:nth-child(4n):not(:last-child)::after { content: "\2192"; top: 50%; right: -13px; bottom: auto; transform: translateY(-50%); }
  .ielts-process-diagram li:nth-child(2n):not(:last-child)::after { content: "\2193"; top: auto; right: 50%; bottom: -20px; transform: translateX(50%); }
  .ielts-plan-comparison { grid-template-columns: 1fr; }
  .ielts-plan-grid { min-height: 210px; }
  .ielts-donut-layout { gap: 12px; }
}

.ielts-reading-passage {
  margin: 20px 0;
  padding: 22px;
  border-left: 4px solid var(--yellow);
  color: #27384c;
  background: var(--white);
  line-height: 1.85;
}

.ielts-reading-passage p + p { margin-top: 16px; }

.ielts-question > small {
  display: block;
  margin-bottom: 8px;
  color: #47637d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ielts-question-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.ielts-question {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.ielts-question legend {
  display: flex;
  gap: 12px;
  padding: 0 8px;
  font-weight: 900;
  line-height: 1.45;
}

.ielts-question legend > span {
  color: var(--red);
}

.ielts-question label {
  display: grid;
  grid-template-columns: auto 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  cursor: pointer;
}

.ielts-question label:has(input:checked) {
  border-color: var(--blue);
  background: #eef7ff;
}

.ielts-question label i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--sky);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.ielts-question .ielts-text-answer,
.ielts-question .ielts-select-answer {
  display: grid;
  grid-template-columns: minmax(85px, auto) minmax(0, 1fr);
  border-color: var(--line);
  cursor: text;
}

.ielts-question .ielts-text-answer input,
.ielts-question .ielts-select-answer select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: #172234;
  background: #fff;
  border: 1px solid #aebdca;
  border-radius: 5px;
  font: inherit;
}

.ielts-question .ielts-text-answer input:focus,
.ielts-question .ielts-select-answer select:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(7, 91, 170, .12);
}

.ielts-writing-task > p,
.ielts-speaking-task h3 {
  margin: 12px 0 18px;
  color: #27384c;
  line-height: 1.7;
}

.ielts-writing-task textarea,
.ielts-speaking-task textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.65;
}

.ielts-word-count {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.ielts-word-count strong {
  color: var(--blue);
}

.ielts-record-controls {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.ielts-microphone-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #bcd8f3;
  border-radius: 8px;
  background: var(--sky);
}

.ielts-microphone-check > div:first-child {
  display: grid;
  gap: 4px;
}

.ielts-microphone-check span,
.ielts-record-controls span {
  color: var(--muted);
  font-size: 13px;
}

.ielts-record-meter {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #dce7f1;
}

.ielts-record-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 80ms linear;
}

.ielts-speaking-task > .ielts-record-meter {
  margin-bottom: 12px;
}

.ielts-speaking-task audio {
  width: 100%;
  margin-bottom: 12px;
}

.ielts-record-controls .is-recording {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.section-message {
  min-height: 24px;
  color: var(--red);
  font-weight: 800;
}

.ielts-next-section {
  margin-top: 14px;
}

.ielts-result {
  padding: clamp(38px, 6vw, 76px) clamp(20px, 5vw, 70px) 80px;
}

.ielts-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 34px;
  align-items: center;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.ielts-result-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.ielts-overall-band {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 22px;
  border-top: 6px solid var(--yellow);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(13, 48, 88, 0.1);
}

.ielts-overall-band strong {
  color: var(--blue);
  font-size: 68px;
  line-height: 1;
}

.ielts-overall-band small,
.ielts-overall-band span {
  color: var(--muted);
  font-weight: 800;
}

.ielts-component-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.ielts-component-grid article {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 22px;
  background: var(--white);
}

.ielts-component-grid strong {
  color: var(--blue);
  font-size: 34px;
}

.ielts-component-grid i {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background: var(--red);
}

.ielts-rubric-report {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  background: #f7faff;
}

.ielts-rubric-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.ielts-rubric-heading span,
.ielts-rubric-grid header span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ielts-rubric-heading h2 { margin: 5px 0 0; }
.ielts-rubric-heading > p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.55; }

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

.ielts-rubric-grid > article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.ielts-rubric-grid > article > header,
.ielts-criterion-row > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.ielts-rubric-grid > article > header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ielts-rubric-grid > article > header strong { color: var(--blue); font-size: 22px; }
.ielts-speaking-rubric { grid-column: 1 / -1; }

.ielts-criterion-row { padding: 15px 0; border-bottom: 1px solid var(--line); }
.ielts-criterion-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ielts-criterion-row span { color: var(--blue); font-weight: 850; }
.ielts-criterion-row strong { flex: 0 0 auto; color: var(--red); }
.ielts-criterion-row p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }

.ielts-target-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  background: var(--line);
}

.ielts-target-result.is-achieved { border-left-color: #1e9a61; }
.ielts-target-result.is-pending { border-left-color: var(--red); }

.ielts-target-result > div {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  background: var(--white);
}

.ielts-target-result span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ielts-target-result strong { color: var(--blue); }

.ielts-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#ielts-certificate-status {
  min-height: 20px;
  margin-top: 12px;
}

.ielts-result-details,
.ielts-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.ielts-result-details article,
.ielts-result-actions article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.ielts-result-details article:first-child { border-left: 5px solid #1e9a61; }
.ielts-result-details article:last-child { border-left: 5px solid var(--red); }
.ielts-result-actions article:first-child { border-top: 5px solid var(--blue); }
.ielts-result-actions article:last-child { border-top: 5px solid var(--yellow); }

.ielts-result-details h3,
.ielts-result-actions h3 {
  margin: 10px 0;
}

.ielts-result-details p,
.ielts-result-actions p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.ielts-result > .simulation-notice {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .ielts-skill-grid,
  .ielts-flow-grid,
  .ielts-component-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ielts-registration {
    grid-template-columns: 1fr;
  }

  .ielts-payment-gate { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .ielts-header-status { display: none; }
  .ielts-test-header .brand small { display: none; }
  .ielts-progress-panel {
    top: 70px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .ielts-progress-panel > div:first-child,
  .ielts-progress-track { grid-column: 1 / -1; }
  .ielts-progress-panel > span { display: none; }
  .ielts-package-note { flex-direction: column; }
  .ielts-section-heading,
  .ielts-result-hero,
  .ielts-result-details,
  .ielts-result-actions,
  .ielts-target-result {
    grid-template-columns: 1fr;
  }
  .ielts-rubric-heading { align-items: stretch; flex-direction: column; }
  .ielts-rubric-grid { grid-template-columns: 1fr; }
  .ielts-speaking-rubric { grid-column: auto; }
  .ielts-overall-band { min-height: 160px; }
}

@media (max-width: 520px) {
  .program-grid.three-columns,
  .test-grid,
  .test-grid.test-grid-four,
  .ielts-skill-grid,
  .ielts-flow-grid,
  .ielts-component-grid,
  .ielts-test-facts {
    grid-template-columns: 1fr;
  }
  .ielts-registration-form,
  .ielts-section-panel,
  .ielts-content-block,
  .ielts-writing-task,
  .ielts-speaking-task {
    padding: 20px;
  }
  .ielts-content-block-head,
  .ielts-speaking-task > div:first-child,
  .ielts-intro-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .ielts-microphone-check {
    grid-template-columns: 1fr;
  }
  .ielts-microphone-check button,
  .ielts-record-controls,
  .ielts-record-controls button {
    width: 100%;
  }
  .ielts-record-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .ielts-audio-button,
  .ielts-intro-actions .primary-button,
  .ielts-result-actions .primary-button,
  .ielts-result-actions .secondary-button,
  .ielts-action-buttons > * {
    width: 100%;
  }
}

/* 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;
}

.exam-question-title.spoken-question-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.exam-question-instruction {
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.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);
  }
}
.participant-profile-field { display:none!important; }

@keyframes mentor-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 760px) {
  .mentor-profile-grid,
  .profile-mentor-grid {
    display: flex;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 10vw 20px 2px;
    scroll-padding-left: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(7, 93, 174, 0.45) transparent;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pinch-zoom;
  }

  .mentor-profile-grid::-webkit-scrollbar,
  .profile-mentor-grid::-webkit-scrollbar {
    height: 5px;
  }

  .mentor-profile-grid::-webkit-scrollbar-thumb,
  .profile-mentor-grid::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(7, 93, 174, 0.45);
  }

  .mentor-profile,
  .profile-mentor-card {
    flex: 0 0 min(84vw, 350px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    animation: mentor-card-float 4.2s ease-in-out infinite;
    box-shadow: 0 16px 32px rgba(13, 48, 88, 0.12);
  }

  .mentor-profile:nth-child(2),
  .profile-mentor-card:nth-child(2) {
    animation-delay: -1.4s;
  }

  .mentor-profile:nth-child(3),
  .profile-mentor-card:nth-child(3) {
    animation-delay: -2.8s;
  }

  .mentor-profile,
  .speaking-mentor-profile {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
  }

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

  .mentor-profile .mentor-profile-photo {
    width: 96px;
    height: 124px;
    aspect-ratio: auto;
  }

  .mentor-profile h3 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mentor-profile,
  .profile-mentor-card {
    animation: none;
  }
}

/* Course information and account-based enrollment */
.ielts-course-packages { background: #f7f9fc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ielts-class-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.ielts-class-package-card { min-width: 0; padding: 24px; display: grid; align-content: start; gap: 12px; color: var(--ink); text-align: left; background: #fff; border: 1px solid #cfd9e3; border-top: 5px solid #e8b000; border-radius: 8px; cursor: pointer; font: inherit; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.ielts-class-package-card:nth-child(2) { border-top-color: #e71920; }
.ielts-class-package-card.is-combo { border-top-color: #087a55; }
.ielts-class-package-card:hover, .ielts-class-package-card:focus-visible { transform: translateY(-3px); border-color: #8eacc9; box-shadow: 0 16px 32px rgba(18, 48, 78, 0.12); outline: none; }
.ielts-class-package-card.is-selected { border-color: #075baa; box-shadow: 0 0 0 4px rgba(7, 91, 170, 0.14), 0 16px 32px rgba(18, 48, 78, 0.12); }
.ielts-class-package-card > span { color: #075baa; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.ielts-class-package-card h3 { margin: 0; font-size: 22px; }
.ielts-class-package-card > strong { color: #e71920; font-size: 26px; }
.ielts-class-package-card p { margin: 0; color: #5f6d7b; font-size: 14px; line-height: 1.65; }
.ielts-class-package-card ul { margin: 2px 0 8px; padding-left: 20px; display: grid; gap: 7px; color: #344054; font-size: 13px; line-height: 1.45; }
.ielts-class-package-card > b { align-self: end; margin-top: auto; padding-top: 12px; color: #075baa; font-size: 14px; }
.ielts-course-packages.is-direct-package-flow { display: none; }
.ielts-other-package-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px clamp(20px, 5vw, 72px); color: var(--ink); background: #fff7d8; border-top: 1px solid #edd681; border-bottom: 1px solid #edd681; }
.ielts-other-package-band > div { display: grid; gap: 5px; }
.ielts-other-package-band span { color: #6f5a11; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.ielts-other-package-band strong { font-size: 18px; line-height: 1.4; }
.ielts-other-package-band .secondary-button { flex: 0 0 auto; margin: 0; background: var(--white); }
.ielts-selected-package { margin: 22px 0 0; padding: 16px 18px; background: #fff; border: 1px solid #d6dfe8; border-left: 4px solid #98a6b5; border-radius: 6px; }
.ielts-selected-package span, .ielts-selected-package strong, .ielts-selected-package small { display: block; }
.ielts-selected-package span { color: #667085; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.ielts-selected-package strong { margin-top: 5px; }
.ielts-selected-package small { margin-top: 4px; color: #667085; }
.ielts-selected-package.is-ready { border-left-color: #087a55; background: #f0fbf6; }
.course-payment-form button:disabled { cursor: not-allowed; opacity: 0.6; }
.course-program-overview { border-top: 1px solid var(--line); }
.course-benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.course-benefit-grid article { min-height: 210px; padding: 20px; display: grid; align-content: start; gap: 10px; background: #fff; border: 1px solid #d9e1e9; border-top: 4px solid #075baa; border-radius: 7px; }
.course-benefit-grid article:nth-child(2) { border-top-color: #e71920; }
.course-benefit-grid article:nth-child(3) { border-top-color: #e4a400; }
.course-benefit-grid article:nth-child(4) { border-top-color: #087a55; }
.course-benefit-grid article > span { color: #075baa; font-size: 12px; font-weight: 900; }
.course-benefit-grid h3 { margin: 0; font-size: 18px; }
.course-benefit-grid p { margin: 0; color: #5f6d7b; font-size: 14px; line-height: 1.65; }

.course-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 470px); gap: clamp(28px, 6vw, 78px); align-items: center; background: #f4f7fa; border-top: 1px solid #dbe3ea; border-bottom: 1px solid #dbe3ea; }
.course-checkout-copy h2 { margin: 7px 0 12px; max-width: 680px; font-size: clamp(27px, 4vw, 42px); }
.course-checkout-copy > p:not(.eyebrow) { max-width: 680px; color: #5f6d7b; line-height: 1.7; }
.course-checkout-copy ul { margin: 22px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.course-checkout-copy li { position: relative; padding-left: 28px; color: #344054; font-weight: 700; }
.course-checkout-copy li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 9px; border-left: 3px solid #087a55; border-bottom: 3px solid #087a55; transform: rotate(-45deg); }

.course-payment-form { padding: 24px; display: grid; gap: 16px; background: #fff; border: 1px solid #cfd9e3; border-top: 4px solid #075baa; border-radius: 8px; box-shadow: 0 16px 38px rgba(20, 36, 55, 0.1); }
.course-payment-form label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 800; }
.course-payment-form select { width: 100%; min-height: 48px; padding: 10px 12px; color: #172234; background: #fff; border: 1px solid #aeb9c6; border-radius: 6px; font: inherit; }
.course-account-summary { padding: 15px 16px; background: #edf6fd; border-left: 4px solid #075baa; border-radius: 5px; }
.course-account-summary span, .course-account-summary strong, .course-account-summary small { display: block; }
.course-account-summary span { color: #075baa; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.course-account-summary strong { margin-top: 6px; font-size: 16px; }
.course-account-summary small { margin-top: 3px; color: #617082; }
.course-payment-total { padding: 15px 0; display: flex; justify-content: space-between; align-items: end; gap: 15px; border-top: 1px solid #e3e8ee; border-bottom: 1px solid #e3e8ee; }
.course-payment-total span { color: #667085; font-size: 13px; }
.course-payment-total strong { color: #e71920; font-size: 25px; }
.course-payment-form .primary-button { width: 100%; min-height: 48px; }
.course-payment-form .form-note { min-height: 20px; margin: 0; }

@media (max-width: 900px) {
  .ielts-class-package-grid { grid-template-columns: 1fr; }
  .course-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-checkout { grid-template-columns: 1fr; }
  .course-payment-form { width: min(560px, 100%); }
}

/* Manual bank transfer and QRIS checkout */
.manual-payment-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(92vh, 920px);
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(14, 32, 52, .28);
}

.manual-payment-dialog::backdrop { background: rgba(11, 29, 48, .68); }
.manual-payment-shell { max-height: min(92vh, 920px); overflow-y: auto; }
.manual-payment-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: var(--white);
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--line);
}
.manual-payment-header span { color: var(--blue); font-size: 11px; font-weight: 900; }
.manual-payment-header h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: 0; }
.manual-payment-header button {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aebdca;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}
.manual-payment-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 26px;
  padding: 20px 24px;
  color: #fff;
  background: #0a3c68;
}
.manual-payment-summary div { display: grid; gap: 4px; }
.manual-payment-summary div:nth-child(2) { text-align: right; }
.manual-payment-summary span, .manual-payment-summary small { color: rgba(255,255,255,.76); font-size: 12px; }
.manual-payment-summary strong { font-size: 19px; }
.manual-payment-summary div:nth-child(2) strong { color: #ffe26c; font-size: 25px; }
.manual-payment-summary > small { grid-column: 1 / -1; overflow-wrap: anywhere; }
.manual-payment-form { display: grid; gap: 18px; padding: 22px 24px 26px; }
.manual-methods { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 0; }
.manual-methods legend { margin-bottom: 10px; color: #344054; font-size: 13px; font-weight: 850; }
.manual-methods label { position: relative; min-width: 0; cursor: pointer; }
.manual-methods input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.manual-methods label > span {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #b9c5d1;
  border-radius: 7px;
}
.manual-methods input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,91,170,.13); }
.manual-methods input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.manual-methods b { color: var(--blue); font-size: 16px; }
.manual-methods small { color: var(--muted); font-size: 11px; }
.manual-method-detail {
  padding: 20px;
  display: grid;
  justify-items: start;
  gap: 7px;
  background: #f4f8fb;
  border: 1px solid #cfdbe5;
  border-left: 5px solid var(--blue);
  border-radius: 7px;
}
.manual-method-detail > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.manual-method-detail > strong { color: var(--ink); font-size: 29px; letter-spacing: 0; overflow-wrap: anywhere; }
.manual-method-detail > p { margin: 0; color: #475467; font-size: 13px; line-height: 1.5; }
.manual-copy-button { margin-top: 5px; padding: 9px 12px; color: var(--blue); background: #fff; border: 1px solid #9db2c5; border-radius: 6px; font-weight: 800; }
.manual-qris-detail { justify-items: center; text-align: center; border-left-color: var(--red); }
.manual-qris-detail img { width: min(100%, 390px); height: auto; display: block; background: #fff; border: 1px solid var(--line); }
.manual-proof-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.manual-proof-fields label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 800; }
.manual-proof-fields input { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #aebdca; border-radius: 6px; font: inherit; }
.manual-proof-fields input:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(7,91,170,.12); }
.manual-proof-upload { grid-column: 1 / -1; padding: 15px; background: #fffaf0; border: 1px solid #efd790; border-radius: 7px; }
.manual-proof-upload input { padding: 8px; background: #fff; }
.manual-proof-upload small { color: var(--muted); font-size: 11px; font-weight: 500; }
.manual-payment-status { min-height: 22px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.5; }
.manual-payment-status.pending { color: #855200; }
.manual-payment-status.success { padding: 12px 14px; color: #075c42; background: #e5f7ef; border-left: 4px solid #087a55; }
.manual-payment-status.error { padding: 12px 14px; color: #a3241b; background: #fdebea; border-left: 4px solid var(--red); }
.manual-payment-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 3px; }
.manual-payment-actions button { min-height: 46px; }

@media (max-width: 620px) {
  .manual-payment-dialog { width: calc(100% - 16px); max-height: 96vh; }
  .manual-payment-shell { max-height: 96vh; }
  .manual-payment-header { padding: 16px; }
  .manual-payment-header h2 { font-size: 20px; }
  .manual-payment-summary { grid-template-columns: 1fr; padding: 17px 16px; }
  .manual-payment-summary div:nth-child(2) { text-align: left; }
  .manual-payment-summary > small { grid-column: auto; }
  .manual-payment-form { padding: 18px 16px 22px; }
  .manual-methods { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
  .manual-methods label > span { min-height: 66px; padding: 9px; }
  .manual-method-detail > strong { font-size: 23px; }
  .manual-proof-fields { grid-template-columns: 1fr; }
  .manual-proof-upload { grid-column: auto; }
  .manual-payment-actions { display: grid; grid-template-columns: 1fr; }
  .manual-payment-actions .primary-button { grid-row: 1; }
}

@media (max-width: 560px) {
  .course-benefit-grid { grid-template-columns: 1fr; }
  .course-benefit-grid article { min-height: 0; }
  .course-checkout { gap: 24px; }
  .course-payment-form { padding: 19px 16px; }
  .course-payment-total { align-items: start; flex-direction: column; gap: 5px; }
}

.premium-home-banner { margin-top:24px; padding:28px 32px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:30px; align-items:center; color:#fff; background:#102b4c; border-left:7px solid #f4c542; }
.premium-home-banner h2 { margin:0 0 8px; color:#fff; font-size:clamp(24px,3vw,35px); }
.premium-home-banner p { max-width:720px; margin:0; color:#dbe8f4; line-height:1.6; }
.premium-home-offer { min-width:210px; display:grid; justify-items:end; gap:3px; }
.premium-home-offer strong { color:#f7d95c; font-size:29px; }
.premium-home-offer span { color:#dbe8f4; font-size:12px; }
.premium-home-offer .primary-button { margin-top:10px; }
@media(max-width:700px){.premium-home-banner{margin-top:14px;padding:23px 19px;grid-template-columns:1fr;gap:18px}.premium-home-offer{min-width:0;justify-items:start}.premium-home-offer .primary-button{width:100%}}

/* First-visit promotion for participants who are not signed in */
.visitor-promo[hidden] { display: none; }
.visitor-promo {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 25, 42, 0.72);
  backdrop-filter: blur(5px);
}

.visitor-promo-card {
  position: relative;
  width: min(590px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
  background: #fff;
  border: 2px solid #0874c9;
  border-top: 8px solid #e71920;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  animation: visitor-promo-arrive 420ms ease-out both;
}

.visitor-promo-card::after {
  content: none;
}

.visitor-promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #334155;
  background: #f3f6f9;
  border: 1px solid #d6dee7;
  border-radius: 50%;
  font: 700 27px/1 Inter, sans-serif;
  cursor: pointer;
}

.visitor-promo-close:hover,
.visitor-promo-close:focus-visible { background: #e7edf3; color: #c9171e; }
.visitor-promo-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.visitor-promo-brand img { width: 92px; height: 92px; object-fit: contain; }
.visitor-promo-brand span {
  padding: 7px 11px;
  color: #9a1016;
  background: #fff0f1;
  border: 1px solid #ffc7ca;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.visitor-promo-copy { margin-top: 18px; }
.visitor-promo-copy .eyebrow { margin-bottom: 7px; color: #0874c9; }
.visitor-promo-copy h2 {
  max-width: 510px;
  margin: 0 auto;
  color: #122238;
  font-size: clamp(27px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
}
.visitor-promo-free {
  display: inline-block;
  color: #ed1c24;
  font-size: 1.35em;
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 3px 0 rgba(237, 28, 36, 0.1);
}
.visitor-promo-copy > p:last-child { margin: 14px auto 0; color: #58687a; font-size: 16px; line-height: 1.55; }

.visitor-promo-tests { margin: 24px 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.visitor-promo-test {
  min-width: 0;
  padding: 12px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #172234;
  background: #fff;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.visitor-promo-test strong { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; border-radius: 50%; }
.visitor-promo-test:hover,
.visitor-promo-test:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18, 34, 56, 0.12); }
.promo-speaking { color: #d71a21; }
.promo-speaking strong { background: #d71a21; }
.promo-toefl { color: #0874c9; }
.promo-toefl strong { background: #0874c9; }
.promo-ielts { color: #987000; }
.promo-ielts strong { background: #d5a400; }
.promo-ielts-diagnostic { color: #16845b; }
.promo-ielts-diagnostic strong { background: #16845b; }

.visitor-promo-action {
  min-height: 52px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #e71920;
  border: 2px solid #e71920;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 11px 24px rgba(231, 25, 32, 0.22);
}
.visitor-promo-action:hover,
.visitor-promo-action:focus-visible { background: #bd1017; border-color: #bd1017; }
.visitor-promo-card > small { display: block; margin-top: 13px; color: #758293; font-size: 11px; }
body.visitor-promo-open { overflow: hidden; }

@keyframes visitor-promo-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .visitor-promo { padding: 14px; align-items: center; }
  .visitor-promo-card { max-height: calc(100dvh - 28px); padding: 24px 16px 25px; }
  .visitor-promo-brand img { width: 76px; height: 76px; }
  .visitor-promo-copy { margin-top: 13px; }
  .visitor-promo-copy h2 { font-size: 27px; }
  .visitor-promo-free { font-size: 1.28em; }
  .visitor-promo-copy > p:last-child { font-size: 14px; }
  .visitor-promo-tests { margin: 18px 0 14px; gap: 7px; }
  .visitor-promo-test { padding: 9px 4px; gap: 5px; font-size: 11px; }
  .visitor-promo-test strong { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .visitor-promo-card { animation: none; }
  .visitor-promo-test { transition: none; }
}

/* Lively homepage and course presentation */
.intro { background: #f5faff; }
.free-tests { background: #fff; }
.package-section { background: #fff9e9; }
.schedule { background: #f3f8fd; }
.proof-section { background: #fff; }
.compact-gallery { background: #fff6f7; }
.online-test-benefits { background: #f1f9f5; }
.result-use-section { background: #fff8e6; }
.mentor-section { background: #f4f8fc; }
.google-review { background: #fff; }
.faq-section { background: #fff9e9; }

.package-item {
  position: relative;
  overflow: hidden;
}

.package-item:nth-child(1),
.package-item:nth-child(2),
.package-item:nth-child(3) { box-shadow: inset 0 0 0 1px rgba(201, 151, 0, 0.08); }
.package-item:nth-child(4) { box-shadow: inset 0 0 0 1px rgba(231, 25, 32, 0.08); }
.package-item:nth-child(5) { box-shadow: inset 0 0 0 1px rgba(7, 91, 170, 0.08); }

.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease var(--reveal-delay, 0ms),
    transform 520ms ease var(--reveal-delay, 0ms);
}

.motion-ready .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.gallery-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-rail::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 min(360px, calc((100% - 32px) / 3));
  scroll-snap-align: start;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.gallery-nav button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #c8d5e1;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.gallery-nav button:hover,
.gallery-nav button:focus-visible {
  color: #fff;
  background: var(--blue);
  transform: translateY(-2px);
}

.gallery-nav span {
  min-width: 52px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.course-mentor-band {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) minmax(190px, 0.42fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid #d8e2eb;
  border-bottom: 1px solid #d8e2eb;
  background: #f4f8fc;
}

.course-mentor-speaking { background: #fff4f5; }
.course-mentor-toefl { background: #f1f7fd; }
.course-mentor-ielts { background: #fff9e7; }

.course-mentor-band > img {
  width: 136px;
  height: 136px;
  object-fit: cover;
  object-position: center 28%;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(19, 45, 73, 0.16);
}

.course-mentor-band h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 36px);
}

.course-mentor-band p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.course-mentor-band ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-mentor-band li {
  position: relative;
  padding: 8px 10px 8px 30px;
  border-bottom: 1px solid rgba(35, 66, 98, 0.14);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.course-mentor-band li::before {
  position: absolute;
  top: 10px;
  left: 8px;
  content: "\2713";
  color: #087a55;
  font-weight: 900;
}

.speaking-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  gap: 0;
}

.speaking-steps span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
  text-align: center;
}

.speaking-steps span:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  content: "";
  background: #9dc3e5;
}

.speaking-steps strong {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px rgba(234, 245, 255, 0.96);
}

@media (max-width: 800px) {
  .gallery-item { flex-basis: min(78vw, 340px); }

  .course-mentor-band {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
  }

  .course-mentor-band > img {
    width: 92px;
    height: 92px;
  }

  .course-mentor-band ul {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .course-mentor-band li {
    padding: 8px;
    border: 1px solid rgba(35, 66, 98, 0.14);
    text-align: center;
  }

  .course-mentor-band li::before { display: none; }
}

@media (max-width: 520px) {
  .gallery-item { flex-basis: 84vw; }
  .course-mentor-band { padding-top: 24px; padding-bottom: 24px; }
  .course-mentor-band h2 { font-size: 24px; }
  .course-mentor-band p:last-child { font-size: 14px; }
  .course-mentor-band ul { grid-template-columns: 1fr; }
  .speaking-steps span { padding: 0 4px; font-size: 11px; }
  .speaking-steps span:not(:last-child)::after {
    left: calc(50% + 17px);
    width: calc(100% - 34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal-on-scroll,
  .motion-ready .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery-rail { scroll-behavior: auto; }
}

/* Article hub and practical learning guides */
.article-preview-section {
  background: #f3f8fd;
}

.article-preview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: end;
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.article-preview-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.article-preview-heading > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 55, 91, 0.08);
}

.article-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e7eef5;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.025);
}

.article-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 32, 78, 0.94) 0%, rgba(3, 32, 78, 0.74) 38%, rgba(3, 32, 78, 0.08) 72%);
  pointer-events: none;
}

.article-card-image-title {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 17px;
  width: min(58%, 245px);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.12;
  text-wrap: balance;
}

.article-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 310px;
  padding: 22px;
}

.article-category {
  display: inline-block;
  padding: 5px 8px;
  border-left: 3px solid var(--blue);
  color: var(--blue-dark);
  background: #e8f3fc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-category-red {
  border-left-color: var(--red);
  color: #a20d12;
  background: #fff0f1;
}

.article-category-yellow {
  border-left-color: #dda000;
  color: #775500;
  background: #fff6d9;
}

.article-card h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.article-card h3 a:hover,
.article-card h3 a:focus-visible,
.article-read-link:hover,
.article-read-link:focus-visible {
  color: var(--red);
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 18px;
  color: #6b7785;
  font-size: 11px;
  font-weight: 700;
}

.article-meta a,
.article-detail-meta a {
  color: var(--blue);
  font-weight: 850;
}

.article-meta a:hover,
.article-meta a:focus-visible,
.article-detail-meta a:hover,
.article-detail-meta a:focus-visible {
  color: var(--red);
}

.article-read-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.article-preview-action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.article-hub-page,
.article-detail-page {
  background: #f7f9fc;
}

.article-hub-hero,
.article-detail-hero {
  padding: 64px clamp(20px, 5vw, 72px) 52px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.article-hub-hero-inner,
.article-detail-hero-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.article-hub-hero h1,
.article-detail-hero h1 {
  max-width: 880px;
  margin: 10px 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.article-hub-hero .lead,
.article-detail-hero .lead {
  max-width: 760px;
  color: var(--muted);
}

.article-hub-content {
  padding-top: 54px;
  padding-bottom: 76px;
}

.article-hub-content .article-card-body {
  min-height: 330px;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.article-breadcrumbs a {
  color: var(--blue);
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-detail-cover {
  width: min(1060px, calc(100% - 40px));
  max-height: 540px;
  margin: 38px auto 0;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(13, 48, 88, 0.14);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(230px, 300px);
  justify-content: center;
  align-items: start;
  gap: 48px;
  padding: 58px clamp(20px, 5vw, 72px) 80px;
}

.article-body {
  min-width: 0;
  padding: 38px clamp(22px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.article-body h2 {
  margin: 38px 0 14px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.article-body p,
.article-body li {
  color: #3f4c5c;
  font-size: 17px;
  line-height: 1.85;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 9px;
  padding-left: 24px;
}

.article-callout {
  margin: 30px 0;
  padding: 22px;
  border-left: 4px solid var(--yellow);
  background: #fff8df;
}

.article-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #5f4700;
}

.article-callout p {
  margin: 0;
  font-size: 15px;
}

.article-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.article-sidebar-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.article-sidebar[aria-label="Langkah berikutnya"] .article-sidebar-box:first-child {
  border-color: #f3c8c5;
  border-top: 4px solid var(--red);
  background: #fff7f6;
}

.article-sidebar[aria-label="Langkah berikutnya"] .article-sidebar-box:last-child {
  border-color: #c8daf0;
  border-top: 4px solid var(--blue);
  background: #f5f9ff;
}

.article-sidebar-box h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

.article-sidebar-box p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.article-sidebar-box a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.article-sidebar[aria-label="Langkah berikutnya"] .article-sidebar-box > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 5px;
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
}

.article-sidebar[aria-label="Langkah berikutnya"] .article-sidebar-box:first-child > a {
  background: var(--red);
}

.article-sidebar[aria-label="Langkah berikutnya"] .article-sidebar-box > a:hover {
  filter: brightness(.93);
}

.article-next-reading {
  display: grid;
  gap: 10px;
}

.article-next-reading a {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-next-reading a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .article-preview-heading,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-preview-heading {
    align-items: start;
    gap: 12px;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .article-card-grid-home {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 12vw 12px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .article-card-grid-home::-webkit-scrollbar {
    display: none;
  }

  .article-card-grid-home .article-card {
    flex: 0 0 min(84vw, 350px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .article-card-grid:not(.article-card-grid-home) {
    grid-template-columns: 1fr;
  }

  .article-card-body,
  .article-hub-content .article-card-body {
    min-height: 0;
  }

  .article-read-link {
    margin-top: 18px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .article-card-image-title {
    left: 15px;
    bottom: 14px;
    width: 62%;
    font-size: 18px;
  }

  .article-hub-hero,
  .article-detail-hero {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .article-hub-hero h1,
  .article-detail-hero h1 {
    font-size: 36px;
  }

  .article-detail-cover {
    width: calc(100% - 28px);
    margin-top: 26px;
    aspect-ratio: 16 / 10;
  }

  .article-layout {
    gap: 24px;
    padding: 28px 14px 58px;
  }

  .article-body {
    padding: 27px 20px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card-image img {
    transition: none;
  }
}

.home-certificate-slides{aspect-ratio:1404/993;touch-action:pan-y}
.home-certificate-slides .sample-certificate-preview[hidden]{display:none}
.home-certificate-slides .sample-certificate-preview img{width:100%;height:100%;object-fit:contain}
.home-certificate-dots{display:flex;justify-content:center;gap:2px}
.home-certificate-dots button{width:36px;height:36px;border:0;padding:0;background:transparent;display:grid;place-items:center;cursor:pointer}
.home-certificate-dots button::before{content:'';width:7px;height:7px;border-radius:50%;background:#bbc9d6}
.home-certificate-dots button[aria-current=true]::before{background:#075caa}
.home-certificate-dots button:focus-visible{outline:2px solid #075caa;outline-offset:-2px}
.participant-testimonials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.participant-testimonial{display:grid;grid-template-columns:minmax(0,1fr) 120px;align-items:center;gap:20px;border:1px solid #dce4eb;border-radius:8px;padding:22px;background:#fff}
.participant-testimonial h3{font-size:21px;line-height:1.3;margin:8px 0 12px}
.participant-testimonial p{font-size:14px;line-height:1.65;margin:0;color:#596779}
.participant-testimonial img{display:block;width:100%;height:175px;object-fit:cover;object-position:top;border-radius:4px}
.participant-testimonial a:focus-visible{outline:3px solid #075caa;outline-offset:4px}
.testimonial-disclaimer{font-size:12px;color:#596779;margin:16px 0 0}
@media(max-width:760px){.participant-testimonials{grid-template-columns:1fr;gap:12px}.participant-testimonial{padding:16px;grid-template-columns:minmax(0,1fr) 84px;gap:12px}.participant-testimonial h3{font-size:18px}.participant-testimonial p{font-size:13px}.participant-testimonial img{height:128px}}
