/*
Theme Name: Muktodesh News
Theme URI: https://example.com/
Author: OpenAI
Description: Bengali newspaper theme based on the supplied homepage reference. Dynamic categories, news panels, video section and responsive layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: muktodesh
*/
:root{--navy:#062d67;--navy2:#001e4c;--blue:#0875df;--red:#e51d2a;--line:#e5e8ed;--ink:#101828;--muted:#687385;--paper:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:Arial,"Noto Sans Bengali","Hind Siliguri",sans-serif;font-size:16px;line-height:1.55}a{color:inherit;text-decoration:none}a:hover{color:#075fc1}img{max-width:100%;height:auto;display:block}.wrap{width:min(1240px,96%);margin:auto}
.topbar{background:var(--navy2);color:#fff;font-size:13px}.topbar .wrap{display:flex;justify-content:space-between;align-items:center;padding:6px 0}.social{display:flex;gap:14px;font-weight:bold}
.masthead{background:linear-gradient(110deg,#05285d,#064080);color:white;border-bottom:1px solid #4770a1}.masthead .wrap{min-height:86px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px}.hamb{font-size:30px;line-height:1}.brand{text-align:center}.brand a{font-size:40px;font-weight:900;letter-spacing:-2px;color:white;line-height:1.05}.brand small{display:block;font-size:13px;letter-spacing:0}.head-right{text-align:right}.subscribe{display:inline-block;background:#e3182c;padding:9px 16px;border-radius:3px;font-weight:bold;color:#fff}
.navbar{background:#063b7d;color:#fff}.nav-inner{display:flex;align-items:center;gap:0;min-height:40px;overflow-x:auto}.home-link{padding:8px 16px;background:#0875df}.nav-inner ul{display:flex;list-style:none;margin:0;padding:0;white-space:nowrap}.nav-inner li{position:relative}.nav-inner li a{display:block;padding:10px 13px;font-size:15px;font-weight:bold;color:#fff}.nav-inner li:hover>a{background:#0b58a5}.nav-inner .sub-menu{display:none;position:absolute;z-index:99;top:100%;left:0;min-width:190px;background:#07346c;box-shadow:0 5px 15px #0003}.nav-inner li:hover>.sub-menu{display:block}.nav-inner .sub-menu li a{padding:8px 12px}
.ticker{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:8px 0;overflow:hidden}.ticker-label{background:var(--red);color:#fff;font-weight:bold;padding:5px 12px;white-space:nowrap}.ticker-track{white-space:nowrap;overflow:hidden;flex:1}.ticker-track a{margin-right:28px;font-weight:600}.trending{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;padding:14px 0 10px}.trend{display:flex;gap:9px;align-items:center;min-width:0}.trend img{width:78px;height:64px;object-fit:cover;border-radius:4px}.trend a{font-size:14px;font-weight:bold;line-height:1.35}
.hero{display:grid;grid-template-columns:28% 46% 26%;gap:16px;padding:8px 0 18px;align-items:stretch}.lead-copy{padding:6px 0}.cat-label{display:inline-block;background:#0875df;color:#fff;padding:5px 12px;font-weight:bold;border-radius:2px;font-size:14px}.lead-copy h1{font-size:32px;line-height:1.22;margin:14px 0;font-weight:900}.meta{font-size:12px;color:var(--muted);margin:9px 0}.excerpt{font-size:16px;line-height:1.55}.readmore{display:inline-block;background:#0875df;color:#fff;padding:9px 15px;border-radius:3px;margin-top:10px;font-weight:bold}.lead-image img{width:100%;height:370px;object-fit:cover;border-radius:3px}.section-title{background:var(--navy);color:#fff;padding:7px 12px;font-size:21px;font-weight:800;margin:0 0 10px;border-radius:2px}.latest-list .news-row{display:flex;gap:10px;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #eee}.news-row img{width:86px;height:68px;object-fit:cover;border-radius:3px}.news-row a{font-weight:bold;line-height:1.35;font-size:15px}.news-row .meta{margin:4px 0 0}
.panel{padding:10px 0 14px}.panel-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--line);margin-bottom:10px}.panel-heading h2{font-size:21px;margin:0;padding:3px 10px;border-left:4px solid #0875df}.panel-heading a{font-weight:bold}.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.card{border:1px solid #e3e6eb;border-radius:3px;overflow:hidden;box-shadow:0 1px 3px #0000000b}.card img{width:100%;height:127px;object-fit:cover}.card .card-body{padding:7px 9px}.card h3{font-size:17px;line-height:1.3;margin:0 0 5px;font-weight:800}.video-band{background:var(--navy);color:#fff;padding:6px 10px;margin-bottom:8px;border-radius:2px;display:flex;justify-content:space-between;font-size:20px;font-weight:bold}.videos{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.video-card{border:1px solid #d8dce2;border-radius:4px;overflow:hidden}.video-thumb{position:relative}.video-thumb img{width:100%;height:130px;object-fit:cover}.play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;background:#e51d2a;color:#fff;display:grid;place-items:center;font-size:20px}.video-card h3{font-size:16px;line-height:1.3;margin:6px 9px}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:15px 0 22px}.category-box{border:1px solid #dfe3e9;border-radius:3px;overflow:hidden}.category-box h2{background:var(--navy);color:#fff;font-size:20px;padding:5px 10px;margin:0}.category-box .cat-feature img{width:100%;height:125px;object-fit:cover}.category-box ul{list-style:none;margin:0;padding:6px 10px}.category-box li{font-weight:bold;font-size:15px;line-height:1.35;padding:4px 0 4px 14px;position:relative}.category-box li:before{content:"";position:absolute;left:0;top:12px;width:7px;height:7px;border-radius:50%;background:#e51d2a}
footer{background:linear-gradient(110deg,#05285d,#001b49);color:#fff;margin-top:12px}.footer-main{padding:28px 0;display:grid;grid-template-columns:1fr 2fr 1fr;gap:20px;align-items:center}.footer-brand{font-size:36px;font-weight:900}.footer-links{display:flex;gap:20px;flex-wrap:wrap;justify-content:center}.footer-links a{border-right:1px solid #8da2c1;padding-right:16px}.footer-social{text-align:right}.copyright{border-top:1px solid #46618a;padding:12px 0;font-size:13px}.copyright .wrap{display:flex;justify-content:space-between;gap:15px}
.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding:18px 0}.entry-content{max-width:850px;margin:20px auto;font-size:18px}.entry-content img{margin:15px auto}.pagination{padding:20px 0}.pagination .page-numbers{padding:7px 11px;border:1px solid #ddd;margin-right:4px}
@media(max-width:900px){.hero{grid-template-columns:1fr 1.4fr}.latest-list{grid-column:1/-1}.latest-list .news-row{display:inline-flex;width:32%;vertical-align:top}.trending{grid-template-columns:repeat(3,1fr)}.cards{grid-template-columns:repeat(3,1fr)}.category-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.masthead .wrap{grid-template-columns:auto 1fr auto;min-height:68px}.brand a{font-size:28px}.brand small{font-size:10px}.subscribe{font-size:12px;padding:7px}.topbar .wrap{font-size:11px}.trending{grid-template-columns:repeat(2,1fr)}.trend img{width:65px;height:55px}.hero{grid-template-columns:1fr}.lead-copy h1{font-size:27px}.lead-image{grid-row:1}.lead-image img{height:240px}.latest-list .news-row{width:100%;display:flex}.cards{grid-template-columns:repeat(2,1fr);gap:8px}.card img{height:110px}.card h3{font-size:15px}.videos{grid-template-columns:repeat(2,1fr);gap:8px}.video-thumb img{height:100px}.category-grid{grid-template-columns:1fr 1fr;gap:8px}.category-box h2{font-size:17px}.category-box li{font-size:13px}.footer-main{grid-template-columns:1fr;text-align:center;padding:20px 0}.footer-social{text-align:center}.copyright .wrap{display:block;text-align:center}.archive-grid{grid-template-columns:repeat(2,1fr)}}

/* Homepage section order and reference layout */
.related-section{padding:10px 0 14px;border-top:1px solid var(--line)}
.related-section .panel-heading{margin-bottom:10px}
.related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.related-card{border:1px solid #e0e4ea;border-radius:3px;overflow:hidden;background:#fff}
.related-card img{width:100%;height:127px;object-fit:cover}
.related-card h3{font-size:17px;line-height:1.3;margin:0;padding:7px 9px 9px;font-weight:800}
.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.category-box .cat-feature img{height:127px}
.video-thumb img{height:130px}
@media(max-width:600px){.related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.related-card img{height:110px}.related-card h3{font-size:14px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
