/*
Theme Name: Bangla Kantho Pro Edition v2
Author: Custom Developer
Description: Complete Bangla Kantho News Portal WordPress Theme with Breaking Ticker, Bottom Scroll/Sticky Ad, Dark Entertainment Gallery, and 9 Ad Zones.
Version: 2.0
Text Domain: banglakantho
*/

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

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'SolaimanLipi', Arial, sans-serif; background: #f2f3f5; color: #1a1a1a; line-height: 1.6; font-size: 16px; padding-bottom: 85px; }
a { text-decoration: none; color: #1a1a1a; transition: 0.2s; }
a:hover { color: #cc0000; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 15px; }

/* Top Bar */
.top-bar { background: #111827; color: #f3f4f6; padding: 7px 0; font-size: 14px; border-bottom: 2px solid #cc0000; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-search form { display: flex; }
.top-search input[type="search"] { padding: 4px 10px; border: none; border-radius: 3px 0 0 3px; font-family: inherit; font-size: 14px; outline: none; }
.top-search button { padding: 4px 12px; background: #cc0000; color: #fff; border: none; border-radius: 0 3px 3px 0; cursor: pointer; font-family: inherit; }

/* Header Main */
.header-main { background: #ffffff; padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-logo h1 { color: #cc0000; font-size: 40px; font-weight: bold; line-height: 1.1; }
.site-logo p { font-size: 14px; color: #555; }
.header-ad-box { flex: 1; max-width: 728px; text-align: right; }

/* Navigation */
.main-nav { background: #cc0000; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.nav-toggle { display: none; background: #990000; color: #fff; border: none; padding: 10px 15px; font-size: 18px; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.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: #ffffff; font-size: 17px; 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: #990000; }
.main-nav ul li ul { display: none; position: absolute; top: 100%; left: 0; background: #111827; min-width: 190px; z-index: 1000; flex-direction: column; }
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul li ul li a { border-right: none; border-bottom: 1px solid #374151; font-size: 15px; padding: 9px 15px; }

/* Breaking Ticker */
.breaking-bar { background: #fff; border: 1px solid #e5e7eb; margin-top: 12px; display: flex; align-items: center; overflow: hidden; border-radius: 3px; }
.breaking-label { background: #111827; color: #fff; padding: 8px 16px; font-weight: bold; font-size: 16px; white-space: nowrap; border-right: 3px solid #cc0000; }
.breaking-marquee { padding: 6px 12px; flex: 1; font-size: 16px; }
.breaking-marquee a { margin-right: 30px; font-weight: bold; color: #111827; }
.breaking-marquee a:hover { color: #cc0000; }
.breaking-marquee span.dot { color: #cc0000; margin-right: 6px; }

/* Ad Spaces */
.ad-zone { text-align: center; margin: 15px 0; }
.ad-placeholder { background: #e5e7eb; border: 1px dashed #9ca3af; color: #4b5563; padding: 15px; font-size: 14px; border-radius: 4px; }

/* Lead Section */
.lead-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; margin-top: 15px; }
.lead-left { background: #fff; padding: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.main-lead { border-bottom: 1px solid #e5e7eb; padding-bottom: 15px; margin-bottom: 15px; }
.main-lead img { width: 100%; max-height: 410px; object-fit: cover; border-radius: 4px; }
.main-lead h2 { font-size: 28px; margin: 12px 0 8px; line-height: 1.3; }
.main-lead p { color: #4b5563; font-size: 16px; }
.sub-leads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.sub-lead-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 3px; }
.sub-lead-card h3 { font-size: 16px; margin-top: 7px; line-height: 1.35; }

/* Sidebar Tabs */
.sidebar-box { background: #fff; padding: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 18px; }
.tab-buttons { display: flex; border-bottom: 2px solid #cc0000; margin-bottom: 12px; }
.tab-btn { flex: 1; padding: 8px; background: #f3f4f6; border: none; font-family: inherit; font-size: 17px; font-weight: bold; cursor: pointer; }
.tab-btn.active { background: #cc0000; color: #fff; }
.tab-content { display: none; max-height: 440px; overflow-y: auto; }
.tab-content.active { display: block; }
.tab-list-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.tab-list-item img { width: 75px; height: 52px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.tab-list-item h4 { font-size: 15px; line-height: 1.35; font-weight: normal; }

/* Category Sections */
.cat-block { background: #fff; padding: 15px; margin-top: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.cat-title-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #cc0000; margin-bottom: 15px; }
.cat-title-bar h3 { background: #cc0000; color: #fff; padding: 5px 16px; font-size: 19px; }
.cat-title-bar a { color: #cc0000; font-size: 15px; 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; }
.news-card h4 { font-size: 17px; margin-top: 8px; line-height: 1.35; }
.news-meta { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* Dual Category Row */
.dual-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.dual-cat-box { background: #fff; padding: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.dual-list-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.dual-list-item img { width: 110px; height: 75px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.dual-list-item h4 { font-size: 16px; line-height: 1.35; }

/* Dark Entertainment Section */
.dark-section { background: #111827; color: #fff; padding: 25px 0; margin-top: 25px; }
.dark-section .cat-title-bar { border-bottom-color: #cc0000; }
.dark-section .news-card h4 a { color: #f9fafb; }
.dark-section .news-card h4 a:hover { color: #f87171; }

/* Single & Archive */
.content-wrap { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; margin-top: 20px; }
.article-box { background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.article-box h1 { font-size: 30px; line-height: 1.3; margin-bottom: 10px; }
.article-meta { color: #6b7280; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; margin-bottom: 15px; }
.article-content { font-size: 18px; line-height: 1.8; }
.article-content p { margin-bottom: 15px; }
.share-buttons { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { padding: 6px 14px; color: #fff; border-radius: 3px; font-size: 14px; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-tw { background: #1da1f2; }

/* Bottom Sticky / Scroll Ad Bar */
.bottom-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-top: 2px solid #cc0000;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    padding: 6px 15px;
    text-align: center;
    transition: transform 0.3s ease;
}
.bottom-sticky-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bottom-ad-close {
    position: absolute;
    top: -28px;
    right: 0;
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-family: inherit;
}
.bottom-ad-close:hover { background: #111827; }

/* Footer */
.site-footer { background: #111827; color: #d1d5db; padding: 35px 0 20px; margin-top: 30px; border-top: 4px solid #cc0000; }
.footer-menu ul { list-style: none; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-menu ul li a { color: #fff; font-size: 16px; }
.footer-info { text-align: center; font-size: 15px; line-height: 1.7; }
.footer-bottom { text-align: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid #374151; font-size: 13px; color: #9ca3af; }

@media (max-width: 900px) {
    .lead-grid, .content-wrap, .dual-cat-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .sub-leads { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .nav-toggle { display: block; }
    .main-nav ul { display: none; flex-direction: column; }
    .main-nav ul.open { display: flex; }
    .grid-4 { grid-template-columns: 1fr; }
    body { padding-bottom: 70px; }
}
