:root{
  --brand:#0a6a43;--brand-dark:#064b31;--brand-soft:#edf7f1;--accent:#d51f2b;
  --ink:#171b19;--muted:#69716c;--line:#e1e5e2;--soft:#f6f7f6;--paper:#fff;
  --shadow:0 12px 32px rgba(21,35,27,.08);--serif:"Noto Serif Bengali","SolaimanLipi","Siyam Rupali",serif;
  --sans:"Noto Sans Bengali","SolaimanLipi","Siyam Rupali",system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:var(--sans);line-height:1.55}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}img{max-width:100%;display:block}.container{width:min(1240px,calc(100% - 34px));margin:auto}
.site-topbar{border-bottom:1px solid var(--line);background:#fafbfa;font-size:12px;color:#5f6762}.site-topbar-inner{height:34px;display:flex;align-items:center;justify-content:space-between}.top-links{display:flex;align-items:center;gap:18px}.top-links a:hover{color:var(--brand)}.top-epaper{font-weight:800;color:var(--accent)}
.masthead{background:#fff}.masthead-grid{min-height:122px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}.mast-left{display:flex;align-items:center;gap:16px;color:#4f5752;font-size:14px}.icon-button{border:1px solid var(--line);background:#fff;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;cursor:pointer}.mobile-menu-button{display:none}.text-action{font-weight:700}.brand{text-align:center;display:inline-block}.brand-line{display:flex;align-items:flex-end;justify-content:center;gap:5px;line-height:.9}.brand-small{font-family:var(--serif);font-size:22px;font-weight:900;color:#1e2b24;margin-bottom:8px}.brand-name{font-family:var(--serif);font-size:62px;font-weight:950;letter-spacing:-2px;color:var(--brand)}.brand-tag{font-size:12px;letter-spacing:.2px;color:#5d6660;margin-top:9px}.mast-actions{justify-self:end;display:flex;align-items:center;gap:12px}.mast-link{font-size:13px;font-weight:700;color:#5b635e}.epaper-button{background:var(--brand);color:#fff;padding:10px 15px;border-radius:4px;font-size:13px;font-weight:850;display:inline-flex;align-items:center;gap:7px}.epaper-button:hover{background:var(--brand-dark)}
.nav-wrap{border-top:1px solid var(--line);border-bottom:1px solid #d7dcd9;background:rgba(255,255,255,.98);position:sticky;top:0;z-index:60}.mainnav{display:flex;align-items:center;justify-content:center;overflow:auto;scrollbar-width:none}.mainnav a{flex:none;padding:13px 14px 11px;font-size:15px;font-weight:800;border-bottom:3px solid transparent;white-space:nowrap}.mainnav a:hover{color:var(--accent);border-bottom-color:var(--accent)}.home-link{color:var(--brand)}
.breaking{border-bottom:1px solid #f0dedc;background:#fff}.breaking-row{min-height:44px;display:flex;align-items:center;overflow:hidden}.breaking-label{flex:none;background:var(--accent);color:#fff;font-size:12px;font-weight:900;padding:7px 12px;margin-right:15px}.breaking-track{display:flex;gap:32px;white-space:nowrap;overflow:hidden;font-size:13px;font-weight:700}.breaking-track a{position:relative}.breaking-track a:not(:last-child):after{content:"•";position:absolute;right:-19px;color:#b5bab7}
.ad-space{padding:16px 0 2px;text-align:center;position:relative}.ad-space a{display:block;max-width:970px;margin:auto;background:#f7f8f7;min-height:72px;overflow:hidden}.ad-space img{width:100%;max-height:120px;object-fit:cover}.ad-label{display:block;font-size:9px;color:#9aa09c;letter-spacing:1px;margin-bottom:4px}
.home-lead{padding:24px 0 34px;border-bottom:1px solid var(--line)}.lead-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:30px}.lead-left{min-width:0}.lead-main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:25px;padding-bottom:22px;border-bottom:1px solid var(--line)}.lead-main-image img{width:100%;aspect-ratio:16/9;object-fit:cover;background:#eef1ef}.lead-main-copy{display:flex;flex-direction:column;justify-content:center}.section-kicker{display:inline-block;color:var(--accent);font-size:12px;font-weight:900;margin-bottom:7px}.section-kicker.light{color:#bdf2d2}.lead-main h1{font-family:var(--serif);font-size:38px;line-height:1.2;margin:0 0 12px;font-weight:950;letter-spacing:-.2px}.lead-main h1 a:hover,.compact-card h3 a:hover,.section-main-card h2 a:hover,.section-list-item h3 a:hover{color:var(--brand)}.lead-main p{font-size:16px;color:#58615b;margin:0 0 12px}.news-meta{font-size:11.5px;color:#858b87}.lead-secondary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 20px}.compact-card{display:grid;grid-template-columns:150px 1fr;gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.compact-card:nth-last-child(-n+2){border-bottom:0}.compact-card img{width:150px;height:94px;object-fit:cover}.compact-card h3{font-family:var(--serif);font-size:17.5px;line-height:1.35;margin:0;font-weight:850}
.lead-right{border-left:1px solid var(--line);padding-left:24px}.rail-tabs{border-bottom:1px solid var(--line)}.rail-tab-buttons{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}.rail-tab-buttons button{border:0;background:#fff;padding:10px 5px;font-weight:900;color:#6a716d;cursor:pointer;border-bottom:3px solid transparent}.rail-tab-buttons button.active{color:var(--brand);border-bottom-color:var(--brand)}.rail-panel{display:none}.rail-panel.active{display:block}.rail-story{padding:13px 0;border-bottom:1px solid var(--line)}.rail-story h3{font-family:var(--serif);font-size:16px;line-height:1.35;margin:3px 0 0;font-weight:800}.rail-time{font-size:10px;color:#959a97}.popular-story{display:grid;grid-template-columns:28px 1fr;gap:7px}.popular-story>span{font-family:Georgia,serif;font-size:27px;color:#c4cac6;line-height:1}.rail-more{display:block;padding:12px 0;font-size:12px;color:var(--brand);font-weight:850}.mini-epaper{margin-top:24px;border:1px solid var(--line);padding:15px;background:#fbfcfb}.mini-epaper-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--brand);padding-bottom:8px;margin-bottom:12px}.mini-epaper-head span{font-weight:900;color:var(--brand)}.mini-epaper-head a{font-size:11px;color:#777}.mini-paper-cover{display:block;width:150px;margin:0 auto 12px;box-shadow:0 9px 25px rgba(0,0,0,.16)}.mini-paper-cover img{width:100%;aspect-ratio:.705;object-fit:cover;background:#fff}.mini-epaper-info{text-align:center;display:grid;gap:1px;font-size:12px}.mini-epaper-info span{color:var(--muted)}.epaper-read-full{display:block;text-align:center;margin-top:10px;background:var(--brand);color:#fff;padding:8px;font-size:12px;font-weight:800}
.section-heading{display:flex;align-items:flex-end;gap:15px;margin-bottom:18px;border-top:3px solid #222;padding-top:10px}.section-heading h2{font-family:var(--serif);font-size:27px;line-height:1;margin:0;font-weight:950}.section-heading>a{margin-left:auto;font-size:12px;font-weight:800;color:#6a716d}.section-heading>a:hover{color:var(--accent)}.news-section{padding:30px 0;border-bottom:1px solid var(--line)}.section-news-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:30px}.section-main-card{border-right:1px solid var(--line);padding-right:30px}.section-main-card img{width:100%;aspect-ratio:16/9;object-fit:cover;background:#eef1ef}.section-main-card h2{font-family:var(--serif);font-size:27px;line-height:1.28;margin:12px 0 7px}.section-main-card p{font-size:13px;color:var(--muted);margin:0}.section-card-list{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.section-list-item{display:grid;grid-template-columns:1fr 112px;gap:10px;padding:0 0 15px;margin-bottom:15px;border-bottom:1px solid var(--line)}.section-list-item:nth-last-child(-n+2){border-bottom:0;margin-bottom:0}.section-list-item img{width:112px;height:74px;object-fit:cover}.section-list-item h3{font-family:var(--serif);font-size:16px;line-height:1.35;margin:0 0 6px;font-weight:850}
.signature-section{background:#072f21;color:#fff;padding:36px 0 40px;margin:0}.signature-heading{border-top-color:#78c59d}.signature-heading span{display:block;color:#8ed5ad;font-size:11px;font-weight:850;margin-bottom:4px}.signature-heading h2{font-size:30px}.signature-heading>a{color:#cce8d8}.signature-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:25px}.signature-main{display:grid;grid-template-columns:1.18fr .82fr;gap:22px}.signature-main img{width:100%;aspect-ratio:16/10;object-fit:cover}.signature-main h2{font-family:var(--serif);font-size:30px;line-height:1.25;margin:0 0 9px}.signature-main p{color:#c9dcd2;margin:0;font-size:14px}.signature-side{display:grid;grid-template-columns:1fr 1fr;gap:18px}.signature-side article{border-bottom:1px solid rgba(255,255,255,.14);padding-bottom:12px}.signature-side img{aspect-ratio:16/9;object-fit:cover;margin-bottom:8px}.signature-side h3{font-family:var(--serif);font-size:15.5px;line-height:1.35;margin:0}
.opinion-section{padding:32px 0;background:#f8f7f4}.opinion-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.opinion-grid article{background:#fff;border:1px solid #e7e4df;padding:20px;min-height:205px;position:relative}.opinion-mark{font-family:Georgia,serif;font-size:52px;color:#d4d0c8;line-height:.65}.opinion-grid h3{font-family:var(--serif);font-size:19px;line-height:1.4;margin:12px 0 8px}.opinion-grid p{font-size:12.5px;color:var(--muted);margin:0 0 12px}
.epaper-showcase{background:linear-gradient(135deg,#062f21,#0c7650);padding:46px 0;color:#fff;margin-top:0}.epaper-showcase-grid{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:45px}.epaper-showcase-copy h2{font-family:var(--serif);font-size:38px;line-height:1.18;margin:3px 0 13px}.epaper-showcase-copy p{color:#cee4d8;max-width:690px}.showcase-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:3px;padding:10px 15px;font-weight:850;cursor:pointer}.btn-green{background:var(--brand);color:#fff}.btn-red{background:var(--accent);color:#fff}.btn-soft{background:#f0f3f1;color:#27362d;border:1px solid #d7ddd9}.btn-dark{background:#1c211e;color:#fff}.btn-light{background:#fff;color:var(--brand-dark)}.btn-outline-light{border:1px solid rgba(255,255,255,.55);color:#fff}.epaper-stack{position:relative;width:270px;margin:auto}.epaper-stack img{width:270px;aspect-ratio:.705;object-fit:cover;background:white;box-shadow:0 25px 60px rgba(0,0,0,.36);position:relative;z-index:3}.paper-shadow{position:absolute;width:250px;height:350px;background:#fff;top:15px;left:20px;box-shadow:0 15px 40px rgba(0,0,0,.18)}.paper-shadow.one{transform:rotate(5deg);z-index:2}.paper-shadow.two{transform:rotate(10deg);z-index:1}
/* Article/category/search */
.page-shell{padding:28px 0 52px}.content-grid{display:grid;grid-template-columns:minmax(0,820px) 320px;gap:48px;align-items:start}.article-header{border-bottom:1px solid var(--line);padding-bottom:18px}.article-title{font-family:var(--serif);font-size:46px;line-height:1.2;margin:8px 0 13px;font-weight:950}.article-excerpt{font-size:19px;line-height:1.6;color:#545d57;margin:0 0 16px}.article-byline{display:flex;align-items:center;gap:10px;font-size:12px;color:#707873}.article-image{width:100%;max-height:620px;object-fit:cover;margin:22px 0 7px}.caption{font-size:11px;color:#7e8581}.article-share{display:flex;gap:7px;margin:16px 0}.share-chip{border:1px solid var(--line);background:#fff;border-radius:50px;padding:6px 11px;font-size:11px;cursor:pointer}.article-body{font-family:var(--serif);font-size:19px;line-height:1.95;margin-top:20px}.article-body p{margin:0 0 21px}.sidebar-box{border-top:3px solid #222;padding:14px 0;margin-bottom:26px}.sidebar-box h3{font-family:var(--serif);font-size:21px;margin:0 0 10px}.sidebar-news{padding:10px 0;border-bottom:1px solid var(--line)}.sidebar-news h4{font-family:var(--serif);font-size:16px;line-height:1.35;margin:0}.category-header{border-bottom:3px solid #222;padding-bottom:12px;margin-bottom:24px}.category-header h1{font-family:var(--serif);font-size:34px;margin:0}.category-feature{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}.category-feature img{width:100%;aspect-ratio:16/9;object-fit:cover}.category-feature h2{font-family:var(--serif);font-size:30px;line-height:1.25;margin:5px 0 9px}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px 20px}.category-card{border-bottom:1px solid var(--line);padding-bottom:14px}.category-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.category-card h3{font-family:var(--serif);font-size:18px;line-height:1.35;margin:9px 0 7px}.category-card p{font-size:12.5px;color:var(--muted);margin:0}.search-box{background:#f6f7f6;border:1px solid var(--line);padding:18px;margin-bottom:25px}.search-grid{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px}.search-grid input,.search-grid select{width:100%;border:1px solid #cfd5d1;background:#fff;padding:10px}.search-results{max-width:900px}.search-result{display:grid;grid-template-columns:220px 1fr;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.search-result img{width:220px;height:130px;object-fit:cover}.search-result h3{font-family:var(--serif);font-size:22px;line-height:1.35;margin:4px 0 7px}.search-result p{font-size:13px;color:var(--muted);margin:0}
/* E-paper */
.epaper-page{background:#f4f5f4;padding:24px 0 44px}.epaper-header-card{background:#fff;border:1px solid #dfe3e0;padding:18px 20px;margin-bottom:14px;display:flex;align-items:center;gap:18px;justify-content:space-between}.epaper-title-wrap h1{font-family:var(--serif);font-size:27px;margin:0 0 3px}.epaper-title-wrap p{margin:0;color:var(--muted);font-size:12px}.edition-nav{display:flex;align-items:center;gap:8px}.edition-nav a{font-size:12px;border:1px solid var(--line);padding:7px 10px;background:#fff}.edition-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.edition-filter input,.edition-filter select{border:1px solid var(--line);padding:8px;background:#fff}.reader-wrap{display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px}.reader-sidebar{background:#1b1e1c;padding:10px;min-height:77vh}.reader-side-title{color:#fff;font-size:12px;font-weight:800;margin:0 0 9px}.thumbs{display:grid;gap:9px;max-height:72vh;overflow:auto}.thumb{border:2px solid transparent;background:#fff;padding:0;cursor:pointer;position:relative}.thumb.active{border-color:#f1c94b}.thumb img{width:100%;aspect-ratio:.705;object-fit:cover}.thumb span{position:absolute;right:3px;bottom:2px;background:rgba(0,0,0,.7);color:#fff;padding:1px 5px;font-size:9px}.reader-main{min-width:0}.reader-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;background:#232724;color:#fff;padding:8px 10px}.reader-toolbar .btn{padding:7px 10px;border-radius:2px;font-size:11px}.reader-toolbar .btn-soft{background:#fff;color:#222}.reader-counter{font-weight:850;font-size:12px;margin-right:auto}.reader-stage{height:77vh;overflow:auto;background:#707570;display:flex;align-items:flex-start;justify-content:center;padding:20px;position:relative}.reader-page-wrap{position:relative;transform-origin:top center;transition:transform .12s ease}.reader-page{max-width:none;width:820px;background:#fff;box-shadow:0 10px 38px rgba(0,0,0,.32)}.hotspot{position:absolute;border:2px solid transparent;background:rgba(255,255,255,0);cursor:pointer;transition:.2s}.hotspot:hover{border-color:#ffc928;background:rgba(255,201,40,.17)}.reader-tip{font-size:11px;color:#6d756f;margin:10px 0}.recent-editions{margin-top:24px}.recent-editions-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.edition-card{border:1px solid var(--line);background:#fff;padding:8px}.edition-card img{width:100%;aspect-ratio:.705;object-fit:cover;background:#f4f4f4}.edition-card h3{font-family:var(--serif);font-size:14px;margin:7px 0 2px}.edition-card .news-meta{font-size:10px}.archive-toolbar{display:flex;gap:8px;flex-wrap:wrap;background:#f6f7f6;border:1px solid var(--line);padding:15px;margin-bottom:22px}.archive-toolbar select{border:1px solid #cfd5d1;padding:9px;background:#fff}.archive-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
/* Pagination */
.pagination{display:flex;list-style:none;gap:6px;padding:0;justify-content:center;margin-top:28px}.pagination .page-link,.pagination a,.pagination span{display:block;border:1px solid var(--line);padding:7px 10px;background:#fff}.pagination .active .page-link{background:var(--brand);color:#fff;border-color:var(--brand)}.pagination .disabled .page-link{opacity:.45}
/* Footer */
.footer{background:#111512;color:#cbd2cd;margin-top:0}.footer-top{padding:27px 0 20px;border-bottom:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:space-between}.footer-logo{font-family:var(--serif);font-size:37px;color:#fff;font-weight:950}.footer-logo span{font-size:15px;margin-right:4px}.footer-social{font-size:12px;color:#929b95}.footer-grid{padding:30px 0;display:grid;grid-template-columns:1.4fr .7fr .7fr 1fr;gap:32px}.footer-grid h3{font-family:var(--serif);font-size:18px;color:#fff;margin:0 0 10px}.footer-grid p{font-size:12px;margin:6px 0;color:#aab3ad}.copyright{border-top:1px solid rgba(255,255,255,.1);padding:12px 0;font-size:11px;color:#858f88}
.empty{padding:35px;background:var(--soft);text-align:center;color:var(--muted)}
/* Admin retained */
.admin-body{background:#f2f5f3}.admin-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.admin-side{background:#092f1e;color:#dbe9e0;padding:20px 14px;position:sticky;top:0;height:100vh}.admin-logo{font-family:var(--serif);color:white;font-size:28px;font-weight:900;padding:8px 10px 20px}.admin-user{font-size:12px;padding:11px;background:rgba(255,255,255,.08);border-radius:8px;margin-bottom:14px}.admin-nav a{display:block;padding:10px 12px;border-radius:7px;margin:3px 0;color:#dbe9e0}.admin-nav a:hover,.admin-nav a.active{background:#0b6c42;color:white}.admin-main{padding:24px 28px}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.admin-top h1{font-size:26px;margin:0}.stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:20px}.stat{background:white;padding:16px;border-radius:9px;border:1px solid #e3e9e5}.stat b{font-size:28px;color:var(--brand);display:block}.panel{background:white;border:1px solid #e1e7e3;border-radius:10px;padding:18px;margin-bottom:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.panel-head h2{font-size:19px;margin:0}.table-wrap{overflow:auto}table.admin-table{border-collapse:collapse;width:100%;font-size:13px}table.admin-table th,table.admin-table td{padding:10px;border-bottom:1px solid #e4e9e6;text-align:left;vertical-align:top}table.admin-table th{background:#f6f8f7;color:#526059}.badge{font-size:11px;padding:4px 8px;border-radius:999px;background:#e7efea;color:#31513e}.badge.green{background:#dff4e8;color:#12633c}.badge.red{background:#fde7e7;color:#a92c2c}.badge.gold{background:#fff0d5;color:#8a6418}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{margin-bottom:14px}.field.full{grid-column:1/-1}.field label{display:block;font-size:13px;font-weight:800;margin-bottom:5px}.field input,.field textarea,.field select{width:100%;padding:10px 11px;border:1px solid #ccd7d0;border-radius:7px;font-family:inherit;background:#fff}.field textarea{min-height:120px;resize:vertical}.field textarea.editor{min-height:360px}.checkline{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.checkline label{display:flex;gap:7px;align-items:center;font-weight:600}.checkline input{width:auto}.alert{padding:11px 14px;border-radius:7px;margin-bottom:15px}.alert.success{background:#e2f5e9;color:#165e38}.alert.error{background:#fde9e8;color:#8f2f2a}.actions{display:flex;gap:7px;flex-wrap:wrap}.linkbtn{border:0;background:none;color:var(--brand);font-weight:700;cursor:pointer;font-family:inherit}.danger{color:#b72e2e}.login-page{min-height:100vh;background:linear-gradient(135deg,#053621,#0a6c43);display:grid;place-items:center;padding:20px}.login-card{width:min(430px,100%);background:white;border-radius:14px;padding:30px;box-shadow:0 24px 70px rgba(0,0,0,.28)}.login-card h1{font-family:var(--serif);color:var(--brand);font-size:34px;margin:0;text-align:center}.login-card .sub{text-align:center;color:var(--muted);margin:2px 0 22px}.login-card input{width:100%;padding:12px;border:1px solid #ced8d2;border-radius:7px;margin-top:5px}.login-card button{width:100%;margin-top:12px}.help{font-size:12px;color:#77827b}
@media(max-width:1050px){.lead-layout{grid-template-columns:1fr}.lead-right{border-left:0;padding-left:0;display:grid;grid-template-columns:1fr 280px;gap:25px}.rail-tabs{border-top:1px solid var(--line)}.category-grid{grid-template-columns:repeat(3,1fr)}.archive-grid{grid-template-columns:repeat(4,1fr)}.stat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.masthead-grid{grid-template-columns:1fr auto}.mast-left{display:none}.brand{justify-self:start}.brand-line{justify-content:flex-start}.brand-name{font-size:48px}.mast-actions{justify-self:end}.mainnav{justify-content:flex-start}.lead-main{grid-template-columns:1fr}.lead-main h1{font-size:32px}.signature-grid,.signature-main,.section-news-grid,.epaper-showcase-grid{grid-template-columns:1fr}.section-main-card{border-right:0;padding-right:0;border-bottom:1px solid var(--line);padding-bottom:20px}.opinion-grid{grid-template-columns:repeat(2,1fr)}.content-grid{grid-template-columns:1fr}.category-feature{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,1fr)}.reader-wrap{grid-template-columns:90px 1fr}.archive-grid{grid-template-columns:repeat(3,1fr)}.recent-editions-grid{grid-template-columns:repeat(4,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.search-grid{grid-template-columns:1fr 1fr}.admin-shell{grid-template-columns:1fr}.admin-side{position:relative;height:auto}.admin-nav{display:flex;overflow:auto}.admin-nav a{white-space:nowrap}.form-grid{grid-template-columns:1fr}}
@media(max-width:650px){.container{width:min(100% - 20px,1240px)}.site-topbar-inner{height:31px}.top-links a:not(.top-epaper){display:none}.masthead-grid{min-height:86px;grid-template-columns:38px 1fr 42px}.mast-left{display:block}.mobile-menu-button{display:grid}.text-action{display:none}.brand{justify-self:center}.brand-small{font-size:13px;margin-bottom:5px}.brand-name{font-size:39px;letter-spacing:-1px}.brand-tag{font-size:9.5px;margin-top:5px}.mast-actions{justify-self:end}.mast-link{display:none}.epaper-button{width:38px;height:38px;border-radius:50%;padding:0;display:grid;place-items:center;font-size:0}.epaper-button span{font-size:17px}.nav-wrap{display:none;position:relative}.nav-wrap.open{display:block}.mainnav{display:grid;padding:6px 0}.mainnav a{border-bottom:1px solid var(--line);padding:10px 4px}.breaking-row{min-height:40px}.breaking-label{font-size:10px}.home-lead{padding-top:16px}.lead-main{gap:12px}.lead-main h1{font-size:28px}.lead-main p{font-size:14px}.lead-secondary-grid{grid-template-columns:1fr}.compact-card{grid-template-columns:125px 1fr}.compact-card img{width:125px;height:79px}.compact-card:nth-last-child(-n+2){border-bottom:1px solid var(--line)}.lead-right{grid-template-columns:1fr}.mini-epaper{display:grid;grid-template-columns:100px 1fr;gap:10px}.mini-epaper-head{grid-column:1/-1}.mini-paper-cover{width:100px;margin:0}.mini-epaper-info{text-align:left;align-content:center}.epaper-read-full{grid-column:1/-1}.section-heading h2{font-size:23px}.signature-main h2{font-size:25px}.signature-side{grid-template-columns:1fr 1fr}.section-card-list{grid-template-columns:1fr}.section-list-item:nth-last-child(-n+2){border-bottom:1px solid var(--line);margin-bottom:15px}.opinion-grid{grid-template-columns:1fr}.epaper-showcase{padding:35px 0}.epaper-showcase-copy h2{font-size:30px}.epaper-stack{width:205px}.epaper-stack img{width:205px}.paper-shadow{width:190px;height:270px}.article-title{font-size:34px}.article-excerpt{font-size:16px}.article-body{font-size:18px}.category-grid{grid-template-columns:1fr 1fr;gap:16px 12px}.category-card h3{font-size:16px}.search-grid{grid-template-columns:1fr}.search-result{grid-template-columns:120px 1fr;gap:12px}.search-result img{width:120px;height:80px}.search-result h3{font-size:17px}.search-result p{display:none}.reader-wrap{display:block}.reader-sidebar{min-height:auto;padding:7px}.reader-side-title{display:none}.thumbs{display:flex;max-height:none;overflow:auto}.thumb{width:64px;flex:none}.reader-stage{height:68vh;padding:8px}.reader-page{width:650px}.reader-toolbar .btn{font-size:10px;padding:6px 7px}.recent-editions-grid{grid-template-columns:repeat(3,1fr)}.archive-grid{grid-template-columns:repeat(2,1fr);gap:12px}.footer-top{display:block}.footer-social{margin-top:4px}.footer-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr 1fr}.admin-main{padding:16px 10px}}
.hotspot-editor-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:22px}.hotspot-page-select{margin-bottom:10px;padding:9px;border:1px solid #ccd7d0;background:#fff}.hotspot-canvas{position:relative;display:inline-block;max-width:100%;background:#dfe4e1;line-height:0;user-select:none}.hotspot-canvas img{max-width:100%;max-height:720px;display:block;cursor:crosshair}.hotspot-draft{position:absolute;display:none;border:2px solid #ffbd00;background:rgba(255,189,0,.22);pointer-events:none}@media(max-width:850px){.hotspot-editor-grid{grid-template-columns:1fr}}

/* Dynamic site logo */
.brand-image{display:flex;align-items:center;justify-content:center;min-width:0}
.site-logo-image{display:block;width:min(570px,48vw);max-height:108px;object-fit:contain;object-position:center;background:#fff}
.footer-logo-image{display:inline-flex;align-items:center;background:#fff;border-radius:5px;padding:7px 10px;line-height:1}
.footer-logo-image img{display:block;width:min(330px,40vw);max-height:72px;object-fit:contain}
.admin-logo-image{display:block;background:#fff;border-radius:8px;padding:8px;margin:4px 4px 18px}
.admin-logo-image img{display:block;width:100%;height:auto;max-height:70px;object-fit:contain}
.login-logo-wrap{background:#fff;border:1px solid #e5ebe7;border-radius:10px;padding:12px;margin:0 auto 8px;text-align:center}
.login-logo-wrap img{display:block;width:min(100%,340px);max-height:92px;object-fit:contain;margin:auto}
.settings-section{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #e2e9e4}
.logo-setting-grid{display:grid;grid-template-columns:minmax(290px,.9fr) 1.1fr;gap:24px;align-items:center}
.logo-preview-box{border:1px dashed #b9c9bf;background:#fbfcfb;border-radius:10px;padding:16px;min-height:145px;display:flex;flex-direction:column;justify-content:center}
.logo-preview-label{display:block;font-size:11px;font-weight:800;color:#728078;margin-bottom:8px}
.logo-preview-box img{display:block;width:100%;max-height:115px;object-fit:contain;background:#fff}
.single-check{font-size:13px;color:#526059}
.single-check input{width:auto}
.settings-general-grid{padding-top:2px}

@media(max-width:850px){
  .site-logo-image{width:min(500px,52vw);max-height:92px}
  .logo-setting-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
  .site-logo-image{width:min(270px,66vw);max-height:64px}
  .footer-logo-image img{width:min(280px,70vw);max-height:60px}
  .logo-preview-box{min-height:110px}
}

/* Role & Permission Management */
.admin-role-label{display:inline-block;margin-top:4px;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.12);font-size:10px;color:#dff4e8}
.admin-nav-group-label{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#88ad9a;padding:14px 12px 4px}
.role-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#fff,#f1f8f4)}
.role-intro h2{margin:0 0 4px;font-size:20px}.permission-legend{display:flex;gap:8px;flex-wrap:wrap}
.permission-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:18px;padding-top:18px;border-top:1px solid #e2e9e4}.permission-head h2{margin:0 0 4px;font-size:20px}
.permission-table-wrap{margin-top:13px;border:1px solid #e1e8e3;border-radius:9px}.permission-table th:not(:first-child),.permission-table td:not(:first-child){text-align:center}.permission-module-cell{min-width:250px}.permission-check-cell{min-width:70px}.permission-na{color:#b8c0bb}
.permission-switch{position:relative;display:inline-block;width:42px;height:23px}.permission-switch input{opacity:0;width:0;height:0}.permission-switch span{position:absolute;inset:0;cursor:pointer;background:#d6ddd9;border-radius:999px;transition:.18s}.permission-switch span:before{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;background:white;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.16);transition:.18s}.permission-switch input:checked+span{background:var(--brand)}.permission-switch input:checked+span:before{transform:translateX(19px)}

.user-security-note{padding:12px 14px;border-left:4px solid var(--brand);background:#f1f8f4;border-radius:6px;margin:4px 0 18px;color:#425249;font-size:13px}.user-security-note a{color:var(--brand)}
@media(max-width:850px){.role-intro,.permission-head{align-items:flex-start;flex-direction:column}.permission-table-wrap{overflow:auto}.permission-module-cell{min-width:220px}}
/* =========================================================
   ADMIN SIDEBAR - FINAL FIX
   Scroll + Background + Text Color + Hover + Logout
   ========================================================= */

/* Main admin layout */
.admin-shell {
    min-height: 100vh;
    align-items: flex-start;
}

/* Sidebar */
.admin-side {
    position: sticky;
    top: 0;

    height: 100vh;
    min-height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;

    padding-bottom: 35px;

    color: #f4fff8;
}

/* Sidebar navigation */
.admin-nav {
    padding-bottom: 35px;
}

/* User information box */
.admin-user {
    background: rgba(255, 255, 255, 0.08);
    color: #f4fff8 !important;
}

.admin-user b {
    color: #ffffff !important;
}

.admin-user span {
    color: #ffffff !important;
}

.admin-user .admin-role-label {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
}


/* ---------------------------------------------------------
   Sidebar Menu
   --------------------------------------------------------- */

.admin-nav a {
    display: block;

    color: #e8f7ee !important;

    text-decoration: none;

    border-radius: 6px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

/* Menu hover */
.admin-nav a:hover {
    color: #ffffff !important;

    background: rgba(255, 255, 255, 0.10);
}

/* Active/focus menu */
.admin-nav a:focus,
.admin-nav a:active {
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   Section Labels
   ACCESS CONTROL / অন্যান্য
   --------------------------------------------------------- */

.admin-nav-group-label {
    color: #9fd5b4 !important;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* ---------------------------------------------------------
   Logout Button
   --------------------------------------------------------- */

.admin-nav form {
    margin: 0;
    padding: 0;
}

.admin-nav form button,
.admin-nav .linkbtn {
    width: 100%;

    display: block;

    text-align: left;

    background: transparent;

    border: none;

    color: #ffd6d6 !important;

    cursor: pointer;

    font-family: inherit;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

/* Logout hover */
.admin-nav form button:hover,
.admin-nav .linkbtn:hover {
    color: #ffffff !important;

    background: rgba(180, 30, 30, 0.45);
}


/* ---------------------------------------------------------
   Sidebar Scrollbar
   --------------------------------------------------------- */

.admin-side::-webkit-scrollbar {
    width: 6px;
}

.admin-side::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.admin-side::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);

    border-radius: 10px;
}

.admin-side::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}


/* Firefox scrollbar */
.admin-side {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.28)
        transparent;
}
/* =========================================================
   E-PAPER EDITION ADMIN
   Create / Edit / Pages / Hotspot
   ========================================================= */

.edition-form-panel {
    width: 100%;
    max-width: 1180px;
    padding: 28px;
    border: 1px solid #dbe4df;
    border-radius: 15px;
    background: #fff;
}


/* ===========================
   FORM GRID
   =========================== */

.edition-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
}

.edition-field {
    min-width: 0;
}

.edition-field label {
    display: block;
    margin-bottom: 8px;

    color: #173d31;

    font-size: 16px;
    font-weight: 700;
}

.edition-control {
    width: 100%;
    min-height: 55px;

    box-sizing: border-box;

    padding: 11px 14px;

    border: 1px solid #cbd9d3;
    border-radius: 8px;

    background: #fff;
    color: #243d35;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.edition-control:focus {
    border-color: #07885d;

    box-shadow:
        0 0 0 3px rgba(7, 136, 93, .12);
}

.edition-control:disabled {
    background: #f3f6f4;
    color: #75877f;
}


/* ===========================
   FILE INPUT
   =========================== */

.edition-file-control {
    padding: 8px;
}

.edition-file-control::file-selector-button {
    padding: 10px 16px;
    margin-right: 10px;

    border: 1px solid #c2cec8;
    border-radius: 6px;

    background: #f2f5f3;
    color: #173d31;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.edition-file-control::file-selector-button:hover {
    background: #e7eeea;
}


/* ===========================
   HELP TEXT
   =========================== */

.edition-help {
    margin-top: 7px;

    color: #75877f;

    font-size: 13px;
    line-height: 1.55;
}

.edition-current-file {
    margin-top: 12px;
    padding: 11px 13px;

    border-radius: 7px;

    background: #edf5f1;

    color: #527067;

    font-size: 13px;

    word-break: break-all;
}


/* ===========================
   FEATURED
   =========================== */

.edition-featured {
    margin-top: 28px;
}

.edition-featured label {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: #173d31;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
}

.edition-featured input {
    width: 18px;
    height: 18px;

    accent-color: #07885d;
}


/* ===========================
   SAVE / BACK
   =========================== */

.edition-form-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 28px;
}

.edition-save-btn,
.edition-back-btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 0 25px;

    border-radius: 6px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

.edition-save-btn {
    border: none;

    background: #07885d;

    color: #fff;
}

.edition-save-btn:hover {
    background: #066f4c;
}

.edition-back-btn {
    border: 1px solid #d4ddd9;

    background: #eef2f0;

    color: #173d31;
}

.edition-back-btn:hover {
    background: #e2e9e5;
}


/* ===========================
   SECTION HEADER
   =========================== */

.edition-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.edition-section-head h2 {
    margin: 0;
}


/* ===========================
   CURRENT PAGES
   =========================== */

.edition-pages-panel,
.edition-hotspot-panel {
    margin-top: 25px;
}

.edition-page-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(190px, 1fr));

    gap: 20px;
}

.edition-page-card {
    overflow: hidden;

    border: 1px solid #dbe4df;
    border-radius: 10px;

    background: #fff;
}

.edition-page-image-wrap {
    position: relative;

    height: 240px;

    overflow: hidden;

    background: #edf2ef;
}

.edition-page-image-wrap img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.edition-existing-page-number {
    position: absolute;

    top: 10px;
    right: 10px;

    min-width: 31px;
    height: 31px;

    padding: 0 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border-radius: 8px;

    background: #06513c;
    color: #fff;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 2px 5px rgba(0,0,0,.15);
}

.edition-page-info {
    padding: 14px;
}

.edition-page-info h3 {
    margin: 0 0 5px;

    color: #173d31;
}


/* ===========================
   DELETE BUTTON
   =========================== */

.edition-delete-btn {
    margin-top: 10px;

    padding: 7px 12px;

    border: 1px solid #e6b8b8;
    border-radius: 5px;

    background: #fff4f4;

    color: #b42323;

    font-family: inherit;
    font-weight: 600;

    cursor: pointer;
}

.edition-delete-btn:hover {
    background: #b42323;
    color: #fff;
}


/* ===========================
   EMPTY STATE
   =========================== */

.edition-empty-state {
    padding: 25px;

    border: 1px dashed #bfd0c7;
    border-radius: 9px;

    background: #f7faf8;

    color: #647a70;

    text-align: center;
}


/* ===========================
   HOTSPOT EDITOR
   =========================== */

.edition-hotspot-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, .65fr);

    gap: 30px;

    align-items: start;
}

.edition-hotspot-form {
    padding: 22px;

    border: 1px solid #dbe4df;
    border-radius: 10px;

    background: #f9fbfa;
}

.edition-hotspot-form .edition-field {
    margin-bottom: 18px;
}

.edition-position-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}


/* Hotspot canvas */

.hotspot-canvas {
    position: relative;

    width: 100%;

    margin-top: 15px;

    overflow: hidden;

    border: 1px solid #cbd9d3;
    border-radius: 8px;

    background: #edf2ef;

    user-select: none;
}

.hotspot-canvas img {
    width: 100%;
    height: auto;

    display: block;

    pointer-events: none;
}

.hotspot-draft {
    position: absolute;

    display: none;

    border: 2px solid #07885d;

    background: rgba(7,136,93,.18);

    pointer-events: none;
}

.hotspot-help-text {
    padding: 10px;

    border-radius: 6px;

    background: #f4f8f6;
}


/* ===========================
   HOTSPOT LIST
   =========================== */

.edition-hotspot-list {
    margin-top: 30px;
}

.edition-hotspot-list h3 {
    margin-bottom: 14px;

    color: #173d31;
}


/* =========================================================
   FINAL SMART E-PAPER UPLOAD VIEW
   ========================================================= */

.edition-smart-upload-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;

    margin-top: 36px;
}


/* Main upload cards */

.edition-smart-card {
    min-width: 0;

    padding: 28px;

    box-sizing: border-box;

    border: 1px solid #d6e2dc;
    border-radius: 16px;

    background: #ffffff;
}

.edition-smart-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 24px;
}

.edition-smart-card-head h3 {
    margin: 0;

    color: #173d31;

    font-size: 23px;
    font-weight: 800;
}

.edition-smart-caption {
    margin-top: 5px;

    color: #70837a;

    font-size: 13px;
}

.edition-smart-recommended {
    flex-shrink: 0;

    padding: 7px 17px;

    border-radius: 999px;

    background: #d2eee2;

    color: #07885d;

    font-size: 13px;
    font-weight: 700;
}


/* ===========================
   UPLOAD STATUS
   =========================== */

.edition-upload-status {
    margin-top: 13px;

    padding: 11px 13px;

    border: 1px solid #dbe5e0;
    border-radius: 7px;

    background: #f7faf8;

    color: #61766c;

    font-size: 13px;
    line-height: 1.6;

    word-break: break-word;
}


/* ===========================
   PDF NOTE
   =========================== */

.edition-pdf-simple-note {
    margin-top: 20px;

    padding: 15px;

    border-left: 4px solid #0b8a60;
    border-radius: 6px;

    background: #f2f8f5;

    color: #536d63;

    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   LIVE MULTIPLE PAGE IMAGE PREVIEW
   ========================================================= */

.edition-live-preview {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-top: 22px;
}


/* Individual thumbnail card */

.edition-live-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #c5d5cd;
    border-radius: 9px;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(18,65,49,.06);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.edition-live-card:hover {
    border-color: #9bbdaf;

    box-shadow:
        0 5px 16px rgba(18,65,49,.12);

    transform: translateY(-1px);
}


/* Thumbnail image */

.edition-live-image {
    height: 190px;

    overflow: hidden;

    background: #eef3f0;
}

.edition-live-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* Page number - top right */

.edition-live-number {
    position: absolute;

    top: 8px;
    right: 8px;

    z-index: 8;

    min-width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 0 7px;

    border-radius: 8px;

    background: #06513c;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 2px 5px rgba(0,0,0,.15);
}


/* =========================================================
   REMOVE / CROSS BUTTON
   Top-left of each selected thumbnail
   ========================================================= */

.edition-live-remove {
    position: absolute;

    top: 8px;
    left: 8px;

    z-index: 10;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: #dc2626;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(0,0,0,.24);

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.edition-live-remove:hover {
    background: #b91c1c;

    transform: scale(1.08);

    box-shadow:
        0 3px 10px rgba(0,0,0,.30);
}

.edition-live-remove:active {
    transform: scale(.95);
}

.edition-live-remove:focus {
    outline: 3px solid rgba(220,38,38,.22);
    outline-offset: 2px;
}


/* Thumbnail info */

.edition-live-info {
    padding: 11px 12px 13px;
}

.edition-live-info strong {
    display: block;

    margin-bottom: 3px;

    color: #173d31;

    font-size: 14px;
}

.edition-live-info span {
    display: block;

    overflow: hidden;

    color: #71857c;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .edition-smart-upload-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 900px) {

    .edition-form-grid {
        grid-template-columns: 1fr;
    }

    .edition-hotspot-grid {
        grid-template-columns: 1fr;
    }

    .edition-featured {
        grid-column: auto;
    }

}


@media (max-width: 720px) {

    .edition-live-preview {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .edition-form-panel {
        padding: 17px;
    }

    .edition-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edition-save-btn,
    .edition-back-btn {
        width: 100%;
    }

    .edition-position-grid {
        grid-template-columns: 1fr;
    }

    .edition-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 480px) {

    .edition-smart-card {
        padding: 18px;
    }

    .edition-smart-card-head {
        flex-direction: column;
    }

    .edition-live-preview {
        grid-template-columns: 1fr;
    }

    .edition-live-remove {
        width: 32px;
        height: 32px;

        font-size: 22px;
    }

}