/*
Theme Name: Bangla Kantho Exact Clone
Theme URI: https://banglakantho.com
Author: Custom Developer
Description: Exact layout clone of banglakantho.com Bengali News Portal with built-in ad zones and responsive grid.
Version: 2.0
Text Domain: banglakantho
*/

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

body {
    font-family: 'SolaimanLipi', 'Kalpurush', 'Noto Sans Bengali', Arial, sans-serif;
    background-color: #f2f3f5;
    color: #222;
    line-height: 1.5;
    font-size: 16px;
}

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

a:hover {
    color: #c8102e;
}

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

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

/* Top Bar */
.bk-topbar {
    background: #1b2631;
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
}

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

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

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

.bk-search-form {
    display: flex;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}

.bk-search-form input[type="search"] {
    border: none;
    padding: 4px 10px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    width: 180px;
}

.bk-search-form button {
    background: #c8102e;
    color: #fff;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 13px;
}

.bk-social-icons a {
    color: #fff;
    background: rgba(255,255,255,0.15);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.bk-social-icons a:hover {
    background: #c8102e;
}

/* Main Header */
.bk-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.bk-logo h1 {
    font-size: 38px;
    color: #c8102e;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.bk-logo p {
    font-size: 13px;
    color: #666;
}

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

/* Primary Navigation */
.bk-navbar {
    background: #0d47a1;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.bk-nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

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

.bk-nav-menu > li > a {
    display: block;
    color: #fff;
    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: #c8102e;
    color: #fff;
}

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

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

.bk-nav-menu ul.sub-menu li a {
    display: block;
    padding: 9px 14px;
    color: #222;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.bk-nav-menu ul.sub-menu li a:hover {
    background: #f5f5f5;
    color: #c8102e;
}

.bk-english-btn {
    margin-left: auto;
    background: #c8102e;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 3px;
    font-size: 14px !important;
}

.mobile-menu-toggle {
    display: none;
    background: #c8102e;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* Ad Box Styling */
.bk-ad-slot {
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 8px;
    margin: 15px 0;
    text-align: center;
}

.bk-ad-placeholder {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    color: #777;
    padding: 14px;
    font-size: 13px;
}

/* Lead Section (Left Main Lead + Middle Sub Leads + Right Tabs) */
.bk-lead-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.bk-main-lead {
    background: #fff;
    padding: 12px;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
}

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

.bk-main-lead h2 {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.bk-main-lead p {
    font-size: 15px;
    color: #555;
}

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

.bk-sub-lead-card {
    background: #fff;
    padding: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.bk-sub-lead-card img {
    width: 110px;
    height: 75px;
    object-fit: cover;
    flex-shrink: 0;
}

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

/* Tabs (সর্বশেষ / জনপ্রিয়) */
.bk-tab-box {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    overflow: hidden;
}

.bk-tab-header {
    display: flex;
    border-bottom: 2px solid #0d47a1;
}

.bk-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #f1f1f1;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #333;
}

.bk-tab-btn.active {
    background: #0d47a1;
    color: #fff;
}

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

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

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

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

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

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

/* Section Title Bar (Bangla Kantho Style) */
.bk-section-box {
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 15px;
    margin-top: 18px;
    border-radius: 3px;
}

.bk-cat-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0d47a1;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.bk-cat-title {
    background: #0d47a1;
    color: #fff;
    padding: 6px 18px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
}

.bk-cat-more {
    padding-right: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #c8102e;
}

/* 4 Column Grid */
.bk-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.bk-card {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}

.bk-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
}

.bk-card-body {
    padding: 10px;
}

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

/* Two Column Mixed Layout (Main Content + Sidebar Widgets) */
.bk-two-col-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.bk-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Multi Category 3-Column Row (শিক্ষা, রাজনীতি, মিডিয়া / ব্যবসা, আদালত, কবিতা) */
.bk-three-cat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 18px;
}

.bk-mini-cat-box {
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 12px;
    border-radius: 3px;
}

.bk-mini-lead img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    margin-bottom: 8px;
}

.bk-mini-lead h4 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.bk-mini-list-item {
    display: flex;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.bk-mini-list-item img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    flex-shrink: 0;
}

.bk-mini-list-item h5 {
    font-size: 14px;
    line-height: 1.35;
}

/* Sidebar Widgets (পুরাতন সংবাদ, খুজুন, ফেসবুক পেজ) */
.bk-sidebar-widget {
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 3px;
}

.bk-widget-title {
    background: #0d47a1;
    color: #fff;
    padding: 7px 12px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bk-archive-form input[type="date"],
.bk-archive-form button {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
}

.bk-archive-form button {
    background: #c8102e;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* Single Post & Archive */
.bk-single-article {
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 20px;
    border-radius: 3px;
}

.bk-single-title {
    font-size: 28px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #111;
}

.bk-single-meta {
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    margin-bottom: 15px;
}

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

.bk-single-content p {
    margin-bottom: 15px;
}

/* Footer (Bangla Kantho Exact Structure) */
.bk-footer {
    background: #1b2631;
    color: #ddd;
    margin-top: 30px;
    border-top: 4px solid #c8102e;
}

.bk-footer-top {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bk-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
    align-items: center;
}

.bk-footer-links {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

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

.bk-footer-links a:hover {
    color: #ff5252;
}

.bk-editorial-info {
    font-size: 15px;
    line-height: 1.7;
    color: #eee;
}

.bk-footer-bottom {
    background: #11181f;
    padding: 12px 0;
    font-size: 13px;
    color: #aaa;
}

.bk-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .bk-lead-wrapper,
    .bk-three-cat-row,
    .bk-two-col-layout {
        grid-template-columns: 1fr;
    }
    .bk-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .bk-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .bk-header-inner {
        flex-direction: column;
        text-align: center;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .bk-nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
    }
    .bk-nav-menu.open {
        display: flex;
    }
    .bk-grid-4,
    .bk-grid-2 {
        grid-template-columns: 1fr;
    }
}
