/* Voice of Haripur - Final Responsive Style 2026 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
    --brand-accent: #27ae60;
    --text-main: #1a1a1a;
    --max-width: 1200px;
}

/* 1. GLOBAL RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    background-color: #fcfcfc;
    font-family: 'Noto Nastaliq Urdu', serif;
    overflow-x: hidden;
    width: 100%;
}

/* --- Clean Desktop Header (White Theme) --- */
.site-header {
    background-color: #ffffff;
    width: 100%;
    border-bottom: 1px solid #eeeeee;
    padding: 15px 0;
    position: relative; /* Relative stops the overlap with content */
    z-index: 1000;
}

.inner {
    width: var(--max-width);
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Navigation Buttons --- */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
}

.nav-link:hover { color: var(--brand-accent); }

.btn-pill-dark {
    background: #000;
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* --- Main Content Container --- */
.container {
    width: var(--max-width);
    max-width: 95%;
    margin: 30px auto 50px auto; 
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    min-height: 500px;
}

/* --- Forced 2 Columns (Kalam/Index) --- */
.newspaper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- THE AUTO-SWITCHER LOGIC --- */

/* Hide mobile header on desktop */
.mobile-only-header { display: none !important; }
.desktop-only-header { display: block; }

@media (max-width: 1024px) {
    /* Switch Visibility */
    .desktop-only-header { display: none !important; }
    .mobile-only-header { display: block !important; }

    /* Fix Mobile Gaps & Overlaps */
    .container {
        margin-top: 15px !important;
        padding: 15px !important;
        width: 100% !important;
        border-radius: 0;
        box-shadow: none;
    }

    /* Force 2 Columns on Phones */
    .newspaper-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    /* Urdu Readability Fix */
    body {
        line-height: 2.1;
    }
}