/* Load Google Fonts in your index.html or angular.json styles:
   <link href="https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap" rel="stylesheet"> */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  display: block;
  font-family: 'Sora', sans-serif;
  color: var(--gray-900);
  overflow-x: hidden;
}
.page-root { font-size: 17px; line-height: 1.75; font-family: 'Sora', sans-serif; background: var(--gray-50); }
.page-root * { font-family: inherit; }
:root {
  --navy:       #1a3a6b;
  --navy-dark:  #0f2347;
  --navy-light: #2a5298;
  --cyan:       #00b4d8;
  --cyan-light: #e0f7fc;
  --cyan-mid:   #0096b7;
  --green:      #16a34a;
  --green-lt:   #dcfce7;
  --amber:      #d97706;
  --amber-lt:   #fef3c7;
  --red:        #dc2626;
  --red-lt:     #fee2e2;
  --purple:     #7c3aed;
  --purple-lt:  #ede9fe;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-900:   #0f172a;
  --white:      #ffffff;
  --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --sh:    0 4px 20px rgba(26,58,107,.09);
  --sh-lg: 0 8px 40px rgba(26,58,107,.15);
  --font:  'Sora', sans-serif;
  --prose: 'Lora', serif;
  display: block;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.bc-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gray-600); flex-wrap: wrap; }
.bc-inner a { color: var(--gray-500); transition: color .2s; text-decoration: none; }
.bc-inner a:hover { color: var(--navy); }
.bc-sep { color: var(--gray-300); }
.bc-current { color: var(--navy); font-weight: 600; }
/* ── TOC ── */
.toc-bar { background: var(--cyan-light); border-bottom: 1px solid rgba(0,180,216,.2); }
.toc-inner { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.toc-label { font-size: 12px; font-weight: 800; color: var(--cyan-mid); text-transform: uppercase; letter-spacing: .5px; margin-right: 6px; white-space: nowrap; }
.toc-link { font-size: 14px; font-weight: 600; color: var(--navy); padding: 3px 10px; border-radius: 99px; background: white; border: 1px solid rgba(0,180,216,.25); transition: all .2s; white-space: nowrap; cursor: pointer; text-decoration: none; }
.toc-link:hover { background: var(--navy); color: white; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1a4f9f 100%); padding: 60px 24px 52px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .04; background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 28px 28px; }
.hero::after { content: ''; position: absolute; top: -60px; right: -60px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(0,180,216,.12) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,180,216,.18); border: 1px solid rgba(0,180,216,.35); color: var(--cyan); padding: 5px 14px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px; }
.hero-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: white; line-height: 1.2; margin-bottom: 14px; }
.hero-title em { font-style: normal; color: var(--cyan); }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.8; max-width: 560px; margin-bottom: 24px; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8); padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.hero-stat-box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-xl); padding: 28px 32px; text-align: center; min-width: 0; width: 180px; flex-shrink: 0; backdrop-filter: blur(8px); }
.hero-stat-box .big { font-size: 52px; font-weight: 800; color: var(--cyan); line-height: 1; }
.hero-stat-box .lbl { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 6px; }
.hero-stat-box .sub { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ── COMMON SECTION BITS ── */
.section { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.section-alt { background: var(--white); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-dark { background: var(--navy-dark); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan-mid); margin-bottom: 8px; }
.section-label-lt { color: var(--cyan); }
.section-title { font-size: clamp(20px, 2.8vw, 28px); font-weight: 800; color: var(--navy); margin-bottom: 12px; line-height: 1.25; }
.section-title-lt { color: white; }
.section-desc { font-size: 16px; color: var(--gray-500); max-width: 680px; line-height: 1.85; }
.section-desc-lt { color: rgba(255,255,255,.82); }

/* ── WHAT IS THIS TYPE ── */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.what-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh); }
.what-card h3 { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.what-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.what-card li { font-size: 15px; color: var(--gray-600); display: flex; align-items: flex-start; gap: 8px; line-height: 1.78; }
.what-card li .ico { flex-shrink: 0; margin-top: 1px; }
.signal-box { background: var(--navy-dark); border-radius: var(--r-lg); padding: 28px; margin-top: 20px; }
.signal-box h3 { font-size: 14px; font-weight: 800; color: white; margin-bottom: 16px; }
.signal-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.signal-pill { background: rgba(0,180,216,.15); border: 1px solid rgba(0,180,216,.3); color: var(--cyan); padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: var(--prose); font-style: italic; }

/* ── STRUCTURE VISUAL ── */
.structure-wrap { margin-top: 32px; }
.structure-steps { display: flex; gap: 12px; align-items: stretch; }
.structure-step { flex: 1; border-radius: var(--r-lg); padding: 20px 16px; text-align: center; border: 1px solid; position: relative; }
.step-para { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.step-name { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--gray-500); line-height: 1.72; margin-bottom: 12px; }
.step-words { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; display: inline-block; }
.step-arrow { position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--gray-300); font-size: 20px; font-weight: 700; z-index: 1; }
.step-intro  { background: #e0f2fe; border-color: #bae6fd; }
.step-intro .step-para { color: #0284c7; }
.step-intro .step-words { background: #bae6fd; color: #0369a1; }
.step-body1  { background: var(--green-lt); border-color: #bbf7d0; }
.step-body1 .step-para { color: var(--green); }
.step-body1 .step-words { background: #bbf7d0; color: #15803d; }
.step-body2  { background: var(--amber-lt); border-color: #fde68a; }
.step-body2 .step-para { color: var(--amber); }
.step-body2 .step-words { background: #fde68a; color: #b45309; }
.step-conc   { background: var(--purple-lt); border-color: #ddd6fe; }
.step-conc .step-para { color: var(--purple); }
.step-conc .step-words { background: #ddd6fe; color: #6d28d9; }

/* ── PEEL BOX ── */
.peel-box { margin-top: 28px; background: var(--navy-dark); border-radius: var(--r-lg); padding: 28px; }
.peel-label { color: var(--cyan); margin-bottom: 16px; }
.peel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.peel-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 18px; }
.peel-letter { font-size: 22px; font-weight: 800; color: var(--cyan); margin-bottom: 6px; }
.peel-title { font-size: 13px; font-weight: 700; color: white; margin-bottom: 6px; }
.peel-desc { font-size: 12px; color: rgba(255,255,255,.82); line-height: 1.55; }

/* ── WORKED EXAMPLE ── */
.worked-prompt { background: var(--gray-100); border-radius: var(--r-lg); padding: 18px 22px; margin-top: 28px; border-left: 4px solid var(--navy); }
.worked-prompt-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-500); margin-bottom: 8px; }
.worked-prompt-text { font-family: var(--prose); font-size: 15px; color: var(--gray-900); line-height: 1.7; font-weight: 600; }
.worked-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.worked-card { border-radius: var(--r-lg); padding: 22px; border: 1px solid; }
.worked-weak   { background: var(--red-lt);   border-color: #fca5a5; }
.worked-strong { background: var(--green-lt); border-color: #86efac; }
.worked-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.worked-weak   .worked-label { color: var(--red); }
.worked-strong .worked-label { color: var(--green); }
.worked-text { font-family: var(--prose); font-size: 15.5px; line-height: 1.88; color: var(--gray-800); }
.worked-reason { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,.08); font-size: 14px; color: var(--gray-600); line-height: 1.75; }
.worked-reason strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; color: var(--gray-500); }

/* ── VOCABULARY SECTION ── */
.vocab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.vocab-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
.vocab-card-head { padding: 14px 16px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.vocab-card-body { padding: 4px 0; }
.vocab-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--gray-100); }
.vocab-row:last-child { border-bottom: none; }
.vocab-phrase { font-size: 15px; font-weight: 700; color: var(--navy); font-heightfamily: var(--prose); font-style: italic; }
.vocab-use { font-size: 13px; color: var(--gray-500); text-align: right; max-width: 140px; line-height: 1.55; }
.vh-opinion { background: #e0f2fe; color: #0369a1; }
.vh-concede { background: var(--amber-lt); color: #92400e; }
.vh-conclude { background: var(--purple-lt); color: #5b21b6; }
.vh-example { background: var(--green-lt); color: #15803d; }

/* ── QUESTION BANK ── */
.qbank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 28px; }
.qbank-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh); transition: all .2s; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.qbank-item:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--sh-lg); }
.qb-num { font-size: 11px; font-weight: 800; color: var(--gray-300); flex-shrink: 0; margin-top: 3px; }
.qb-topic { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--cyan-mid); margin-bottom: 6px; }
.qb-text { font-size: 15px; color: var(--gray-700); line-height: 1.75; font-family: var(--prose); }

/* ── MISTAKES ── */
.mistakes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.mistake-group { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
.mg-head { padding: 15px 20px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mg-head.red   { background: var(--red-lt);   color: var(--red); }
.mg-head.green { background: var(--green-lt); color: var(--green); }
.mg-body { padding: 6px 0; }
.mg-row { padding: 14px 20px; font-size: 15px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); display: flex; align-items: flex-start; gap: 10px; line-height: 1.75; }
.mg-row:last-child { border-bottom: none; }
.mg-head.red + .mg-body .mg-row::before   { content: '\2717'; color: var(--red);   flex-shrink: 0; }
.mg-head.green + .mg-body .mg-row::before { content: '\2713'; color: var(--green); flex-shrink: 0; }

/* ── FILTER BAR ── */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.filter-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filter-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 12px; font-weight: 700; color: var(--gray-500); }
.filter-btn { padding: 8px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-600); cursor: pointer; transition: all .2s; font-family: var(--font); }
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.filter-right { display: flex; align-items: center; gap: 10px; }
.sort-select { font-size: 14px; font-weight: 600; color: var(--gray-600); border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 14px; background: var(--white); cursor: pointer; font-family: var(--font); }
.results-count { font-size: 14px; color: var(--gray-500); }
.results-count strong { color: var(--navy); }

/* MID CTA */
.mid-cta { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); border-radius: var(--r-xl); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.mid-cta-text h3 { font-size: 22px; font-weight: 800; color: white; margin-bottom: 8px; line-height: 1.3; }
.mid-cta-text p  { font-size: 15px; color: rgba(255,255,255,.78); line-height: 1.7; max-width: 480px; }
.mid-cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.btn-cta-primary { background: var(--cyan); color: var(--navy-dark); padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 800; white-space: nowrap; transition: opacity .2s, transform .15s; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-cta-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-cta-secondary { border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; transition: background .2s; white-space: nowrap; text-decoration: none; }
.btn-cta-secondary:hover { background: rgba(255,255,255,.08); }

/* ── FAQ ── */
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
.faq-q { padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; user-select: none; }
.faq-q:hover { background: var(--gray-50); }
.faq-icon { font-size: 18px; color: var(--gray-500); flex-shrink: 0; transition: transform .25s; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { font-size: 16px; color: var(--gray-600); line-height: 1.92; padding-bottom: 24px; max-width: 720px; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-q { background: var(--gray-50); }

/* ── FOOTER ── */
.footer-strip { background: var(--cyan); padding: 52px 24px; text-align: center; }
.footer-strip h2 { font-size: 24px; font-weight: 800; color: var(--navy-dark); margin-bottom: 10px; }
.footer-strip p { color: rgba(15,35,71,.65); margin-bottom: 28px; font-size: 15px; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.footer-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-navy { background: var(--navy); color: white; padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; transition: background .2s; text-decoration: none; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); padding: 11px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; transition: background .2s; text-decoration: none; }
.btn-outline-navy:hover { background: rgba(26,58,107,.08); }
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); text-align: center; padding: 18px 24px; font-size: 12px; }
.site-footer a { color: rgba(255,255,255,.7); }

/* ── SCROLL OFFSET ── */
#what-is, #structure, #worked-example, #vocabulary,
#question-bank, #mistakes, #essays, #faq {
  scroll-margin-top: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stat-box { display: none; }
  .what-grid, .worked-grid, .mistakes-grid { grid-template-columns: 1fr; }
  .structure-steps { flex-direction: column; }
}
@media (max-width: 600px) {
  .qbank-grid { grid-template-columns: 1fr; }
  .vocab-grid { grid-template-columns: 1fr; }
  .section, .section-inner { padding-left: 16px; padding-right: 16px; }
}
