/* =================================================================
   1. VARIABLES & GENERAL STYLING
==================================================================== */

/* यह सेक्शन CSS वेरिएबल्स (रंग, फॉन्ट, आदि) और बेसिक पेज सेटअप को डिफाइन करता है। */

:root {
    /* Light Mode Palette */
    --primary-blue: #1A3C6B;
    --header-blue: #2F599A;
    --sidebar-bg: #FFFFFF;
    --content-bg: #F4F7FC;
    --font-color-dark: #333;
    --font-color-light: #FFFFFF;
    --active-color: #3B82F6;
    --border-color: #E5E7EB;
    --whatsapp-green: #25D366;
    --gold: #f4c542;
    --grey-bg: #f8f8f8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Dashboard-specific Palette */
    --bg: #f7f9fc;
    --card: #ffffff;
    --ink: #1f2937;
    --muted: #64748b;
    --ring: #e5e7eb;
    --brand: #ff1493;
    --pill: #8b5cf6;
    --ok: #16a34a;
    --warn: #f59e0b;
    --bad: #ef4444;
    --dash-shadow: 0 10px 24px rgba(16, 24, 40, .08);
    --r: 18px;
    --gx: 50%;
    --gy: 20%;
}

/* Dark Mode Palette */
body[data-theme="dark"] {
    --primary-blue: #1E293B;
    --header-blue: #334155;
    --sidebar-bg: #1A233A;
    --content-bg: #111827;
    --font-color-dark: #E5E7EB;
    --font-color-light: #F9FAFB;
    --active-color: #60A5FA;
    --border-color: #374151;
    --grey-bg: #1F2937;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

    /* Dashboard-specific Dark Palette */
    --bg: #0b0d12;
    --card: #0f1219;
    --ink: #e7e9ef;
    --muted: #9aa3b2;
    --ring: #202636;
    --dash-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}

/* General Setup */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--content-bg);
    color: var(--font-color-dark);
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
}

.seo-h1 {
    display: none; /* SEO के लिए है, यूज़र को नहीं दिखेगा */
}

/* =================================================================
   2. LAYOUT (HEADER, SIDEBAR, MAIN CONTENT)
==================================================================== */

/* यह सेक्शन पेज के मुख्य लेआउट स्ट्रक्चर (हेडर, साइडबार, आदि) को स्टाइल करता है। */

.container-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.header {
    background-color: var(--header-blue);
    color: var(--font-color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    flex-shrink: 0;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-menu {
    cursor: pointer;
    color: white;
    width: 24px;
    height: 24px;
}

.logo {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    background-image: url('/men/photo/logo.jpg');
    background-size: cover;
    background-position: center;
    margin-left: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    opacity: 0.8;
}

/* Main Container */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: width 0.3s ease, left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 200;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--font-color-dark);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .nav-menu span,
.sidebar.collapsed .sidebar-title {
    display: none;
}

.sidebar.collapsed .nav-menu li a {
    justify-content: center;
}

/* Page Content */
.page-content {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
}

/* =================================================================
   3. NAVIGATION (SIDEBAR & BOTTOM NAV)
==================================================================== */

/* इस सेक्शन में साइडबार और मोबाइल के बॉटम नेविगेशन मेन्यू की स्टाइलिंग है। */

/* Sidebar Menu */
.nav-menu {
    flex-grow: 1;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--font-color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    gap: 15px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.nav-menu li.active a,
.nav-menu li a:hover {
    background-color: var(--content-bg);
    color: var(--active-color);
}

body:not([data-theme="dark"]) .nav-menu li.active a {
    border-left: 4px solid var(--active-color);
    padding-left: 21px;
}

/* Bottom Mobile Nav */
.bottom-nav {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 18, 25, .65);
    backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
    display: none; /* डिफ़ॉल्ट रूप से छिपा हुआ, मोबाइल पर दिखेगा */
    gap: 14px;
    padding: 10px 12px;
    z-index: 150;
}

body[data-theme="dark"] .bottom-nav {
    border-color: var(--ring);
}

.bottom-nav a {
    display: grid;
    place-items: center;
    gap: 6px;
    color: #e7e9ef;
    font-size: .72rem;
}

.bottom-nav img {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
}












/* New banner section */
        .panchayat-banner {
            padding: 0;
            max-width: 100%;
            max-height: 100%;
        }

        .panchayat-banner img {
            max-width: 100%;
            height: 100%;
            display: block;
            margin: 0 auto;
            /* width: 100%;
            height: clamp(160px, 24vw, 300px);
            object-fit: cover;
            display: block;
            border-radius: calc(var(--r) - 2px); */
        }

        /* 5 mini icons single line */
        .quick-icons {
            margin-top: 12px;
            margin-bottom: 12px;
            padding: 10px 12px;
        }

        .quick-icons-row {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            align-items: center;
        }

        .qi {
            display: grid;
            place-items: center;
            gap: 6px;
            padding: 10px 6px;
            border-radius: 12px;
            background: color-mix(in oklab, var(--pill) 10%, transparent);
            border: 1px solid var(--ring);
            color: var(--ink);
            cursor: pointer;
            transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
        }

        .qi:focus-visible {
            outline: 2px solid color-mix(in oklab, var(--brand) 60%, var(--ring));
            outline-offset: 2px;
        }

        .qi:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
        }

        .qi img {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }

        .qi span {
            font-size: 12px;
            font-weight: 600;
        }

/* =================================================================
   4. COMPONENTS
==================================================================== */

/* इस सेक्शन में ग्रिड, कार्ड, बटन, सर्च बार, और अन्य UI कंपोनेंट्स की स्टाइलिंग है। */

/* Grids */
.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: var(--r);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
    padding: 16px;
}

.card.glass {
    background: rgba(15, 18, 25, .55);
    backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid color-mix(in oklab, var(--pill) 35%, var(--ring));
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}

body:not([data-theme="dark"]) .card.glass {
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(10px) saturate(140%);
}

/* Welcome Area & Search */
.welcome-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-message {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

#search-box {
    min-width: 250px;
    max-width: 400px;
    flex-grow: 1;
}

#search-input {
    width: 100%;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    background-color: var(--sidebar-bg);
    color: var(--font-color-dark);
}

/* Titles & Badges */
.title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 16px;
}

.title h2 {
    margin: 0;
    font-size: 1.3rem;
}

.badge {
    font-size: .75rem;
    padding: .18rem .5rem;
    border-radius: 999px;
    border: 1px solid var(--ring);
    background: rgba(15, 18, 25, .04);
}

body:not([data-theme="dark"]) .badge {
    background: rgba(255, 255, 255, .04);
}

/* KPI Cards */
.kpi {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
}

.kpi .tag {
    font-size: .72rem;
    color: var(--muted);
}

.kpi .ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: conic-gradient(var(--c) var(--deg, 0deg), var(--ring) 0);
    transition: background 0.5s;
}

.kpi .ring::after {
    content: attr(data-text);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--card);
    font-weight: 700;
    font-size: 0.9em;
}

/* Feature Tiles */
.tile {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    min-height: 120px;
    background: linear-gradient(180deg, rgba(139, 92, 246, .08), rgba(236, 72, 153, .08));
    transform-style: preserve-3d;
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, .12), transparent 40%, rgba(255, 255, 255, .06));
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
    border-radius: inherit;
}

.tile:hover {
    transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateZ(6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .45);
}

.tile:hover::after {
    opacity: 1;
}

.tile img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25));
}

/* --- UPDATED: Live News Horizontal Scroll --- */
.live-news-section .grid {
    display: flex; /* हॉरिजॉन्टल लेआउट के लिए फ्लेक्सबॉक्स */
    overflow-x: auto; /* हॉरिजॉन्टल स्क्रॉलिंग */
    scroll-snap-type: x mandatory; /* स्क्रॉल इफ़ेक्ट */
    -webkit-overflow-scrolling: touch; /* iOS पर स्मूद स्क्रॉलिंग */
    padding-bottom: 1rem;
    gap: 1rem;
}

/* स्क्रॉलबार छिपाएं */
.live-news-section .grid::-webkit-scrollbar {
    display: none;
}

.live-news-section .grid > article {
    flex: 0 0 80%; /* हर कार्ड मोबाइल पर 80% चौड़ाई लेगा */
    scroll-snap-align: start; /* स्क्रॉल पर कार्ड को शुरू में अलाइन करें */
    max-width: 320px;
}

/* News Accordion */
#liveNews article .badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--brand);
    color: white;
    border: none;
}

#liveNews h3 {
    margin: .2rem 0;
}

.accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease, padding .35s ease, margin .35s ease;
    opacity: 0;
    border-top: 1px solid var(--ring);
    margin-top: 0;
    padding-top: 0;
}

.accordion.open {
    opacity: 1;
    margin-top: 10px;
    padding-top: 10px;
}

.accordion .actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: .7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--ring);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
}

.btn.primary {
    background: linear-gradient(90deg, var(--brand), #ff6ab5);
    border: none;
    color: white;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #000000;
    transition: 0.4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.slider:before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: #000000;
    transition: 0.4s;
    border-radius: 50%;
}

.slider .icon {
    font-size: 16px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    line-height: 1;
}

.slider .sun {
    opacity: 1;
    transform: scale(1);
}

.slider .moon {
    opacity: 0.5;
    transform: scale(0.75);
}

input:checked+.slider {
    background: #e8eaec;
}

input:checked+.slider:before {
    transform: translateX(31px);
}

input:checked+.slider .sun {
    opacity: 0.35;
    transform: scale(0.75);
}

input:checked+.slider .moon {
    opacity: 1;
    transform: scale(1.1);
}

/* Footer */
footer {
    color: var(--font-color-light);
    padding: 60px 20px 30px;
    position: relative;
    background: linear-gradient(135deg, var(--grey-bg) 40%, var(--primary-blue) 100%);
    margin-top: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body:not([data-theme="dark"]) footer {
    color: var(--font-color-dark);
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 40px;
    gap: 25px;
}

body:not([data-theme="dark"]) .footer-main {
    background: rgba(255, 255, 255, 0.7);
}

.footer-left {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.footer-left h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    color: #16a34a;
}

.footer-left h4 {
    margin: 8px 0;
    font-weight: 400;
    font-size: 18px;
    color: var(--font-color-light);
}

body:not([data-theme="dark"]) .footer-left h4 {
    color: #111;
}

.footer-left h3 {
    margin-top: 10px;
    color: #c0392b;
    font-weight: 600;
    font-size: 20px;
}

.footer-image {
    flex-shrink: 0;
    text-align: center;
}

.footer-image img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid var(--gold);
    box-shadow: 0 0 30px rgba(244, 197, 66, 0.8);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.footer-image img:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 40px rgba(244, 197, 66, 1);
}

.footer-right {
    flex: 1;
    min-width: 280px;
    color: var(--font-color-light);
}

body:not([data-theme="dark"]) .footer-right {
    color: var(--font-color-dark);
}

.footer-right p {
    margin: 12px 0;
    font-size: 16px;
}

.footer-right i {
    margin-right: 10px;
    color: var(--gold);
}

.footer-right a {
    color: inherit;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--gold);
}

.footer-right a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -3px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.footer-right a:hover::after {
    width: 100%;
}

.social-icons {
    margin: 35px 0 15px;
    text-align: center;
}

.social-icons a {
    margin: 0 15px;
    font-size: 26px;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    color: var(--font-color-light);
    transition: transform 0.3s, color 0.3s, background 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: var(--gold);
    background: rgba(0, 0, 0, 0.3);
}

footer p.copy {
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

body:not([data-theme="dark"]) footer p.copy {
    color: var(--font-color-dark);
}

footer p.copy a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer p.copy a:hover {
    color: #fff;
}

body:not([data-theme="dark"]) footer p.copy a:hover {
    color: var(--primary-blue);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background-color: var(--whatsapp-green);
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 998;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe5d;
}


/* =================================================================
   5. ANIMATIONS & EFFECTS
==================================================================== */

/* इस सेक्शन में फेड-इन, बैकग्राउंड और अन्य विज़ुअल इफेक्ट्स के लिए एनिमेशन हैं। */

/* Fade In */
.fade-in {
    animation: fade .5s ease both;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Background Aurora */
.aurora {
    position: fixed;
    inset: -20vmax;
    z-index: -3;
    filter: blur(60px);
    opacity: .55;
    pointer-events: none;
    transform: translateZ(0);
}

.aurora span {
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff1493 0%, transparent 60%), radial-gradient(circle at 70% 70%, #8b5cf6 0%, transparent 60%);
    animation: floatA 18s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

.aurora span:nth-child(2) {
    left: 40%;
    top: 20%;
    background: radial-gradient(circle at 40% 60%, #22c55e 0%, transparent 60%), radial-gradient(circle at 70% 30%, #06b6d4 0%, transparent 60%);
    animation: floatB 22s ease-in-out infinite alternate-reverse;
}

body:not([data-theme="dark"]) .aurora span {
    background: radial-gradient(circle at 30% 30%, #22d3ee 0%, transparent 60%), radial-gradient(circle at 70% 70%, #fb7185 0%, transparent 60%);
    filter: blur(70px);
    opacity: .45;
}

@keyframes floatA {
    0% {
        transform: translate(-20%, -10%) scale(1);
    }
    100% {
        transform: translate(10%, 15%) scale(1.2);
    }
}

@keyframes floatB {
    0% {
        transform: translate(10%, -5%) scale(1);
    }
    100% {
        transform: translate(-15%, 20%) scale(1.25);
    }
}

/* Background Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.particles i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 10px rgba(255, 255, 255, .5);
    animation: rise var(--dur) linear infinite;
    opacity: .7;
}

@keyframes rise {
    from {
        transform: translateY(100vh) translateX(var(--x, 0));
    }
    to {
        transform: translateY(-10vh) translateX(calc(var(--x, 0) + 40px));
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .aurora span,
    .particles i,
    .tile,
    .footer-image img,
    .kpi .ring {
        animation: none !important;
        transition: none !important;
    }
}

/* =================================================================
   6. RESPONSIVE MEDIA QUERIES
==================================================================== */

/* यह सेक्शन अलग-अलग स्क्रीन साइज (मोबाइल, टैबलेट, डेस्कटॉप) के लिए लेआउट को एडजस्ट करता है। */

/* Large Laptops (up to 1200px) */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .panchayat-banner img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
            /* width: 100%;
            height: clamp(160px, 24vw, 300px);
            object-fit: cover;
            display: block;
            border-radius: calc(var(--r) - 2px); */
        }

}

/* Tablets & Small Laptops (up to 992px) */
@media (max-width: 992px) {
    .header-right .user-info {
        display: none;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-right {
        margin-top: 20px;
    }
}

/* Tablets (up to 768px) */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
    }

    body[data-theme="dark"] .sidebar {
        background: rgba(26, 35, 58, 0.95);
    }

    .sidebar.open {
        left: 0;
    }

    .close-btn {
        display: block;
    }

    .logo {
        width: 50px;
        height: 50px;
        margin-left: 10px;
    }

    .toggle-label {
        display: none;
    }

    .page-content {
        padding: 15px;
    }

    .bottom-nav {
        display: flex;
    }
}

/* Large Mobiles (up to 580px) */
@media (max-width: 580px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-left h2 {
        font-size: 28px;
    }

    .footer-image img {
        width: 140px;
        height: 140px;
    }
}

/* Standard Mobiles (up to 480px) */
@media (max-width: 480px) {
    .header {
        padding: 8px 15px;
    }
    .header-left, .header-right {
        gap: 15px;
    }

    .logo {
        width: 45px;
        height: 45px;
        margin-left: 5px;
    }
    
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tile img {
        width: 45px;
        height: 45px;
    }

    .tile div {
        font-size: 13px;
    }

    .footer-left h2 {
        font-size: 24px;
    }

    .footer-left h3 {
        font-size: 16px;
    }
    .footer-right p {
        font-size: 14px;
    }
    .social-icons a {
        font-size: 20px;
        margin: 0 10px;
    }
}

/* --- UPDATED: Live News के लिए रिस्पॉन्सिव स्टाइल --- */
@media (min-width: 768px) {
    .live-news-section .grid > article {
        flex-basis: 45%; /* टैबलेट पर 2+ कार्ड दिखाएं */
    }
}

@media (min-width: 1024px) {
    .live-news-section .grid > article {
        flex-basis: 31%; /* डेस्कटॉप पर 3+ कार्ड दिखाएं */
    }
}
/* SCORE KO MOBIL ME EK LINE ME LAYA */
@media (max-width: 600px) {
 .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 12px;
    padding: 4px;
  }
  .grid-item {
    min-width: 0;
    word-break: break-word;
    white-space: normal;
  }
}