@font-face {
  font-family: "Tiro Bangla Hero";
  src: url("fonts/tiro-bangla-hero.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #152f61;
  --deep: #102344;
  --blue: #28519b;
  --green: #24624d;
  --lime: #d8ecaa;
  --cream: #faf9f4;
  --surface: #fff;
  --ink: #1a2a42;
  --muted: #4c5c71;
  --line: #dbe1e9;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(21, 47, 97, .065);
  --heading: "Noto Serif Bengali", "Hind Siliguri", "Nirmala UI", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 6rem; }
body {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1.05rem/1.65 "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", sans-serif;
}
main { flex: 1; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { color: var(--deep); font-family: var(--heading); line-height: 1.42; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.9vw, 2rem); }
h3 { font-size: 1.17rem; }
p, h1, h2, h3, h4, a, summary, button { overflow-wrap: anywhere; }
a { color: var(--blue); text-underline-offset: .21em; }
a:hover { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #3d68b5; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 10; transform: translateY(-175%); padding: .6rem 1rem; background: var(--deep); color: #fff; }
.skip-link:focus { transform: none; color: #fff; }
.wrap { width: min(1120px, 100% - 2 * clamp(16px, 4vw, 32px)); margin-inline: auto; }
.content-wrap { max-width: 785px; }
.muted { color: var(--muted); }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; flex: none; align-items: center; }
.brand img { display: block; width: 196px; height: auto; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem; }
.main-nav a, .nav-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .42rem .8rem;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.main-nav a:hover, .nav-toggle { background: #f2f5fb; }
.main-nav [aria-current="page"] { background: #e8eefb; color: var(--navy); }
.nav-toggle { border: 1px solid var(--line); }

.hero {
  padding-block: clamp(42px, 7vw, 84px);
  border-bottom: 1px solid #e1e8df;
  background: radial-gradient(ellipse at 90% 18%, #e2edda, transparent 64%), linear-gradient(135deg, #fcfbf5, #eef3e9);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .84fr); align-items: center; gap: clamp(30px, 6vw, 84px); }
.eyebrow { display: inline-flex; padding: .16rem .64rem; border: 1px solid #afc6ae; border-radius: 5px; color: #2a5444; font-size: .92rem; font-weight: 700; }
.hero h1 { margin: .75rem 0 .85rem; font-size: clamp(2.55rem, 6.25vw, 5.15rem); letter-spacing: -.035em; line-height: 1.26; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 37ch; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.22rem); }
.hero-board { position: relative; isolation: isolate; padding: clamp(18px, 3.4vw, 32px); border-radius: 24px; background: var(--deep); color: #f7faff; box-shadow: 0 20px 44px rgba(16, 35, 68, .17); }
.hero-board::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(circle at 100% 0%, #2a4f78, transparent 60%); }
.board-header { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; color: #f4f8ff; font-weight: 600; }
.board-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--lime); color: var(--deep); font: 700 1.38rem/1 system-ui, sans-serif; }
.board-paper { padding: clamp(16px, 3vw, 25px); border-radius: 14px; background: #fffefa; color: var(--deep); }
.board-label { margin-bottom: .35rem; color: var(--green); font-size: .9rem; font-weight: 700; }
.board-paper h2 { font-size: clamp(1.14rem, 2.4vw, 1.5rem); }
.board-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-block: .9rem; }
.board-options span { padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #f3f6f9; }
.board-footer { margin-top: .95rem; color: #e0ebfa; font-size: .91rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.15rem; }
.actions p { margin: 0; color: var(--muted); }
.btn {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .5rem 1.04rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-secondary { border-color: #b9c5d6; background: var(--surface); color: var(--navy); }
.btn-secondary:hover { border-color: var(--navy); background: #f1f5fb; color: var(--navy); }
.btn:disabled { opacity: .57; cursor: default; }
.text-button { min-height: 44px; border: 0; background: transparent; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.search-form {
  display: flex;
  gap: .4rem;
  max-width: 610px;
  padding: .35rem;
  border: 1px solid #c7d1da;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}
.hero .search-form { margin-top: 1.35rem; }
.search-form input { min-width: 0; flex: 1; padding: .5rem .65rem; border: 0; border-radius: 8px; background: transparent; }
.search-form button { flex: none; }

.section { padding-block: clamp(35px, 5.35vw, 66px); }
.section-alt { background: #eef2f7; border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.35rem; }
.section-head p { margin-top: .3rem; color: var(--muted); }
.page-hero { padding-block: clamp(32px, 5vw, 52px); border-bottom: 1px solid #d6e1ea; background: linear-gradient(120deg, #e8eefb, #eaf3e6); }
.page-hero p { max-width: 69ch; margin-top: .55rem; color: #374e65; }
.class-grid, .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.class-card, .tool-card, .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.class-card { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .8rem; color: var(--ink); text-decoration: none; }
.class-badge { flex: 0 0 3.4rem; display: grid; place-items: center; min-height: 3.1rem; padding: .2rem; border-radius: 10px; background: #e7eefb; color: var(--navy); text-align: center; font-weight: 700; }
.class-card:nth-child(3n + 2) .class-badge { background: #e2f1e8; color: #22543f; }
.class-card:nth-child(3n) .class-badge { background: #f4ecd7; color: #624914; }
.class-card strong, .class-card small { display: block; }
.class-card small { color: var(--muted); line-height: 1.45; }
.class-arrow { margin-inline-start: auto; color: var(--blue); }
.tool-card { display: flex; flex-direction: column; gap: .45rem; padding: clamp(1rem, 2.4vw, 1.5rem); text-decoration: none; color: var(--ink); }
.tool-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .3rem; border-radius: 10px; background: #e7eefb; color: var(--navy); font: 700 1.6rem/1 system-ui, sans-serif; }
.tool-card:nth-child(2) .tool-icon { background: #e2f1e8; color: #22543f; }
.tool-card:nth-child(3) .tool-icon { background: #f4ecd7; color: #624914; }
.tool-card p { color: var(--muted); }
.tool-card .card-link { margin-top: auto; padding-top: .4rem; }
.card-link { color: var(--blue); font-weight: 700; }
.class-card:hover, .tool-card:hover, a.source-card:hover, a.resource-item:hover { border-color: #8196b9; background: #fafdff; color: var(--deep); }
.guide { display: grid; gap: .9rem; margin: 0; padding-inline-start: 1.5rem; }
.guide li { padding-inline-start: .3rem; }
.guide strong, .guide span { display: block; }
.guide span { color: var(--muted); }
.notice-list { display: grid; gap: .75rem; }
.notice { padding: 1rem 1.3rem; border-inline-start: 4px solid #4a846e; }
.notice p { margin-block: .3rem; color: var(--muted); }
.status-box { padding: .75rem .95rem; border: 1px solid #c7d5e5; border-radius: 10px; background: #f2f6fc; color: var(--ink); }
.section .status-box { margin-block: .9rem; }

.site-footer { padding-block: 1.9rem; background: var(--deep); color: #d3def0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.35rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.footer-inner nav a { color: #f1f6fd; }
.footer-brand img { width: 196px; padding: .45rem .7rem; background: #fff; border-radius: 10px; box-sizing: content-box; }
.copyright { font-size: .9rem; }

.trail { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1rem; color: var(--muted); }
.trail a { font-weight: 600; }
.source-card { display: flex; flex-direction: column; justify-content: center; min-height: 100px; gap: .2rem; padding: .9rem 1.1rem; color: var(--ink); text-decoration: none; }
.source-card strong { font-size: 1.15rem; }
.source-card span { color: var(--blue); }
.source-card.unavailable { box-shadow: none; background: #f5f5f1; }
.source-card.unavailable span { color: var(--muted); }
.source-extra { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; margin-top: 1.1rem; }
.source-extra a { font-weight: 600; }
.bank-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .85rem; }
.topic-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 0 1.7rem; }
.topic-list a { padding: .4rem .76rem; border: 1px solid #bbc8da; border-radius: 9px; color: var(--navy); text-decoration: none; }
.topic-list a:hover { background: #ecf2fa; }
.topic-list a[aria-current="page"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.bank-questions { margin-inline: auto; }
.question-type { margin-block: 1.05rem .65rem; color: var(--muted); }
.q-block { padding: clamp(.9rem, 3vw, 1.4rem); margin-bottom: .8rem; }
.q-block h4 { font-size: 1.09rem; line-height: 1.45; }
.q-options { display: grid; gap: .55rem; margin-top: .8rem; }
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 44px;
  padding: .48rem .75rem;
  border: 1px solid #c5cfdd;
  border-radius: 9px;
  background: #fff;
  text-align: start;
}
.option:not([aria-disabled]):hover { border-color: var(--blue); background: #f2f6fc; }
.option[aria-disabled] { cursor: default; }
.option.correct { border-color: #4b8b66; background: #e7f4e9; color: #164e32; }
.option.wrong { border-color: #b96666; background: #fceeee; color: #791d28; }
.option-status { flex: none; font-size: .85em; font-weight: 700; }
.q-explain { margin-top: .85rem; padding: .65rem .85rem; border-inline-start: 3px solid var(--green); border-radius: 6px; background: #edf6ef; }
.short-answer { margin-top: .55rem; }
.short-answer summary, .review summary { color: var(--navy); font-weight: 700; }
.short-answer summary { padding-block: .25rem; }
.short-answer p, .review p { margin-top: .6rem; color: var(--muted); }

.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .85rem; }
#bookFilters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); padding: clamp(.9rem, 3vw, 1.3rem); }
.filter-grid label, .feedback-form label { display: grid; gap: .2rem; min-width: 0; font-weight: 600; }
.filter-grid select, .filter-grid input, .feedback-form input, .feedback-form select, .feedback-form textarea { min-width: 0; width: 100%; min-height: 45px; padding: .4rem .65rem; border: 1px solid #bbc8da; border-radius: 8px; background: #fff; font-weight: 400; }
.feedback-form textarea { resize: vertical; }
.list-status { margin-block: .9rem; color: var(--muted); }
.resource-list { display: grid; gap: .55rem; }
.resource-item { display: flex; align-items: center; justify-content: space-between; gap: .45rem 1.2rem; padding: .85rem 1rem; }
.resource-item h3 { font-size: 1.04rem; }
.resource-item p { color: var(--muted); font-size: .94rem; }
.resource-item .actions { margin: 0; }
.result-link { text-decoration: none; }
.more { margin-top: 1rem; }

.quiz-shell { max-width: 720px; }
.quiz-setup, .quiz-card, .feedback-form, .prose { padding: clamp(1.15rem, 4vw, 2rem); }
.quiz-setup h2 { margin-bottom: .8rem; }
.quiz-card h2 { margin-block: .8rem .35rem; font-size: clamp(1.25rem, 3.3vw, 1.65rem); }
.quiz-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .65rem; color: var(--muted); }
.quiz-timer { padding: .15rem .6rem; border-radius: 7px; background: #f5edda; color: #5e4718; font-weight: 700; }
.quiz-timer.danger { background: #fbe6e7; color: #791d28; }
progress { display: block; width: 100%; height: .62rem; margin-top: .6rem; border: 0; border-radius: 99px; overflow: hidden; accent-color: var(--blue); }
progress::-webkit-progress-bar { background: #e4ebf5; }
progress::-webkit-progress-value { background: var(--blue); }
.quiz-result { text-align: center; }
.quiz-result .score { color: var(--navy); font-family: var(--heading); font-size: 2.5rem; font-weight: 800; }
.quiz-result .actions { justify-content: center; }
.review-title { margin-block: 1.3rem .65rem; }
.review { margin-bottom: .6rem; padding: .74rem .95rem; }
.review-tag { color: var(--muted); font-weight: 500; }

.prose h2 + p, .prose p + p, .prose ul { margin-top: .55rem; }
.prose p + h2 { margin-top: 1.25rem; }
.prose ul { padding-inline-start: 1.25rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1rem; align-items: start; }
.feedback-form label, .feedback-form p, #feedbackDraft { margin-block: .65rem; }

@media (max-width: 760px) {
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-board { max-width: 550px; width: 100%; }
  .class-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .resource-item { align-items: flex-start; flex-direction: column; }
  .result-link { align-items: center; flex-direction: row; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-card { padding: .58rem; gap: .4rem; }
  .class-badge { flex-basis: 2.25rem; font-size: .84rem; min-height: 2.5rem; }
  .class-card strong, .class-card small { font-size: .88rem; }
  .class-arrow { display: none; }
}

@media print {
  body { display: block; background: #fff; color: #000; font-size: 12pt; }
  .site-header, .site-footer, .skip-link, main:has(.bank-questions) .page-hero, .trail, .topic-list,
  .bank-head .actions, .bank-questions .actions, .q-explain, .short-answer, .option-status {
    display: none !important;
  }
  .wrap, .content-wrap { width: 100%; max-width: none; }
  .section { padding: 0; }
  .panel { box-shadow: none; }
  .q-block { break-inside: avoid; }
  .option, .option.correct, .option.wrong {
    display: block; min-height: auto; padding: .1rem 0; border: 0; background: none; color: #000;
  }
}


.note-filters { margin-bottom: 1.15rem; }
.note-filters button[aria-pressed="true"], .paper-toolbar button[aria-pressed="true"] {
  background: #e8eefb;
  color: var(--navy);
  border-color: #718db4;
}
.note-subject { color: var(--green); font-weight: 700; font-size: .93rem; }
.study-note { max-width: 760px; margin-inline: auto; }
.study-note > h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin: .3rem 0; }
.note-section { margin: 1.25rem 0; }
.note-section h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.note-section li + li { margin-top: .25rem; }
.note-table { max-width: 100%; overflow-x: auto; }
.note-table table { width: 100%; border-collapse: collapse; }
.note-table caption { font-weight: 700; text-align: left; padding: .6rem 0; }
.note-table th, .note-table td { padding: .6rem .45rem; border-bottom: 1px solid #d9e1e7; text-align: left; vertical-align: top; }
.note-table thead, .study-figure { background: #eef5f7; color: #163043; }
.note-table th { overflow-wrap: anywhere; }
.study-figure { margin: 1rem 0; padding: .8rem; border: 1px solid #ccdce6; border-radius: .55rem; }
.study-figure figcaption { font-weight: 700; margin-bottom: .5rem; }
.study-figure img { display: block; width: min(100%, 560px); height: auto; margin: .2rem auto .75rem; border-radius: .4rem; }
.study-figure ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .4rem; list-style: none; padding: 0; margin: 0; }
.study-figure li { background: #fff; border-radius: .35rem; padding: .55rem; }
.question-lines, .printed-items li > p { white-space: pre-line; }
.note-example { background: #f1f5fb; border: 1px solid #d7e2f3; border-radius: 12px; padding: 1rem 1.15rem; }
.note-example ol { margin-bottom: 0; padding-inline-start: 1.35rem; }
.parent-topics { display: grid; gap: 1rem; }
.parent-topics article { scroll-margin-top: 1rem; }
.parent-topics .guide { margin-top: .6rem; }

.paper-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.paper-workspace { display: grid; gap: 1rem; min-width: 0; }
.paper-output { min-width: 0; }
.paper-controls, .paper-preview { padding: clamp(.9rem, 2.5vw, 1.5rem); }
.paper-controls h2 { font-size: clamp(1.2rem, 2.8vw, 1.48rem); margin-bottom: .75rem; }
.paper-controls h3 { margin-bottom: .3rem; }
.paper-toolbar { margin-bottom: .85rem; }
.paper-toolbar .actions { margin-top: .6rem; }
.paper-status:empty { margin: 0; }
.paper-order + .actions + .muted { margin-top: .6rem; }
.paper-controls .text-button:disabled { opacity: .65; cursor: default; }
.paper-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.paper-item small, .paper-order small { color: var(--muted); }
.paper-item .btn { flex-shrink: 0; }
.paper-item .btn[aria-disabled="true"] { color: var(--muted); background: #f2f5f9; cursor: default; }
.paper-auto { margin-top: 1.1rem; padding-top: .95rem; border-top: 1px solid var(--line); }
.paper-auto .filter-grid { margin: .55rem 0 .75rem; }
.paper-auto summary { color: var(--navy); font-weight: 700; cursor: pointer; }
.paper-auto textarea { min-width: 0; width: 100%; padding: .45rem .65rem; border: 1px solid #bbc8da; border-radius: 8px; background: #fff; font-weight: 400; resize: vertical; }
.paper-wide { grid-column: 1 / -1; }
.paper-order { margin: 0; padding-inline-start: 1.5rem; list-style: bengali; }
.paper-order li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.paper-order-actions { display: flex; flex-wrap: wrap; gap: .25rem .45rem; margin-top: .35rem; }
.paper-order-actions .btn, .paper-item .btn { padding-inline: .7rem; font-size: .94rem; }
.paper-preview { min-height: 250px; }
.paper-empty { color: var(--muted); }
.printed-header { text-align: center; border-bottom: 1px solid #7a899c; padding-bottom: .85rem; }
.printed-header h3 { margin-bottom: .25rem; }
.printed-header p { margin: .15rem 0; }
.printed-header .printed-name { margin-top: .55rem; text-align: left; }
.printed-items { padding-inline-start: 1.5rem; list-style: bengali; }
.printed-items > li { margin-bottom: .65rem; }
.printed-items > li > p + p { margin-top: .3rem; }
.printed-question { font-weight: 700; }
.printed-question span { font-weight: 400; white-space: nowrap; }
.printed-question .printed-stimulus { white-space: inherit; }
.printed-rubric { padding-inline-start: 1.1rem; }
.printed-essay-title { font-weight: 700; }
.printed-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .9rem; padding: .25rem 0 0; list-style: none; }
:is(.paper-preview, .printed-pack-subject)[lang="en"] { font-family: Georgia, "Times New Roman", serif; }
:is(.paper-preview, .printed-pack-subject)[lang="en"] .printed-items { list-style: decimal; }
.printed-pack-subject { margin-block-start: 1.5rem; scroll-margin-top: 6rem; }
.printed-pack-cover .printed-task-table th:nth-child(2) { width: 42%; }
.printed-review-table td { height: 2rem; }
.printed-passage { margin-block: .8rem .55rem; }
.printed-passage p + p { margin-top: .35rem; }
.printed-passage h5 { margin: 0 0 .25rem; font-size: 1em; }
.printed-task-prompt { margin-top: .3rem; }
.printed-word-bank { display: inline-block; padding: .2rem .5rem; border: 1px solid #8996a5; }
.printed-subquestions { list-style: lower-alpha; padding-inline-start: 1.35rem; }
.printed-subquestions > li { margin-block: .25rem; }
.printed-task-table { border-collapse: collapse; table-layout: fixed; width: 100%; margin-block: .35rem; }
.printed-task-table th, .printed-task-table td { padding: .28rem; border: 1px solid #8996a5; text-align: start; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .header-inner { min-height: 72px; gap: .35rem; flex-wrap: wrap; }
  .site-header .brand img { width: 150px; }
  .main-nav { flex-basis: 100%; padding-bottom: .4rem; }
  .main-nav a { padding-inline: .65rem; }
}
@media (max-width: 880px) {
  .paper-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .paper-item { align-items: start; }
  .paper-item .btn { padding-inline: .5rem; }
  .paper-order-actions { gap: .2rem .35rem; }
}

@page proshnopath-paper {
  size: A4;
  margin: 14mm;
  @bottom-right {
    content: counter(page) " / " counter(pages);
    color: #475569;
    font: 9pt sans-serif;
  }
}
@media print {
  main:has(.paper-layout) .page-hero, .paper-workspace, .paper-toolbar, #wpadminbar {
    display: none !important;
  }
  .paper-layout { display: block; }
  .paper-preview { page: proshnopath-paper; min-height: 0; padding: 0; border: 0; line-height: 1.42; }
  :is(.paper-preview, .printed-pack-subject)[lang="en"] { font-size: .94rem; line-height: 1.35; }
  :is(.paper-preview, .printed-pack-subject)[lang="en"] .model-paper-group { margin-block: .8rem; }
  .paper-preview[data-subject="bgs"], #pack-bgs { font-size: .94rem; line-height: 1.35; }
  .paper-preview[data-subject="bgs"] .model-paper-group, #pack-bgs .model-paper-group { margin-block: .8rem; }
  .printed-pack-subject { break-before: page; margin-block-start: 0; }
  .printed-header { padding-bottom: .6rem; }
  .printed-items { margin-block: .55rem; }
  .printed-items > li { break-inside: avoid; margin-bottom: .48rem; }
  .printed-items > .printed-long-answer { break-inside: auto; }
  .printed-long-answer > .printed-question,
  .printed-rubric, .printed-subquestions > li, .printed-task-table, .printed-passage { break-inside: avoid; }
  .printed-long-answer > .printed-question,
  .printed-long-answer > .muted,
  .printed-rubric-heading,
  .printed-essay-title, .printed-passage h5, .printed-passage, .printed-word-bank { break-after: avoid; }
  .printed-items > li > p + p { margin-top: .2rem; }
}

/* মতামত: WhatsApp ও Google Form */
.contact-steps { padding-inline-start: 1.3rem; }
.contact-steps li + li { margin-top: .3rem; }
.contact-channels { display: grid; gap: .6rem; margin-top: 1rem; }
.contact-channel { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .55rem .9rem; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 12px; background: #f8fafc; color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-channel::before { content: ""; flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; opacity: .85; }
.contact-channel:hover, .contact-channel:focus-visible { background: #fff; box-shadow: var(--shadow); }
.channel-whatsapp { border-left-color: #25d366; color: #0f7a3d; }
.channel-gform { border-left-color: #7248b9; color: #5b3496; }
.channel-email { border-left-color: var(--blue); color: var(--blue); }
.feedback-send .btn { min-height: 46px; }
.btn-whatsapp { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #178a45; border-color: #178a45; color: #fff; }
.btn-gform { background: #6a3fb5; border-color: #6a3fb5; color: #fff; }
.btn-gform:hover, .btn-gform:focus-visible { background: #57319a; border-color: #57319a; color: #fff; }

/* এক ক্লিকে প্রশ্নপত্র */
.paper-quick { border-top: 4px solid #f59e0b; }
.paper-quick fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem .9rem; margin: .8rem 0; }
.paper-quick legend { padding: 0 .35rem; font-weight: 700; color: var(--navy); }
.paper-quick-tools { display: flex; gap: 1rem; margin-bottom: .4rem; }
.paper-quick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .35rem .9rem; max-height: 260px; overflow: auto; }
.paper-quick-list label { display: flex; gap: .45rem; align-items: flex-start; font-weight: 500; }
.paper-quick-list input { margin-top: .35rem; }
.paper-quick-list small { color: var(--muted); }
.paper-quick-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.paper-quick-presets legend { grid-column: 1 / -1; }
.paper-quick-presets label { position: relative; cursor: pointer; }
.paper-quick-presets input { position: absolute; opacity: 0; }
.paper-quick-presets span { display: grid; gap: .15rem; height: 100%; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.paper-quick-presets small { color: var(--muted); }
.paper-quick-presets input:checked + span { border-color: #f59e0b; background: #fff7e8; }
.paper-quick-presets input:focus-visible + span { outline: 3px solid #2848a8; outline-offset: 2px; }
@media (max-width: 700px) { .paper-quick-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* কুইজ ফলাফলের পরামর্শ */
.quiz-advice { margin: .4rem auto .8rem; padding: .6rem .9rem; max-width: 34rem; border-radius: 10px; background: #e6f6ee; color: #0f5e3c; font-weight: 600; }
.quiz-advice[data-level="mid"] { background: #fff4e0; color: #8a4b05; }
.quiz-advice[data-level="low"] { background: #fdecec; color: #9b2227; }
.quiz-advice a { color: inherit; }

/* পড়ার পরিকল্পনা */
.planner-layout { display: grid; gap: 1.2rem; }
.planner-setup { padding: clamp(1rem, 3vw, 1.6rem); }
.planner-subjects { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem .9rem; margin: .9rem 0; }
.planner-subjects legend { padding: 0 .35rem; font-weight: 700; color: var(--navy); }
.planner-subject-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem .9rem; }
.planner-subject-list label { display: flex; gap: .45rem; align-items: center; font-weight: 500; }
.planner-subject-list small { color: var(--muted); }
.planner-board { display: grid; gap: 1.2rem; }
.planner-today, .planner-all { padding: clamp(1rem, 3vw, 1.5rem); }
.planner-today { border-top: 4px solid #f59e0b; }
.planner-today-head, .planner-all-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.planner-today-head h2, .planner-all-head h2 { margin: 0; }
.planner-countdown { margin: 0; padding: .3rem .8rem; border-radius: 999px; background: #fff1e3; color: #c2410c; font-weight: 700; }
.planner-progress { height: .6rem; margin: .9rem 0 .3rem; border-radius: 999px; background: #e3e8f2; overflow: hidden; }
.planner-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1f9d6b, #34c38f); transition: width .3s ease; }
.planner-tasks { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.planner-task { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.planner-task label { display: flex; align-items: center; gap: .55rem; flex: 1; min-width: 0; cursor: pointer; }
.planner-task input { width: 1.15rem; height: 1.15rem; flex: none; accent-color: #1f9d6b; }
.planner-task small { display: block; color: var(--muted); font-size: .85rem; }
.planner-task a { flex: none; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.planner-task[data-done="true"] { background: #f1faf5; border-color: #bfe6d1; }
.planner-task[data-done="true"] label > span:last-child { text-decoration: line-through; color: var(--muted); }
.planner-icon { font-size: 1.1rem; }
.planner-empty { padding: .7rem; border-radius: 10px; background: #f5f7fc; color: var(--muted); }
.planner-pending-title { margin-top: .6rem; font-weight: 700; color: #b45309; }
.planner-days { display: grid; gap: .5rem; margin-top: .8rem; }
.planner-day { border: 1px solid var(--line); border-left: 5px solid #c7d0e2; border-radius: 10px; background: #fafbfe; }
.planner-day[data-state="today"] { border-left-color: #f59e0b; background: #fffaf2; }
.planner-day[data-state="done"] { border-left-color: #1f9d6b; }
.planner-day[data-state="missed"] { border-left-color: #e5484d; }
.planner-day summary { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .9rem; cursor: pointer; }
.planner-date { display: grid; }
.planner-date small, .planner-day-sum { color: var(--muted); font-size: .9rem; }
.planner-day .planner-tasks { margin: 0; padding: 0 .8rem .8rem; }
.planner-sample ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.planner-sample li::before { content: "☐ "; }
.planner-sample li.done { color: #5b6b80; text-decoration: line-through; }
.planner-sample li.done::before { content: "☑ "; }
@media print {
  body:has(.theme-planner) .site-header, body:has(.theme-planner) .site-footer, .theme-planner .page-hero,
  .planner-setup, .planner-today, #plannerPrint { display: none !important; }
  .planner-task a { display: none; }
  .planner-day { break-inside: avoid; }
}

/* শব্দভান্ডার */
.vocab-layout { display: grid; gap: 1.1rem; }
.vocab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; padding: 1rem; text-align: center; }
.vocab-stats div { display: grid; gap: .1rem; }
.vocab-stats strong { font-size: 1.7rem; color: var(--navy); }
.vocab-stats span { color: var(--muted); font-size: .92rem; }
.vocab-topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.vocab-topics button { min-height: 42px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.vocab-topics button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.vocab-cards, .vocab-quiz, .vocab-list-panel { padding: clamp(1rem, 3vw, 1.5rem); }
.vocab-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .8rem; }
.vocab-head h2, .vocab-head p { margin: 0; }
.vocab-card { position: relative; height: 230px; max-width: 520px; margin: 0 auto; perspective: 1000px; cursor: pointer; border-radius: 18px; }
.vocab-card:focus-visible { outline: 3px solid #2848a8; outline-offset: 4px; }
.vocab-front, .vocab-back { position: absolute; inset: 0; display: grid; place-content: center; gap: .5rem; padding: 1.2rem; text-align: center; border-radius: 18px; backface-visibility: hidden; transition: transform .5s ease; }
.vocab-front { background: linear-gradient(145deg, #1e3a8a, #2848a8); color: #fff; box-shadow: 0 12px 26px #1e3a8a33; }
.vocab-front strong { font-size: clamp(2rem, 6vw, 2.8rem); font-family: inherit; letter-spacing: .01em; }
.vocab-front small { color: #c9d6ff; }
.vocab-pos { justify-self: center; padding: .15rem .7rem; border-radius: 999px; background: #ffffff22; font-size: .85rem; }
.vocab-back { background: #fff8ea; border: 2px solid #f6c56b; transform: rotateY(180deg); color: var(--ink); }
.vocab-back strong { font-size: 1.8rem; color: #b45309; }
.vocab-back p { margin: 0; }
.vocab-card.is-flipped .vocab-front { transform: rotateY(180deg); }
.vocab-card.is-flipped .vocab-back { transform: rotateY(360deg); }
.vocab-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.vocab-know { background: #1f9d6b; border-color: #1f9d6b; color: #fff; }
.vocab-again { background: #fff; border-color: #e5484d; color: #c62f34; }
.vocab-card-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
.vocab-tip { text-align: center; margin-top: .6rem; }
.vocab-quiz-q { font-size: 1.15rem; }
.vocab-quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: .7rem; }
.vocab-quiz-options button { min-height: 48px; padding: .5rem .8rem; border: 2px solid #d5dcea; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.vocab-quiz-options button:hover:not(:disabled) { border-color: #2848a8; }
.vocab-quiz-options button[data-state="right"] { border-color: #1f9d6b; background: #e6f6ee; }
.vocab-quiz-options button[data-state="wrong"] { border-color: #e5484d; background: #fdecec; }
.vocab-right { color: #0f7a4d; font-weight: 600; }
.vocab-wrong { color: #b42318; font-weight: 600; }
.vocab-search { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.vocab-search input { min-height: 42px; }
.vocab-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .55rem; }
.vocab-row { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }
.vocab-row > div { display: grid; flex: 1; min-width: 0; }
.vocab-row small { color: var(--muted); }
.vocab-row em { color: var(--muted); font-size: .9rem; }
.vocab-row[data-learned="true"] { border-color: #bfe6d1; background: #f1faf5; }
.vocab-say { flex: none; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: #eef2fb; cursor: pointer; }
.vocab-badge { flex: none; padding: .1rem .5rem; border-radius: 999px; background: #1f9d6b; color: #fff; font-size: .8rem; }
.vocab-sample { display: grid; gap: .3rem; }
.vocab-sample strong { font-size: 1.8rem; }
@media (max-width: 600px) {
  .vocab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vocab-quiz-options { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .vocab-front, .vocab-back { transition: none; } }

/* নোটের উন্নতি */
.note-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: .6rem 0 1rem; padding: .6rem .8rem; border-radius: 12px; background: #f3f6fd; }
.note-tools span { margin-right: auto; color: var(--muted); font-weight: 600; }
.note-tools .btn { min-height: 40px; }
#noteRead[aria-pressed="true"] { background: #1f9d6b; border-color: #1f9d6b; color: #fff; }
.note-important { padding: .35rem .5rem; border-radius: 8px; background: #fff6e5; }
.note-star { display: inline-block; margin-right: .3rem; padding: 0 .45rem; border-radius: 999px; background: #f59e0b; color: #fff; font-size: .8rem; font-weight: 700; }
.note-check { border-top: 4px solid #1f9d6b; padding-top: .6rem; }
.note-check-item { margin: .9rem 0; }
.note-check-item > p { margin-bottom: .2rem; }
.note-check .option { font: inherit; cursor: pointer; width: 100%; }
.note-check-explain { margin-top: .5rem; padding: .5rem .7rem; border-radius: 8px; background: #f3f6fd; }
.note-check-score { font-weight: 700; color: var(--navy); }
@media print {
  body:has(.theme-notes) .site-header, body:has(.theme-notes) .site-footer, .note-tools, .note-check, .study-note .actions, .study-note nav { display: none !important; }
}

/* অভিভাবক কর্নার: অনলাইন অগ্রগতি */
.parent-online-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: clamp(1.1rem, 3vw, 1.8rem); border-left: 6px solid #f59e0b; }
.parent-online-card > div { flex: 1 1 420px; }
.parent-online-card h2 { margin-top: 0; }
.parent-online-card ul { padding-inline-start: 1.2rem; }

/* শিক্ষকদের প্রকাশিত কনটেন্ট */
.community-meta { margin: 0 0 .3rem; color: var(--muted); font-size: .88rem; }
.community-by { margin: .7rem 0 0; color: #5b3496; font-weight: 600; font-size: .92rem; }
.community-q .option { font: inherit; cursor: pointer; width: 100%; }
.community-explain { margin-top: .6rem; padding: .5rem .7rem; border-radius: 8px; background: #f3f6fd; }
.community-answer summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.community-teacher { padding: 1rem 1.1rem; }
.community-teacher h3 { margin: 0 0 .2rem; }
.community-count { margin: .5rem 0 0; font-weight: 700; color: var(--navy); }
.community-resource .community-by { margin-top: .4rem; }

/* চিত্রে শিখি */
.visual-list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.visual-filter { grid-template-columns: repeat(2, minmax(150px, 1fr)); margin: 0; }
.visual-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.visual-card { display: flex; flex-direction: column; gap: .3rem; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid #d5ddea; border-radius: 14px; padding: .7rem; cursor: pointer; }
.visual-card:hover, .visual-card.is-current { border-color: #5b3496; box-shadow: 0 6px 18px rgba(18,48,110,.12); }
.visual-card.is-current { background: #f7f2ff; }
.visual-card strong { font-size: 1.05rem; color: var(--navy); }
.visual-thumb svg { width: 100%; height: auto; display: block; border-radius: 10px; background: #fbfcff; }
.visual-work { margin-top: 1.6rem; scroll-margin-top: 90px; }
.visual-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.visual-head h2 { margin: .1rem 0 .3rem; }
.visual-head p { margin: 0; max-width: 62ch; }
.visual-modes { display: inline-flex; border: 1px solid #c9d3e6; border-radius: 999px; padding: 3px; background: #fff; }
.visual-modes button { font: inherit; font-weight: 600; border: 0; background: none; padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.visual-modes button[aria-selected="true"] { background: var(--navy, #12306e); color: #fff; }
.visual-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 1rem; align-items: start; }
.visual-figure { margin: 0; padding: .8rem; }
.visual-figure svg { width: 100%; height: auto; display: block; }
.visual-figure figcaption { font-size: .8rem; text-align: right; margin-top: .3rem; }
.vl-mark { cursor: pointer; outline: none; }
.vl-mark line { stroke: #12306e; stroke-width: 1.6; }
.vl-mark .vl-dot { fill: #12306e; }
.vl-mark .vl-badge { fill: #12306e; stroke: #fff; stroke-width: 2.5; transition: fill .15s; }
.vl-mark text { fill: #fff; font-size: 16px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.vl-mark:hover .vl-badge, .vl-mark:focus-visible .vl-badge, .vl-mark.is-active .vl-badge { fill: #c2185b; }
.vl-mark.is-active line, .vl-mark.is-active .vl-dot { stroke: #c2185b; fill: #c2185b; stroke-width: 2.6; }
.vl-mark[data-ok="true"] .vl-badge { fill: #2e7d4f; }
.vl-mark[data-ok="false"] .vl-badge { fill: #c0392b; }
.visual-side { padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.visual-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.visual-legend button { width: 100%; display: flex; gap: .6rem; align-items: center; font: inherit; text-align: left; background: #f6f8fc; border: 1px solid transparent; border-radius: 10px; padding: .4rem .6rem; cursor: pointer; color: var(--ink); }
.visual-legend b, .visual-quiz b { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #12306e; color: #fff; font-size: .9rem; }
.visual-legend li.is-active button { border-color: #c2185b; background: #fdeef4; }
.visual-legend li.is-active b { background: #c2185b; }
.visual-info { background: #f3f6fd; border-radius: 12px; padding: .8rem .9rem; min-height: 5.5rem; }
.visual-info h3 { margin: 0 0 .3rem; font-size: 1.1rem; color: #c2185b; }
.visual-info p { margin: 0; }
.visual-quiz { display: grid; gap: .5rem; }
.visual-quiz label { display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; align-items: center; }
.visual-quiz select { font: inherit; padding: .35rem .5rem; border-radius: 8px; border: 1px solid #c9d3e6; }
.visual-quiz .visual-mark { grid-column: 2; font-size: .88rem; font-weight: 600; }
.visual-quiz label[data-ok="true"] select { border-color: #2e7d4f; background: #eaf6ee; }
.visual-quiz label[data-ok="true"] .visual-mark { color: #2e7d4f; }
.visual-quiz label[data-ok="false"] select { border-color: #c0392b; background: #fdecea; }
.visual-quiz label[data-ok="false"] .visual-mark { color: #c0392b; }
.visual-score { font-weight: 700; color: var(--navy); margin: .3rem 0 0; }
.visual-print { margin-top: .8rem; }
.visual-story img { width: 100%; height: auto; border-radius: 10px; }
.visual-sample li.done { color: #2e7d4f; }
@media (max-width: 820px) { .visual-body { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .page-hero, .visual-list-head, .visual-list, .visual-modes, .visual-print, .visual-side .btn, section[aria-labelledby="visualStoriesTitle"] { display: none !important; }
  .visual-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .vl-mark .vl-badge { r: 24px; } .vl-mark text { font-size: 24px; } .vl-mark .vl-dot { r: 6px; } }

/* প্রশ্নপাঠ সহায়ক */
.assistant-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr); gap: 1.4rem; align-items: start; }
.assistant-intro h1 { margin: 0 0 .5rem; }
.assistant-points { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .45rem; font-size: .95rem; }
.assistant-class { display: grid; gap: .3rem; font-weight: 600; max-width: 220px; }
.assistant-class select { font: inherit; padding: .4rem .5rem; border-radius: 8px; border: 1px solid #c9d3e6; }
.chat-panel { display: flex; flex-direction: column; height: min(78vh, 760px); padding: 0; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .9rem; background: #f7f9fd; }
.chat-msg { display: flex; gap: .55rem; align-items: flex-start; max-width: 100%; }
.chat-user { justify-content: flex-end; }
.chat-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #12306e, #5b3496); color: #fff; font-weight: 700; }
.chat-bubble { background: #fff; border: 1px solid #dfe5f0; border-radius: 4px 16px 16px 16px; padding: .7rem .9rem; max-width: min(640px, 92%); line-height: 1.65; overflow-wrap: anywhere; }
.chat-user .chat-bubble { background: #12306e; color: #fff; border-color: #12306e; border-radius: 16px 4px 16px 16px; }
.chat-bubble p { margin: 0 0 .5rem; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble ul, .chat-bubble ol { margin: .2rem 0 .6rem; padding-left: 1.3rem; }
.chat-meta { color: var(--muted); font-size: .85rem; }
.chat-tip { background: #fff8e6; border-radius: 8px; padding: .4rem .6rem; font-size: .9rem; }
.chat-source { display: inline-block; margin-top: .3rem; font-weight: 600; font-size: .92rem; }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.chat-chips button { font: inherit; font-size: .88rem; border: 1px solid #c9b8e8; background: #f7f2ff; color: #5b3496; border-radius: 999px; padding: .25rem .75rem; cursor: pointer; }
.chat-chips button:hover { background: #ede3ff; }
.chat-mcq { border: 1px solid #dfe5f0; border-radius: 12px; padding: .7rem; margin-top: .4rem; background: #fbfcff; }
.chat-options { display: grid; gap: .4rem; margin: .4rem 0; }
.chat-options button { font: inherit; text-align: left; border: 1px solid #c9d3e6; background: #fff; border-radius: 10px; padding: .45rem .7rem; cursor: pointer; display: flex; justify-content: space-between; gap: .5rem; }
.chat-options button:hover:not([aria-disabled]) { border-color: #5b3496; }
.chat-options button.correct { background: #e6f4ea; border-color: #2e7d4f; }
.chat-options button.wrong { background: #fdecea; border-color: #c0392b; }
.chat-options button.is-out { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.chat-explain { background: #f3f6fd; border-radius: 8px; padding: .5rem .7rem; }
.chat-extra { border-top: 1px dashed #d5ddea; margin-top: .6rem; padding-top: .6rem; }
.chat-reveal summary { cursor: pointer; font-weight: 600; color: var(--blue, #1f4e9a); }
.chat-figure svg { width: 100%; max-width: 420px; height: auto; background: #fff; border-radius: 10px; border: 1px solid #e3e8f2; }
.chat-calc { font-size: 1.2rem; }
.chat-vocab + .chat-vocab { border-top: 1px dashed #d5ddea; padding-top: .5rem; margin-top: .5rem; }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid #dfe5f0; background: #fff; }
.chat-form input { flex: 1; min-width: 0; font: inherit; padding: .6rem .8rem; border: 1px solid #c9d3e6; border-radius: 999px; }
.chat-form input:focus { outline: 2px solid #5b3496; outline-offset: 1px; }
.assistant-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; gap: .35rem; align-items: center; padding: .6rem 1rem; border-radius: 999px; background: linear-gradient(135deg, #12306e, #5b3496); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(18, 48, 110, .3); }
.assistant-fab:hover, .assistant-fab:focus-visible { color: #fff; transform: translateY(-2px); }
@media (max-width: 860px) { .assistant-layout { grid-template-columns: 1fr; } .chat-panel { height: 72vh; } .assistant-points { display: none; } }
@media (max-width: 600px) { .assistant-fab { right: 12px; bottom: 12px; padding: .5rem .85rem; font-size: .9rem; } }
@media print { .assistant-fab { display: none !important; } }
@media (max-width: 600px) { .chat-avatar { display: none; } .chat-log { padding: .6rem; } .chat-bot .chat-bubble { max-width: 100%; } .assistant-intro h1 { font-size: 1.6rem; } }

/* ফুটার */
.site-footer { padding-block: 2.6rem 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 2rem 2.4rem; }
.footer-about p { margin: .9rem 0 0; max-width: 34ch; color: #c3cfe6; font-size: .95rem; line-height: 1.6; }
.footer-about .footer-brand img { width: 170px; height: auto; }
.footer-slogan { color: #f5c65b !important; font: 400 1.25rem/1.3 "Tiro Bangla Hero", "Noto Serif Bengali", serif !important; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col h2 { margin: 0 0 .35rem; color: #fff; font-size: 1rem; font-family: inherit; }
.footer-col a { color: #c3cfe6; text-decoration: none; font-size: .95rem; }
.footer-col a:is(:hover, :focus-visible) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #9fb0d0; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #f5c65b; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
