/*
Theme Name: Bangla Kantho Original Clone
Theme URI: https://banglakantho.com
Author: Custom Developer
Description: Exact WordPress theme replica of banglakantho.com with Red/Dark Navy News Portal layout, Live Ticker, Lead Slider/Grid, Latest/Popular Tabs, Category Blocks, and Ad Spaces.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: banglakantho
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'SolaimanLipi', 'Kalpurush', 'Hind Siliguri', Arial, sans-serif; background-color: #f0f2f5; color: #222; line-height: 1.55; }
a { text-decoration: none; color: #1a1a1a; transition: 0.25s; }
a:hover { color: #d32f2f; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 15px; }

/* Top Bar */
.top-bar { background: #1e242b; color: #fff; padding: 7px 0; font-size: 13.5px; border-bottom: 2px solid #d32f2f; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-date { color: #e0e0e0; }
.top-right { display: flex; align-items: center; gap: 15px; }
.top-search form { display: flex; }
.top-search input[type="search"] { padding: 4px 10px; border: none; border-radius: 3px 0 0 3px; font-size: 13px; outline: none; width: 180px; }
.top-search button { background: #d32f2f; color: #fff; border: none; padding: 4px 12px; border-radius: 0 3px 3px 0; cursor: pointer; font-size: 13px; }
.social-links a { color: #fff; background: rgba(255,255,255,0.12); width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 12px; margin-left: 4px; }
.social-links a:hover { background: #d32f2f; }

/* Header Main */
.site-header { background: #ffffff; padding: 18px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-logo a { font-size: 38px; font-weight: 800; color: #d32f2f; letter-spacing: -0.5px; display: inline-block; }
.site-logo span { color: #1e242b; }
.header-ad { max-width: 728px; width: 100%; text-align: right; }

/* Navigation Bar */
.main-nav { background: #d32f2f; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; }
.main-nav ul li { position: relative; }
.main-nav ul li a { display: block; padding: 11px 15px; color: #fff; font-weight: 600; font-size: 15.5px; border-right: 1px solid rgba(255,255,255,0.15); }
.main-nav ul li a:hover, .main-nav ul li.current-menu-item > a { background: #9a0007; color: #fff; }
.main-nav ul ul { display: none; position: absolute; top: 100%; left: 0; background: #1e242b; min-width: 190px; z-index: 1000; flex-direction: column; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul ul li a { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 9px 14px; font-size: 14.5px; }

/* Breaking / Lead Section */
.lead-wrapper { display: grid; grid-template-columns: 2.1fr 1fr; gap: 20px; margin-top: 18px; }
.lead-left { display: flex; flex-direction: column; gap: 15px; }
.main-lead-card { background: #fff; padding: 14px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.main-lead-card img { width: 100%; height: 370px; object-fit: cover; border-radius: 3px; }
.main-lead-card h1 { font-size: 26px; margin: 12px 0 8px; line-height: 1.35; }
.main-lead-card p { color: #555; font-size: 15px; }

.sub-lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sub-lead-card { background: #fff; padding: 10px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.sub-lead-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }
.sub-lead-card h3 { font-size: 15.5px; line-height: 1.4; }

/* Sidebar Tabs (সর্বশেষ / জনপ্রিয়) */
.sidebar-tabs-box { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; }
.tab-buttons { display: flex; background: #1e242b; }
.tab-btn { flex: 1; padding: 11px; border: none; background: transparent; color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; font-family: inherit; }
.tab-btn.active { background: #d32f2f; }
.tab-content { padding: 10px 14px; max-height: 560px; overflow-y: auto; }
.tab-list-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.tab-list-item:last-child { border-bottom: none; }
.tab-list-item img { width: 85px; height: 58px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.tab-list-item h4 { font-size: 14.5px; line-height: 1.4; font-weight: 600; }

/* Ad Container */
.ad-slot { background: #fff; border: 1px dashed #ccc; padding: 10px; text-align: center; margin: 18px 0; border-radius: 4px; color: #888; font-size: 13px; }

/* Category Section Blocks (শীর্ষ, জাতীয়, আন্তর্জাতিক, খেলা, বিনোদন, জেলা, উপজেলা) */
.category-block { background: #fff; padding: 16px; margin-top: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.cat-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #d32f2f; margin-bottom: 16px; }
.cat-bar h2 { background: #d32f2f; color: #fff; font-size: 18px; padding: 6px 18px; border-radius: 3px 3px 0 0; }
.cat-bar a.more-link { font-size: 14px; font-weight: bold; color: #d32f2f; }
.cat-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.cat-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }
.cat-card h3 { font-size: 16px; line-height: 1.4; }

/* Two Column Category Row */
.two-col-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.two-col-cats .category-block { margin-top: 0; }
.cat-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Single Post & Archive */
.content-sidebar-wrap { display: grid; grid-template-columns: 2.2fr 1fr; gap: 22px; margin-top: 20px; }
.article-box { background: #fff; padding: 22px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.article-box h1 { font-size: 28px; line-height: 1.35; margin-bottom: 10px; }
.article-meta { color: #666; font-size: 14px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 16px; }
.article-body { font-size: 17.5px; line-height: 1.8; color: #222; }
.article-body p { margin-bottom: 15px; }

/* Footer (Bangla Kantho Style) */
.site-footer { background: #1e242b; color: #dcdcdc; margin-top: 35px; border-top: 4px solid #d32f2f; padding: 35px 0 20px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 20px; gap: 15px; }
.footer-menu ul { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-menu ul li a { color: #fff; font-size: 15px; }
.footer-menu ul li a:hover { color: #d32f2f; }
.footer-info { text-align: center; font-size: 14.5px; line-height: 1.8; color: #bbb; }
.footer-bottom { text-align: center; font-size: 13px; color: #888; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.07); }

@media (max-width: 900px) {
    .lead-wrapper, .content-sidebar-wrap, .two-col-cats { grid-template-columns: 1fr; }
    .cat-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .sub-lead-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
    .cat-grid-4, .cat-grid-2 { grid-template-columns: 1fr; }
    .main-lead-card img { height: 230px; }
}
