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

/* ==========================================
   CSS Custom Variables (Design Tokens)
   ========================================== */
:root {
    /* Brand Colors (Derived from Logo) */
    --primary: #004bb6;          /* Logo Royal Blue */
    --primary-dark: #00368c;
    --primary-light: #f0f6ff;
    --accent: #e51a24;           /* Logo Crimson Red */
    --accent-hover: #b81018;
    --accent-light: #ffebee;
    --gold: #ffc72c;             /* Logo Amber Yellow */
    --gold-dark: #d8a000;
    
    /* Neutral Theme Colors (Light Mode) */
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(0, 75, 182, 0.15);
    
    /* Fonts */
    --font-heading: 'Noto Serif Bengali', serif;
    --font-body: 'Hind Siliguri', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-body: #090d16;
    --bg-card: #131b2e;
    --bg-header: #0d1321;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --primary-light: rgba(0, 75, 182, 0.15);
    --accent-light: rgba(229, 26, 36, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(0, 75, 182, 0.3);
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Header Component
   ========================================== */
.site-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/* Top bar */
.top-bar {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 15px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item i {
    color: var(--primary);
}

.top-bar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.social-link:hover {
    color: var(--primary);
}

/* Main Brand Header Area */
.main-header-area {
    padding: 20px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.branding {
    text-align: center;
}

.branding img {
    height: 90px;
    margin: 0 auto;
    transition: transform var(--transition-normal);
}

.branding img:hover {
    transform: scale(1.03);
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Ad Space Banner Placeholder */
.ad-banner-header {
    width: 320px;
    height: 75px;
    border: 1px dashed var(--border-color);
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-radius: 4px;
    margin-left: auto;
}

/* Sticky Navigation Bar */
.nav-bar {
    background-color: var(--bg-header);
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-sm);
    z-index: 99;
    border-bottom: 2px solid var(--primary);
}

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

.main-nav {
    height: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    padding: 0 15px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-action-btn {
    font-size: 1.1rem;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-action-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* ==========================================
   Breaking News Scrolling Banner
   ========================================== */
.breaking-news-banner {
    background-color: var(--accent);
    color: #ffffff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.breaking-label {
    background-color: #ffffff;
    color: var(--accent);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    animation: pulse 1.5s infinite;
}

.ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.ticker-item:last-child {
    border-right: none;
}

.ticker-item a:hover {
    text-decoration: underline;
}

/* ==========================================
   News Card & Content Styles
   ========================================== */
.badge {
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    width: fit-content;
}

.badge.accent {
    background-color: var(--accent);
}

.badge.gold {
    background-color: var(--gold-dark);
    color: #000000;
}

/* Premium Layout Layouts */
.main-content-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Section Title */
.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-primary);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* News Cards */
.news-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-light);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    align-items: center;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.news-card:hover .card-title {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
   Hero Grid (शीর্ষ খবর)
   ========================================== */
.hero-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

/* Lead News (Big Card Left) */
.lead-news-card {
    height: 100%;
}

.lead-news-card .card-img-wrap {
    padding-top: 60%;
}

.lead-news-card .card-title {
    font-size: 1.4rem;
}

/* Side stories (Vertical List Right) */
.hero-side-stories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-story-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 4fr 8fr;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.side-story-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.side-story-img-wrap {
    position: relative;
    overflow: hidden;
}

.side-story-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-story-body {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-story-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-story-item:hover .side-story-title {
    color: var(--primary);
}

/* ==========================================
   Kolkata Live Focus Section (কলকাতা লাইভ)
   ========================================== */
.kolkata-section {
    background-color: var(--primary-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.kolkata-section .section-title-wrap {
    border-bottom-color: rgba(0, 75, 182, 0.1);
}

.kolkata-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ==========================================
   Main Grid Layout split columns (State/National + Sidebar)
   ========================================== */
.news-sections-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.category-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.cat-list-stories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cat-list-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    cursor: pointer;
}

.cat-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-list-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-list-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-list-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cat-list-item:hover .cat-list-title {
    color: var(--primary);
}

/* Video/Photo Gallery Section */
.gallery-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

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

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    padding-top: 75%;
    cursor: pointer;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    color: #ffffff;
}

.gallery-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--accent);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0.85;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.gallery-item:hover .gallery-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-title {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

/* ==========================================
   Sidebar Widgets (ডানদিকের কলাম)
   ========================================== */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: none;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

.weather-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.weather-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

.weather-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-temp-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-icon {
    font-size: 2.5rem;
}

.weather-temp {
    font-size: 2.2rem;
    font-weight: 700;
}

.weather-desc-wrap {
    text-align: right;
}

.weather-condition {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.weather-details {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Poll Widget (জনমত সমীক্ষা) */
.poll-question {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.poll-option-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: left;
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.poll-option-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.poll-results {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.poll-result-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.poll-result-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.poll-bar-outer {
    height: 8px;
    background-color: var(--bg-body);
    border-radius: 4px;
    overflow: hidden;
}

.poll-bar-inner {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-out;
}

.poll-bar-inner.accent {
    background-color: var(--accent);
}

.poll-bar-inner.neutral {
    background-color: var(--text-muted);
}

.poll-reset-btn {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    text-align: right;
    display: none;
}

.poll-reset-btn:hover {
    text-decoration: underline;
}

/* Subscribe Widget */
.subscribe-widget {
    background-color: var(--accent-light);
    border-color: rgba(229, 26, 36, 0.1);
}

.subscribe-widget .widget-title {
    color: var(--accent);
    margin-bottom: 8px;
}

.subscribe-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.subscribe-form {
    display: flex;
    gap: 8px;
}

.subscribe-input {
    flex-grow: 1;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.subscribe-btn {
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

.subscribe-btn:hover {
    background-color: var(--accent-hover);
}

/* ==========================================
   Footer Component
   ========================================== */
.site-footer {
    background-color: #0d1321;
    color: #94a3b8;
    padding: 50px 0 20px 0;
    border-top: 4px solid var(--primary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col-title {
    color: #f8fafc;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 6px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.footer-about img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-about p {
    line-height: 1.5;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* ==========================================
   Article Detail Modal (খবর পড়ার পপআপ)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    background-color: var(--bg-card);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: background-color var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: var(--accent);
}

.modal-img-wrap {
    width: 100%;
    height: 380px;
    position: relative;
}

.modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content {
    padding: 30px;
}

.modal-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.modal-body-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-body-text p {
    margin-bottom: 15px;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }
    
    .ad-banner-header {
        display: none;
    }
    
    .main-header-area {
        grid-template-columns: 1fr auto;
    }
    
    .header-right {
        display: none; /* Hide placeholder ad space entirely */
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .main-header-area {
        display: flex;
        justify-content: center;
        padding: 15px 0;
    }
    
    .branding img {
        height: 70px;
    }
    
    .hero-news-grid {
        grid-template-columns: 1fr;
    }
    
    .kolkata-grid {
        grid-template-columns: 1fr;
    }
    
    .category-row-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-img-wrap {
        height: 250px;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .nav-list {
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        scrollbar-width: none; /* Firefox */
    }
    
    .nav-list::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .nav-link {
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    /* Stack Nav Bar into double-row for comfortable navigation */
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 8px 0;
        gap: 8px;
    }
    
    .main-nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .nav-list {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    
    .search-box-wrap {
        flex: 1;
        min-width: 0;
    }
    
    #search-input {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    /* Adjust containers for small mobile screens */
    .container {
        padding: 0 12px;
    }
    
    .site-header {
        border-bottom: none;
    }
    
    .branding img {
        height: 60px;
    }
    
    /* Margins and spacings */
    .main-content-grid {
        margin-top: 15px;
        gap: 20px;
    }
    
    /* Horizontal news list item image sizing */
    .side-story-item {
        grid-template-columns: 100px 1fr;
    }
    
    .side-story-body {
        padding: 10px;
    }
    
    .side-story-title {
        font-size: 0.9rem;
    }
    
    /* Breaking news ticker padding */
    .breaking-label {
        font-size: 0.75rem;
        padding: 3px 8px;
        margin-right: 8px;
    }
    
    .ticker-item {
        font-size: 0.85rem;
        padding: 0 12px;
    }
    
    /* Image gallery grid styling */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-item {
        padding-top: 90%;
    }
    
    /* Modal reader viewport scaling */
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-img-wrap {
        height: 180px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
        line-height: 1.35;
    }
    
    .modal-meta {
        font-size: 0.75rem;
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .modal-body-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .modal-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
    
    /* Font sizes */
    .section-title {
        font-size: 1.35rem;
    }
    
    .card-title {
        font-size: 1.05rem;
    }
    
    .lead-news-card .card-title {
        font-size: 1.15rem;
    }
    
    .kolkata-section {
        padding: 15px;
        border-radius: 8px;
    }
}
