/*
Theme Name: Amar Bangla
Theme URI: https://amrbangla.com
Author: Amar Bangla Team
Author URI: https://amrbangla.com
Description: A modern Bengali news portal theme for amrbangla.com - সত্য প্রকাশে নির্ভীক
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amar-bangla
Tags: news, blog, Bengali, newspaper, responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Hind Siliguri',sans-serif;background:#f4f4f4;color:#222;font-size:15px}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}

/* TOP BAR */
.topbar{background:#1a1a2e;color:#ccc;font-size:12px;padding:5px 0}
.topbar .inner{max-width:1200px;margin:auto;padding:0 15px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:5px}
.topbar .socials a,.topbar .links a{color:#ccc;margin-left:10px;font-size:12px;transition:color .2s}
.topbar .socials a:hover,.topbar .links a:hover{color:#e63946}

/* HEADER */
header{background:#fff;border-bottom:3px solid #e63946;padding:12px 0}
header .inner{max-width:1200px;margin:auto;padding:0 15px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.logo-bn{font-size:42px;font-weight:700;color:#e63946;line-height:1}
.logo-en{font-size:13px;color:#555;letter-spacing:2px}
.tagline-txt{font-size:12px;color:#888;margin-top:2px}
.header-ad{background:#eee;width:400px;height:70px;display:flex;align-items:center;justify-content:center;color:#aaa;font-size:12px;border:1px dashed #ccc;border-radius:4px}
.header-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.weather-box{background:#f0f8ff;border:1px solid #dde;padding:5px 12px;border-radius:4px;font-size:13px}
.epaper-btn{background:#e63946;color:#fff;padding:6px 14px;border-radius:3px;font-size:12px;font-weight:600}
.epaper-btn:hover{background:#c1121f}

/* NAV */
nav.main-nav{background:#e63946;position:sticky;top:0;z-index:100;box-shadow:0 2px 6px rgba(0,0,0,.2)}
nav.main-nav .inner{max-width:1200px;margin:auto;padding:0 15px;display:flex;flex-wrap:wrap}
nav.main-nav a{color:#fff;padding:11px 14px;display:block;font-size:14px;font-weight:500;transition:background .2s;white-space:nowrap}
nav.main-nav a:hover,.current-menu-item a{background:rgba(0,0,0,.2)}

/* BREAKING */
.breaking{background:#fff;border-bottom:2px solid #e63946}
.breaking .inner{max-width:1200px;margin:auto;display:flex;align-items:center;overflow:hidden}
.breaking-label{background:#e63946;color:#fff;padding:8px 14px;font-size:13px;font-weight:700;white-space:nowrap;flex-shrink:0}
.ticker-wrap{overflow:hidden;flex:1}
.ticker{display:flex;animation:ticker 30s linear infinite;white-space:nowrap}
.ticker a{padding:8px 30px;font-size:13px;color:#333;border-right:1px solid #eee}
.ticker a:hover{color:#e63946}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* LAYOUT */
.site-container{max-width:1200px;margin:15px auto;padding:0 15px;display:grid;grid-template-columns:1fr 280px;gap:18px}
@media(max-width:900px){.site-container{grid-template-columns:1fr}}

/* SECTION TITLE */
.sec-title{display:flex;align-items:center;margin-bottom:12px;border-bottom:2px solid #e63946}
.sec-title span{background:#e63946;color:#fff;padding:6px 14px;font-size:14px;font-weight:700}
.sec-title .more{margin-left:auto;font-size:12px;color:#e63946;padding:6px 0;font-weight:600}
.sec-title .more:hover{text-decoration:underline}

/* HERO */
.hero{display:grid;grid-template-columns:1fr 280px;gap:15px;margin-bottom:18px}
@media(max-width:700px){.hero{grid-template-columns:1fr}}
.hero-main{position:relative;border-radius:4px;overflow:hidden}
.hero-main img{width:100%;height:340px;object-fit:cover}
.hero-main .overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.85));padding:20px 15px 15px}
.hero-main .overlay h2{color:#fff;font-size:20px;font-weight:700;line-height:1.4}
.hero-main .overlay .meta{color:#ccc;font-size:12px;margin-top:5px}
.hero-side{display:flex;flex-direction:column;gap:10px}
.hero-card{display:flex;gap:10px;background:#fff;border-radius:4px;overflow:hidden;transition:box-shadow .2s}
.hero-card:hover{box-shadow:0 2px 10px rgba(0,0,0,.12)}
.hero-card img{width:100px;height:75px;object-fit:cover;flex-shrink:0}
.hero-card .info{padding:8px;flex:1}
.hero-card h4{font-size:13px;font-weight:600;line-height:1.4;color:#222}
.hero-card h4:hover{color:#e63946}
.hero-card .meta{font-size:11px;color:#888;margin-top:3px}

/* NEWS GRID */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}
@media(max-width:650px){.news-grid{grid-template-columns:1fr 1fr}}
@media(max-width:400px){.news-grid{grid-template-columns:1fr}}
.news-card{background:#fff;border-radius:4px;overflow:hidden;transition:box-shadow .2s}
.news-card:hover{box-shadow:0 3px 12px rgba(0,0,0,.12)}
.news-card img{width:100%;height:150px;object-fit:cover}
.news-card .body{padding:10px}
.news-card h3{font-size:14px;font-weight:600;line-height:1.5;color:#222;margin-bottom:5px}
.news-card h3:hover{color:#e63946}
.news-card p{font-size:12px;color:#666;line-height:1.6}
.news-card .meta{font-size:11px;color:#999;margin-top:6px;padding-top:6px;border-top:1px solid #f0f0f0}

/* CAT TAG */
.cat-tag{background:#e63946;color:#fff;font-size:10px;padding:2px 7px;border-radius:2px;font-weight:600;display:inline-block;margin-bottom:6px}

/* LIST */
.list-news{background:#fff;border-radius:4px;padding:14px;margin-bottom:18px}
.list-item{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #f0f0f0;align-items:flex-start}
.list-item:last-child{border-bottom:none}
.list-item img{width:80px;height:60px;object-fit:cover;border-radius:3px;flex-shrink:0}
.list-item .num{font-size:24px;font-weight:700;color:#e0e0e0;width:28px;flex-shrink:0;line-height:1}
.list-item h4{font-size:13px;font-weight:600;line-height:1.4;color:#222}
.list-item h4:hover{color:#e63946}
.list-item .meta{font-size:11px;color:#888;margin-top:3px}

/* TWO COL */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
@media(max-width:650px){.two-col{grid-template-columns:1fr}}

/* AD */
.ad-banner{background:#fff;border:1px dashed #ccc;height:90px;display:flex;align-items:center;justify-content:center;color:#aaa;font-size:12px;border-radius:4px;margin-bottom:18px}

/* SIDEBAR */
.sidebar-widget{background:#fff;border-radius:4px;margin-bottom:18px;overflow:hidden}
.widget-title{background:#1a1a2e;color:#fff;padding:9px 14px;font-size:13px;font-weight:700;border-left:4px solid #e63946}
.widget-body{padding:12px}
.popular-item{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid #f0f0f0;align-items:center}
.popular-item:last-child{border-bottom:none}
.popular-item .num{font-size:22px;font-weight:700;color:#e63946;width:24px;flex-shrink:0;line-height:1}
.popular-item img{width:60px;height:45px;object-fit:cover;border-radius:3px;flex-shrink:0}
.popular-item h5{font-size:12px;font-weight:600;line-height:1.4;color:#333}
.popular-item h5:hover{color:#e63946}
.cat-links{display:flex;flex-wrap:wrap;gap:6px;padding:12px}
.cat-link{background:#f4f4f4;padding:5px 10px;border-radius:3px;font-size:12px;color:#444;border:1px solid #e0e0e0;transition:all .2s}
.cat-link:hover{background:#e63946;color:#fff;border-color:#e63946}
.social-btns{padding:10px}
.social-btn{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:4px;color:#fff;font-size:13px;font-weight:600;margin-bottom:6px}
.social-btn.fb{background:#1877f2}
.social-btn.yt{background:#ff0000}
.social-btn.tw{background:#1da1f2}
.social-btn .count{margin-left:auto;font-size:12px;opacity:.85}
.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px}
.photo-grid img{width:100%;height:80px;object-fit:cover;border-radius:3px}

/* FOOTER */
footer.site-footer{background:#1a1a2e;color:#aaa;margin-top:20px}
.footer-top{max-width:1200px;margin:auto;padding:30px 15px;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px}
@media(max-width:750px){.footer-top{grid-template-columns:1fr 1fr}}
@media(max-width:450px){.footer-top{grid-template-columns:1fr}}
.footer-logo{font-size:30px;font-weight:700;color:#e63946;margin-bottom:8px}
.footer-tagline{font-size:12px;color:#888;margin-bottom:10px}
.footer-about{font-size:12px;line-height:1.7;color:#888}
.footer-col h4{color:#fff;font-size:13px;font-weight:700;margin-bottom:12px;padding-bottom:6px;border-bottom:1px solid #333}
.footer-col ul{list-style:none}
.footer-col ul li{margin-bottom:7px}
.footer-col ul li a{font-size:12px;color:#888}
.footer-col ul li a:hover{color:#e63946}
.footer-col ul li a::before{content:"› ";color:#e63946}
.footer-bottom{background:#111;padding:12px 15px}
.footer-bottom .inner{max-width:1200px;margin:auto;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.footer-bottom p,.footer-bottom a{font-size:11px;color:#666}
.footer-bottom a{margin-left:12px}
.footer-bottom a:hover{color:#e63946}
