/* Assam School Directory - public site v2.1. Hand-written, no framework: small and fast. */
:root{
  --ink:#0f172a;--text:#334155;--muted:#64748b;--line:#e5e9f0;--bg:#f6f8fb;--paper:#fff;
  --brand:#047857;--brand-d:#065f46;--brand-t:#e8f7ef;--brand-m:#bfe8d1;--accent:#f59e0b;
  --r-s:10px;--r-m:16px;--r-l:24px;
  --body:Poppins,"Noto Sans Bengali",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --head:"Plus Jakarta Sans",Poppins,"Noto Sans Bengali",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--body);font-size:16px;line-height:1.65;color:var(--text);background:#fff;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:var(--head);color:var(--ink);line-height:1.22;margin:0 0 .55em;letter-spacing:-.02em}
h1{font-size:clamp(1.8rem,5vw,2.75rem);font-weight:800}
h2{font-size:clamp(1.3rem,2.8vw,1.65rem);font-weight:700}
h3{font-size:1.05rem;font-weight:700}
p{margin:0 0 1em}
ul,ol{margin:0;padding:0}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:-999px;top:0;background:#fff;color:#000;padding:.6rem 1rem;z-index:2000}.skip-link:focus{left:0}
.wrap{width:min(1140px,100% - 2.5rem);margin-inline:auto}
.wrap.narrow{width:min(820px,100% - 2.5rem)}
.muted{color:var(--muted)}
.section{padding:2.6rem 0 .4rem}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1.1rem}
.section-head h2{margin:0}
.more{font-weight:600;font-size:.92rem;white-space:nowrap}

/* ---------- header ---------- */
.site-head{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.5) blur(12px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:1rem;min-height:68px}
.brand{display:flex;align-items:center;gap:.65rem;font-family:var(--head);font-weight:800;font-size:1.08rem;color:var(--ink);letter-spacing:-.02em}
.brand:hover{text-decoration:none;color:var(--brand)}
.brand img,.brand svg{flex:none;border-radius:10px}
.nav-toggle{display:none;margin-left:auto;width:44px;height:44px;border:1px solid var(--line);background:#fff;border-radius:12px;cursor:pointer;padding:0;position:relative}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{position:absolute;left:12px;right:12px;height:2px;background:var(--ink);border-radius:2px;content:"";transition:transform .2s}
.nav-toggle span{top:21px}.nav-toggle span::before{left:0;right:0;top:-6px}.nav-toggle span::after{left:0;right:0;top:6px}
.nav-toggle[aria-expanded=true] span{background:transparent}
.nav-toggle[aria-expanded=true] span::before{transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded=true] span::after{transform:translateY(-6px) rotate(-45deg)}
.nav{margin-left:auto;display:flex;align-items:center;gap:.5rem}
.nav ul{list-style:none;display:flex;gap:.15rem;align-items:center}
.nav li{position:relative}
.nav a{display:block;padding:.5rem .95rem;border-radius:999px;color:var(--text);font-weight:500;font-size:.94rem}
.nav a:hover{background:var(--bg);text-decoration:none;color:var(--ink)}
.nav .cta{background:var(--ink);color:#fff;font-weight:600;margin-left:.4rem}
.nav .cta:hover{background:var(--brand);color:#fff}
.nav .sub{display:none;position:absolute;right:0;top:100%;min-width:210px;background:#fff;border:1px solid var(--line);border-radius:var(--r-m);padding:.4rem;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:0}
.nav li:hover>.sub,.nav li:focus-within>.sub{display:flex}
.nav .sub a{border-radius:10px}

/* ---------- buttons & search ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;border:0;border-radius:14px;padding:0 1.6rem;height:54px;background:var(--brand);color:#fff;font:inherit;font-weight:600;cursor:pointer;transition:background .15s,transform .15s}
.btn:hover{background:var(--brand-d);text-decoration:none;color:#fff}
.btn:active{transform:scale(.98)}
.btn-sm{height:38px;padding:0 1rem;border-radius:999px;font-size:.88rem}
.btn-line{background:#fff;color:var(--text);border:1px solid var(--line);font-weight:500}
.btn-line:hover{background:var(--bg);color:var(--ink)}
.search{background:#fff;border:1px solid var(--line);border-radius:var(--r-l);padding:.6rem;box-shadow:var(--shadow)}
.search-row{display:flex;gap:.5rem}
.search-field{position:relative;flex:1;min-width:0}
.search-field svg{position:absolute;left:1.05rem;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.search-field input{width:100%;height:54px;border:1px solid transparent;border-radius:16px;background:var(--bg);padding:0 1rem 0 3rem;font:inherit;font-size:1rem;color:var(--ink)}
.search-field input:focus{outline:0;border-color:var(--brand);background:#fff;box-shadow:0 0 0 4px rgba(4,120,87,.14)}
.search--hero{max-width:780px;box-shadow:0 20px 50px rgba(6,95,70,.16)}
.filters{margin-top:.4rem;padding:0 .35rem}
.filters summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:.4rem;font-size:.88rem;font-weight:600;color:var(--brand);padding:.5rem .4rem;border-radius:8px}
.filters summary::-webkit-details-marker{display:none}
.filters summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.filters[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;padding:.4rem 0 .6rem}
.filter-grid label{display:block;font-size:.78rem;font-weight:500;color:var(--muted);margin-bottom:.2rem}
.filter-grid select{width:100%;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 .7rem;font:inherit;font-size:.9rem;color:var(--ink)}
.filters .clear{display:inline-block;font-size:.85rem;margin:0 0 .5rem}

/* ---------- hero ---------- */
.hero{background:var(--brand-t);background-image:radial-gradient(rgba(4,120,87,.13) 1.2px,transparent 1.3px);background-size:22px 22px;padding:3.6rem 0 5.4rem;border-bottom-left-radius:36px;border-bottom-right-radius:36px}
.hero h1{font-size:clamp(2.1rem,6vw,3.7rem);max-width:17ch;margin-bottom:.6rem}
.hero-sub{font-size:clamp(1rem,2.3vw,1.18rem);color:var(--text);max-width:48ch;margin-bottom:1.7rem}
.hero-pop{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:1.2rem 0 0;font-size:.9rem;color:var(--muted)}
.hero-pop a{background:#fff;color:var(--brand-d);padding:.32rem .9rem;border-radius:999px;font-weight:500;font-size:.86rem;border:1px solid var(--brand-m)}
.hero-pop a:hover{background:var(--brand);color:#fff;text-decoration:none}
.stat-strip{position:relative;margin-top:-2.6rem;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--shadow);padding:1.2rem .5rem}
.stat-strip>div{text-align:center;padding:.2rem .5rem;border-right:1px solid var(--line)}
.stat-strip>div:last-child{border:0}
.stat-strip b{display:block;font-family:var(--head);font-size:1.6rem;font-weight:800;color:var(--ink);line-height:1.2}
.stat-strip span{font-size:.82rem;color:var(--muted)}

/* ---------- breadcrumb ---------- */
.crumbs{list-style:none;display:flex;flex-wrap:wrap;gap:.1rem;font-size:.84rem;color:var(--muted);margin:1.4rem 0 1rem}
.crumbs li+li::before{content:"\203A";margin:0 .45rem;color:#a3adc0}
.crumbs a{color:var(--muted)}.crumbs a:hover{color:var(--brand)}
.crumbs [aria-current]{color:var(--ink);font-weight:500}

/* ---------- school cards ---------- */
.s-grid{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:.9rem}
.s-card{position:relative;display:flex;gap:.9rem;align-items:flex-start;height:100%;background:#fff;border:1px solid var(--line);border-radius:var(--r-m);padding:1.05rem 1.1rem;transition:border-color .15s,box-shadow .15s,transform .15s}
.s-grid>li:hover .s-card{border-color:var(--brand-m);box-shadow:var(--shadow);transform:translateY(-2px)}
.s-av{flex:none;width:46px;height:46px;border-radius:14px;background:var(--brand-t);color:var(--brand-d);display:grid;place-items:center;font-family:var(--head);font-weight:800;font-size:1.1rem}
.s-main{min-width:0;flex:1}
.s-name{font-size:1.02rem;font-weight:700;line-height:1.35;margin:0 0 .2rem}
.s-name a{color:var(--ink)}.s-name a:hover{color:var(--brand);text-decoration:none}
.s-name a::after{content:"";position:absolute;inset:0;border-radius:var(--r-m)}
.s-meta{display:flex;align-items:flex-start;gap:.3rem;font-size:.84rem;color:var(--muted);line-height:1.4}
.s-meta svg{flex:none;margin-top:2px}
.s-tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.65rem}
.tag{font-size:.73rem;font-weight:500;background:var(--bg);color:#475569;padding:.14rem .6rem;border-radius:999px}
.tag.t1{background:var(--brand-t);color:var(--brand-d)}

.tiles{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.7rem}
.tile{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.95rem 1.1rem;background:#fff;border:1px solid var(--line);border-radius:var(--r-m);color:var(--ink);font-weight:600;font-size:.96rem;transition:border-color .15s,box-shadow .15s,transform .15s}
.tile small{color:var(--brand-d);background:var(--brand-t);font-weight:600;font-size:.76rem;padding:.12rem .55rem;border-radius:999px;white-space:nowrap}
.tile:hover{border-color:var(--brand-m);box-shadow:var(--shadow);transform:translateY(-2px);text-decoration:none}
.type-cards{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.75rem}
.type-card{display:block;padding:1.1rem 1.2rem;border-radius:var(--r-m);background:var(--ink);color:#fff;transition:transform .15s,background .15s}
.type-card:hover{background:var(--brand);text-decoration:none;transform:translateY(-2px)}
.type-card b{display:block;font-family:var(--head);font-size:1.7rem;font-weight:800;line-height:1.1}
.type-card span{font-size:.9rem;color:#cbd5e1}.type-card:hover span{color:#d1fae5}

.chips{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none}
.chip{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .95rem;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--text);font-size:.88rem;font-weight:500;transition:border-color .15s,background .15s}
.chip small{color:var(--muted);font-weight:500;font-size:.78rem}
.chip:hover{border-color:var(--brand);color:var(--brand-d);text-decoration:none}
.chip.on{background:var(--brand);border-color:var(--brand);color:#fff}.chip.on small{color:#bbf7d0}
.chip-label{font-size:.8rem;font-weight:600;color:var(--muted);margin:0 0 .5rem}

.note{background:var(--bg);border-radius:var(--r-l);padding:1.6rem 1.7rem}
.note h2{font-size:1.15rem}.note p{margin:0;color:var(--text)}
.alert{border-radius:var(--r-m);padding:.95rem 1.15rem;background:var(--brand-t);color:var(--brand-d);margin-bottom:1rem}
.alert-warn{background:#fff6dd;color:#7a5600}
.result-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1.4rem 0 .9rem;font-size:.92rem;color:var(--muted)}
.result-bar strong{color:var(--ink)}

/* ---------- district / block page ---------- */
.d-hero{background:var(--brand-t);border-radius:var(--r-l);padding:1.7rem 1.7rem 1.4rem;margin-bottom:1.5rem}
.d-hero h1{font-size:clamp(1.7rem,4.4vw,2.4rem);margin-bottom:.3rem}
.d-hero .lead{color:var(--text);margin-bottom:1.2rem;max-width:60ch}
.d-hero .search{box-shadow:none;border-color:var(--brand-m)}
.find{margin-bottom:1.3rem}
.find+.find{margin-top:1.1rem}
.rich-top{margin-bottom:1.3rem}

/* ---------- pagination ---------- */
.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem;list-style:none;margin:1.8rem 0 0}
.pager a,.pager span{display:grid;place-items:center;min-width:42px;height:42px;padding:0 .85rem;border-radius:12px;border:1px solid var(--line);font-size:.9rem;font-weight:600;color:var(--text);background:#fff}
.pager a:hover{border-color:var(--brand);color:var(--brand);text-decoration:none}
.pager .on span{background:var(--brand);border-color:var(--brand);color:#fff}
.pager .off span{color:#a3adc0;background:var(--bg)}

/* ---------- school page ---------- */
.school{padding-bottom:1rem}
.s-head h1{margin-bottom:.4rem}
.s-loc{display:flex;gap:.4rem;align-items:flex-start;color:var(--muted);font-size:1rem;margin-bottom:1.4rem}
.s-loc svg{flex:none;margin-top:5px;color:var(--brand)}
.s-photo{margin:0 0 2.2rem;border-radius:var(--r-l);overflow:hidden;background:var(--bg);box-shadow:var(--shadow)}
.s-photo img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover}
.s-block{margin-bottom:2.6rem}
.s-title{display:flex;align-items:center;gap:.7rem;margin-bottom:1.1rem}
.s-title::before{content:"";width:5px;height:1.4em;border-radius:4px;background:var(--brand)}

.info{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;box-shadow:var(--shadow);font-size:1rem}
.info th,.info td{padding:.9rem 1.3rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.info tr:last-child>*{border-bottom:0}
.info th{width:36%;font-weight:500;color:var(--muted);background:#fafcfb;font-size:.93rem}
.info td{color:var(--ink);font-weight:600;word-break:break-word}
.info tr:hover td,.info tr:hover th{background:#f3fbf7}
.info a{font-weight:600}

.rich{overflow-wrap:break-word}
.rich img{max-width:100%;height:auto;border-radius:var(--r-s)}
.rich table{width:100%;border-collapse:collapse;margin:0 0 1.2em;display:block;overflow-x:auto}
.rich td,.rich th{border:1px solid var(--line);padding:.5rem .75rem;text-align:left}
.rich blockquote{margin:0 0 1.2em;border-left:4px solid var(--brand);padding:.3rem 1.1rem;color:var(--muted)}
.rich ul,.rich ol{padding-left:1.4rem;margin:0 0 1.2em}.rich li{margin-bottom:.35em}
.rich h2,.rich h3{margin-top:1.6em}
.article{font-size:1.15rem;line-height:1.95;text-align:justify;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;color:#2a3649}
.article p{margin-bottom:1.35em}
.article strong{color:var(--ink);font-weight:600}
.article h3{font-size:1.25rem;text-align:left}
.article li{text-align:justify}
@media (max-width:600px){.article{font-size:1.06rem;line-height:1.85}}

.faq{display:grid;gap:.75rem;counter-reset:q}
.faq-item{counter-increment:q;background:#fff;border:1px solid var(--line);border-radius:var(--r-m);transition:border-color .2s,box-shadow .2s}
.faq-item:hover{border-color:var(--brand-m)}
.faq-item[open]{border-color:var(--brand-m);box-shadow:var(--shadow)}
.faq-item summary{display:flex;align-items:center;gap:.9rem;padding:1.05rem 1.2rem;cursor:pointer;list-style:none;font-family:var(--head);font-weight:700;color:var(--ink);font-size:1.03rem;line-height:1.4}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::before{content:counter(q,decimal-leading-zero);flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--brand-t);color:var(--brand-d);font-size:.82rem;font-weight:800}
.faq-item summary>span:first-child{flex:1}
.faq-ico{flex:none;position:relative;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);transition:background .2s,border-color .2s}
.faq-ico::after{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translate(-50%,-70%) rotate(45deg);transition:transform .25s}
.faq-item[open] .faq-ico{background:var(--brand);border-color:var(--brand)}
.faq-item[open] .faq-ico::after{border-color:#fff;transform:translate(-50%,-30%) rotate(-135deg)}
.faq-item[open] summary::before{background:var(--brand);color:#fff}
.faq-a{margin:0 1.2rem 1.2rem 4.1rem;padding-top:.9rem;border-top:1px dashed var(--line);font-size:1.05rem;line-height:1.85;text-align:justify;hyphens:auto;color:var(--text)}
.faq-a p{margin:0}
.faq-item[open] .faq-a{animation:faqIn .25s ease}
@keyframes faqIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (max-width:520px){.faq-a{margin-left:1.2rem}.faq-item summary::before{display:none}}

.share{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.share>span{font-family:var(--head);font-weight:700;color:var(--ink);margin-right:.3rem}
.disclaimer{background:#fffbeb;border:1px solid #fde9a8;border-radius:var(--r-m);padding:1rem 1.25rem;margin-top:1rem}
.disclaimer h2{font-size:.95rem;margin-bottom:.3rem}.disclaimer p{margin:0;font-size:.9rem}
.ad-slot{text-align:center;margin:1.2rem auto;max-width:100%;overflow:hidden}
.page-body{font-size:1.06rem;line-height:1.85}

/* ---------- 404 ---------- */
.err{text-align:center;padding:3.5rem 0 2rem}
.err .code{font-family:var(--head);font-size:clamp(4rem,16vw,7rem);font-weight:800;line-height:1;color:var(--brand);margin:0}
.err .search{text-align:left;margin:1.5rem auto}

/* ---------- footer ---------- */
.site-foot{margin-top:4.5rem;background:var(--ink);color:#cbd5e1}
.foot-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:2.2rem;padding:3rem 0 2rem}
.site-foot h2{color:#fff;font-size:.95rem;margin-bottom:.9rem}
.site-foot a{color:#e2e8f0}
.site-foot ul{list-style:none;display:grid;gap:.5rem;font-size:.93rem}
.site-foot p{font-size:.92rem}
.foot-note{opacity:.7}
.foot-base{border-top:1px solid rgba(255,255,255,.1);padding:1.1rem 0 1.5rem;font-size:.85rem;color:#94a3b8;margin:0}

/* ---------- responsive ---------- */
@media (max-width:860px){
  .nav-toggle{display:block}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;margin:0;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 18px 30px rgba(15,23,42,.1);padding:.6rem 1.25rem 1rem;flex-direction:column;align-items:stretch}
  .nav.open{display:flex}
  .nav ul{flex-direction:column;align-items:stretch;gap:0}
  .nav a{border-radius:10px;padding:.8rem .6rem}
  .nav .cta{margin:.5rem 0 0;text-align:center}
  .nav .sub{display:flex;position:static;border:0;box-shadow:none;padding:0 0 0 1rem;min-width:0}
  .foot-grid{grid-template-columns:1fr 1fr;gap:1.8rem}.foot-grid>div:first-child{grid-column:1/-1}
  .filter-grid{grid-template-columns:repeat(2,1fr)}
  .stat-strip{grid-template-columns:repeat(2,1fr);row-gap:1rem}.stat-strip>div:nth-child(2){border:0}
}
@media (max-width:700px){.s-grid{grid-template-columns:1fr}}
@media (max-width:520px){
  .wrap,.wrap.narrow{width:calc(100% - 2rem)}
  .search-row{flex-direction:column}
  .btn{height:52px}
  .info th{width:40%}.info th,.info td{padding:.75rem .95rem}
  .filter-grid{grid-template-columns:1fr}
  .hero{padding:2.4rem 0 4.6rem;border-bottom-left-radius:26px;border-bottom-right-radius:26px}
  .d-hero{padding:1.3rem 1.1rem 1rem}
  .tiles{grid-template-columns:repeat(2,1fr)}
  .tile{flex-direction:column;align-items:flex-start;gap:.3rem}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.site-head,.site-foot,.search,.share,.ad-slot,.nav-toggle{display:none!important}}
.info th{position:relative;padding-left:1.5rem}
.info th::before{content:"";position:absolute;left:0;top:.95rem;bottom:.95rem;width:3px;border-radius:3px;background:var(--brand-m)}
.info tr:hover th::before{background:var(--brand)}
.pill{display:inline-block;padding:.15rem .8rem;border-radius:999px;font-size:.88rem;font-weight:600}
.pill-ok{background:#dcfce7;color:#166534}.pill-off{background:#fee2e2;color:#991b1b}
@media (max-width:520px){.info th{padding-left:1.1rem}.info th::before{top:.75rem;bottom:.75rem}}

/* ---------- map ---------- */
.map-card{border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.map-card iframe{display:block;width:100%;height:340px;border:0;background:var(--bg)}
.map-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8rem 1.2rem;padding:1rem 1.2rem}
.map-bar p{margin:0;font-size:.88rem;color:var(--muted);line-height:1.5;flex:1;min-width:220px}
.map-bar strong{display:block;color:var(--ink);font-family:var(--head);font-size:.98rem}
.map-btns{display:flex;flex-wrap:wrap;gap:.5rem}
@media (max-width:520px){.map-card iframe{height:260px}.map-btns{width:100%}.map-btns .btn{flex:1}}
