/* The Banyan Tree Learning Center – site styles */
:root {
  --blue: #0E7DC1;
  --blue-dark: #0B5E94;
  --teal: #33BBAC;
  --teal-deep: #0C5C57;
  --teal-text: #0F7A71;
  --mint: #7FD8CD;
  --ink: #14262B;
  --body: #34474B;
  --muted: #566A6E;
  --line: #DCE8EA;
  --tint: #F1F8F8;
  --tint-2: #E6F6F4;
  --footer: #0F2A30;
  --wa: #1DA851;
  --sans: 'Jost', 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --wrap: 1200px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0; color: var(--ink); }
h3 { font-weight: 500; line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { border-top: 4px solid var(--teal); border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 24px; }
.nav a { text-decoration: none; font-size: 15px; padding: 10px 0; color: var(--blue); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--teal); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 6px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; min-height: 44px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 500; font-size: 16px; padding: 13px 22px; border-radius: 6px; border: 1.5px solid transparent; line-height: 1.3; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--tint); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: var(--tint); color: var(--blue-dark); }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Section basics ---------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-tint { background: var(--tint); }
.section-deep { background: var(--teal-deep); color: #fff; }
.section-deep h2, .section-deep h3 { color: #fff; }
.eyebrow { font-size: 13px; letter-spacing: .22em; font-weight: 500; color: var(--teal-text); margin-bottom: 14px; }
.section-deep .eyebrow { color: var(--mint); }
.h2 { font-size: 40px; margin-bottom: 18px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--body); max-width: 36em; }
.muted { color: var(--muted); }
.prose { color: var(--body); max-width: 40em; }
.prose p + p { margin-top: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-top { align-items: flex-start; }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; }
.page-head h1 { font-size: 48px; margin-bottom: 12px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* ---------- Home ---------- */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: 64px; line-height: 1.05; margin-bottom: 22px; }
.hero .lede { margin-bottom: 28px; }
.photo { background: var(--tint-2); border-radius: var(--radius); min-height: 420px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 14px; padding: 24px; position: relative; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-note::before { content: ''; display: block; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; border: 14px solid var(--teal); opacity: .5; }

.facts { background: var(--tint); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.fact-num { font-size: 34px; color: var(--blue); line-height: 1.2; }
.fact-label { font-size: 15px; color: var(--muted); }

.quote-lg { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.55; color: var(--body); margin: 0; }
.quote-src { margin-top: 10px; font-size: 14px; color: var(--muted); }
.pillar { border-top: 3px solid var(--teal); padding-top: 16px; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; }
.pillar p { color: var(--body); }

.stages { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 40px; }
.stage-num { font-size: 15px; color: var(--mint); font-weight: 500; }
.stage h3 { font-size: 20px; margin: 4px 0 6px; }
.stage p { color: #D6EEEB; font-size: 16px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.card-meta { font-size: 14px; font-weight: 500; color: var(--teal-text); }
.card h3 { font-size: 22px; }
.card .when { font-size: 15px; color: var(--muted); }
.card p { color: var(--body); font-size: 16px; }
.extras { margin-top: 28px; background: var(--tint); border-radius: var(--radius); padding: 28px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.extras h3 { font-size: 18px; margin-bottom: 6px; }
.extras p { color: var(--body); font-size: 16px; }

.person h3 { font-size: 20px; margin-bottom: 4px; }
.person .legal { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.person p { color: var(--body); font-size: 16px; }

.voices { display: grid; gap: 40px 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 40px; }
.voices figure { margin: 0; }
.voices blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink); }
.voices figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.stack > * + * { margin-top: 28px; }
.stack h3 { font-size: 20px; margin-bottom: 6px; }
.stack p { color: var(--body); }

.band { background: var(--blue); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.band h2 { color: #fff; font-size: 36px; margin-bottom: 10px; }
.band p { color: #E3F1FB; font-size: 18px; }

/* ---------- Contact & forms ---------- */
.contact-list { display: flex; flex-direction: column; gap: 14px; color: var(--body); }
.contact-list strong { color: var(--ink); font-weight: 500; display: block; font-size: 14px; letter-spacing: .04em; }
.map { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); background: var(--tint-2); }
.form-frame { width: 100%; border: 0; display: block; height: 2050px; background: #fff; }
.aside-box { background: var(--tint); border-radius: var(--radius); padding: 28px; }
.aside-box h2 { font-size: 24px; margin-bottom: 10px; }
.aside-box p + p, .aside-box p + .btn-row { margin-top: 14px; }
.checklist { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.checklist li { position: relative; padding: 0 0 22px 52px; color: var(--body); }
.checklist li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 500; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.checklist strong { color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #C7D8DB; font-size: 15px; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-top: 48px; padding-bottom: 40px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer h2 { font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #C7D8DB; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.55; }
.legal-bar { border-top: 1px solid #23434A; font-size: 13px; color: #9DB5B9; }
.legal-bar .wrap { padding-top: 18px; padding-bottom: 28px; }

/* ---------- WhatsApp floating button ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 18px 12px 14px; font-weight: 500; font-size: 15px; box-shadow: 0 6px 18px rgba(15, 42, 48, .25); }
.wa-float:hover { color: #fff; background: #178C43; }
.wa-float svg { width: 26px; height: 26px; flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .site-header .wrap { flex-wrap: nowrap; }
  .brand img { height: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 44px; }
  .h2 { font-size: 32px; }
  .page-head h1 { font-size: 36px; }
  .lede { font-size: 18px; }
  .photo { min-height: 260px; }
  .band h2 { font-size: 30px; }
  .form-frame { height: 2350px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* Header button keeps its own colours inside the nav */
.nav a.btn-primary { color: #fff; padding: 11px 18px; box-shadow: none; }
.nav a.btn-primary:hover { color: #fff; }
@media (max-width: 640px) {
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .fact-num { font-size: 26px; }
}

/* ---------- Step 2 additions ---------- */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ticks { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ticks li { position: relative; padding-left: 22px; color: var(--body); font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--teal); }
.stage-list { list-style: none; margin: 0; padding: 0; counter-reset: stage; flex: 2 1 560px; }
.stage-list li { position: relative; padding: 0 0 34px 76px; border-left: 2px solid var(--line); margin-left: 24px; }
.stage-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.stage-list li::before { counter-increment: stage; content: counter(stage); position: absolute; left: -25px; top: -4px; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-deep); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.stage-list h3 { font-size: 22px; margin-bottom: 8px; padding-top: 6px; margin-left: -20px; }
.stage-list p { color: var(--body); max-width: 36em; margin-left: -20px; }
.roles { gap: 40px 56px; }
.roles h3 { font-size: 21px; margin-bottom: 8px; padding-top: 14px; border-top: 3px solid var(--teal); }
.roles p { color: var(--body); }
.card.person { gap: 4px; }

/* ---------- Policies ---------- */
.policy-layout { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.toc { flex: 0 1 260px; position: sticky; top: 24px; font-size: 15px; background: var(--tint); border-radius: var(--radius); padding: 20px 22px; }
.toc p { font-weight: 500; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.policy { flex: 1 1 560px; min-width: 0; max-width: 46em; color: var(--body); }
.policy h2 { font-size: 26px; margin: 48px 0 14px; color: var(--ink); scroll-margin-top: 20px; }
.policy h2:first-of-type { margin-top: 20px; }
.policy h3 { font-size: 18px; margin: 26px 0 8px; color: var(--ink); }
.policy p { margin: 0 0 10px; }
.policy ul { margin: 0 0 14px; padding-left: 22px; }
.policy li { margin-bottom: 6px; }
@media (max-width: 900px) { .toc { position: static; flex-basis: 100%; } }
.policy p.sub { font-weight: 500; color: var(--ink); margin-top: 16px; }
.card.person p + p { margin-top: 10px; }
.person .subjects { font-size: 14px; font-weight: 500; color: var(--teal-text); margin-bottom: 8px; }

/* ---------- Home banner (rotating photos) ---------- */
.hero-banner { position: relative; min-height: min(78vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--teal-deep); color: #fff; isolation: isolate; }
.hb-slides { position: absolute; inset: 0; z-index: -2; }
.hb-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.hb-slide.is-active { opacity: 1; }
.hb-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hb-slide.is-active img { transform: scale(1); }
.hb-slide figcaption { position: absolute; right: 24px; bottom: 76px; background: rgba(15, 42, 48, .72); color: #fff; font-size: 14px; padding: 7px 14px; border-radius: 999px; max-width: calc(100% - 48px); }
.hb-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 38, 44, .86) 0%, rgba(10, 38, 44, .62) 38%, rgba(10, 38, 44, .08) 72%), linear-gradient(0deg, rgba(10, 38, 44, .55) 0%, rgba(10, 38, 44, 0) 35%); }
.hb-content { width: 100%; padding-top: 96px; padding-bottom: 32px; }
.hb-content h1 { color: #fff; font-size: 72px; line-height: 1.02; margin-bottom: 18px; }
.hb-content .lede { color: #E4F3F1; max-width: 30em; margin-bottom: 22px; }
.hb-badge { display: inline-block; background: var(--teal); color: #08302C; font-weight: 500; font-size: 15px; padding: 8px 16px; border-radius: 999px; }
.hb-controls { width: 100%; display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 22px; }
.hb-dots { display: flex; gap: 6px; }
.hb-dot { width: 32px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.hb-dot::after { content: ''; position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); }
.hb-dot.is-active::after { background: #fff; }
.hb-arrow, .hb-pause { min-width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.7); background: rgba(15,42,48,.35); color: #fff; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.hb-pause { font-size: 14px; padding: 0 16px; margin-left: auto; }
.hb-arrow:hover, .hb-pause:hover { background: rgba(15,42,48,.6); }

.cta-strip { background: var(--blue-dark); }
.cta-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.cta { display: flex; flex-direction: column; gap: 2px; text-decoration: none; border-radius: 8px; padding: 16px 20px; min-height: 76px; justify-content: center; background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.35); transition: background .2s, transform .2s; }
.cta:hover { color: #fff; background: rgba(255,255,255,.18); transform: translateY(-2px); }
.cta-title { font-size: 19px; font-weight: 500; line-height: 1.25; }
.cta-sub { font-size: 14px; color: #D3E8F4; }
.cta-wa { background: var(--wa); border-color: var(--wa); }
.cta-wa:hover { background: #178C43; }
.cta-admit { background: #fff; border-color: #fff; color: var(--blue-dark); }
.cta-admit .cta-sub { color: var(--muted); }
.cta-admit:hover { background: var(--tint); color: var(--blue-dark); }

@media (max-width: 900px) {
  .cta-strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-content h1 { font-size: 56px; }
}
@media (max-width: 640px) {
  .hero-banner { min-height: 560px; }
  .hb-shade { background: linear-gradient(0deg, rgba(10, 38, 44, .92) 0%, rgba(10, 38, 44, .7) 45%, rgba(10, 38, 44, .15) 80%); }
  .hb-content { padding-top: 160px; padding-bottom: 20px; }
  .hb-content h1 { font-size: 44px; }
  .hb-content .lede { font-size: 17px; }
  .hb-slide figcaption { top: 16px; bottom: auto; right: 16px; font-size: 13px; }
  .hb-dot { width: 24px; }
  .cta-strip .wrap { grid-template-columns: 1fr; gap: 10px; }
  .cta { min-height: 64px; padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-slide, .hb-slide img, .cta { transition: none; }
  .hb-slide img { transform: none; }
}
.hb-content .eyebrow { color: var(--mint); }
.hb-slide figcaption { bottom: 90px; }
@media (max-width: 640px) {
  .hb-shade { background: linear-gradient(0deg, rgba(10, 38, 44, .94) 0%, rgba(10, 38, 44, .82) 50%, rgba(10, 38, 44, .25) 85%); }
  .hb-content .eyebrow { font-size: 12px; letter-spacing: .16em; }
  .hb-slide figcaption { bottom: auto; }
}

/* ---------- Blog ---------- */
.post-meta { font-size: 15px; color: var(--muted); margin-top: 14px; }
.post-meta a { color: var(--muted); }
.post .muted { color: var(--muted); font-size: 15px; }
.post-cta { background: var(--tint); border-radius: var(--radius); padding: 28px; margin-top: 48px; }
.post-cta h2 { margin-top: 0 !important; }
.post-related { margin-top: 32px; }
.post-related h2 { font-size: 22px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
.post-card h3 { color: var(--blue-dark); }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .page-head h1 { font-size: 30px; } }

/* ---------- Senior faculty ---------- */
.faculty-section { padding-top: 56px; padding-bottom: 56px; }
.faculty-card { display: flex; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; max-width: 760px; }
.faculty-photo { flex: 0 0 180px; height: 220px; border-radius: 8px; overflow: hidden; background: var(--tint-2); }
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card-lg { max-width: 900px; }
.faculty-card-lg .faculty-photo { flex-basis: 260px; height: 320px; }
.faculty-text .eyebrow { margin-bottom: 8px; }
.faculty-text .h3, .faculty-text h3 { font-size: 24px; font-weight: 500; margin-bottom: 4px; }
.faculty-text .legal { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.faculty-text .subjects { font-size: 14px; font-weight: 500; color: var(--teal-text); margin-bottom: 10px; }
.faculty-text p { color: var(--body); }
@media (max-width: 640px) {
  .faculty-card, .faculty-card-lg { flex-direction: column; align-items: stretch; }
  .faculty-photo, .faculty-card-lg .faculty-photo { flex-basis: auto; height: 300px; }
}

/* Senior faculty: compact, smaller than the founders */
.faculty-section { padding-top: 40px; padding-bottom: 40px; }
.faculty-card, .faculty-card-lg { max-width: 640px; gap: 20px; padding: 16px 20px; align-items: center; flex-direction: row; }
.faculty-photo, .faculty-card-lg .faculty-photo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; }
.faculty-text .h3, .faculty-text h3 { font-size: 20px; }
.faculty-text p:last-child { font-size: 15px; }
@media (max-width: 640px) {
  .faculty-card, .faculty-card-lg { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 16px; }
  .faculty-photo, .faculty-card-lg .faculty-photo { flex: 0 0 72px; width: 72px; height: 72px; }
}
