/* =========================================
   1. IMPORTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #D32F2F; /* News Red */
    --dark: #121212;
    --gray: #F5F5F5;
    --text: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Hind Siliguri', sans-serif;
    background: #f9f9f9;
    color: var(--text);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--primary); }
ul { list-style: none; }

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hamburger & Logo */
.menu-btn { font-size: 22px; cursor: pointer; padding: 5px; }

.brand-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.brand-logo span { color: var(--primary); }

/* Search Box */
.search-box { display: flex; align-items: center; }
.search-input {
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 20px;
    font-family: 'Hind Siliguri';
    outline: none;
    transition: 0.3s;
    width: 0;
    opacity: 0;
    visibility: hidden;
}
.search-box.active .search-input {
    width: 150px;
    opacity: 1;
    visibility: visible;
    margin-right: 5px;
}
.search-btn { background: none; border: none; font-size: 18px; cursor: pointer; }

/* Sidebar Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    z-index: 1001;
    padding-top: 60px;
}
.side-menu.open { left: 0; }
.side-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}
.overlay.active { display: block; }

/* =========================================
   4. LAYOUTS & GRIDS
   ========================================= */
.container { max-width: 1200px; margin: 20px auto; padding: 0 15px; }

/* Main Layout: Content (Left) + Sidebar (Right) */
.main-body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% Content, 33% Sidebar */
    gap: 30px;
    margin-top: 30px;
}

/* Category Sections */
.category-block {
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.cat-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* General Grid (Fallback) */
.news-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Section Headers */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    position: relative;
    margin: 0;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.view-all-btn {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.hero-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.3s;
}
.hero-main:hover img { transform: scale(1.05); }

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    color: white;
}

.hero-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-sub {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* =========================================
   6. CARDS & WIDGETS
   ========================================= */
/* Standard News Card */
.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-5px); }

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content { padding: 15px; }

.card-cat {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
}

.card-meta { font-size: 13px; color: var(--text-light); }

/* Sidebar Widgets */
.widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.trend-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.trend-number {
    font-size: 30px;
    font-weight: 900;
    color: #ddd;
    line-height: 1;
}

/* =========================================
   7. SINGLE PAGE
   ========================================= */
.single-header h1 { font-size: 28px; line-height: 1.3; margin-bottom: 10px; }
.featured-image { width: 100%; border-radius: 8px; margin: 20px 0; }
.article-body { font-size: 19px; line-height: 1.8; color: #222; }

/* =========================================
   8. FOOTER
   ========================================= */
/* --- COMPACT PROFESSIONAL FOOTER --- */
footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding-top: 40px; /* Reduced padding */
    margin-top: 40px;
    font-family: 'Hind Siliguri', sans-serif;
    border-top: 3px solid var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Reduced gap */
    margin-bottom: 30px;
}

.footer-col h3 {
    color: #fff;
    font-size: 16px; /* Smaller font */
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links { padding: 0; list-style: none; }
.footer-links li { margin-bottom: 8px; } /* Tighter spacing */
.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}
.footer-links a:hover { color: var(--primary); }

/* Social Icons (Compact) */
.social-icons { display: flex; gap: 10px; margin-top: 10px; }
.social-icons a {
    width: 32px; height: 32px;
    background: #333; color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.3s;
}
.social-icons a:hover { background: var(--primary); }

/* Copyright Bar */
.footer-bottom {
    background: #111;
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #2a2a2a;
}
/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    /* Stack Layouts */
    .main-body-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-wrapper { grid-template-columns: 1fr; }
    
    /* Hero Adjustments */
    .hero-main img { height: 220px; }
    .hero-sub { margin-bottom: 10px; }
    
    /* Section Headers */
    .section-head { flex-direction: row; align-items: center; }
    
    /* Cards: Horizontal Layout on Mobile */
    .cat-news-grid { grid-template-columns: 1fr; }
    
    .news-card {
        display: flex; /* Horizontal alignment */
        gap: 15px;
        align-items: flex-start;
        padding: 10px;
    }
    
    .news-card img {
        width: 120px;
        height: 90px;
        flex-shrink: 0;
        border-radius: 4px;
    }
    
    .news-card .card-content { padding: 0; }
    
    .news-card h3 {
        font-size: 16px;
        margin-top: 0;
        line-height: 1.3;
    }
    
    /* Hide specific details on small screens if needed */
    .card-meta { margin-top: 5px; }
}
