/* =========================================================
   DIGIWIZ ACADEMY — Brand Stylesheet
   Light cream + dark navy, gold for highlights only.
   ========================================================= */

:root {
  color-scheme: light;
  /* Brand palette */
  --cream: #FBF6EC;
  --cream-deep: #F2E9D6;
  --navy: #0B1F4A;
  --navy-deep: #071434;
  --gold-deep: #B9802A;
  --gold: #CFA046;
  --gold-light: #E6C36B;
  --gold-pale: #F2E2BC;
  --ink: #20242E;
  --ink-soft: #585F70;
  --white: #FFFFFF;
  --line: #E6DCC2;

  --bg: var(--cream);
  --navy-tint: var(--cream-deep);

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --max-width: 1180px;
  --radius: 4px;
  --shadow-soft: 0 12px 32px -16px rgba(11, 31, 74, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.4em 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em 0; color: var(--ink-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-block;
  margin-bottom: 14px;
}

/* Highlighter sweep — academic "marking the key line" effect */
.hl {
  background-image: linear-gradient(90deg, var(--gold-pale), var(--gold-pale));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 65%;
  padding: 0 2px;
  transition: background-size 0.9s ease;
}
.hl.is-marked { background-size: 100% 55%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold-light));
  color: var(--navy);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-ghost:hover { background: var(--navy); color: var(--cream); }

.btn-light {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-light:hover { background: var(--navy); color: var(--cream); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--gold-deep);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-deep); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  border-bottom: 1px solid var(--line);
}
/* faint ruled-paper texture, the academic backdrop */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 37px,
    rgba(11, 31, 74, 0.05) 38px
  );
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 70%, transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual { position: relative; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-grid .stat-num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 700;
}
.trust-grid .stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (max-width: 700px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--cream-deep); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--cream); }
.section-navy p { color: rgba(251,246,236,0.78); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Program cards */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.program-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: var(--cream-deep);
  color: var(--navy);
  padding: 5px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 16px;
}
.program-card ul { padding-left: 0; list-style: none; margin: 18px 0 24px; }
.program-card li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 9px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.program-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 2px;
  background: var(--gold-deep);
}
@media (max-width: 760px) { .program-grid { grid-template-columns: 1fr; } }

/* Feature blocks */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature {
  padding-top: 18px;
  border-top: 2px solid var(--navy);
}
.feature .num { font-family: var(--font-mono); color: var(--gold-deep); font-size: 0.8rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Process steps, connected — a real sequence */
.process-rail { position: relative; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.process-step .step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }

/* Country pills */
.country-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.country-pills span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  padding: 7px 14px;
  border-radius: 20px;
}

/* Sample update / proof mockup (designed, not a real screenshot) */
.proof-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chat-mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.chat-mock .chat-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft);
}
.chat-mock .chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #4FCE5D; }
.bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 10px;
  line-height: 1.5;
}
.bubble.teacher { background: var(--cream-deep); color: var(--ink); border-bottom-left-radius: 3px; }
.bubble.parent { background: var(--navy); color: var(--cream); margin-left: auto; border-bottom-right-radius: 3px; }
.bubble .tag-line { display:block; font-family: var(--font-mono); font-size: 0.65rem; opacity: 0.6; margin-bottom: 4px; }
.proof-caption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; font-style: italic; }
@media (max-width: 880px) { .proof-wrap { grid-template-columns: 1fr; } }

/* Founder block */
.founder-grid { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 40px; align-items: center; }
.founder-mark {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 760px) { .founder-grid { grid-template-columns: 1fr; } .founder-mark { max-width: 160px; margin: 0 auto; } }

/* FAQ accordion */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-family: var(--font-mono);
  color: var(--gold-deep);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* Testimonials (kept for pages that still use it, restyled) */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.testi .score-pill { font-family: var(--font-mono); font-size: 0.85rem; color: var(--navy); background: var(--gold-pale); display: inline-block; padding: 4px 10px; border-radius: 3px; margin-bottom: 14px; }
.testi p { color: var(--ink); font-size: 0.95rem; }
.testi .who { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; margin-top: 14px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* Blog preview cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card .thumb { height: 140px; background: var(--navy); position: relative; overflow: hidden; }
.blog-card .thumb svg { position: absolute; inset: 0; }
.blog-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card .cat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--gold-deep); text-transform: uppercase; }
.blog-card h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.blog-card .meta { font-size: 0.8rem; color: var(--ink-soft); margin-top: auto; }
.blog-card .read-more { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-top: 14px; display: inline-flex; align-items: center; gap: 5px;}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207,160,70,0.22), transparent 70%);
}
.cta-band h2 { color: var(--cream); margin-bottom: 6px; }
.cta-band p { color: rgba(251,246,236,0.75); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(251,246,236,0.7); padding: 60px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(251,246,236,0.12);
}
.footer-grid img { height: 32px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-grid h4 { color: var(--cream); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-mono);}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid li a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; font-size: 0.8rem; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (non-home pages) ---------- */
.page-header { background: var(--cream-deep); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold-deep); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }

/* ---------- Score dial / band visuals ---------- */
.score-row { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.score-dial-wrap { text-align: center; }
.score-dial-wrap .label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); }
.contact-info-card { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { color: var(--cream); }
.contact-info-card .row { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-card .row .l { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold-light); min-width: 70px; }
@media (max-width: 880px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Blog list page ---------- */
.blog-filter { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.blog-filter button { font-family: var(--font-mono); font-size: 0.78rem; padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink-soft); }
.blog-filter button.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ---------- Utility ---------- */
.text-gold { color: var(--gold-deep); }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); margin: 0; }

/* Graded paper signature animation — stroke draws in like a teacher marking it */
.draw-check, .draw-ring {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: draw-in 1s ease forwards;
  animation-delay: 0.4s;
}
.draw-check.delay1 { animation-delay: 0.9s; }
.draw-ring { stroke-dasharray: 320; stroke-dashoffset: 320; animation-delay: 1.3s; animation-duration: 1.3s; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .hl { background-size: 100% 55% !important; }
}

/* Brand lockup (inline SVG mark + wordmark, used in header and footer) */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-main { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em; color: var(--gold-deep); margin-top: 3px; }
.footer-grid .brand-main { color: var(--cream); }
.footer-grid .brand-sub { color: var(--gold-light); }
.footer-brand { margin-bottom: 14px; }

/* Hero banner accent */
.hero { border-top: 3px solid var(--gold-deep); }


/* Founder photo card */
.founder-photo-wrap { position: relative; }
.founder-photo {
  width: 100%;
  border-radius: 8px;
  display: block;
  border: 3px solid rgba(207,160,70,0.35);
}
.founder-quote-mark {
  position: absolute;
  bottom: -14px; right: -14px;
  width: 52px; height: 52px;
  background: var(--gold-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.35);
}

/* Trust strip disclaimer */
.trust-note {
  text-align: center;
  font-size: 0.74rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 14px;
}

/* Dual exam hero card animation delays */
.draw-check2 { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw-in 1s ease forwards; animation-delay: 0.7s; }
.draw-check2.delay1 { animation-delay: 1.2s; }
.draw-ring2 { stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw-in 1.3s ease forwards; animation-delay: 1.6s; }

/* Hero score cards, replacing the flat SVG paper mockup */
.hero-visual { position: relative; min-height: 400px; display: flex; align-items: center; }
.hero-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(circle at 58% 42%, rgba(207,160,70,0.28), transparent 62%);
  z-index: 0;
}
.hero-trajectory { position: absolute; top: 8%; left: 4%; width: 92%; height: 60%; z-index: 0; opacity: 0.8; }
.hero-trajectory path { stroke-dasharray: 480; stroke-dashoffset: 480; animation: draw-in 1.6s ease forwards; animation-delay: 1.4s; }
.hero-cards { position: relative; z-index: 1; display: flex; gap: 22px; width: 100%; justify-content: center; }
.score-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  width: 175px;
  box-shadow: var(--shadow-soft);
}
.score-card.tilt-left { transform: rotate(-3deg); }
.score-card.tilt-right { transform: rotate(3deg); margin-top: 38px; }
.score-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.score-card-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--navy); background: var(--cream-deep); padding: 4px 9px; border-radius: 3px;
}
.score-card-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.score-card-lines span { display: block; height: 6px; border-radius: 3px; background: var(--ink-soft); opacity: 0.16; }
.score-card-lines span:nth-child(1) { width: 100%; }
.score-card-lines span:nth-child(2) { width: 78%; }
.score-card-lines span.short { width: 52%; }
.score-card-num { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1; }
.score-card-label { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); margin-top: 5px; letter-spacing: 0.05em; }
.check-icon { width: 26px; height: 26px; }
@media (max-width: 480px) {
  .score-card { width: 140px; padding: 18px; }
  .score-card-num { font-size: 1.7rem; }
}

/* Trust badges under hero CTAs */
.trust-badges { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: 26px; }
.trust-badges span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ink-soft); }
.trust-badges svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Case study (before / after result) */
.case-study-grid { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.case-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px 30px; box-shadow: var(--shadow-soft); min-width: 220px; }
.case-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--gold-deep); }
.case-card.after .case-label { color: var(--navy); }
.case-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.case-num { font-family: var(--font-mono); font-weight: 700; font-size: 1.9rem; color: var(--navy); }
.case-sub { font-size: 0.85rem; color: var(--ink-soft); }
.case-arrow { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.case-arrow svg { width: 60px; height: 28px; }
.case-badge {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  background: var(--navy); color: var(--cream); padding: 6px 14px; border-radius: 20px; white-space: nowrap;
}
@media (max-width: 700px) { .case-arrow svg { transform: rotate(90deg); } }

/* Paper-volume comparison */
.paper-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.paper-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.paper-card .paper-when { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.05em; }
.paper-card .paper-count { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; color: var(--navy); margin: 10px 0 4px; }
.paper-card .paper-label { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 700px) { .paper-compare { grid-template-columns: 1fr; } }

/* Adaptive loop mini-diagram */
.loop-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.loop-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 150px;
}
.loop-node .loop-num { font-family: var(--font-mono); color: var(--gold-deep); font-size: 0.75rem; }
.loop-node h4 { font-family: var(--font-display); color: var(--navy); font-size: 0.98rem; margin: 0; }
.loop-node p { font-size: 0.82rem; margin: 0; color: var(--ink-soft); text-align: center; }
.loop-connector { color: var(--gold-deep); font-size: 1.2rem; flex-shrink: 0; }
@media (max-width: 760px) { .loop-connector { transform: rotate(90deg); } }

/* Four-skill grid (Listening, Reading, Writing, Speaking) */
.skills-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.skill-card .tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  background: var(--cream-deep); color: var(--navy); padding: 4px 8px; border-radius: 3px; display: inline-block; margin-bottom: 14px;
}
.skill-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.skill-card p { font-size: 0.88rem; }
.skill-card ul { padding-left: 0; list-style: none; margin: 14px 0 0; }
.skill-card li { padding-left: 18px; position: relative; margin-bottom: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.skill-card li::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 2px; background: var(--gold-deep); }
@media (max-width: 1000px) { .skills-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills-grid-4 { grid-template-columns: 1fr; } }

/* About page: timeline */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--line); margin-top: 8px; }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold-deep); border: 3px solid var(--cream);
}
.timeline-year { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold-deep); margin-bottom: 4px; }
.timeline-item h3 { margin-bottom: 6px; font-size: 1.05rem; }

/* About page: video embed */
.video-embed-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-soft); }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* About page: photo strip */
.photo-strip-img { width: 100%; border-radius: 10px; border: 3px solid rgba(207,160,70,0.25); display: block; }

/* About page: team stats */
.team-stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 24px; }
.team-stat { text-align: center; }
.team-stat .num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--navy); }
.team-stat .label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }

/* About page: pull quote */
.quote-block { border-left: 3px solid var(--gold-deep); padding-left: 20px; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin: 20px 0; line-height: 1.5; }
.quote-block cite { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); margin-top: 10px; font-style: normal; }

/* Photo + video two-column layout, responsive (fixes inline-style mobile bug) */
.photo-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .photo-video-grid { grid-template-columns: 1fr; } }

/* Three-column process steps variant (Method / Approach sections), proper responsive override */
.process-steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .process-steps-3 { grid-template-columns: 1fr; } }

/* Blog index: empty state, used until real posts exist */
.blog-empty {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 48px 32px;
  text-align: center;
  background: var(--white);
}
.blog-empty svg { width: 40px; height: 40px; margin: 0 auto 16px; display: block; }
.blog-empty h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-empty p { max-width: 440px; margin: 0 auto 20px; }

/* Jump links between blog sections */
.jump-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.jump-links a {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  border: 1.5px solid var(--navy); color: var(--navy); padding: 8px 16px; border-radius: 20px;
}
.jump-links a:hover { background: var(--navy); color: var(--cream); }

/* Blog article template */
.article-body { max-width: 700px; margin: 0 auto; }
.article-body h2 { margin-top: 2.2em; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 1.05rem; line-height: 1.75; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.5em; font-size: 1.02rem; color: var(--ink-soft); }
.article-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.04em; margin-top: 14px; }
.article-meta span { margin-right: 18px; }
.article-cta-inline {
  background: var(--cream-deep); border-left: 3px solid var(--gold-deep);
  border-radius: 4px; padding: 22px 24px; margin: 2em 0;
}
.article-cta-inline p { margin-bottom: 10px; font-size: 0.96rem; color: var(--ink); }
.related-articles { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Blog card excerpt text */
.blog-card .excerpt { font-size: 0.88rem; color: var(--ink-soft); margin: 6px 0 10px; }

/* Floating WhatsApp button, present on every page */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.4);
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 600px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}

/* Nav dropdown, SAT and IELTS sub-pages */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: '\25BE'; font-size: 0.7em; color: var(--ink-soft); }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-soft);
  padding: 8px;
  list-style: none;
  margin: 10px 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 4px;
  white-space: nowrap;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: var(--cream-deep); }
.dropdown-menu a.active { color: var(--gold-deep); background: var(--cream-deep); }

@media (max-width: 880px) {
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 4px 0 4px 14px; margin: 4px 0 10px;
  }
  .nav-dropdown > a::after { content: ''; }
}

/* Micro CTA grid, topic specific demo prompts */
.micro-cta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.micro-cta {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.micro-cta p { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 0.95rem; margin: 0; }
.micro-cta .btn { font-size: 0.82rem; padding: 9px 16px; }
@media (max-width: 900px) { .micro-cta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .micro-cta-grid { grid-template-columns: 1fr; } }

/* Mega menu dropdown, SAT and IELTS */
.dropdown-menu.mega {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 22px;
  min-width: 600px;
  padding: 18px;
}
.dropdown-col h5 {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 8px; padding: 0 10px;
}
.dropdown-col ul { list-style: none; margin: 0; padding: 0; }
.dropdown-col li { margin: 0; }
@media (max-width: 880px) {
  .dropdown-menu.mega { grid-template-columns: 1fr; min-width: 0; gap: 4px; padding: 0; }
  .dropdown-col { margin-bottom: 10px; }
}

/* Practice material selector cards */
.material-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.material-option {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.material-option:hover { border-color: var(--gold-deep); background: var(--cream-deep); }
.material-option input[type="checkbox"] { margin-top: 3px; accent-color: var(--gold-deep); width: 16px; height: 16px; flex-shrink: 0; }
.material-option .label-text { font-size: 0.92rem; }
.material-option .label-text strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 2px; }
.material-option .label-text span { color: var(--ink-soft); font-size: 0.84rem; }
@media (max-width: 700px) { .material-grid { grid-template-columns: 1fr; } }

/* Mock test quiz engine */
.quiz-shell { max-width: 760px; margin: 0 auto; }
.quiz-intro-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.quiz-intro-card h2 { margin-top: 0; }
.quiz-intro-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.quiz-intro-list li { display: flex; gap: 10px; align-items: baseline; font-size: 0.94rem; color: var(--ink-soft); }
.quiz-intro-list li strong { color: var(--navy); font-family: var(--font-mono); font-size: 0.82rem; min-width: 110px; }
.quiz-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1.5px solid var(--line); margin-bottom: 6px; }
.quiz-header .quiz-section-name { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.quiz-timer { font-family: var(--font-mono); font-weight: 600; color: var(--navy); font-size: 1.15rem; padding: 6px 14px; background: var(--cream-deep); border-radius: 6px; }
.quiz-timer.low-time { color: #B3261E; background: #FBEAE9; }
.quiz-progress-bar { height: 6px; background: var(--cream-deep); border-radius: 3px; overflow: hidden; margin: 16px 0 30px; }
.quiz-progress-fill { height: 100%; background: var(--gold-deep); transition: width 0.3s ease; }
.quiz-question-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 22px; }
.quiz-question-number { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 12px; letter-spacing: 0.04em; }
.quiz-question-text { font-size: 1.12rem; color: var(--navy); margin-bottom: 22px; line-height: 1.55; font-family: var(--font-display); font-weight: 500; }
.quiz-choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.quiz-choice:hover { border-color: var(--gold-deep); background: var(--cream-deep); }
.quiz-choice.selected { border-color: var(--gold-deep); background: var(--cream-deep); }
.quiz-choice input { margin-top: 3px; accent-color: var(--gold-deep); flex-shrink: 0; }
.quiz-choice .choice-letter { font-family: var(--font-mono); font-weight: 600; color: var(--gold-deep); min-width: 18px; }
.quiz-nav-buttons { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }
.quiz-nav-buttons .quiz-counter { font-size: 0.85rem; color: var(--ink-soft); font-family: var(--font-mono); }
.quiz-results { text-align: center; padding: 10px 0 0; }
.quiz-score-big { font-family: var(--font-display); font-size: 3.4rem; color: var(--navy); font-weight: 700; line-height: 1; }
.quiz-score-label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.quiz-domain-breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0; text-align: left; }
.quiz-domain-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.quiz-domain-row .domain-name { font-weight: 500; color: var(--navy); font-size: 0.92rem; }
.quiz-domain-row .domain-score { font-family: var(--font-mono); font-weight: 600; color: var(--gold-deep); }
.quiz-disclaimer { font-size: 0.82rem; color: var(--ink-soft); max-width: 480px; margin: 0 auto 28px; }
.quiz-flag-btn { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; cursor: pointer; color: var(--ink-soft); font-family: var(--font-mono); }
.quiz-flag-btn.flagged { border-color: var(--gold-deep); color: var(--gold-deep); background: var(--cream-deep); }
@media (max-width: 700px) {
  .quiz-domain-breakdown { grid-template-columns: 1fr; }
  .quiz-question-card { padding: 20px; }
}

/* IELTS Reading passage panel */
.passage-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 18px; max-height: 320px; overflow-y: auto;
}
.passage-panel h4 { margin: 0 0 10px; font-family: var(--font-display); color: var(--navy); }
.passage-panel p { font-size: 0.92rem; line-height: 1.6; color: var(--ink); }

/* IELTS Writing practice */
.writing-prompt-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.writing-prompt-card h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 12px; }
.writing-prompt-card p { font-size: 0.98rem; line-height: 1.6; color: var(--navy); }
.writing-textarea { width: 100%; min-height: 260px; border: 1.5px solid var(--line); border-radius: 8px; padding: 16px; font-family: var(--font-body); font-size: 0.95rem; line-height: 1.6; resize: vertical; }
.writing-textarea:focus { outline: none; border-color: var(--gold-deep); }
.word-count-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); }
.word-count-bar .count-ok { color: #2E7D32; font-weight: 600; }
.word-count-bar .count-low { color: #B3261E; font-weight: 600; }
.rubric-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; }
.rubric-card h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 10px; }
.rubric-card ul { margin: 0; padding-left: 20px; }
.rubric-card li { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 6px; }

/* WPForms styling overrides, so forms match the site's design rather than
   WPForms' own default plugin styling. */
.wpforms-wrapper { margin-bottom: 0; }
.wpforms-container .wpforms-form { margin: 0; }
.wpforms-container .wpforms-field { padding: 0 0 18px; }
.wpforms-container .wpforms-field-label {
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  color: var(--navy); margin-bottom: 6px; display: block;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container select,
.wpforms-container textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--navy); background: var(--white);
}
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
  outline: none; border-color: var(--gold-deep);
}
.wpforms-container .wpforms-field-checkbox ul,
.wpforms-container .wpforms-field-radio ul { list-style: none; padding: 0; margin: 0; }
.wpforms-container .wpforms-field-checkbox li,
.wpforms-container .wpforms-field-radio li { margin-bottom: 8px; font-size: 0.92rem; color: var(--ink); }
.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit {
  background: var(--gold-deep); color: var(--white); border: none;
  border-radius: 8px; padding: 13px 28px; font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.wpforms-container button[type="submit"]:hover,
.wpforms-container .wpforms-submit:hover { background: var(--navy); }
.wpforms-container .wpforms-error { color: #B3261E; font-size: 0.82rem; margin-top: 4px; }
.wpforms-confirmation-container { color: var(--navy); font-size: 0.98rem; }
