/*
Theme Name: Bangla Kantho Pro Edition
Theme URI: https://banglakantho.com
Author: Custom Developer
Description: Advanced Bangla News Portal WordPress Theme with Breaking News Ticker, Video Gallery, Photo Gallery, and 8 Ad Zones.
Version: 3.0
Text Domain: banglakantho-pro
*/

@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

:root {
    --primary: #d32f2f;
    --primary-dark: #9a0007;
    --secondary: #102027;
    --accent: #fbc02d;
    --bg: #f0f2f5;
    --white: #ffffff;
    --text: #1c1e21;
    --muted: #65676b;
    --border: #dcdfe6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'SolaimanLipi', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px; }
a { text-decoration: none; color: var(--text); transition: 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 15px; }

/* Top Bar */
.top-bar { background: var(--secondary); color: #e0e0e0; font-size: 14px; padding: 7px 0; border-bottom: 2px solid var(--primary); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-links a { color: #fff; margin-left: 12px; font-size: 13px; background: rgba(255,255,255,0.1); padding: 3px 10px; border-radius: 3px; }
.top-links a:hover { background: var(--primary); }

/* Header */
.site-header { background: var(--white); padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo-area h1 { font-size: 40px; color: var(--primary); font-weight: bold; line-height: 1.1; }
.logo-area p { font-size: 13px; color: var(--muted); }
.header-ad { flex: 1; max-width: 728px; text-align: right; }

/* Sticky Nav */
.main-nav { background: var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 3px 6px rgba(0,0,0,0.12); }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.main-nav ul li { position: relative; }
.main-nav ul li a { display: block; color: #fff; padding: 11px 15px; font-size: 16px; font-weight: bold; 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: var(--primary-dark); }
.main-nav ul ul { display: none; position: absolute; top: 100%; left: 0; background: var(--secondary); min-width: 190px; flex-direction: column; z-index: 1001; }
.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.1); padding: 9px 15px; font-size: 15px; }

/* Breaking News Ticker */
.ticker-wrap { background: var(--white); border: 1px solid var(--border); margin-top: 15px; display: flex; align-items: center; height: 40px; overflow: hidden; border-radius: 3px; }
.ticker-title { background: var(--primary); color: #fff; padding: 0 16px; height: 100%; display: flex; align-items: center; font-weight: bold; white-space: nowrap; font-size: 15px; }
.ticker-content { flex: 1; padding: 0 15px; overflow: hidden; }
.ticker-content marquee a { margin-right: 35px; font-weight: bold; color: var(--text); font-size: 15px; }
.ticker-content marquee a:hover { color: var(--primary); }

/* Ad Zones */
.ad-zone { margin: 18px 0; text-align: center; }
.ad-placeholder { background: #e9ecef; border: 1px dashed #adb5bd; color: #6c757d; padding: 12px; font-size: 13px; border-radius: 3px; }

/* Hero Lead Layout */
.hero-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; margin-top: 18px; }
.lead-main-box { background: var(--white); padding: 15px; border-radius: 4px; border: 1px solid var(--border); }
.main-lead-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); margin-bottom: 15px; }
.main-lead-card img { width: 100%; height: 270px; object-fit: cover; border-radius: 3px; }
.main-lead-info h2 { font-size: 25px; line-height: 1.3; margin-bottom: 10px; }
.main-lead-info p { color: var(--muted); font-size: 15px; }
.sub-leads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.sub-lead-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }
.sub-lead-item h3 { font-size: 16px; line-height: 1.35; }

/* Tabs Sidebar */
.sidebar-panel { background: var(--white); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.tab-buttons { display: flex; background: var(--secondary); }
.tab-btn { flex: 1; padding: 11px; border: none; background: transparent; color: #fff; font-family: inherit; font-size: 16px; font-weight: bold; cursor: pointer; }
.tab-btn.active { background: var(--primary); }
.tab-pane { display: none; padding: 12px; max-height: 455px; overflow-y: auto; }
.tab-pane.active { display: block; }
.tab-news-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.tab-news-item:last-child { border-bottom: none; }
.tab-news-item img { width: 75px; height: 52px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.tab-news-item h4 { font-size: 15px; line-height: 1.35; font-weight: normal; }

/* Category Sections */
.cat-block { background: var(--white); border: 1px solid var(--border); padding: 15px; margin-top: 20px; border-radius: 4px; }
.sec-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--primary); margin-bottom: 15px; }
.sec-heading h2 { background: var(--primary); color: #fff; padding: 5px 16px; font-size: 19px; border-radius: 3px 3px 0 0; }
.sec-heading a { font-size: 14px; color: var(--primary); font-weight: bold; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.news-card img { width: 100%; height: 155px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }
.news-card h3 { font-size: 16px; line-height: 1.38; }

/* Dual Category Row */
.dual-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.dual-list-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.dual-list-item img { width: 105px; height: 72px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.dual-list-item h4 { font-size: 16px; line-height: 1.35; }

/* Video / Gallery Dark Section */
.media-gallery-section { background: var(--secondary); color: #fff; padding: 25px 0; margin-top: 25px; }
.media-gallery-section .sec-heading { border-bottom-color: var(--accent); }
.media-gallery-section .sec-heading h2 { background: var(--accent); color: #000; }
.media-gallery-section .news-card h3 a { color: #fff; }
.media-gallery-section .news-card h3 a:hover { color: var(--accent); }

/* Single Post & Share */
.single-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; margin-top: 20px; }
.article-box { background: var(--white); padding: 22px; border: 1px solid var(--border); border-radius: 4px; }
.article-title { font-size: 30px; line-height: 1.3; margin-bottom: 10px; }
.article-meta { color: var(--muted); font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.article-content { font-size: 18px; line-height: 1.8; }
.article-content p { margin-bottom: 15px; }
.share-bar { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.share-btn { padding: 7px 14px; color: #fff; border-radius: 3px; font-size: 14px; }
.fb-btn { background: #1877f2; }
.wa-btn { background: #25d366; }
.tw-btn { background: #1da1f2; }

/* Footer */
.site-footer { background: var(--secondary); color: #ccc; margin-top: 30px; padding-top: 30px; border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 25px; padding-bottom: 25px; }
.footer-grid h3 { color: #fff; margin-bottom: 12px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 6px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 6px; }
.footer-links ul li a { color: #ccc; font-size: 15px; }
.footer-links ul li a:hover { color: var(--accent); }
.footer-bottom { background: #091317; text-align: center; padding: 14px; font-size: 14px; color: #999; }

@media (max-width: 900px) {
    .hero-grid, .main-lead-card, .single-layout, .dual-row, .footer-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .header-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 550px) {
    .sub-leads-grid, .grid-4 { grid-template-columns: 1fr; }
}
