@font-face{font-family:"Walid Bengali";src:url("/fonts/NotoSansBengali-Regular.ttf") format("truetype");font-display:swap}
:root{--forest:#165741;--deep:#0f3f32;--mint:#ebf5ed;--cream:#fcfaf4;--gold:#d5b36b;--ink:#182b23;--secondary:#5c6e65;--line:#d9e7de;--paper:#fff;--shadow:0 14px 36px rgba(19,49,35,.075)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.65 "Walid Bengali",system-ui,sans-serif}
button,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.52;cursor:not-allowed}
a{color:var(--forest)}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #147d62;outline-offset:3px}
[hidden]{display:none!important}
.edu-shell{width:min(1080px,calc(100% - 36px));margin:0 auto;padding:18px 0 46px}
.edu-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 0 20px;border-bottom:1px solid var(--line)}
.edu-header .site-logo-link{display:inline-flex;margin:0}
.edu-header .site-logo-link img{width:132px;height:44px;object-fit:contain}
.edu-home{display:inline-flex;align-items:center;text-decoration:none;gap:8px;padding:9px 15px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:.85rem;font-weight:700}
.edu-hero{text-align:center;padding:34px 0 20px}
.edu-hero h1{margin:0 0 9px;font:700 clamp(2.65rem,6.3vw,4.6rem)/1.13 Georgia,"Times New Roman",serif;letter-spacing:-.045em;color:var(--deep)}
.edu-hero p{max-width:660px;margin:0 auto;color:var(--secondary);font-size:clamp(.97rem,2vw,1.06rem)}
.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:14px auto 36px}
.mode-card{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;min-width:0;min-height:244px;text-align:center;border:1px solid var(--line);border-radius:25px;padding:32px;background:linear-gradient(150deg,#fff 5%,#f4f9f5 96%);color:var(--ink);box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s,border-color .18s;overflow:hidden}
.mode-card:before{display:none}
.mode-card:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(19,49,35,.11);border-color:#97baa5}
.mode-card.notes-card{background:linear-gradient(145deg,#fff 7%,#fbf8ed 100%)}
.mode-card.notes-card:before{border-color:#efe5c6}
.card-symbol{display:grid;place-items:center;width:66px;height:66px;margin-inline:auto;border:1px solid #cadecf;border-radius:16px;background:#f2f8f4;color:var(--deep)}
.notes-card .card-symbol{color:#68542d;background:#fcf8ef;border-color:#e8dec7}
.card-symbol svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mode-card strong{font:700 clamp(1.45rem,2.4vw,1.8rem)/1.2 Georgia,"Times New Roman",serif;color:var(--deep)}
.mode-card .card-copy{max-width:30ch;color:var(--secondary);font-size:.97rem;line-height:1.68}
.mode-card .card-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:auto;color:var(--forest);font-size:.91rem;font-weight:800}
.card-action:after{content:"→";font:800 1.25rem/1 system-ui}
.edu-panel{margin:16px auto 34px;max-width:960px}
.edu-panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 22px}
.edu-back{padding:8px 14px;border:1px solid var(--line);border-radius:999px;color:var(--forest);background:#fff;font-weight:700;font-size:.88rem}
.edu-panel h2{margin:0 0 6px;font:700 clamp(1.65rem,3.7vw,2.3rem)/1.22 Georgia,"Times New Roman",serif;color:var(--deep)}
.edu-panel .panel-subtitle{margin:0 0 22px;color:var(--secondary)}
.setup-card,.question-card,.result-card{padding:28px 30px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.97);box-shadow:var(--shadow)}
.setup-fields{display:grid;grid-template-columns:1fr;gap:20px}
.field-label{display:block;margin-bottom:9px;color:var(--deep);font-weight:750;font-size:.96rem}
.field-select{width:100%;min-height:50px;padding:11px 13px;border:1px solid #becfc4;border-radius:12px;color:var(--ink);background:#fff}
.field-hint{margin:8px 0 0;font-size:.83rem;color:var(--secondary)}
.quiz-count-field{min-width:0;max-width:100%}
.quiz-count-field .field-select{font-weight:650}
.primary-button,.secondary-button{min-height:46px;padding:10px 20px;border-radius:12px;border:1px solid var(--forest);font-weight:750}
.primary-button{color:white;background:var(--forest)}
.primary-button:hover{background:var(--deep)}
.secondary-button{color:var(--forest);background:#fff}
.secondary-button:hover{background:var(--mint)}
.setup-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:23px;align-items:center}
.status-message{margin:18px 0;padding:13px 15px;border-left:3px solid var(--forest);border-radius:8px;background:#eff8f0;color:var(--deep)}
.status-message.is-error{background:#fff4ee;border-color:#ba5138;color:#723d2c}
.quiz-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:15px}
.quiz-counter{color:var(--forest);font-weight:750}
.quiz-subject{display:inline-block;padding:5px 11px;border:1px solid var(--line);border-radius:100px;background:#f2f7f4;color:var(--forest);font-size:.83rem;font-weight:750}
.quiz-progress{display:block;width:100%;height:9px;margin:0 0 21px;accent-color:var(--forest)}
.question-card h3{font-size:clamp(1.08rem,2.8vw,1.35rem);line-height:1.65;margin:7px 0 22px;overflow-wrap:anywhere}
.question-options{display:grid;gap:11px}
.question-option{display:flex;align-items:flex-start;gap:12px;width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:#fff;text-align:left;overflow-wrap:anywhere;line-height:1.6}
.question-option:hover{border-color:#9bb8a4;background:#f9fcf9}
.question-option[aria-pressed=true]{background:#e9f4ec;border-color:var(--forest);box-shadow:inset 0 0 0 1px var(--forest)}
.option-letter{flex:0 0 27px;display:grid;place-items:center;width:27px;height:27px;margin-top:1px;border-radius:8px;background:#eef3ef;font:750 .81rem system-ui;color:var(--forest)}
.question-option[aria-pressed=true] .option-letter{background:var(--forest);color:white}
.finish-confirm{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px;padding:14px 16px;border:1px solid #eddcb5;border-radius:14px;background:#fffbf1}
.result-score{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.score-number{font:700 clamp(2rem,6vw,3.2rem)/1.1 Georgia,serif;color:var(--forest)}
.score-caption{color:var(--secondary);font-size:.9rem}
.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}
.stat{border:1px solid var(--line);border-radius:13px;padding:12px;text-align:center;background:#fcfdfc}
.stat strong{display:block;font:750 1.6rem system-ui;color:var(--deep)}
.stat span{font-size:.83rem;color:var(--secondary)}
.subject-results{width:100%;border-collapse:collapse;font-size:.9rem}
.subject-results th,.subject-results td{padding:9px;border-bottom:1px solid var(--line);text-align:left}
.subject-results th:last-child,.subject-results td:last-child{text-align:right}
.review-list{display:grid;gap:13px;margin:22px 0}
.review-item{padding:17px 18px;border:1px solid var(--line);border-radius:14px;background:#fff}
.review-item h4{margin:0 0 10px;font-size:.97rem;line-height:1.6}
.review-item p{margin:6px 0;font-size:.88rem}
.review-item .good{color:#17653c}.review-item .bad{color:#a5372d}
.note-list{display:grid;gap:18px;margin:24px 0}
.note-article{padding:24px 26px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 5px 18px #153d2b09;overflow-wrap:anywhere}
.note-article h3{margin:0 0 12px;font-size:1.32rem;color:var(--deep)}
.note-article h4{margin:20px 0 6px;color:var(--forest);font-size:.94rem}
.note-article p{white-space:pre-line;margin:0;color:#243b30}
.note-article .note-example{border-left:3px solid var(--gold);padding:12px 16px;border-radius:0 9px 9px 0;background:#fbf8ef}
.note-tag{display:inline-block;margin-bottom:8px;color:var(--forest);font-weight:750;font-size:.8rem}
.note-exercise{background:#f3f8f3;border-radius:10px;padding:12px 15px}
.note-answer{margin-top:8px!important;color:#3d604d!important}
.note-toggle{margin-top:10px;padding:6px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--forest);font-weight:750}
.note-overview{color:var(--secondary);font-size:.9rem;margin:12px 0}
.legal-footer{margin-top:33px;padding:18px 0;border-top:1px solid var(--line);font:13px/1.6 "Times New Roman",serif;color:#69736d;text-align:center}
.legal-footer nav{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.legal-footer nav a{text-decoration:none;color:inherit}
.legal-footer p{margin:5px 0}
@media(max-width:720px){
 .edu-shell{width:min(100% - 28px,580px);padding-top:13px}
 .edu-hero{padding:35px 0 16px}
 .mode-grid{gap:12px}
 .mode-card{min-height:245px;padding:22px;border-radius:19px}
 .card-symbol{width:54px;height:54px;border-radius:15px}
 .card-symbol svg{width:29px;height:29px}
 .setup-card,.question-card,.result-card{padding:20px;border-radius:18px}
}
@media(max-width:520px){
 .mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 28px}
 .mode-card{min-height:204px;padding:15px 13px;gap:9px;border-radius:16px}
 .mode-card:before{display:none}
 .card-symbol{width:45px;height:45px;border-radius:13px}
 .card-symbol svg{width:28px;height:28px}
 .mode-card strong{font:700 clamp(.98rem,3.7vw,1.2rem)/1.2 Georgia,"Times New Roman",serif;letter-spacing:-.018em;overflow-wrap:anywhere}
 .mode-card .card-copy{font-size:.77rem;line-height:1.48;overflow-wrap:anywhere}
 .mode-card .card-action{margin-top:auto;font-size:.75rem;font-weight:700;line-height:1.35}
 .card-action:after{font-size:.95rem}
 .edu-home{padding:8px 11px;font-size:.8rem}
 .note-article{padding:19px 17px}
}
@media(max-width:360px){
 .edu-shell{width:calc(100% - 20px)}
 .mode-grid{gap:8px}
 .mode-card{padding:13px 10px;min-height:204px;gap:8px}
 .mode-card .card-copy{font-size:.73rem}
 .mode-card .card-action{font-size:.72rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.mode-card{transition:none}.mode-card:hover{transform:none}}


/* Stream picker is only shown for grades 9–12 and university admissions. */
.stream-field[hidden]{display:none!important}
.question-stack{display:grid;gap:16px;margin:18px 0 24px}
.question-stack .question-card{scroll-margin-top:78px;box-shadow:0 5px 19px rgba(19,49,35,.055)}
.question-card-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.question-number{font-size:.88rem;font-weight:750;color:var(--forest)}
.question-stack .question-card h3{margin:12px 0 18px}
.question-stack .quiz-subject{white-space:normal;max-width:100%;overflow-wrap:anywhere}
.question-option:disabled{opacity:1;cursor:default}
.question-option:disabled:hover{background:#fff}
.question-option[aria-pressed="true"].is-correct,.question-option.is-correct{
  background:#e8f7ec;border-color:#2a8b55;color:#165335
}
.question-option[aria-pressed="true"].is-wrong,.question-option.is-wrong{
  background:#fff0ed;border-color:#c24d43;color:#82382c
}
.question-option.is-correct .option-letter{background:#20834c;color:#fff}
.question-option.is-wrong .option-letter{background:#b64539;color:#fff}
.question-feedback{margin-top:14px;padding:13px 16px;border-left:4px solid #2b8953;border-radius:10px;background:#edf8ef;color:#235739}
.question-feedback.is-wrong{border-left-color:#bb493e;background:#fff4f0;color:#813b32}
.question-feedback strong{font-size:1rem}
.question-feedback p{margin:8px 0 0;font-size:.9rem;line-height:1.6}
.question-card.was-correct{border-color:#b6d9c3}
.quiz-finish-actions{margin:24px 0 10px;scroll-margin-top:90px}
@media(max-width:600px){
 .question-stack{gap:12px}
 .question-stack .question-card{padding:17px 15px;scroll-margin-top:55px}
 .question-card-head{gap:7px}
 .question-options{gap:8px}
 .question-option{padding:11px 12px}
 .question-feedback{padding:12px}
}

.question-source{display:inline-flex;align-items:center;gap:6px;margin-top:10px;color:#155740;font-size:.86rem;font-weight:750;text-underline-offset:3px;overflow-wrap:anywhere}
.question-source:hover{color:#0a3d2b}
.source-date{display:inline-block;margin:7px 0 0 6px;color:#64736a;font-size:.8rem;overflow-wrap:anywhere}
.note-article .question-source{margin-top:20px}

/* Clear instructional rhythm: explanation, worked example, optional diagram,
   then independent practice with the answer disclosed on request. */
.note-article{line-height:1.78}
.note-article h3{line-height:1.45;overflow-wrap:anywhere}
.note-article h4{margin-top:20px}
.note-article .note-example{background:#fcf8ed;border-left:3px solid #bd9250;padding:14px 17px}
.note-article .note-exercise{background:#eef7f0;border-left:3px solid #40936a;padding:13px 16px}
.note-article details{margin-top:12px}
.note-article details[open]{padding-bottom:8px}
.note-article .note-toggle{display:inline-flex;cursor:pointer;align-items:center;min-height:38px}
.lesson-illustration{margin:16px 0 17px;padding:14px 16px 12px;border-radius:16px;border:1px solid #dce9df;background:linear-gradient(135deg,#f9fcf9,#f6faf4);text-align:center}
.lesson-illustration svg{display:block;margin:auto;width:min(100%,400px);height:auto;aspect-ratio:375/200;overflow:visible}
.lesson-illustration svg text{font-family:"Walid Bengali",system-ui,sans-serif}
.lesson-illustration figcaption{color:#50665b;font-size:.85rem;line-height:1.65;margin:4px auto 0;max-width:530px}
@media(max-width:520px){
 .lesson-illustration{padding:8px 7px 11px;border-radius:12px}
 .lesson-illustration figcaption{font-size:.79rem}
}

/* Academic lesson readability and mathematics typography */
.mode-card:focus-visible{outline-offset:4px}
.note-article .note-steps{margin:3px 0 0;padding-left:1.75rem;line-height:1.85;color:#243b30}
.note-article .note-steps li{padding-inline-start:.2rem;margin:5px 0}
.note-article .note-example,.note-article .note-exercise{white-space:pre-line;line-height:1.85}
.note-article .note-answer{white-space:pre-line;color:var(--deep)!important;line-height:1.85}
.note-article details{margin-top:10px}
.note-article .note-toggle{display:inline-flex;align-items:center;cursor:pointer;list-style:revert}
.note-article .note-teaching-tip{padding:12px 14px;margin:12px 0;border-left:3px solid var(--forest);background:#f3f8f5;border-radius:0 9px 9px 0;color:#315042}
.note-article sup,.question-card sup,.review-item sup{font-size:.72em;line-height:0;vertical-align:super}
