/* BAIO home page. Everything is scoped under .bh so other pages are untouched. */
body.home { background: #fbf7ee; }

.bh {
	--bh-paper: #fbf7ee;
	--bh-sheet: #fffdf8;
	--bh-ink: #14213d;
	--bh-ink-soft: #46506a;
	--bh-rust: #9a3412;
	--bh-rule: #e2d6bd;
	--bh-deep: #101b33;
	--bh-serif: "Noto Serif Bengali", "Noto Serif", Georgia, serif;
	--bh-sans: "Noto Sans Bengali", Manrope, system-ui, sans-serif;
	color: var(--bh-ink);
	font-family: var(--bh-sans);
	font-size: 17px;
	line-height: 1.75;
}
.bh h1, .bh h2, .bh h3 { font-family: var(--bh-serif); color: var(--bh-ink); margin: 0; text-wrap: balance; }
.bh h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 600; line-height: 1.4; }
.bh p { margin: 0; }
.bh a { color: inherit; text-decoration: none; }
.bh a:focus-visible, .bh-faculty-scroll:focus-visible { outline: 3px solid var(--bh-rust); outline-offset: 3px; border-radius: 4px; }
.bh ol, .bh ul { list-style: none; margin: 0; padding: 0; }
.bh-section-lead { margin-top: 8px !important; color: var(--bh-ink-soft); max-width: 60ch; }

/* Buttons */
.bh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 24px; border-radius: 6px; font-weight: 600; font-size: 1rem; border: 1.5px solid var(--bh-ink); transition: background-color .15s, color .15s; }
.bh .bh-btn-solid { background: var(--bh-ink); color: #fff; }
.bh .bh-btn-solid:hover { background: var(--bh-rust); border-color: var(--bh-rust); }
.bh .bh-btn-line { background: transparent; color: var(--bh-ink); }
.bh .bh-btn-line:hover { background: var(--bh-ink); color: #fff; }

/* Hero */
.bh-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.bh-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bh-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 700; line-height: 1.32; letter-spacing: 0; }
.bh-lead { margin-top: 22px !important; font-size: 1.12rem; color: var(--bh-ink-soft); max-width: 46ch; }
.bh-hero .bh-actions { margin-top: 30px; }

/* The contents page: the one signature element */
.bh-index { position: relative; background: var(--bh-sheet); border: 1px solid var(--bh-ink); padding: clamp(24px, 3.4vw, 40px); box-shadow: 10px 10px 0 var(--bh-rule); }
.bh-index::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--bh-rule); pointer-events: none; }
.bh-index-title { font-family: var(--bh-serif); font-size: 1.7rem; font-weight: 700; text-align: center; line-height: 1.3; }
.bh-index-sub { text-align: center; color: var(--bh-rust); font-size: .95rem; margin-top: 2px !important; padding-bottom: 16px; border-bottom: 1px solid var(--bh-rule); }
.bh-index ol { position: relative; margin-top: 8px; }
.bh-index li + li { border-top: 1px dashed var(--bh-rule); }
.bh-index li > a, .bh-index-row { display: flex; align-items: baseline; gap: 10px; padding: 15px 4px; }
.bh-index-name { font-family: var(--bh-serif); font-weight: 600; font-size: 1.1rem; line-height: 1.5; }
.bh-index-dots { flex: 1 1 24px; min-width: 16px; border-bottom: 2px dotted #b9ab8c; transform: translateY(-5px); }
.bh-index-go { flex: none; font-size: .9rem; font-weight: 600; color: var(--bh-rust); white-space: nowrap; }
.bh-index li > a:hover .bh-index-name { color: var(--bh-rust); }
.bh-index li > a:hover .bh-index-go { text-decoration: underline; text-underline-offset: 4px; }
.bh-index .is-soon .bh-index-name { color: #6b7386; font-weight: 500; }
.bh-index .is-soon .bh-index-go { color: #6b7386; font-weight: 500; }

/* Four steps: a real sequence, so it is numbered */
.bh-path { background: var(--bh-deep); padding: clamp(48px, 7vw, 84px) 0; }
.bh .bh-path h2 { color: #fff; max-width: 22ch; }
.bh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 36px !important; counter-reset: none; }
.bh-steps li { position: relative; padding: 26px 24px 4px 0; border-top: 1px solid rgba(255,255,255,.28); }
.bh-steps li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.bh-step-no { display: block; font-family: var(--bh-serif); font-size: 2.6rem; font-weight: 500; line-height: 1; color: #f0b48a; }
.bh .bh-steps h3 { color: #fff; font-size: 1.3rem; font-weight: 600; margin-top: 14px; line-height: 1.4; }
.bh-steps p { color: #c5cde0; font-size: .98rem; margin-top: 8px; }

/* Courses: a ruled list, not a card grid */
.bh-courses { padding: clamp(52px, 7vw, 92px) 0; }
.bh-course-list { margin-top: 28px !important; border-top: 2px solid var(--bh-ink); }
.bh-course-list li { border-bottom: 1px solid var(--bh-rule); }
.bh-course-list a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px 6px; transition: background-color .15s, padding .15s; }
.bh-course-list a:hover { background: var(--bh-sheet); padding-left: 16px; padding-right: 16px; }
.bh-course-tag { font-size: .85rem; font-weight: 600; color: var(--bh-rust); }
.bh-course-name { font-family: var(--bh-serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.4; }
.bh-course-go { font-size: .95rem; font-weight: 600; border-bottom: 1.5px solid var(--bh-ink); padding-bottom: 1px; white-space: nowrap; }
.bh-course-list a:hover .bh-course-go { color: var(--bh-rust); border-color: var(--bh-rust); }

/* Teachers */
.bh-faculty { padding: 0 0 clamp(52px, 7vw, 92px); }
.bh-faculty-scroll { margin-top: 28px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 4px 0 18px; scrollbar-color: var(--bh-rust) var(--bh-rule); }
.bh-faculty-track { display: flex; gap: 18px; width: max-content; padding: 0 max(20px, calc((100vw - var(--baio-container, 1180px)) / 2 + 20px)) !important; }
.bh-teacher { scroll-snap-align: start; flex: 0 0 232px; width: 232px; background: var(--bh-sheet); border: 1px solid var(--bh-rule); border-radius: 4px; padding: 14px 14px 18px; display: flex; flex-direction: column; }
.bh-teacher-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; display: block; background: var(--bh-rule); }
.bh-teacher-badge { align-self: flex-start; margin-top: 12px; font-size: .74rem; font-weight: 700; color: #fff; background: var(--bh-rust); padding: 2px 9px; border-radius: 3px; }
.bh .bh-teacher h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.45; margin-top: 12px; }
.bh-teacher-badge + h3 { margin-top: 8px !important; }
.bh-teacher-subject { color: var(--bh-rust); font-size: .9rem; font-weight: 600; margin-top: 4px !important; line-height: 1.5; }
.bh-teacher-qual { color: var(--bh-ink-soft); font-size: .86rem; margin-top: 6px !important; line-height: 1.55; }
.bh-teacher-yt { margin-top: auto; padding-top: 14px; font-size: .88rem; font-weight: 600; text-decoration: underline !important; text-underline-offset: 4px; }
.bh-teacher-yt:hover { color: var(--bh-rust); }

/* Books and app */
.bh-more { padding: 0 0 clamp(52px, 7vw, 92px); }
.bh-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.bh-more-card { display: flex; flex-direction: column; background: var(--bh-sheet); border: 1px solid var(--bh-ink); padding: clamp(24px, 3vw, 36px); transition: box-shadow .15s, transform .15s; }
.bh-more-card:hover { box-shadow: 8px 8px 0 var(--bh-rule); transform: translate(-2px, -2px); }
.bh .bh-more-card h2 { font-size: 1.55rem; }
.bh-more-card p { color: var(--bh-ink-soft); margin: 10px 0 20px; max-width: 44ch; }
.bh-more-go { margin-top: auto; font-weight: 600; color: var(--bh-rust); text-decoration: underline; text-underline-offset: 4px; }

/* Closing contact strip */
.bh-ask { border-top: 2px solid var(--bh-ink); padding: clamp(40px, 6vw, 72px) 0; background: var(--bh-sheet); }
.bh-ask-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: center; }
.bh-ask p { color: var(--bh-ink-soft); margin-top: 10px; max-width: 56ch; }

@media (max-width: 900px) {
	.bh-hero-grid { grid-template-columns: 1fr; }
	.bh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
	.bh-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
	.bh-ask-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.bh { font-size: 16px; }
	.bh-index { box-shadow: 6px 6px 0 var(--bh-rule); }
	.bh-index li > a, .bh-index-row { flex-wrap: wrap; gap: 2px 10px; padding: 13px 2px; }
	.bh-index-name { flex: 1 1 100%; }
	.bh-index-dots { display: none; }
	.bh-steps { grid-template-columns: 1fr; }
	.bh-steps li, .bh-steps li + li { padding: 20px 0 6px; border-left: 0; }
	.bh-course-list a { grid-template-columns: 1fr; gap: 4px; padding: 18px 2px; }
	.bh-course-go { justify-self: start; margin-top: 6px; }
	.bh-more-grid { grid-template-columns: 1fr; }
	.bh-actions .bh-btn { flex: 1 1 100%; }
	.bh-teacher { flex-basis: 200px; width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
	.bh * { transition: none !important; }
}
