/* ============================================================
   ITS Education Asia — UCAT Hong Kong
   Brand: DOM Blue #0067AC | Dark Blue #003A63 | Orange #CC4E00
   ============================================================ */

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Container -------------------------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Inline link ------------------------------------------ */
.inline-link {
  color: #0067AC;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,103,172,0.3);
  transition: border-color 0.15s, color 0.15s;
}
.inline-link:hover {
  color: #004f83;
  border-bottom-color: #004f83;
}

/* ---- Buttons ---------------------------------------------- */
#content-area .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn-orange {
  background: #CC4E00;
  color: #fff !important;
  border-color: #CC4E00;
}
.btn-orange:hover { background: #993B00; border-color: #993B00; }
#content-area .btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.6);
}
#content-area .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-blue {
  background: #0067AC;
  color: #fff !important;
  border-color: #0067AC;
}
.btn-outline-blue:hover { background: #004f83; border-color: #004f83; }

/* ITS nav buttons — cyan-blue, matching site */
.btn-its-nav {
  background: #00A4E4;
  color: #fff !important;
  border-color: #00A4E4;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 5px;
}
.btn-its-nav:hover { background: #0086bc; border-color: #0086bc; }

/* CTA banner buttons */
.btn-cta-white {
  background: #fff;
  color: #003A63;
  border-color: #fff;
  font-weight: 700;
}
.btn-cta-white:hover { background: #f0f5fb; }
.btn-cta-blue {
  background: #00A4E4;
  color: #fff !important;
  border-color: #00A4E4;
  font-weight: 700;
}
.btn-cta-blue:hover { background: #0086bc; border-color: #0086bc; }
.btn-full { width: 100%; }

/* ---- Section headings ------------------------------------- */
.sec-heading {
  font-size: 2.5rem;
  font-weight: 800;
  color: #003A63;
  line-height: 1.15;
  margin-bottom: 16px;
}
.sec-heading--light { color: #fff; }
.sec-lead {
  font-size: 1.05rem;
  color: #555;
  /* max-width: 820px; */
  margin-bottom: 16px;
  line-height: 1.8;
}
.sec-lead--second { margin-bottom: 28px; }
.sec-lead--light { color: rgba(255,255,255,0.82); }
.sub-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0067AC;
  margin: 28px 0 14px;
}
.svc-sub-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #0067AC;
  margin: 20px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #003A63 0%, #0067AC 65%, #00A4E4 100%);
  padding: 40px 0 36px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.87);
  line-height: 1.78;
  margin-bottom: 24px;
  /* max-width: 520px; */
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

/* ============================================================
   QUICK NAV BAR (below hero, above overview)
   ============================================================ */
.quick-nav-bar {
  background: #f0f4f8;
  padding: 14px 0;
  border-top: 1px solid #dde4ed;
  border-bottom: 1px solid #dde4ed;
}
.quick-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero fact card */
.hero-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.hero-card-header {
  background: #CC4E00;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
}
.hero-facts {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-facts li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 0.9rem;
}
.hero-facts li i { color: #CC4E00; margin-top: 3px; font-size: 0.9rem; flex-shrink: 0; width: 15px; text-align: center; }
.hero-facts li strong { display: block; font-weight: 700; color: #003A63; font-size: 1rem; line-height: 1.2; }
.hero-facts li span { display: block; color: #555; font-size: 0.9rem; }

/* ============================================================
   OVERVIEW
   ============================================================ */
.overview {
  padding: 36px 0 30px;
  background: #fff;
}

/* Merged subtests table */
.subtests-table-wrap {
  border: 1px solid #d0d9e8;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,58,99,0.06);
}
.subtests-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  /* table-layout: fixed; */
}

/* Column widths — keep Score from wrapping */
.subtests-table .col-section    { width: 26%; }
.subtests-table .col-questions  { width: 9%; }
.subtests-table .col-time       { width: 8%; }
.subtests-table .col-skills     { width: 44%; }
.subtests-table .col-score      { width: 13%; }

.subtests-table thead tr {
  background: #dde9f5;
}
.subtests-table th {
  padding: 13px 16px;
  color: #003A63;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  border-bottom: 2px solid #b8cde0;
}
.subtests-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #dde4ed;
  color: #333;
  font-size: 1rem;
  line-height: 1.55;
  vertical-align: middle;
}
.subtests-table tbody tr:last-child td { border-bottom: none; }
.subtests-table tbody tr:nth-child(even) td { background: #f7f9fc; }
.subtests-table tbody tr:not(.total-row):hover td {
  background: #eef4fb;
  transition: background 0.12s;
}
.subtests-table td strong {
  font-weight: 700;
  color: #003A63;
}
.total-row td { background: #FFF3EB !important; vertical-align: middle; }
.total-row td em { font-style: italic; color: #666; font-size: 0.9rem; }

/* Score badges — nowrap so they never wrap */
.score-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.score-badge--scaled { background: #e6f0fb; color: #0067AC; }
.score-badge--band   { background: #f3ebfc; color: #6B1FAD; }

.scoring-note {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  background: #f7f9fc;
  border-left: 3px solid #0067AC;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
}

/* ============================================================
   PACKAGES (Services)
   ============================================================ */
.services {
  padding: 36px 0;
  background: #f4f6f9;
  border-top: 1px solid #dde4ed;
  border-bottom: 1px solid #dde4ed;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

/* Service card */
.service-card {
  background: #fff;
  border: 1px solid #dde4ed;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,58,99,0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,58,99,0.14);
}
.service-card--featured {
  border-color: #CC4E00;
  border-width: 2px;
}
.service-card--featured:hover {
  box-shadow: 0 12px 36px rgba(204,78,0,0.18);
}

.featured-ribbon {
  position: absolute;
  top: 0;
  right: 24px;
  background: #CC4E00;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 0 0 8px 8px;
}

.service-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
}
.svc-group   { background: #0067AC; }
.svc-private { background: #CC4E00; }

.svc-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.svc-title-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.svc-mode {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.svc-mode i { margin-right: 4px; font-size: 0.74rem; }

.service-card-body { padding: 24px 28px; flex: 1; }
.svc-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.78;
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}

/* Bullet list */
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc-list--bullet li {
  font-size: 1rem;
  color: #444;
  padding-left: 22px;
  position: relative;
  line-height: 1.65;
}
.svc-list--bullet li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0067AC;
}
/* Check list */
.svc-list--check li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  color: #444;
  line-height: 1.65;
}
.svc-list--check li i {
  color: #CC4E00;
  flex-shrink: 0;
  margin-top: 5px;
  font-size: 0.82rem;
}

.service-card-foot {
  padding: 18px 28px 26px;
  border-top: 1px solid #eee;
}

/* Services note */
.services-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #e6f0fb;
  border-left: 3px solid #0067AC;
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
}
.services-note i { color: #0067AC; flex-shrink: 0; margin-top: 2px; }
.services-note p { font-size: 1rem; color: #444; line-height: 1.65; }
.services-note a { color: #00A4E4; font-weight: 600; }
.services-note a:hover { text-decoration: underline; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 36px 0;
  background: #003A63;
}

.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.step-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 12px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: background 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.step-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #CC4E00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.step-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  padding: 0 8px;
  align-self: center;
}



/* ============================================================
   TRUSTPILOT PLACEHOLDER
   ============================================================ */
.trustpilot-section {
  background: #fff;
  padding: 24px 0;
  border-top: 1px solid #e8ecf2;
  border-bottom: 1px solid #e8ecf2;
}
.tp-placeholder {
  background: #f8f9fb;
  border: 2px dashed #c8d3df;
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
}
.tp-placeholder-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 6px;
}
.tp-placeholder-note {
  font-size: 0.9rem;
  color: #aaa;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 36px 0;
  background: #fff;
}
.faq-inner { max-width: 820px; }
.faq-list {
  margin-top: 28px;
  border: 1px solid #dde4ed;
  border-radius: 12px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid #dde4ed; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #003A63;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: #fff;
  transition: background 0.14s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #f7f9fc; }
.faq-item[open] > summary { background: #f7f9fc; color: #CC4E00; }
.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #b0bec5;
  flex-shrink: 0;
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #0067AC;
  font-weight: 400;
  transition: all 0.15s;
}
.faq-toggle::after { content: '+'; line-height: 1; }
.faq-item[open] .faq-toggle {
  background: #CC4E00;
  border-color: #CC4E00;
  color: #fff;
}
.faq-item[open] .faq-toggle::after { content: '−'; }
.faq-body { padding: 0 24px 20px; border-top: 1px solid #eee; }
.faq-body p {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  padding-top: 16px;
  margin-bottom: 14px;
}
/* Contact button inside FAQ answer */
.faq-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 5px;
  background: transparent;
  border: 1.5px solid #0067AC;
  color: #0067AC;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  margin-top: 2px;
}
.faq-contact-btn:hover { background: #0067AC; color: #fff; }
/* Inline hyperlink inside FAQ answer */
.faq-inline-link {
  color: #0067AC;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-inline-link:hover { color: #CC4E00; }

/* ============================================================
   CTA BANNER — full-width strip like How It Works
   ============================================================ */
.cta-banner-section {
  padding: 56px 0;
  background: #003A63;
  text-align: center;
}
.cta-heading {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0;
}
.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .hero-inner {grid-template-columns: 1fr;}
  .hero-facts {display: grid;gap: 30px;grid-template-columns: repeat(2, 1fr);}
  .steps-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step-arrow { display: none; }
}
/* --- Tablet landscape (≤1024px) --- */
@media (max-width: 1024px) {
  .subtests-table { font-size: 0.9rem; }
  .hero-inner { grid-template-columns: 1fr; max-width: 640px; }
  /* .hero-card { max-width: 420px; } */
  .cta-heading { font-size: 1.65rem; }
}

/* --- Tablet portrait (≤768px) --- */
@media (max-width: 768px) {
  .container {max-width: unset !important;}
  /* Layout */
  .services-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }

  /* Hero */
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; max-width: 320px; text-align: center; }

  /* Quick nav bar */
  .quick-nav-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .quick-nav-inner .btn-its-nav { text-align: center; width: 100%; }

  /* Table */
  .subtests-table .col-section  { width: 32%; }
  .subtests-table .col-questions { width: 10%; }
  .subtests-table .col-time     { width: 9%; }
  .subtests-table .col-skills   { width: 35%; }
  .subtests-table .col-score    { width: 14%; }

  /* FAQ */
  .faq-item summary { padding: 16px 18px; font-size: 1rem; }
  .faq-body { padding: 0 18px 18px; }

  /* CTA */
  .cta-banner-section { padding: 44px 0; }
  .cta-heading { font-size: 1.45rem; }
  .cta-banner-actions { gap: 12px; }
}

/* --- Mobile (≤540px) --- */
@media (max-width: 540px) {
  #content-area .container { padding-left: 10px; padding-right: 10px; }
  #content-area .btn {white-space: unset;}

  /* Sections */
  .overview, .services, .how-it-works, .faq { padding: 28px 0; }
  .cta-banner-section { padding: 36px 0; }
  .trustpilot-section { padding: 20px 0; }

  /* Hero */
  .hero { padding: 28px 0 24px; }
  .hero h1 { font-size: 1.45rem; letter-spacing: 0; }
  .hero-eyebrow { font-size: 0.72rem; margin-bottom: 10px; }
  .hero-sub { font-size: 0.93rem; margin-bottom: 16px; }
  .hero-actions .btn { margin: 0 auto;}
  .hero-card { max-width: none; margin-top: 4px; }
  .hero-facts { padding: 16px 18px 20px; gap: 14px; grid-template-columns: 1fr;}
  .hero-inner { gap: 28px; }

  /* Quick nav bar */
  .quick-nav-bar { padding: 12px 0; }
  .quick-nav-inner { gap: 8px; }
  .quick-nav-inner .btn-its-nav { font-size: 0.87rem; padding: 10px 16px; }

  /* Headings */
  .sec-heading { font-size: 1.75rem; }
  .sub-heading { font-size: 1.05rem; }

  /* Table — hide Skills column on very small screens, show scrollable */
  .subtests-table { font-size: 0.8rem; min-width: 420px; }
  .subtests-table th, .subtests-table td { padding: 9px 10px; }

  /* Service cards */
  .service-card-head { padding: 18px 20px; gap: 12px; }
  .service-card-body { padding: 18px 20px; }
  .service-card-foot { padding: 14px 20px 20px; }
  .service-card-foot .btn { width: 100%; text-align: center; }

  /* Steps */
  .steps-row { grid-template-columns: 1fr; gap: 14px; }
  .step-card { padding: 20px 18px; }

  /* FAQ */
  .faq-item summary { padding: 14px 16px; font-size: 0.93rem; }
  .faq-body { padding: 0 16px 16px; }
  .faq-body p { font-size: 0.93rem; padding-top: 12px; }
  .faq-contact-btn { font-size: 0.82rem; padding: 6px 14px; }

  /* CTA */
  .cta-heading { font-size: 1.25rem; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .cta-banner-actions .btn { width: 100%; max-width: 280px; }

  /* Buttons */
  .btn { font-size: 0.9rem; padding: 11px 20px; }
}
