/*
Theme Name: BanglaKantho Classic Portal
Theme URI: https://banglakantho.com/
Author: Custom WordPress Developer
Description: Classic Bangladeshi News Portal WordPress theme modeled directly after banglakantho.com. Features Top Date/Search/Social bar, Logo + Ad header, Classic Red/Green Navigation, Scrolling Breaking News Ticker, Multi-Column Lead Grid with Latest/Popular Tabs, Category Sections (শীর্ষ, জাতীয়, আন্তর্জাতিক, শিক্ষা, রাজনীতি, মিডিয়া, বিনোদন, খেলা, ফিচার ও ভ্রমণ, ব্যবসা, কবিতা, জেলা, উপজেলা, আদালত), Archive Date Filter widget, and full Google AdSense integration.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: banglakantho-classic
*/

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

:root {
    --primary-red: #cc0000;
    --dark-red: #990000;
    --primary-green: #006a4e;
    --nav-bg: #1e272e;
    --nav-hover: #cc0000;
    --topbar-bg: #f1f2f6;
    --border-color: #dcdde1;
    --text-dark: #1e272e;
    --text-muted: #57606f;
    --bg-body: #f5f6fa;
    --bg-white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Top Bar */
.bk-topbar {
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.bk-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bk-date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.bk-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bk-top-search {
    display: flex;
    border: 1px solid #ced6e0;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.bk-top-search input {
    border: none;
    padding: 4px 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    width: 170px;
}

.bk-top-search button {
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 13px;
}

.bk-social-icons {
    display: flex;
    gap: 6px;
}

.bk-social-icons a {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.bk-social-fb { background: #1877f2; }
.bk-social-yt { background: #ff0000; }
.bk-social-tw { background: #1da1f2; }
.bk-social-in { background: #e1306c; }

/* Main Logo Header */
.bk-main-header {
    background: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.bk-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bk-logo-area {
    flex: 0 0 auto;
    max-width: 300px;
}

.bk-site-title {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1.1;
}

.bk-site-title span {
    color: var(--primary-green);
}

.bk-site-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.bk-header-ad {
    flex: 1;
    max-width: 728px;
    text-align: right;
}

/* Primary Navigation */
.bk-navbar {
    background: var(--primary-green);
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bk-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bk-menu-toggle {
    display: none;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
}

.bk-nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.bk-nav-menu > li {
    position: relative;
}

.bk-nav-menu > li > a {
    display: block;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.bk-nav-menu > li > a:hover,
.bk-nav-menu > li.current-menu-item > a {
    background: var(--primary-red);
    color: #ffffff;
}

/* Dropdown */
.bk-nav-menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e272e;
    min-width: 190px;
    list-style: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bk-nav-menu li:hover > ul.sub-menu {
    display: block;
}

.bk-nav-menu ul.sub-menu li a {
    display: block;
    color: #fff;
    padding: 8px 14px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bk-nav-menu ul.sub-menu li a:hover {
    background: var(--primary-red);
}

/* Scrolling Breaking News Ticker */
.bk-ticker-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.bk-ticker-box {
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
}

.bk-ticker-label {
    background: var(--primary-red);
    color: #ffffff;
    font-weight: 700;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 15px;
    position: relative;
}

.bk-ticker-label::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 10px solid var(--primary-red);
}

.bk-ticker-track {
    flex: 1;
    overflow: hidden;
    padding-left: 18px;
    position: relative;
}

.bk-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: bkScrollLeft 35s linear infinite;
}

.bk-ticker-track:hover .bk-marquee {
    animation-play-state: paused;
}

@keyframes bkScrollLeft {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.bk-marquee a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 30px;
    display: inline-flex;
    align-items: center;
}

.bk-marquee a::before {
    content: "■";
    color: var(--primary-red);
    font-size: 10px;
    margin-right: 8px;
}

.bk-marquee a:hover {
    color: var(--primary-red);
}

/* AdSense Containers */
.bk-ad-slot {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    padding: 8px;
    margin-bottom: 16px;
    text-align: center;
    overflow: hidden;
}

.bk-ad-tag {
    display: block;
    font-size: 11px;
    color: #8395a7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Lead Hero Section (3 Columns like banglakantho.com) */
.bk-lead-section {
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1.2fr;
    gap: 15px;
    margin-bottom: 20px;
}

.bk-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 2px;
}

.bk-main-lead {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px;
}

.bk-main-lead .bk-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.bk-main-lead .bk-thumb img {
    width: 100%;
    height: 310px;
    object-fit: cover;
}

.bk-main-lead h2 {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.bk-main-lead p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Center Sub-leads */
.bk-sub-leads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bk-sub-lead-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 8px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.bk-sub-lead-item img {
    width: 115px;
    height: 78px;
    object-fit: cover;
    flex-shrink: 0;
}

.bk-sub-lead-item h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

/* Right Latest / Popular Tabs */
.bk-tab-widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.bk-tab-header {
    display: flex;
    border-bottom: 2px solid var(--primary-red);
}

.bk-tab-btn {
    flex: 1;
    padding: 9px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    background: #f1f2f6;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-dark);
}

.bk-tab-btn.active {
    background: var(--primary-red);
    color: #ffffff;
}

.bk-tab-content {
    display: none;
    max-height: 385px;
    overflow-y: auto;
    padding: 8px;
}

.bk-tab-content.active {
    display: block;
}

.bk-tab-list {
    list-style: none;
}

.bk-tab-list li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.bk-tab-list li:last-child {
    border-bottom: none;
}

.bk-tab-list img {
    width: 75px;
    height: 52px;
    object-fit: cover;
    flex-shrink: 0;
}

.bk-tab-list h5 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

/* Section Headers (Classic Bangla Portal Bar) */
.bk-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-left: 5px solid var(--primary-red);
    border-bottom: 2px solid var(--primary-green);
    padding: 6px 12px;
    margin-bottom: 12px;
}

.bk-sec-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
}

.bk-more-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-red);
}

/* 4-Column Grid Section (শীর্ষ / বিনোদন) */
.bk-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.bk-grid-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 8px;
}

.bk-grid-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 8px;
}

.bk-grid-card h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

/* Two-Column Category Split (জাতীয় + আন্তর্জাতিক, শিক্ষা + রাজনীতি, etc.) */
.bk-split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.bk-cat-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px;
}

.bk-cat-box-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 12px;
}

.bk-cat-featured img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 8px;
}

.bk-cat-featured h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.bk-cat-featured p {
    font-size: 14px;
    color: var(--text-muted);
}

.bk-cat-list {
    list-style: none;
}

.bk-cat-list li {
    display: flex;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.bk-cat-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bk-cat-list img {
    width: 80px;
    height: 55px;
    object-fit: cover;
    flex-shrink: 0;
}

.bk-cat-list h5 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

/* Three-Column Category Row (মিডিয়া / খেলা / পুরাতন সংবাদ বা জেলা-উপজেলা) */
.bk-split-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

/* Old News Archive Search Box (পুরাতন সংবাদ) */
.bk-archive-widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px;
}

.bk-archive-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bk-archive-form input[type="date"],
.bk-archive-form select {
    padding: 8px;
    border: 1px solid #ced6e0;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
}

.bk-archive-form button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 9px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
}

.bk-archive-form button:hover {
    background: var(--primary-red);
}

/* Single Post & Archive Layout */
.bk-content-sidebar-wrap {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.bk-single-article {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.bk-single-title {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.bk-single-meta {
    font-size: 14px;
    color: var(--text-muted);
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bk-single-thumb {
    margin-bottom: 18px;
}

.bk-single-thumb img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.bk-single-body {
    font-size: 18px;
    line-height: 1.8;
    color: #222;
}

.bk-single-body p {
    margin-bottom: 16px;
}

.bk-sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 12px;
    margin-bottom: 18px;
}

/* Footer (Modeled after banglakantho.com footer) */
.bk-footer {
    background: #1e272e;
    color: #dcdde1;
    border-top: 4px solid var(--primary-red);
    margin-top: 30px;
}

.bk-footer-top {
    background: #2f3640;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bk-footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bk-footer-menu a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.bk-footer-menu a:hover {
    color: #ff6b6b;
}

.bk-footer-main {
    padding: 25px 0;
    text-align: center;
}

.bk-footer-logo {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.bk-editorial-info {
    font-size: 15px;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto 12px;
}

.bk-footer-bottom {
    background: #151b20;
    padding: 10px 0;
    font-size: 13px;
    color: #a4b0be;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .bk-lead-section {
        grid-template-columns: 1fr;
    }
    .bk-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .bk-split-2, .bk-split-3, .bk-content-sidebar-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bk-menu-toggle {
        display: block;
    }
    .bk-nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .bk-nav-menu.open {
        display: flex;
    }
    .bk-cat-box-body {
        grid-template-columns: 1fr;
    }
    .bk-grid-4 {
        grid-template-columns: 1fr;
    }
}
