/* Prothom Style - your-site extras (admin settings, own ad slots, refined dark mode) */
body.ps-site{font-family:var(--font-family-base,'SolaimanLipi'),'SolaimanLipi',sans-serif}
.font-bangla{font-family:var(--font-family-base,'SolaimanLipi'),'SolaimanLipi',sans-serif}

/* logo height from Admin > Design Switcher */
@media (min-width:1280px){.ps-logo-img{max-height:var(--ps-logo-h,80px)!important}}
@media (max-width:767px){.ps-logo-img{max-height:var(--ps-mlogo-h,40px)!important}}

/* news title / body size from Admin */
@media (min-width:1024px){.ps-post-h1{font-size:var(--ps-post-title,40px)!important}}
@media (min-width:768px){.entry-content p{font-size:var(--ps-post-content,20px)}}

/* ads: your own ad code only; images never overflow */
.ps-ad-container img,.ps-feat-img-ad-wrap img,[class*="py-[5px]"] img{max-width:100%;height:auto;display:inline-block}
.ps-feat-ad-inner img{max-height:90px;width:auto}
.ps-popup-ad{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:16px}
.ps-popup-ad[hidden]{display:none}
.ps-popup-inner{position:relative;background:#fff;padding:10px;border-radius:8px;max-width:min(92vw,720px);max-height:90vh;overflow:auto}
.ps-popup-inner img{max-width:100%;height:auto}
.ps-popup-close{position:absolute;top:-12px;right:-12px;width:32px;height:32px;border-radius:50%;background:var(--color-primary);color:#fff;border:0;cursor:pointer;z-index:2;display:flex;align-items:center;justify-content:center}
.ps-sticky-bottom-ad{position:fixed;left:0;right:0;bottom:0;z-index:9990;background:#fff;box-shadow:0 -4px 14px rgba(0,0,0,.12);padding:4px}
.ps-sticky-bottom-ad .ps-popup-close{top:-14px;right:8px;width:26px;height:26px}
.ps-sticky-bottom-ad img{max-width:100%;max-height:100px;width:auto}

/* menu items coming from Admin > Menu */
.mega-menu-grid .sub-menu{margin-top:6px}

/* Mahamud Prime blocks inside this design */
.ps-mp-block{margin:24px 0 10px}
.ps-mp-block .mp-head-title,.ps-mp-block .mp-head-title a{font-family:inherit}
.ps-site .mp-card .mp-title,.ps-site .mp-gal h3{font-family:inherit}

/* ===== Dark mode (refined) ===== */
html.dark{color-scheme:dark;--mp-text:#e5e7eb;--mp-muted:#9ca3af;--mp-border:#334155;--mp-soft:#1e293b;--mp-dark:#0b1220}
html.dark body.ps-site{background:#0f172a}
html.dark .ps-single-article-card{background-color:#161d2a}
html.dark .entry-content a{color:#fca5a5}
html.dark .entry-content img{filter:brightness(.95)}
html.dark img.ps-light-logo{display:none!important}
html.dark .ps-popup-inner,html.dark .ps-sticky-bottom-ad{background:#111827}
html.dark .ps-feat-img-ad-wrap,html.dark .ps-feat-img-ad-wrap button{background-color:#111827!important;border-color:#374151!important}
html.dark .ps-feat-img-ad-wrap button i{color:#e5e7eb!important}
html.dark .ps-mp-block.mp-sec-dark{background:#060a14}
html.dark .ps-site .mp-card .mp-title,html.dark .ps-site .mp-head-title a{color:#f1f5f9}
html.dark .ps-site .mp-empty,html.dark .ps-site .mp-breadcrumb{color:#94a3b8}
html.dark .ps-site .mp-head{border-color:#334155}
html.dark .ps-site .mp-article,html.dark .ps-site .mp-list-ad,html.dark .ps-site .mp-special-card,html.dark .ps-site .mp-finder-grid a,html.dark .ps-site .mp-font-tools button{background:#1e293b;color:#e5e7eb}
html.dark .ps-site .mp-more-btn{background:#1e293b;color:#f1f5f9}
html.dark .ps-site img.mp-img{filter:brightness(.92)}
html.dark .ps-poll-all{background:#374151}
html.dark ::selection{background:var(--color-primary);color:#fff}

/* সারাদেশ grid: big column always matches the number of small news rows */
@media (min-width:1024px){.bangladesh-parent .div1{grid-row:span var(--ps-rows,6)}}
