/*
Theme Name: Hamar Kurigram
Author: Hamar Kurigram
Description: Responsive Bengali local news theme with district sections, advertisement areas and native WordPress publishing.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hamar-kurigram
License: GPL-2.0-or-later
*/
:root{--red:#e32932;--green:#008c58;--ink:#202725;--line:#e1e5e1}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:18px/1.7 system-ui,'Nirmala UI',sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--red)}a:focus-visible,button:focus-visible{outline:3px solid var(--green);outline-offset:4px}img{max-width:100%;height:auto} .wrap{width:min(1200px,92%);margin:auto}.utility{background:#f3f5f2;font-size:13px;padding:9px 0}.utility .wrap{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.masthead{display:flex;align-items:center;justify-content:space-between;padding:20px 0;gap:30px}.brand img{width:220px;height:130px;object-fit:contain}.brand{display:block}.custom-logo-link img{width:220px;height:130px;object-fit:contain}.tagline{font-size:15px;color:#58645e}.masthead form{display:flex}input[type=search]{padding:12px;border:1px solid var(--line);max-width:210px}button,input[type=submit]{padding:12px;background:var(--green);color:white;border:0;cursor:pointer}nav{border-top:1px solid var(--line);border-bottom:3px solid var(--red)}nav ul{list-style:none;display:flex;gap:26px;padding:12px 0;margin:0;flex-wrap:wrap}nav li{position:relative}nav .sub-menu{display:block;padding:8px;background:#fff} .ticker{display:flex;gap:18px;background:#f6f7f4;margin:20px 0;padding:12px 16px}.ticker strong{color:var(--red);white-space:nowrap}.ticker a{font-size:16px}.section-title{font-size:25px;border-bottom:2px solid var(--ink);padding-bottom:9px;display:flex;justify-content:space-between}.section-title a{font-size:14px;color:var(--green)}.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.news-card{border-bottom:1px solid var(--line);padding-bottom:20px}.news-card img{width:100%;aspect-ratio:16/10;object-fit:cover}.news-card h2{font-size:23px;line-height:1.45;margin:10px 0}.news-card:first-child h2{font-size:28px}.news-card p{font-size:16px;color:#59635e}.meta{font-size:13px;color:#68736c}.category{color:var(--green);font-size:14px}.placeholder{aspect-ratio:16/10;background:#edf3ee;display:grid;place-items:center;color:#71937e;font-size:24px}.districts{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 35px}.districts a{border:1px solid var(--line);padding:8px 18px;border-radius:3px}.districts a:hover{background:var(--green);color:#fff}.ad{background:#f5f5f2;text-align:center;padding:25px;margin:28px 0;color:#7c817b;font-size:14px}.ad .widget{max-width:100%}.article{max-width:800px;margin:35px auto}.article h1{font-size:clamp(30px,4vw,46px);line-height:1.4}.article .entry-content{font-size:20px}.entry-content a{color:var(--green);text-decoration:underline}.entry-content iframe{max-width:100%}.entry-content figure{max-width:100%;margin:20px 0}.entry-content table{width:100%}.pagination{padding:30px 0}.page-numbers{display:inline-block;padding:5px 13px;border:1px solid var(--line)}footer{background:#142a20;color:#ebf0ec;margin-top:50px;padding:35px 0;font-size:15px}footer .footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:25px}footer a{color:#fff}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:10px;top:10px;background:white;padding:10px;z-index:9}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}@media(max-width:760px){.news-grid{grid-template-columns:1fr 1fr}.masthead{flex-direction:column;gap:8px}.brand img{height:110px}nav ul{gap:15px;font-size:16px}.ticker{flex-direction:column;gap:2px}footer .footer-grid{grid-template-columns:1fr}}@media(max-width:480px){.news-grid{grid-template-columns:1fr}.news-card h2{font-size:24px}}

/* Compact masthead and overlay dropdowns — 1.0.1 */
.masthead{padding:8px 0;gap:18px}
.brand,.custom-logo-link{display:block;width:220px;height:112px;overflow:hidden;line-height:0}
.brand img,.custom-logo-link img{display:block;width:220px;height:220px;max-width:none;object-fit:contain;margin:-54px 0 0}
.tagline{margin:0;font-size:14px;line-height:1.4}
nav{position:relative;z-index:20}
nav .wrap>ul{gap:20px;padding:0;align-items:center}
nav .wrap>ul>li>a{display:block;padding:10px 0}
nav .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:190px;max-width:90vw;margin:0;padding:6px 0;list-style:none;background:#fff;border:1px solid var(--line);box-shadow:0 8px 20px #0002;z-index:30}
nav li:hover>.sub-menu,nav li:focus-within>.sub-menu{display:block}
nav .sub-menu li a{display:block;padding:6px 16px;line-height:1.5}
nav .sub-menu li a:hover,nav .sub-menu li a:focus{background:#f0f5f1}
@media(max-width:760px){.masthead{flex-direction:row;flex-wrap:wrap;justify-content:center;padding:8px 0;gap:10px}.masthead>div{text-align:center}.brand,.custom-logo-link{margin:auto}nav .wrap>ul{gap:0 16px}nav .wrap>ul>li>a{padding:8px 0}}
/* Newspaper layout — red and green edition 1.1.0 */
:root{--red:#dc2634;--green:#007346;--ink:#17251f;--line:#e0e7e2}
body{background:#fff}.wrap{width:min(1260px,94%)}
.utility{border-top:3px solid var(--green);background:#f5f7f5;padding:5px 0}
.masthead{position:relative;justify-content:center;min-height:130px;padding:4px 0 10px}.masthead>div{text-align:center}.masthead .brand,.masthead .custom-logo-link{margin:auto}.masthead form{position:absolute;right:0;top:45px}.tagline{font-size:13px;color:var(--green)}
nav{background:var(--green);color:#fff;border-top:0;border-bottom:4px solid var(--red)}nav .wrap>ul{justify-content:center;gap:0 24px}nav .wrap>ul>li>a{padding:11px 0;font-size:17px;font-weight:600}nav a:hover,nav a:focus{color:#fff3c9}nav .sub-menu{color:var(--ink);border-top:3px solid var(--red)}nav .sub-menu a:hover,nav .sub-menu a:focus{color:var(--green)}
.district-strip{display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;padding:13px 0;border-bottom:1px solid var(--line);font-size:15px;margin-bottom:20px}.district-strip strong{color:var(--red);border-right:3px solid var(--red);padding-right:12px}.district-strip a:hover{color:var(--green)}
.front-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;margin-top:22px}.section-title{font-size:25px;margin:0 0 20px;border-bottom:2px solid var(--green);position:relative;padding-bottom:10px;align-items:center;gap:10px}.section-title:after{content:'';position:absolute;bottom:-2px;left:0;width:65px;height:3px;background:var(--red)}.section-title span{font-size:13px;font-weight:400;color:#6a756f}
.lead-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.lead-grid>.news-card:first-child{grid-column:span 2;grid-row:span 2}.lead-grid>.news-card:first-child img,.lead-grid>.news-card:first-child .placeholder{aspect-ratio:16/10}.lead-grid>.news-card:first-child h2{font-size:34px;line-height:1.4}.lead-grid>.news-card:first-child p{font-size:18px}.lead-grid>.news-card:not(:first-child) h2{font-size:21px}.lead-grid>.news-card:not(:first-child) p{display:none}.news-card{padding-bottom:16px}.news-card img{display:block}.news-card h2{margin:8px 0}.news-card h2 a:hover{color:var(--green)}.category{margin-top:8px;color:var(--red)}.news-card p{margin:8px 0}.placeholder{background:linear-gradient(135deg,#edf5ef,#f8eeed);color:var(--green);font-size:18px}.latest-panel{border-left:1px solid var(--line);padding-left:22px}.latest-panel>h2{background:var(--red);color:white;padding:10px 15px;font-size:21px;margin:0}.latest-panel ol{padding:0;margin:0;list-style:none;counter-reset:news}.latest-panel li{position:relative;padding:15px 0 15px 35px;border-bottom:1px solid var(--line);font-size:17px;line-height:1.5;counter-increment:news}.latest-panel li:before{content:counter(news,decimal-leading-zero);position:absolute;left:0;top:15px;font-size:22px;color:var(--green);font-weight:700}.latest-panel time{display:block;margin-top:6px}.follow-box{background:#edf5ef;margin-top:24px;padding:18px;color:var(--green)}.follow-box p{margin:10px 0}.category-section{margin:35px 0}.section-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.section-grid .news-card h2,.section-grid .news-card:first-child h2{font-size:23px}.section-grid .news-card p{display:none}.ad{margin:20px 0}.article{padding-top:15px}footer{border-top:5px solid var(--red);background:#073d29}footer h2{color:#fff}.utility ul{display:flex;list-style:none;gap:10px;margin:0;padding:0}
@media(max-width:1000px){.front-layout{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.lead-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lead-grid>.news-card:first-child{grid-row:auto}.section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.masthead form{position:static}.masthead{justify-content:space-between}}
@media(max-width:760px){.front-layout{grid-template-columns:1fr}.latest-panel{border-left:0;padding-left:0}.latest-panel ol{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.masthead{justify-content:center;min-height:0;gap:8px}.masthead form{position:static}.masthead input[type=search]{width:150px}nav .wrap>ul{gap:0 17px;justify-content:flex-start}nav .wrap>ul>li>a{font-size:15px;padding:8px 0}.section-title span{display:none}.district-strip{gap:6px 15px;font-size:14px}.lead-grid>.news-card:first-child h2{font-size:29px}}
@media(max-width:480px){.lead-grid,.section-grid{grid-template-columns:1fr 1fr;gap:16px}.lead-grid>.news-card:first-child{grid-column:span 2}.lead-grid>.news-card:not(:first-child) h2,.section-grid .news-card h2,.section-grid .news-card:first-child h2{font-size:19px}.latest-panel ol{grid-template-columns:1fr}.masthead{flex-direction:column}.masthead form{margin-bottom:4px}.section-title{font-size:23px}}
/* Official slogan */
.tagline{line-height:1.6;font-size:13px;margin-top:2px}.masthead{padding-bottom:12px}footer .footer-grid>div>p:first-of-type{line-height:1.8}

/* Compact text identity, right aligned; ads follow the news block. */
.masthead.masthead-text{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:center;min-height:0;padding:14px 0;gap:20px}
.masthead-text .wordmark-block{order:2;text-align:right;margin-left:auto}
.wordmark{display:inline-block;font-size:clamp(32px,4vw,48px);line-height:1.25;font-weight:800;letter-spacing:-1px;white-space:nowrap}
.wordmark span:first-child{color:var(--red)}.wordmark span:last-child{color:var(--green)}
.masthead-text .tagline{font-size:13px;line-height:1.6;margin-top:4px}
.masthead.masthead-text form{position:static;order:1;margin:0}
.district-strip{margin-bottom:0;padding:10px 0}.front-layout{margin-top:18px}
@media(max-width:600px){.masthead.masthead-text{flex-wrap:wrap;padding:10px 0;gap:10px}.masthead-text .wordmark-block{order:0;flex-basis:100%;text-align:right}.masthead.masthead-text form{order:1;margin-left:auto}.masthead-text .tagline{font-size:12px}.front-layout{margin-top:14px}}
/* Refined masthead and explicit advertisement placement. */
.masthead-text .wordmark-block{position:relative;padding:8px 0 10px 22px;isolation:isolate}
.masthead-text .wordmark-block:after{content:'';position:absolute;right:0;bottom:0;width:82px;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--red) 0 35%,var(--green) 35%);animation:hk-brand-intro 1s ease-out both}
.wordmark{font-size:clamp(36px,4.5vw,54px);font-weight:900;letter-spacing:-1.3px;line-height:1.4;text-shadow:0 2px 0 #e9efe9;transition:transform .2s ease}.wordmark:hover{transform:translateY(-2px)}
.masthead-text .tagline{margin-top:5px;text-align:right;line-height:1.7}.slogan-main,.slogan-sub{display:block}.slogan-main{font-size:14px;font-weight:600;color:#174b35}.slogan-sub{font-size:12px;color:#56645b}.slogan-sub>span{color:var(--red)}
@keyframes hk-brand-intro{from{transform:scaleX(.2);transform-origin:right;opacity:0}to{transform:scaleX(1);transform-origin:right;opacity:1}}
.front-layout{align-items:start}.lead-news{min-width:0;display:block;padding-top:0;margin-top:0}.lead-news>.section-title{margin-top:0}.lead-ad-slot{display:block;margin:0 0 20px;padding:0;min-width:0;height:auto;background:#f5f8f5;border:1px solid #e1e9e2;border-radius:7px;overflow:hidden}.ad-label{display:block;font-size:10px;line-height:1.4;text-align:center;letter-spacing:1px;color:#76837b;padding:4px 0}.house-ad{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px 24px;background:radial-gradient(ellipse at right bottom,#dcefe1,transparent 65%),linear-gradient(110deg,#fff8f5,#eff7ef);border-left:4px solid var(--red);min-height:115px}.house-ad-copy{display:grid;gap:4px}.house-ad-copy strong{font-size:clamp(21px,2.2vw,29px);line-height:1.5;color:#174b35}.house-ad-copy>span{font-size:15px;color:#526459}.house-ad-action{flex-shrink:0;border-radius:5px;background:var(--green);color:#fff;padding:9px 15px;font-size:14px}.house-ad:hover .house-ad-action{background:#005936}.lead-ad-widget{width:100%;text-align:center}.lead-ad-widget img{display:block;margin:auto;max-width:100%;height:auto}.lead-ad-widget p{margin:0}.lead-ad-widget .adsbygoogle{min-width:0}
@media(max-width:600px){.masthead-text .wordmark-block{padding:2px 0 9px}.wordmark{font-size:40px}.slogan-main{font-size:12px}.slogan-sub{font-size:11px}.house-ad{padding:14px;gap:12px;flex-wrap:wrap;min-height:0}.house-ad-action{font-size:12px}.house-ad-copy strong{font-size:22px}.lead-ad-slot{margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){.masthead-text .wordmark-block:after{animation:none}.wordmark{transition:none}.wordmark:hover{transform:none}}