/*
Theme Name: BanglaPortal
Theme URI: https://example.com/banglaportal
Author: Gemini CLI
Author URI: https://example.com
Description: A professional, modern, and high-performance WordPress theme for Bangladeshi news portals.
Version: 1.1.0
Text Domain: banglaportal
*/

/* --- Basic Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: #d32f2f;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header --- */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.logo h1 {
    font-size: 3rem;
    color: #d32f2f;
    font-weight: 800;
    letter-spacing: -1px;
}

.header-ad {
    max-width: 728px;
}

/* --- Navigation --- */
nav.main-navigation {
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

.nav-list li {
    margin-left: 20px;
}

.nav-list li a {
    font-weight: 600;
    font-size: 1.1rem;
    color: #444;
}

/* --- Breaking News --- */
.breaking-news {
    background: #fdf2f2;
    border-top: 1px solid #f9e2e2;
    border-bottom: 1px solid #f9e2e2;
    padding: 8px 0;
}

.bn-container {
    display: flex;
    align-items: center;
}

.bn-label {
    background: #d32f2f;
    color: #fff;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}

.bn-ticker marquee {
    font-weight: 500;
    font-size: 1.05rem;
    color: #333;
}

/* --- Post Section (Grid) --- */
.news-section {
    margin: 30px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    grid-gap: 30px;
}

.lead-story {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.lead-story img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}

.lead-story h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 10px;
}

.lead-story p {
    font-size: 1.1rem;
    color: #555;
}

.side-stories .side-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.side-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 2px;
}

.side-item h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
}

/* --- Ad Slots --- */
.ad-slot {
    margin: 20px 0;
    text-align: center;
    background: #fafafa;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Footer Enhancement --- */
.site-footer {
    background: #0a0a0a;
    color: #999;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.site-footer h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: #d32f2f;
    bottom: 0;
    left: 0;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer ul li a {
    color: #999;
    transition: color 0.3s;
}

.site-footer ul li a:hover {
    color: #d32f2f;
}

.footer-social a i {
    transition: transform 0.3s, color 0.3s;
}

.footer-social a:hover i {
    color: #d32f2f;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Sidebar Ad Section --- */
.sidebar-google-ad {
    margin-bottom: 30px;
}

.sidebar-google-ad h4 {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 5px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .header-main {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        margin-bottom: 15px;
    }
    .nav-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-list li {
        margin: 5px 10px;
    }
    .lead-story h2 {
        font-size: 1.6rem;
    }
}
