/* ==============================================
   ITS Education Asia — Mock Exams & Predicted Grades
   style.css  |  Aligned to Design Standards v1.0
   ============================================== */

/* ── Design Tokens (Design Standards v1.0) ── */
:root {
  /* Primary brand colours */
  --its-navy:        #003A63;   /* Section titles · Hero gradient start · CTA bg */
  --its-blue:        #0067AC;   /* Links · Sub-headings · Border accent */
  --its-sky:         #00A4E4;   /* Quick-nav · Hero gradient end · CTA buttons */
  --its-orange:      #CC4E00;   /* Featured tags · Status labels */

  /* Hover / dark variants */
  --its-orange-dark: #993B00;
  --its-sky-dark:    #0086bc;
  --its-blue-dark:   #004f83;

  /* Category accent colours (card strips / badges only) */
  --cat-navy:        #003A63;
  --cat-green:       #01A355;
  --cat-teal:        #168CA1;
  --cat-gold:        #CEA82C;

  /* Neutral / text */
  --its-text:        #333333;   /* Body text */
  --its-muted:       #555555;   /* Secondary text */
  --its-muted-2:     #666666;   /* Tertiary / fact sub */
  --its-border:      #dde4ed;   /* General borders */
  --its-bg-light:    #f7f9fc;   /* Page / card bg */
  --its-white:       #ffffff;

  /* Shadows */
  --shadow-xs:  0 2px 8px rgba(0,58,99,.06);
  --shadow-sm:  0 4px 16px rgba(0,58,99,.09);
  --shadow-md:  0 10px 32px rgba(0,58,99,.13);

  /* Border radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Legacy aliases (kept for any inline references) */
  --blue:       #0067AC;
  --dark-blue:  #003A63;
  --teal:       #168CA1;
  --gold:       #CEA82C;
  --green:      #01A355;
  --tint:       #e8f4fc;
  --bg-page:    #f7f9fc;
  --body:       #333333;
  --muted:      #555555;
  --border:     #dde4ed;
  --white:      #ffffff;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;           /* base = 1rem */
  overflow-x: hidden;
  line-height: 1.7;
}
a { color: var(--its-blue); text-decoration: none; }
a:hover { color: var(--its-blue-dark); }
img { display: block; max-width: 100%; }

/* ══════════════════════════════
   TYPOGRAPHY  (Design Standards §02)
══════════════════════════════ */
/* .page-content {
  max-width: 90vw;
  margin: 30px auto;
  padding: 0 20px;
} */

/* Section H2 — 2.5rem desktop / 1.75rem mobile */
.sec-heading,
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);   /* ~28px → 40px */
  font-weight: 700;
  color: var(--its-navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

/* Sub-heading H3 */
.sub-heading,
.benefit-text h3,
.also-see-text {
  font-size: 1.15rem;    /* 18.4px */
  font-weight: 700;
  color: var(--its-blue);
}

/* Card subhead H4 — uppercase, letter-spacing */
.svc-sub-heading,
.pkg-tagline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--its-blue);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* Body / p */
#main-area p, .section-header p, .hero-desc {
  font-size: 1rem;     /* 16px */
  font-weight: 400;
  /* color: var(--its-text); */
  line-height: 1.7;
}

/* Secondary lead */
.sec-lead,
.section-header p {
  font-size: 1.05rem;
  color: var(--its-muted);
  line-height: 1.8;
}

/* Fact sub-text */
.fact-sub,
.also-see-text span,
.pkg-price-unit {
  font-size: 0.9rem;
  color: var(--its-muted-2);
  line-height: 1.6;
}

/* ══════════════════════════════
   BUTTONS  (Design Standards §03)
══════════════════════════════ */
#main-area .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-sm);       /* 6px — standard */
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.9375rem;             /* 15px */
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s,
              transform .15s, box-shadow .15s;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.4;
}
#main-area .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* PRIMARY CTA — Sky blue #00A4E4 (matches ITS live site CTA buttons) */
#main-area .btn-primary {
  background: var(--its-sky);
  color: var(--its-white);
  border-color: var(--its-sky);
}
#main-area .btn-primary:hover {
  background: var(--its-sky-dark);
  border-color: var(--its-sky-dark);
  color: var(--its-white);
}

/* BLUE — secondary action */
.btn-blue {
  background: var(--its-blue);
  color: var(--its-white);
  border-color: var(--its-blue);
}
.btn-blue:hover {
  background: var(--its-blue-dark);
  border-color: var(--its-blue-dark);
  color: var(--its-white);
}

/* WHITE — on dark / hero backgrounds */
.btn-white {
  background: var(--its-white);
  color: var(--its-navy);
  border-color: var(--its-white);
}
.btn-white:hover {
  background: #e8f4fc;
  border-color: #e8f4fc;
  color: var(--its-navy);
}

/* GHOST WHITE — on dark hero */
.btn-ghost-white {
  background: transparent;
  color: var(--its-white);
  border: 2px solid rgba(255,255,255,.65);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--its-white);
  color: var(--its-white);
}

/* OUTLINE — blue ghost, secondary / also-see */
.btn-outline {
  background: transparent;
  color: var(--its-blue);
  border-color: var(--its-blue);
}
.btn-outline:hover {
  background: var(--its-blue);
  color: var(--its-white);
}

/* SIZE MODIFIER */
.btn-lg { padding: 14px 38px; font-size: 1rem; border-radius: var(--r-sm); }

/* ══════════════════════════════
   HERO  (Design Standards §04)
   Gradient: 135deg  #003A63 → #0067AC 65% → #00A4E4
══════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #003A63 0%, #0067AC 65%, #00A4E4 100%);
  padding: 44px 0 40px;
  position: relative;
  overflow: hidden;
}
/* .hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,164,228,.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 20%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 65%);
  pointer-events: none;
} */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}

/* Hero H1 — weight 900, uppercase, white */
.hero h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);  /* DS: 2.2rem desktop */
  font-weight: 900;
  color: var(--its-white);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Chinese subtitle — eyebrow style */
.hero-chinese {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,.70);    /* DS spec: eyebrow opacity */
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Hero description paragraph */
.hero-desc {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,.87);    /* DS spec: subtitle opacity */
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-btns { display: flex; flex-wrap: nowrap; gap: 12px; }

/* Hero image column */
.hero-image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-col img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--r-lg);
  box-shadow: none;
  display: block;
}

/* ══════════════════════════════
   PAGE BODY
══════════════════════════════ */
.page-body { padding: 36px 0 0; }
.section { margin-bottom: 40px; }
.section:last-child { margin-bottom: 0; }
.section-header { margin-bottom: 20px; }
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--its-border), transparent);
  margin: 36px 0;
}

/* ══════════════════════════════
   PACKAGE CARDS
══════════════════════════════ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.pkg-card {
  background: var(--its-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
  border: 1px solid var(--its-border);
}
.pkg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Card top colour strip — category colours only (DS §01b) */
.pkg-header-bar { padding: 16px 20px 14px; }
.pkg-card:nth-child(1) .pkg-header-bar {
  background: linear-gradient(135deg, #003A63, #0067AC);   /* Navy → Blue */
}
.pkg-card:nth-child(2) .pkg-header-bar {
  background: linear-gradient(135deg, #116878, #168CA1);   /* Teal */
}
.pkg-card:nth-child(3) .pkg-header-bar {
  background: linear-gradient(135deg, #7a5c00, #CEA82C);   /* Gold */
}

.pkg-tier {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
  font-size: 0.625rem;  /* 10px */
  font-weight: 700;
  color: var(--its-white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pkg-price-block { display: flex; align-items: baseline; gap: 4px; }
.pkg-price-big {
  font-size: 1.5rem;   /* 24px */
  font-weight: 800;
  color: var(--its-white);
  line-height: 1;
}
.pkg-price-unit {
  font-size: 0.75rem;   /* 12px */
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.pkg-body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }

/* Tagline — svc-sub-heading style */
.pkg-tagline {
  font-size: 0.8125rem;  /* 13px */
  font-weight: 700;
  color: var(--its-navy);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pkg-includes { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pkg-includes li {
  display: flex; gap: 10px;
  align-items: flex-start;
  font-size: 0.84375rem;  /* 13.5px */
  color: var(--its-text);
  line-height: 1.5;
}
.pkg-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px; font-size: 10px;
}
.pkg-card:nth-child(1) .pkg-check { background: rgba(0,103,172,.12); color: var(--its-blue); }
.pkg-card:nth-child(2) .pkg-check { background: rgba(22,140,161,.12); color: var(--teal); }
.pkg-card:nth-child(3) .pkg-check { background: rgba(206,168,44,.15); color: #9a6d00; }

/* ══════════════════════════════
   INFO NOTES — single panel
══════════════════════════════ */
.notes-panel {
  background: var(--its-white);
  border: 1px solid var(--its-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.notes-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #e8f0f7;
  font-size: 0.75rem;   /* 12px */
  font-weight: 700;
  color: var(--its-navy);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.notes-panel-title i { font-size: 13px; }
.notes-list { list-style: none; padding: 0; margin: 0; }
.notes-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 20px;
  border-top: 1px solid var(--its-border);
  font-size: 0.8125rem;   /* 13px */
  color: var(--its-text);
  line-height: 1.65;
}
.notes-list li strong {
  color: var(--its-navy);
  font-weight: 600;
}
.notes-list-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  text-align: center;
  color: var(--its-navy);
  font-size: 13px;
  opacity: .7;
}

/* ══════════════════════════════
   ALSO SEE
══════════════════════════════ */
.also-see {
  background: var(--its-white);
  border: 1px solid var(--its-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.also-see-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--its-border);
  flex-wrap: wrap;
}
.also-see-row:last-child { border-bottom: none; }
.also-see-text {
  font-size: 0.9375rem;  /* 15px */
  font-weight: 600;
  color: var(--its-navy);
  line-height: 1.5;
}
.also-see-text span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--its-muted);
  margin-top: 2px;
}

/* ══════════════════════════════
   BENEFITS
══════════════════════════════ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.benefit-card {
  background: var(--its-white);
  border: 1px solid var(--its-border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex; gap: 14px;
  align-items: flex-start;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(0,103,172,.22);
}
.benefit-num {
  font-size: 1.75rem;    /* 28px */
  font-weight: 800;
  line-height: 1; flex-shrink: 0;
  width: 38px; text-align: right;
  letter-spacing: -1px; padding-top: 2px;
}
.benefit-card:nth-child(1) .benefit-num { color: rgba(0,103,172,.18); }
.benefit-card:nth-child(2) .benefit-num { color: rgba(22,140,161,.18); }
.benefit-card:nth-child(3) .benefit-num { color: rgba(206,168,44,.25); }
.benefit-card:nth-child(4) .benefit-num { color: rgba(1,163,85,.18); }
.benefit-card:nth-child(5) .benefit-num { color: rgba(0,58,99,.14); }
.benefit-card:nth-child(6) .benefit-num { color: rgba(0,103,172,.18); }
.benefit-card:nth-child(7) .benefit-num { color: rgba(22,140,161,.18); }

.benefit-text h3 {
  font-size: 0.875rem;   /* 14px */
  font-weight: 700;
  color: var(--its-navy);
  margin-bottom: 3px;
}
.benefit-text p {
  font-size: 0.8125rem;  /* 13px */
  color: var(--its-muted);
  line-height: 1.65;
}

/* Results banner */
.results-banner {
  margin-top: 16px;
  margin-bottom: 40px;
  background: linear-gradient(to right, #e8f4fc, #d4eefa);
  border-radius: var(--r-md);
  padding: 16px 22px;
  display: flex; align-items: center; gap: 14px;
}
.results-banner-icon { font-size: 24px; color: var(--its-blue); flex-shrink: 0; }
.results-banner p {
  font-size: 0.875rem;
  color: var(--its-navy);
  font-weight: 500;
  line-height: 1.65;
}
.results-banner a { color: var(--its-blue); font-weight: 700; text-decoration: underline; }

/* ══════════════════════════════
   PREDICTED GRADES — full-bleed band
   Uses the same Design Standards gradient as hero
══════════════════════════════ */
#predicted-grades {
  margin: 15px auto;
}

.predicted-band {
  background: linear-gradient(135deg, #003A63 0%, #0067AC 65%, #00A4E4 100%);
  /* margin: 0 calc(-50vw + 50%); */
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
/* .predicted-band::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 65%);
  pointer-events: none;
}
.predicted-band::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206,168,44,.10) 0%, transparent 70%);
  pointer-events: none;
} */
.predicted-content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.predicted-content h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: var(--its-white);
  margin-bottom: 16px;
  line-height: 1.15;
}
.predicted-divider {
  width: 60px; height: 3px;
  background: var(--cat-gold);
  border-radius: 2px;
  margin-bottom: 22px;
}
.predicted-content p {
  font-size: 0.9375rem;  /* 15px */
  color: rgba(255,255,255,.87);   /* DS subtitle opacity */
  line-height: 1.85;
  /* max-width: 760px; */
  margin-bottom: 16px;
}
.predicted-content a { color: #7fd4f5; font-weight: 600; }
.predicted-content a:hover { color: var(--its-white); }
.predicted-content .btn-row { margin-top: 24px; }

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.up { opacity: 1; transform: none; }

/* ══════════════════════════════
   CONTACT MODAL
══════════════════════════════ */
/* .modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--its-white);
  border-radius: 16px;
  max-width: 520px; width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.modal-head {
  background: var(--its-navy);
  padding: 20px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 { color: var(--its-white); font-size: 1.0625rem; margin: 0; }
.modal-close {
  background: none; border: none;
  color: rgba(255,255,255,.6); font-size: 26px;
  cursor: pointer; line-height: 1; padding: 0;
  transition: color .15s;
}
.modal-close:hover { color: var(--its-white); }
.modal-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.modal-note { font-size: 0.8125rem; color: var(--its-muted); text-align: center; }
.modal-field-label {
  font-size: 0.75rem; font-weight: 600;
  color: var(--its-navy); display: block; margin-bottom: 5px;
}
.modal-input, .modal-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--its-border); border-radius: var(--r-sm);
  font: 400 0.875rem/1.5 'Poppins', Arial, sans-serif;
  color: var(--its-navy); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.modal-input:focus, .modal-textarea:focus {
  border-color: var(--its-blue);
  box-shadow: 0 0 0 3px rgba(0,103,172,.10);
}
.modal-textarea { resize: vertical; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; }
.btn-cancel {
  padding: 10px 20px;
  background: #f1f5f9;
  color: var(--its-text);
  border: none;
  border-radius: var(--r-sm);
  font: 600 0.8125rem/1 'Poppins', Arial, sans-serif;
  cursor: pointer;
  transition: background .15s;
}
.btn-cancel:hover { background: #e2e8f0; } */

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 1200px) {
  .packages-grid { grid-template-columns: 1fr; }
}

/* Tablet */
@media (max-width: 960px) {
  /* .hero-inner { grid-template-columns: 1fr 300px; gap: 28px; }
  .hero { padding: 36px 0 32px; } */
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-col { display: none; }
  .hero h1 { font-size: clamp(1.4rem, 7.5vw, 1.8rem); }
  .hero-desc { font-size: 0.9375rem; margin-bottom: 24px; }
  .hero-btns { flex-wrap: wrap; gap: 10px; }
  .hero-btns .btn { flex: 1 1 100%; justify-content: center; }
  .btn-lg { padding: 12px 20px; font-size: 0.9375rem; }
}

/* Mobile ≤768px — DS §04: hero padding 28px */
@media (max-width: 768px) {
  .hero { padding: 28px 0 32px; }
  .page-body  { padding: 24px 0 0; }
  .section    { margin-bottom: 32px; }
  .section-divider { margin: 24px 0; }
  .predicted-band { padding-top: 32px; padding-bottom: 32px; }
  .also-see-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .results-banner { margin-bottom: 0; }
  #main-area .btn { white-space: break-spaces;}
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}
