/* Board pages (/cbse, /icse, /igcse, /ib, /caie, /kerala): one template,
   content per board. Same parent-first language as the other rebuilt pages. */
.bd-page {
  --bd-ink:#213e38; --bd-green:#176859; --bd-green-dark:#105447; --bd-copy:#5d6c65;
  --bd-paper:#fdfbf7; --bd-sage:#f0f4ec; --bd-sage-2:#e5eee1; --bd-line:#dde6df; --bd-clay:#c77d48;
  background:var(--bd-paper); color:var(--bd-ink);
}
html:has(.bd-page) body { background:#fdfbf7; }
html:has(.bd-page) header { background:rgba(253,251,247,.97)!important; border-color:#e6e9df!important; box-shadow:none; }
.bd-page main { overflow:clip; }
.bd-page main > section { padding-block:88px; }
.bd-wrap { max-width:1180px; margin-inline:auto; padding-inline:36px; }
.bd-page :is(a,button,summary):focus-visible { outline:3px solid var(--bd-clay); outline-offset:4px; }

.bd-eyebrow { color:var(--bd-green); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin-bottom:14px; }
.bd-h2 { font-family:Outfit,system-ui,sans-serif; font-size:clamp(28px,3.2vw,42px); line-height:1.15; letter-spacing:-.035em; font-weight:650; color:var(--bd-ink); }
.bd-head { max-width:660px; margin-bottom:40px; }
.bd-head-copy { color:var(--bd-copy); font-size:16px; line-height:1.75; margin-top:12px; }
.bd-num { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--bd-sage-2); color:#386443; font-size:12px; font-weight:700; margin-bottom:20px; }

.bd-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; height:52px; padding-inline:22px; border-radius:12px; font-size:14px; font-weight:600; transition:transform .15s ease, background-color .15s ease; }
.bd-btn:hover { transform:translateY(-2px); }
.bd-btn:active { transform:translateY(1px); }
.bd-btn--primary { background:var(--bd-green); color:#fff; box-shadow:0 5px 0 var(--bd-green-dark),0 10px 22px #17685916; }
.bd-btn--ghost { background:transparent; color:var(--bd-ink); border:1px solid #d6ded5; }
.bd-btn--ghost:hover { background:#fff; }
.bd-actions { display:flex; flex-wrap:wrap; gap:12px; }

/* Hero */
.bd-page main > .bd-hero { padding:112px 0 72px; }
.bd-breadcrumb { margin-bottom:28px; }
.bd-hero-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:56px; align-items:center; }
.bd-title { font-family:Outfit,system-ui,sans-serif; font-size:clamp(36px,4.4vw,58px); line-height:1.08; letter-spacing:-.045em; font-weight:650; color:var(--bd-ink); margin-bottom:22px; }
.bd-title span { color:var(--bd-green); }
.bd-lead { color:var(--bd-copy); font-size:17px; line-height:1.75; max-width:560px; margin-bottom:28px; }
.bd-note { color:#63746a; font-size:12.5px; margin-top:16px; }
.bd-glance { background:var(--bd-sage); border-radius:24px; padding:26px 26px 10px; }
.bd-glance-head { display:flex; align-items:center; gap:14px; padding-bottom:18px; border-bottom:1px solid #d7e2d4; }
.bd-glance-head img { width:56px; height:56px; object-fit:contain; background:#fff; border-radius:14px; padding:6px; }
.bd-mono { flex:none; display:grid; place-items:center; width:56px; height:56px; border-radius:14px; background:var(--bd-green); color:#fff; font-family:Outfit,system-ui,sans-serif; font-size:20px; font-weight:650; letter-spacing:-.02em; }
.bd-glance-head p { display:flex; flex-direction:column; font-family:Outfit,system-ui,sans-serif; font-size:22px; font-weight:650; letter-spacing:-.02em; line-height:1.1; color:var(--bd-ink); }
.bd-glance-head small { font-family:Inter,system-ui,sans-serif; font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--bd-green); margin-top:6px; }
.bd-glance dl > div { padding:14px 0; }
.bd-glance dl > div + div { border-top:1px solid #d7e2d4; }
.bd-glance dt { font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:#617569; margin-bottom:4px; }
.bd-glance dd { font-size:15px; font-weight:500; color:var(--bd-ink); line-height:1.5; }

/* Approach */
.bd-approach { background:var(--bd-sage); }
.bd-approach-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.bd-card { background:var(--bd-paper); border-radius:24px; padding:26px 24px 28px; }
.bd-card h3,.bd-stage h3 { font-family:Outfit,system-ui,sans-serif; font-size:18px; font-weight:600; letter-spacing:-.015em; color:var(--bd-ink); margin-bottom:10px; line-height:1.3; }
.bd-card p,.bd-stage p { color:var(--bd-copy); font-size:14.5px; line-height:1.75; }

/* Stages */
.bd-stage-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; position:relative; }
.bd-stage { display:flex; flex-direction:column; background:#fff; border:1px solid var(--bd-line); border-radius:24px; padding:24px 24px 26px; }
.bd-stage-range { align-self:flex-start; height:28px; padding-inline:12px; display:inline-flex; align-items:center; border-radius:999px; background:var(--bd-green); color:#fff; font-size:12px; font-weight:600; letter-spacing:.02em; margin-bottom:18px; }
.bd-stage p { flex:1; }
.bd-stage-link { display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-size:13.5px; font-weight:600; color:var(--bd-green); }
.bd-stage-link:hover { text-decoration:underline; text-underline-offset:3px; }

/* Subjects */
.bd-subjects { background:var(--bd-sage); }
.bd-subjects-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:56px; align-items:center; }
.bd-chips { display:flex; flex-wrap:wrap; gap:10px; list-style:none; margin:0; padding:0; }
.bd-chips a { display:inline-flex; align-items:center; height:44px; padding-inline:18px; border-radius:999px; background:var(--bd-paper); border:1px solid var(--bd-line); color:var(--bd-ink); font-size:14.5px; font-weight:500; transition:border-color .12s ease, color .12s ease; }
.bd-chips a:hover { border-color:var(--bd-green); color:var(--bd-green); }

/* FAQ */
.bd-faq-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:56px; align-items:start; }
.bd-faq-grid > div:first-child .bd-btn { margin-top:24px; }
.bd-faq-list { display:grid; gap:12px; }
.bd-faq-item { background:#fff; border:1px solid var(--bd-line); border-radius:18px; }
.bd-faq-item summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px; font-size:15.5px; font-weight:600; color:var(--bd-ink); }
.bd-faq-item summary::-webkit-details-marker { display:none; }
.bd-faq-icon { position:relative; flex:none; width:28px; height:28px; border-radius:50%; background:var(--bd-sage-2); }
.bd-faq-icon::before,.bd-faq-icon::after { content:""; position:absolute; left:50%; top:50%; width:11px; height:2px; background:var(--bd-green); translate:-50% -50%; border-radius:2px; transition:rotate .2s ease; }
.bd-faq-icon::after { rotate:90deg; }
.bd-faq-item[open] .bd-faq-icon::after { rotate:0deg; }
.bd-faq-item p { padding:0 22px 22px; color:var(--bd-copy); font-size:15px; line-height:1.75; }

/* Guides */
.bd-page main > .bd-guides { padding-top:0; }
.bd-guides-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.bd-more { font-size:14px; font-weight:600; color:var(--bd-green); white-space:nowrap; }
.bd-more:hover { text-decoration:underline; text-underline-offset:3px; }
.bd-guide-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.bd-guide { display:flex; align-items:center; justify-content:space-between; gap:16px; height:100%; padding:22px 22px; border-radius:20px; background:var(--bd-sage); color:var(--bd-ink); font-size:15.5px; font-weight:600; line-height:1.45; transition:background-color .15s ease; }
.bd-guide:hover { background:var(--bd-sage-2); }
.bd-guide-arrow { flex:none; width:18px; height:18px; color:var(--bd-green); }

/* Closing */
.bd-page main > .bd-close { padding-top:0; }
.bd-close-card { display:flex; align-items:center; justify-content:space-between; gap:40px; background:var(--bd-sage-2); border-radius:24px; padding:52px 56px; max-width:1108px; }
.bd-close-card .bd-h2 { font-size:clamp(26px,2.6vw,36px); margin-bottom:10px; }
.bd-close-card p { color:var(--bd-copy); font-size:16px; line-height:1.7; max-width:520px; }
.bd-close-card .bd-actions { flex-shrink:0; }


/* Shared-template extras (subject, class, city and country pages) */
.bd-approach + .bd-subjects { background:var(--bd-paper); }
.bd-sets { display:grid; gap:56px; }
.bd-chips span { display:inline-flex; align-items:center; height:44px; padding-inline:18px; border-radius:999px; background:var(--bd-paper); border:1px solid var(--bd-line); color:var(--bd-ink); font-size:14.5px; font-weight:500; }
.bd-approach + .bd-subjects .bd-chips :is(a,span) { background:#fff; }
.bd-card h3:last-child { margin-bottom:0; }
.bd-notes-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:56px; align-items:start; }
.bd-note-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.bd-note-list li { position:relative; background:#fff; border:1px solid var(--bd-line); border-radius:18px; padding:18px 20px 18px 50px; font-size:15px; font-weight:500; line-height:1.5; color:var(--bd-ink); }
.bd-note-list li::before { content:""; position:absolute; left:20px; top:23px; width:12px; height:12px; border-radius:50%; background:var(--bd-clay); box-shadow:0 0 0 5px #c77d4822; }
.bd-notes + .bd-subjects { background:var(--bd-sage); }
.bd-stage-list--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.bd-stage-list--2 { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:760px; }
.bd-stage-list--1 { grid-template-columns:minmax(0,1fr); max-width:380px; }

@media (max-width:1024px) {
  .bd-hero-grid,.bd-subjects-grid,.bd-faq-grid,.bd-notes-grid { grid-template-columns:1fr; gap:32px; }
  .bd-stage-list--3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bd-approach-grid,.bd-stage-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bd-glance { max-width:520px; }
  .bd-close-card { flex-direction:column; align-items:flex-start; }
}
@media (max-width:767px) {
  .bd-page main > section { padding-block:64px; }
  .bd-wrap { padding-inline:16px; }
  .bd-page main > .bd-hero { padding:96px 0 56px; }
  .bd-approach-grid,.bd-stage-list,.bd-guide-list,.bd-note-list { grid-template-columns:1fr; }
  .bd-sets { gap:40px; }
  .bd-guides-head { flex-direction:column; align-items:flex-start; }
  .bd-close-card { padding:34px 22px; }
  .bd-actions { width:100%; }
  .bd-actions .bd-btn { flex:1 1 auto; }
}
@media (prefers-reduced-motion:reduce) {
  .bd-btn,.bd-faq-icon::before,.bd-faq-icon::after,.bd-guide { transition:none; }
  .bd-btn:hover { transform:none; }
}

/* Subject pages: "See it in motion" Manim clip (videos/subjects/, source in scripts/manim/) */
.bd-page main > .bd-motion { padding-block:24px 88px; }
.bd-motion-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:56px; align-items:center; }
.bd-motion-note { color:#63746a; font-size:13.5px; line-height:1.7; margin-top:18px; padding-left:14px; border-left:2px solid var(--bd-sage-2); }
.bd-motion-frame { position:relative; margin:0; border-radius:24px; overflow:hidden; background:#fdfbf7; border:1px solid var(--bd-line); box-shadow:0 18px 40px #213e380d; }
.bd-motion-frame video { display:block; width:100%; height:auto; aspect-ratio:16/9; }
.bd-motion-toggle { position:absolute; right:14px; bottom:14px; height:32px; padding-inline:14px; border-radius:999px; background:rgba(253,251,247,.92); border:1px solid var(--bd-line); color:var(--bd-ink); font-size:12px; font-weight:600; cursor:pointer; transition:background-color .15s ease; }
.bd-motion-toggle:hover { background:#fff; }
@media (max-width:900px) {
  .bd-motion-grid { grid-template-columns:1fr; gap:28px; }
  .bd-motion-frame { border-radius:18px; }
  .bd-page main > .bd-motion { padding-block:8px 64px; }
}
