/*
Theme Name: Upazila Portal
Theme URI: https://example.com/upazila-portal
Author: Codex
Description: A dynamic, Bootstrap 5 based Bangla local government portal theme.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: upazila-portal
Tags: custom-logo, featured-images, translation-ready, bootstrap
*/

:root{--portal-green:#075b37;--portal-dark:#033b2a;--portal-red:#d82b27;--portal-gold:#e99119;--portal-bg:#f7f8f6}
body{font-family:"Noto Sans Bengali","Hind Siliguri",system-ui,sans-serif;background:var(--portal-bg);color:#1d2823;line-height:1.75}
a{color:var(--portal-green);text-decoration:none}a:hover{color:var(--portal-red)}
.topbar{font-size:.85rem;border-bottom:1px solid #edf0ed}.portal-identity{display:flex;flex-direction:column;align-items:flex-start}.site-branding .custom-logo,.portal-logo{display:block;max-height:78px;width:auto;object-fit:contain}.portal-logo-link{line-height:0}.site-title{font-weight:800;font-size:2rem;line-height:1;color:var(--portal-green)}.site-tagline{font-size:1rem;color:#26372e}.social-link{color:var(--portal-green);font-size:1.1rem;margin-left:.65rem}
.portal-nav{background:var(--portal-green)}.portal-nav .nav-link{color:#fff!important;font-weight:600;padding:.85rem 1rem!important}.portal-nav .nav-link:hover,.portal-nav .current-menu-item>.nav-link{background:#06482e}.navbar-toggler{border-color:#ffffff77}.navbar-toggler-icon{filter:invert(1)}
.hero-slide{min-height:420px;background-size:cover;background-position:center;position:relative;display:flex;align-items:center}.hero-slide:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,30,18,.75),rgba(0,30,18,.16))}.hero-copy{position:relative;color:#fff;max-width:570px}.hero-copy h1{max-width:510px;font-size:clamp(2.15rem,4.4vw,4.15rem);line-height:1.08;font-weight:800;text-shadow:0 3px 5px #000;margin-bottom:.28rem}.hero-subtitle{font-size:clamp(1.15rem,2.6vw,1.7rem);font-weight:700;margin-bottom:.75rem}.hero-copy p{font-size:1.12rem}.btn-portal{background:var(--portal-green);border-color:var(--portal-green);color:#fff}.btn-portal:hover{background:var(--portal-dark);color:#fff}
.notice-bar{margin-top:-1px;border:1px solid #e3e5e3;background:#fff}.notice-label{background:var(--portal-red);color:#fff;font-weight:700;padding:13px 24px;display:inline-block}.ticker{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.section-title{font-size:1.45rem;font-weight:800;text-align:center;margin:1.8rem 0 1rem}.section-title:after{content:"";display:block;background:var(--portal-green);width:40px;height:3px;margin:6px auto}
.service-card{display:block;text-align:center;border:1px solid #e3e8e3;border-radius:7px;padding:1.15rem .5rem;background:#fff;height:100%;transition:.2s}.service-card:hover{transform:translateY(-4px);box-shadow:0 7px 20px #06482e18}.service-icon{font-size:2.1rem;color:var(--portal-green);display:block;line-height:1.2}.service-card:nth-child(3n+2) .service-icon{color:var(--portal-gold)}.service-title{display:block;color:#1e2821;font-weight:650;margin-top:.5rem}
.portal-box{background:#fff;border:1px solid #e3e7e3;border-radius:8px;padding:1rem;height:100%;box-shadow:0 2px 6px #00000005}.box-title{font-weight:800;font-size:1.1rem;border-bottom:1px solid #e5e8e5;padding-bottom:.55rem;margin-bottom:.6rem}.box-title a{float:right;font-size:.76rem;font-weight:500}.post-mini{display:flex;gap:.7rem;padding:.55rem 0;border-bottom:1px solid #edf0ed}.post-mini:last-child{border:0}.post-mini img{height:52px;width:72px;object-fit:cover;border-radius:4px}.post-mini h3{font-size:.88rem;margin:0;line-height:1.5;font-weight:650}.post-date{font-size:.72rem;color:#758078}.notice-list{padding:0;margin:0;list-style:none}.notice-list li{padding:.6rem 0;border-bottom:1px solid #edf0ed}.notice-list li:before{content:"•";color:var(--portal-red);font-size:1.5rem;vertical-align:middle;margin-right:.5rem}.emergency{color:#fff;border-radius:4px;padding:.38rem .65rem;margin-bottom:.35rem;font-size:.88rem;font-weight:700;display:flex;justify-content:space-between;align-items:center}.emergency-more{display:block;text-align:center;font-size:.82rem;font-weight:700;margin-top:.85rem}.emergency-box .box-title{margin-bottom:.7rem}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}.gallery-grid img{width:100%;aspect-ratio:1.35;object-fit:cover;border-radius:4px}.about-thumb{max-height:190px;object-fit:cover}.stats{background:linear-gradient(120deg,var(--portal-green),#0d8053);color:#fff}.stat-item{border-right:1px solid #ffffff2b;padding:1rem}.stat-number{font-size:1.3rem;font-weight:800;display:block}.site-footer{background:#043229;color:#d9ede2}.site-footer h3{font-size:1.05rem;color:#fff;font-weight:800}.site-footer a{color:#d9ede2}.site-footer a:hover{color:#fff}.footer-bottom{background:#02251e;color:#c7ddd3;font-size:.8rem}.entry-content img{max-width:100%;height:auto}.wp-post-image{max-width:100%;height:auto}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}
.emergency{box-shadow:inset 0 -1px #00000018}
@media(max-width:991px){.site-title{font-size:1.55rem}.hero-slide{min-height:340px}.notice-label{padding:9px 14px}.stat-item{border-bottom:1px solid #ffffff2b;border-right:0}.topbar .justify-content-end{justify-content-start!important}.site-branding .custom-logo{max-height:58px}}@media(max-width:575px){.hero-slide{min-height:300px}.hero-copy h1{font-size:2rem}.gallery-grid{gap:.25rem}.site-tagline{font-size:.8rem}}
