/* Professional Gram Panchayat Website - Green/Teal Theme */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* CSS Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* MINIMAL LIGHT COLOR PALETTE - PROFESSIONAL */
    --primary-teal: #D4B896;
    --primary-green: #E5D4B8;
    --primary-emerald: #C9B088;
    --primary-mint: #EFE5D5;
    --primary-forest: #B8A080;

    /* Secondary Colors - Very Light */
    --secondary-lime: #F5F0E8;
    --secondary-light-green: #FAF7F2;
    --secondary-sage: #F0EBE3;
    --secondary-olive: #EBE6DE;

    /* Accent Colors - Minimal */
    --accent-yellow: #E8D9C0;
    --accent-amber: #DDD0B8;
    --accent-gold: #D2C5AD;

    /* Government Colors */
    --govt-saffron: #FF9933;
    --govt-white: #FFFFFF;
    --govt-green: #138808;
    --govt-blue: #000080;

    /* Neutral Colors - Very Light */
    --white: #FFFFFF;
    --light-bg: #FDFCFA;
    --cream-bg: #FFFEFB;
    --gray-50: #FAFAF9;
    --gray-100: #F7F7F6;
    --gray-200: #F0F0EE;
    --gray-300: #E8E8E5;
    --gray-400: #D0D0CC;
    --gray-500: #A8A8A3;
    --gray-600: #808078;
    --gray-700: #606058;
    --gray-800: #404038;
    --gray-900: #202018;

    /* Minimal Gradients */
    --gradient-teal: linear-gradient(135deg, #F5F0E8 0%, #EFE5D5 100%);
    --gradient-green: linear-gradient(135deg, #FAF7F2 0%, #F5F0E8 100%);
    --gradient-emerald: linear-gradient(135deg, #EFE5D5 0%, #E5D4B8 100%);
    --gradient-forest: linear-gradient(135deg, #E8D9C0 0%, #DDD0B8 100%);
    --gradient-lime: linear-gradient(135deg, #FFFEFB 0%, #FAF7F2 100%);

    /* Shadows - Very Subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.10);
    --shadow-green: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(to bottom, #FDFCFE 0%, #F7F5FA 50%, #E8E4F0 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==================== TWO-ROW HEADER LAYOUT ==================== */
.header {
    width: 100%;
    background: var(--gradient-teal);
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 100;
    border-bottom: 4px solid var(--accent-yellow);
    overflow-x: hidden;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* First Row - Logo, LGD ID, Seal, Language */
.header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: hidden;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
    .header-top {
        flex-direction: row;
        gap: 2rem;
    }
}

.village-title-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 1;
    min-width: 0;
}

.village-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    /* Adjusted size to fit "Gram Panchayat Bhujgaon" inline */
    font-weight: 900;
    color: #202018; /* BLACK - changed from white */
    text-align: left;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    /* Keep text in one line */
}

.gp-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--accent-yellow);
    background: white;
    padding: 4px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.gp-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.id-center {
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.id-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.id-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gray-900);
    background: linear-gradient(135deg, #D4A574 0%, #C9A16B 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.census-id {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.seal-lang-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rajya-mudra-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--accent-yellow);
    background: white;
    padding: 4px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.rajya-mudra-logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

.lang-select {
    background: linear-gradient(135deg, #D4A574 0%, #C9A16B 100%);
    color: var(--gray-900);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.lang-select:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-btn {
    padding: 0.75rem;
    border-radius: 10px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.md-hidden {
    display: block;
}

.md-flex {
    display: none;
}

@media (min-width: 768px) {
    .md-hidden {
        display: none;
    }

    .md-flex {
        display: flex;
    }
}

/* ==================== MODERN HORIZONTAL NAVIGATION MENU ==================== */
.desktop-sidebar {
    display: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 245, 250, 0.95) 100%);
    border-top: 3px solid var(--accent-yellow);
    border-bottom: 3px solid var(--accent-yellow);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .desktop-sidebar {
        display: block;
    }
}

.desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
}

.desktop-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.2rem;
    color: var(--primary-forest);
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 0;
    border-bottom: 4px solid transparent;
    position: relative;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 0.75rem;
    border-right: 2px solid rgba(123, 104, 166, 0.1);
}

.desktop-nav a:last-child {
    border-right: none;
}

.desktop-nav a .icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.desktop-nav a:hover {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-emerald) 100%);
    color: white;
    border-bottom-color: var(--accent-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(123, 104, 166, 0.25);
}

.desktop-nav a:hover .icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.5));
}

.desktop-nav a.active {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-emerald) 100%);
    color: white;
    border-bottom-color: var(--accent-yellow);
    box-shadow: 0 6px 15px rgba(123, 104, 166, 0.3), inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.desktop-nav a.active .icon {
    transform: scale(1.15);
    filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.4));
}

/* Animated underline effect */
.desktop-nav a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.desktop-nav a:hover::before,
.desktop-nav a.active::before {
    width: 80%;
}

/* Glow effect on hover */
.desktop-nav a:hover {
    box-shadow: 0 8px 25px rgba(123, 104, 166, 0.3),
        0 0 30px rgba(212, 165, 116, 0.25);
}

.desktop-sidebar-header,
.collapse-btn {
    display: none;
}

/* ==================== SECOND ROW - LEADERSHIP ==================== */
.leadership-row {
    width: 100%;
    background: #F5EFE7;
    /* Cream/beige background matching reference */
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #D4C5B0;
}

.leadership-inline {
    display: flex !important;
    /* Force flex layout, override any grid */
    flex-wrap: nowrap !important;
    /* NEVER wrap - always single row */
    grid-template-columns: none !important;
    /* Remove any grid column restrictions */
    overflow-x: auto;
    /* Horizontal scroll on smaller screens */
    gap: 0.5rem;
    /* Very tight spacing to fit all 10 leaders */
    width: 100%;
    max-width: 100%;
    /* Use full width */
    margin: 0 auto;
    padding: 0 1rem;
    justify-content: space-evenly;
    /* Distribute evenly across full width */
    align-items: center;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar on desktop */
}

/* Hide scrollbar on desktop */
.leadership-inline::-webkit-scrollbar {
    display: none;
}

.leadership-inline .leader-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    padding: 0.25rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    /* Prevent shrinking */
    flex-grow: 0;
    /* Prevent growing */
    width: 9%;
    /* Each leader takes ~9% of width (10 leaders = 90% + gaps) */
    min-width: 85px;
    /* Minimum for readability */
    max-width: 110px;
    /* Maximum to keep compact */
}

.leadership-inline .leader-item:hover {
    transform: translateY(-3px);
}

.leadership-inline .leader-img {
    width: 65px;
    /* Compact size to fit all 10 */
    height: 65px;
    border-radius: 50%;
    /* Perfect circle */
    border: 3px solid #ffffff;
    /* White border */
    object-fit: cover;
    margin-bottom: 0.3rem;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.leadership-inline .leader-item:hover .leader-img {
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.leadership-inline .leader-info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    width: 100%;
}

.leadership-inline .leader-info span {
    font-size: 0.55rem;
    /* Very small designation */
    font-weight: 700;
    text-transform: uppercase;
    color: #5A5A5A;
    /* Medium gray */
    letter-spacing: 0.1px;
    line-height: 1.1;
}

.leadership-inline .leader-info p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    /* Compact name text */
    font-weight: 600;
    color: #8B7355;
    /* Brown matching reference */
    line-height: 1.15;
    margin: 0;
}

/* Desktop: ensure all fit in one row */
@media (min-width: 1200px) {
    .leadership-inline {
        gap: 0.75rem;
        /* Slightly more space on large screens */
    }

    .leadership-inline .leader-item {
        width: auto;
        /* Auto width on large screens */
    }

    .leadership-inline .leader-img {
        width: 70px;
        height: 70px;
    }

    .leadership-inline .leader-info span {
        font-size: 0.6rem;
    }

    .leadership-inline .leader-info p {
        font-size: 0.7rem;
    }
}

/* Tablet: horizontal scroll */
@media (max-width: 1199px) and (min-width: 769px) {
    .leadership-inline {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .leadership-inline::-webkit-scrollbar {
        display: block;
        height: 4px;
    }

    .leadership-inline::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    .leadership-inline::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
    }
}

/* Mobile: smaller and scrollable */
@media (max-width: 768px) {
    .leadership-inline {
        gap: 0.4rem;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .leadership-inline::-webkit-scrollbar {
        display: block;
        height: 4px;
    }

    .leadership-inline .leader-item {
        min-width: 75px;
        max-width: 90px;
        width: auto;
    }

    .leadership-inline .leader-img {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }

    .leadership-inline .leader-info span {
        font-size: 0.5rem;
    }

    .leadership-inline .leader-info p {
        font-size: 0.6rem;
    }
}

/* Hide old leadership bar if it exists */
.header-bottom,
#leadership-bar {
    display: none;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

.header-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Population section moved to bottom - see end of file */

/* ==================== MOBILE SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-teal) 0%, var(--primary-forest) 100%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 200;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: var(--gradient-teal);
}

.sidebar-header h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: white;
}

.sidebar-nav {
    padding: 2rem;
}

.sidebar-nav a {
    display: block;
    padding: 1.25rem;
    color: white;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
}

.sidebar-nav a:hover {
    background: var(--gradient-green);
    border-color: var(--accent-yellow);
    transform: translateX(5px);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 199;
    display: none;
}

.sidebar-overlay.visible {
    display: block;
}

/* ==================== MAIN LAYOUT - FULL WIDTH ==================== */
.main-layout-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: block;
}

.desktop-right-sidebar {
    display: none;
}

/* ==================== CONTENT AREA - FULL WIDTH ==================== */
.content-area {
    width: 100%;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* ==================== SLIDESHOW - FULL WIDTH ==================== */
.slideshow {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 500px;
    border: 5px solid var(--primary-teal);
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    animation: fadeSlide 1s ease-in-out;
    background: var(--light-bg);
}

.slideshow-image.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== SECTIONS - FULL WIDTH CARDS ==================== */
section {
    width: 100%;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 245, 250, 0.9) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    border: 3px solid var(--primary-teal);
    border-left: 8px solid var(--primary-green);
    transition: all 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-forest);
    border-bottom: 4px solid var(--primary-teal);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    /* Subtle shadow for better visibility */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 150px;
    height: 4px;
    background: var(--accent-yellow);
}

/* ==================== GP MEMBERS - GRID LAYOUT ==================== */
.gp-member-grid,
.admin-member-grid,
.member-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {

    .gp-member-grid,
    .admin-member-grid,
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {

    .gp-member-grid,
    .member-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .admin-member-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.member-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F7F5FA 100%);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 3px solid var(--secondary-lime);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-teal);
}

.member-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-teal);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.member-card:hover .member-img {
    transform: scale(1.1);
    border-color: var(--accent-yellow);
}

.member-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    /* Increased from 800 */
    color: var(--primary-forest);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    /* Subtle shadow for better visibility */
}

.member-designation {
    color: var(--primary-teal);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.member-since {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 600;
}

/* ==================== INFO ITEMS - GREEN COLORS ==================== */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    padding: 2rem;
    border-left: 6px solid;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.info-item h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.info-item p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.alert {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    border-color: var(--accent-amber);
}

.alert h4,
.alert p {
    color: #F57F17;
}

.news {
    background: linear-gradient(135deg, #F0EDF7 0%, #E8E4F0 100%);
    border-color: var(--primary-green);
}

.news h4,
.news p {
    color: #5D4E7A;
}

.notice {
    background: linear-gradient(135deg, #E8E4F0 0%, #D4CEDF 100%);
    border-color: var(--primary-teal);
}

.notice h4,
.notice p {
    color: #6B5B95;
}

/* ==================== SCHEMES SECTION ==================== */
#govt-schemes {
    border-left-color: var(--primary-teal);
    /* Use website theme color instead of green */
}

#govt-schemes .section-title {
    color: var(--primary-forest);
    /* Use website theme color instead of green */
    border-bottom-color: var(--primary-teal);
}

.schemes-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
    /* Add left/right padding so boxes don't touch edges */
}

@media (min-width: 640px) {
    .schemes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .schemes-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.scheme-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    /* Changed from green tint to cream/beige */
    color: var(--gray-800);
    border-radius: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-teal);
    /* Changed from secondary-lime to primary-teal */
    transition: all 0.3s ease;
}

.scheme-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-yellow);
    background: var(--gradient-teal);
    color: var(--gray-800);
    /* Keep dark text on hover for better readability */
}

.scheme-link.selected {
    background: var(--gradient-teal);
    color: var(--gray-800);
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-lg);
}

.scheme-icon {
    width: 32px;
    height: 32px;
    margin-right: 1rem;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
    stroke: var(--primary-forest);
    /* Explicitly set icon color to theme color */
    color: var(--primary-forest);
}

.scheme-link:hover .scheme-icon {
    transform: scale(1.2);
    stroke: var(--primary-forest);
    /* Keep theme color on hover */
}

/* ==================== SCHEME DETAIL BOX ==================== */
.scheme-detail-box {
    padding: 2.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    /* Changed from green to cream theme */
    border-radius: 15px;
    border: 3px solid var(--primary-teal);
    box-shadow: var(--shadow-lg);
}

.scheme-detail-box h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-forest);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-teal);
    font-weight: 900;
}

.scheme-detail-box p {
    color: var(--gray-700);
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.scheme-detail-box ul,
.scheme-detail-box ol {
    margin-left: 2rem;
    color: var(--gray-700);
}

.scheme-detail-box li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.detail-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-forest); /* Changed for theme consistency */
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-lime);
}

.scheme-link-external {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 2rem;
    background: var(--gradient-teal);
    color: white;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--accent-yellow);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.scheme-link-external:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ==================== GALLERY - FULL WIDTH GRID ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item,
.gallery-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 3px solid var(--secondary-lime);
}

.gallery-item:hover,
.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-teal);
}

.gallery-item img,
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-card:hover img {
    transform: scale(1.1);
}

/* ==================== CONTACT SECTION ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    /* Changed from green to cream theme */
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid var(--secondary-lime);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.contact-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-forest);
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-card p,
.contact-card a {
    color: var(--gray-700);
    line-height: 1.8;
}

.contact-card a {
    color: var(--primary-teal);
    font-weight: 700;
}

.contact-card a:hover {
    color: var(--primary-forest);
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
    width: 100%;
    background: var(--gradient-forest);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    border-top: 4px solid var(--accent-yellow);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--accent-yellow);
}

.footer p,
.footer li {
    font-size: 1rem;
    line-height: 2;
    opacity: 0.95;
}

.footer a {
    color: var(--secondary-lime);
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-yellow);
}

.footer ul {
    list-style: disc;
    margin-left: 1.5rem;
}

/* ==================== GALLERY LIGHTBOX ==================== */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 300;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--accent-yellow);
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    color: var(--accent-yellow);
    transform: scale(1.2);
}

/* ==================== UTILITIES ==================== */
.detail-list {
    margin-left: 2rem;
    color: var(--gray-700);
    line-height: 2;
}

.procedure-text {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-teal);
    margin-top: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .village-title {
        font-size: 1.5rem;
    }

    .gp-logo,
    .rajya-mudra-logo {
        width: 70px;
        height: 70px;
    }

    .section-title {
        font-size: 2rem;
    }

    .slideshow {
        height: 300px;
    }

    section {
        padding: 2rem;
    }

    .leader-img {
        width: 40px;
        height: 40px;
    }

    .population-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== ACCESSIBILITY ==================== */
:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 3px;
}

/* ==================== PRINT ==================== */
/* ==================== POPULATION SECTION - AT BOTTOM ==================== */
.population-section {
    width: 100%;
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    padding: 3rem 0;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent-yellow);
    border-bottom: 4px solid var(--accent-yellow);
    margin-top: 3rem;
    margin-bottom: 0;
}

.population-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.population-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-forest);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.population-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.population-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFDE7 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--primary-teal);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.population-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-yellow);
}

.population-card-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.population-card-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--govt-saffron);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==================== REVENUE SERVICES TABLE ==================== */
.revenue-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.revenue-services-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.revenue-services-table thead {
    background: var(--gradient-teal);
    color: white;
}

.revenue-services-table thead th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--accent-yellow);
}

.revenue-services-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.revenue-services-table tbody tr:hover {
    background: linear-gradient(135deg, #F7F5FA 0%, #FAF7F2 100%);
    /* Changed from green to cream/purple theme */
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(184, 160, 128, 0.15);
    /* Changed from green shadow to theme color */
}

.revenue-services-table tbody td {
    padding: 1rem;
    color: var(--gray-800);
    vertical-align: top;
}

.revenue-services-table tbody tr:nth-child(even) {
    background: rgba(241, 248, 233, 0.3);
}

.revenue-services-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #F7F5FA 0%, #FAF7F2 100%);
    /* Changed from green to cream/purple theme */
}

/* First column (Sr. No.) styling */
.revenue-services-table tbody td:first-child {
    font-weight: 700;
    color: var(--primary-teal);
    text-align: center;
    font-size: 1rem;
}

/* Service name column */
.revenue-services-table tbody td:nth-child(2) {
    font-weight: 600;
    color: var(--primary-forest);
}

/* Time limit and fee columns */
.revenue-services-table tbody td:nth-child(3),
.revenue-services-table tbody td:nth-child(4) {
    text-align: center;
    font-weight: 600;
}

/* Mobile responsiveness for table */
@media (max-width: 768px) {
    .revenue-table-container {
        border-radius: 8px;
    }

    .revenue-services-table {
        font-size: 0.85rem;
    }

    .revenue-services-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .revenue-services-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* ==================== CONTACT CARDS ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    /* Changed from green to cream theme */
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--primary-teal);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-yellow);
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(184, 160, 128, 0.3));
    /* Changed from green shadow to theme color */
}

.contact-role {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-name,
.contact-mobile {
    font-size: 1.05rem;
    margin: 0.75rem 0;
    color: var(--gray-700);
}

.contact-mobile a {
    color: var(--primary-forest);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-mobile a:hover {
    color: var(--primary-teal);
    text-decoration: underline;
}

/* Excluded Services Grid */
.excluded-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .excluded-services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.excluded-column {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-amber);
}

/* Procedure text styling */
.procedure-text {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #F0EBE3 0%, #E5D4B8 100%);
    /* Changed from green to cream/beige theme */
    border-left: 4px solid var(--primary-teal);
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary-forest);
}

/* ==================== MEMBER CARDS ==================== */
.member-grid,
.gp-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.member-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    /* Changed from green to cream theme */
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid var(--primary-teal);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-yellow);
}

.member-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-teal);
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(184, 160, 128, 0.3);
    /* Changed from green shadow to theme color */
}

.member-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-forest);
    margin: 0.5rem 0;
}

.member-designation {
    font-size: 1rem;
    color: var(--primary-teal);
    font-weight: 600;
    margin: 0.25rem 0;
}

/* Population Section - Changed from yellow to teal gradient */
.population-section {
    width: 100%;
    background: linear-gradient(135deg, #E5D4B8 0%, #D4B896 100%);
    /* Changed from green to beige/teal theme */
    padding: 3rem 0;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-teal);
    border-bottom: 4px solid var(--primary-teal);
    margin-top: 3rem;
    margin-bottom: 0;
}

.population-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-forest);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.population-card-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-teal);
    margin: 0.5rem 0;
}

/* ==================== FOOTER ==================== */
.footer {
    width: 100%;
    background: var(--gradient-teal);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 4px solid var(--accent-yellow);
    box-shadow: 0 -10px 30px rgba(184, 160, 128, 0.2);
    /* Changed from green shadow to theme color */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer p,
.footer li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.footer a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    padding-left: 1.5rem;
    position: relative;
}

.footer ul li::before {
    content: '●';

    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: bold;
}

@media print {

    .header,
    .header-bottom,
    .population-section,
    .footer {
        display: none;
    }

    body {
        background: white;
    }

    section {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}


/* Remove yellow bullets from helpline list - keep only white disc */
.footer ul.helpline-list li {
    padding-left: 0;
}

.footer ul.helpline-list li::before {
    content: none;
}

/* ==================== CONTACT PAGE STYLES ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    /* Changed from green to cream theme */
    padding: 2.5rem 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 3px solid var(--primary-teal);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-yellow);
    background: linear-gradient(135deg, #FFFFFF 0%, #EFE5D5 100%);
    /* Changed from green to cream theme */
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(184, 160, 128, 0.3));
    /* Changed from green shadow to theme color */
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(184, 160, 128, 0.5));
    /* Changed from green shadow to theme color */
}

.contact-role {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    /* Increased from 800 */
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--accent-yellow);
    padding-bottom: 0.75rem;
    width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    /* Subtle shadow for better visibility */
}

.contact-name,
.contact-mobile {
    font-size: 1.05rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contact-name strong,
.contact-mobile strong {
    color: var(--primary-forest);
    font-weight: 800;
    /* Increased from 700 */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for better visibility */
}

/* ==================== OFFICE ADDRESS SECTION ==================== */
.office-address-box {
    background: linear-gradient(135deg, #F5F0E8 0%, #EFE5D5 100%);
    /* Changed from green to cream/beige theme */
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 8px solid var(--primary-teal);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.office-address-box:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-yellow);
}

.office-address-box p {
    margin: 0;
    line-height: 1.8;
}

/* ==================== HELPLINE CARDS SECTION ==================== */
.helpline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .helpline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .helpline-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.helpline-card {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 3px solid var(--accent-amber);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.helpline-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.helpline-card:hover::before {
    opacity: 1;
}

.helpline-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-teal);
    background: linear-gradient(135deg, #FFEB3B 0%, #FDD835 100%);
}

.helpline-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    z-index: 1;
}

.helpline-card:hover .helpline-icon {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.helpline-service {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-forest);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.helpline-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-teal);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: all 0.3s ease;
}

.helpline-card:hover .helpline-number {
    color: var(--primary-forest);
    transform: scale(1.1);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

/* ==================== EMERGENCY HELPLINE - NEW HORIZONTAL CARD DESIGN ==================== */
.emergency-helpline-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #FFFDE7 0%, #FFF9C4 100%);
    border-radius: 15px;
    border: 3px solid var(--accent-yellow);
}

@media (min-width: 640px) {
    .emergency-helpline-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .emergency-helpline-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.emergency-helpline-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFDE7 100%);
    border-radius: 12px;
    border: 3px solid var(--accent-yellow);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.emergency-helpline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-teal);
    transition: width 0.3s ease;
}

.emergency-helpline-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.emergency-helpline-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-teal);
}

.emergency-icon {
    font-size: 3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.emergency-helpline-card:hover .emergency-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.emergency-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.emergency-service {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-forest);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergency-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-teal);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.emergency-helpline-card:hover .emergency-number {
    color: var(--primary-forest);
    transform: scale(1.05);
}

/* Mobile responsive adjustments */
@media (max-width: 639px) {
    .emergency-helpline-card {
        flex-direction: column;
        text-align: center;
    }

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

    .emergency-number {
        font-size: 1.8rem;
    }
}

/* ==================== COMPACT VIDEO SECTION FOR HOME PAGE ==================== */
.video-section-home {
    width: 100%;
    margin: 3rem 0;
    padding: 0;
}

.video-container-home {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 248, 233, 0.9) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-teal);
    border-left: 8px solid var(--primary-green);
    transition: all 0.3s ease;
}

.video-container-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-title-home {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-forest);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-teal);
    position: relative;
}

.video-title-home::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-yellow);
}

.video-wrapper-home {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: #000;
}

.video-wrapper-home iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .video-container-home {
        padding: 1.5rem;
    }

    .video-title-home {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-container-home {
        padding: 1rem;
    }

    .video-title-home {
        font-size: 1.3rem;
    }
}

/* Enhanced video wrapper for inline playback */
.video-wrapper-home {
    cursor: pointer;
}

.video-wrapper-home iframe {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Ensure video is clickable and interactive */
.video-section-home * {
    pointer-events: auto;
}

/* ==================== HEADER POPULATION SECTION ==================== */
.header-population {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-emerald) 100%);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
}

.pop-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pop-stats {
    display: flex;
    gap: 1.5rem;
}

.pop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pop-label {
    font-size: 0.7rem;
    color: var(--secondary-lime);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.pop-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .header-population {
        min-width: 180px;
        padding: 0.6rem 1.2rem;
    }

    .pop-title {
        font-size: 0.75rem;
    }

    .pop-stats {
        gap: 1rem;
    }

    .pop-value {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header-population {
        display: none;
        /* Hide on mobile, show in content instead */
    }
}

/* ==================== RESPONSIVE HEADER STYLES ==================== */
/* ==================== IMPROVED HEADER LAYOUT - INLINE SECTIONS ==================== */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--gradient-teal);
    gap: 1.5rem;
    flex-wrap: wrap;
}

.village-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.gp-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.village-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #202018; /* BLACK - changed from white */
    line-height: 1.2;
}

.id-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
}

.id-label {
    font-size: 0.75rem;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.id-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    background: var(--accent-gold);
    padding: 0.25rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.census-id {
    font-size: 0.7rem;
    color: var(--white);
    font-weight: 500;
}

/* Population Section - Inline */
.header-population {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
    min-width: 220px;
}

.pop-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.pop-stats {
    display: flex;
    gap: 1.5rem;
}

.pop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pop-label {
    font-size: 0.7rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pop-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.seal-lang-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rajya-mudra-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.lang-select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--white);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== MOBILE RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .header-top {
        padding: 1rem;
        gap: 1rem;
    }

    .village-title {
        font-size: 1.1rem;
    }

    .gp-logo {
        width: 60px;
        height: 60px;
    }

    .id-value {
        font-size: 1.5rem;
    }

    .header-population {
        min-width: 180px;
    }

    .pop-value {
        font-size: 1.1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .village-title-container {
        justify-content: center;
    }

    .village-title {
        font-size: 1rem;
        text-align: center;
    }

    .gp-logo {
        width: 50px;
        height: 50px;
    }

    .id-center,
    .header-population {
        width: 100%;
    }

    .header-right {
        justify-content: center;
        width: 100%;
    }

    .rajya-mudra-logo {
        width: 50px;
        height: 50px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .village-title {
        font-size: 0.9rem;
    }

    .gp-logo {
        width: 40px;
        height: 40px;
    }

    .id-value {
        font-size: 1.3rem;
    }

    .pop-stats {
        gap: 1rem;
    }

    .pop-value {
        font-size: 1rem;
    }

    .lang-select {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* ==================== LEADERSHIP ROW RESPONSIVE (DUPLICATE - COMMENTED OUT) ==================== */
/* .leadership-row {
    background: var(--light-bg);
    padding: 1.5rem 2rem;
    border-top: 3px solid var(--accent-gold);
}

.leadership-inline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
} */

.leader-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 150px;
    transition: transform 0.3s ease;
}

.leader-item:hover {
    transform: translateY(-5px);
}

.leader-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
    margin-bottom: 0.75rem;
}

.leader-info span {
    font-size: 0.7rem;
    color: var(--primary-forest);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.leader-info p {
    font-size: 0.85rem;
    color: var(--gray-800);
    font-weight: 700;
    margin: 0;
}

@media (max-width: 768px) {
    .leadership-row {
        padding: 1rem;
    }

    .leadership-inline {
        gap: 1rem;
    }

    .leader-item {
        max-width: 120px;
    }

    .leader-img {
        width: 80px;
        height: 80px;
    }

    .leader-info span {
        font-size: 0.65rem;
    }

    .leader-info p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .leader-item {
        max-width: 100px;
    }

    .leader-img {
        width: 70px;
        height: 70px;
    }

    .leader-info span {
        font-size: 0.6rem;
    }

    .leader-info p {
        font-size: 0.7rem;
    }
}


/* ==================== GENERAL MOBILE RESPONSIVENESS ==================== */

/* Main Layout Responsive */
@media (max-width: 1024px) {
    .main-layout-wrapper {
        margin-left: 0 !important;
    }

    .desktop-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
    }

    .desktop-sidebar.active {
        transform: translateX(0);
    }
}

/* Content Area Responsive */
@media (max-width: 768px) {
    .content-area {
        padding: 1rem !important;
    }

    .main-content-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    section {
        padding: 1.5rem 1rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }
}

/* Member Cards Responsive */
@media (max-width: 768px) {

    .member-grid,
    .gp-member-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 1rem !important;
    }

    .member-card {
        padding: 1rem !important;
    }

    .member-img {
        width: 80px !important;
        height: 80px !important;
    }

    .member-name {
        font-size: 0.9rem !important;
    }

    .member-designation {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {

    .member-grid,
    .gp-member-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }

    .member-img {
        width: 70px !important;
        height: 70px !important;
    }
}

/* Tables Responsive */
@media (max-width: 768px) {
    .revenue-table-container {
        overflow-x: auto !important;
    }

    .revenue-services-table {
        font-size: 0.75rem !important;
    }

    .revenue-services-table th,
    .revenue-services-table td {
        padding: 0.5rem !important;
    }
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }
}

/* Slideshow Responsive */
@media (max-width: 768px) {
    .slideshow {
        height: 300px !important;
        border-radius: 15px !important;
    }
}

@media (max-width: 480px) {
    .slideshow {
        height: 200px !important;
        border-radius: 10px !important;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1.5rem 1rem !important;
    }
}

/* Schemes List Responsive */
@media (max-width: 768px) {
    .schemes-list {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .scheme-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* Info Items Responsive */
@media (max-width: 768px) {
    .info-list {
        gap: 1rem !important;
    }

    .info-item {
        padding: 1rem !important;
    }

    .info-item h4 {
        font-size: 1rem !important;
    }

    .info-item p {
        font-size: 0.85rem !important;
    }
}

/* Navigation Responsive */
@media (max-width: 768px) {
    .desktop-nav a {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* Contact Cards Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .contact-card {
        padding: 1rem !important;
    }
}

/* Emergency Helpline Responsive */
@media (max-width: 768px) {
    .emergency-helpline-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 1rem !important;
    }
}

/* Utility Classes for Mobile */
.mobile-hidden {
    display: block;
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

.mobile-only {
    display: none;
}

/* Ensure all text is readable on mobile */
@media (max-width: 480px) {
    body {
        font-size: 14px !important;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    h4 {
        font-size: 1.1rem !important;
    }
}

/* ==================== FIXED LAYOUT - NO OVERLAP ==================== */
/* ==================== FIXED HEADER LAYOUT - NO OVERLAP ==================== */
.header-top {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--gradient-teal);
    gap: 2rem;
    min-height: 120px;
}

.village-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.gp-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.village-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #202018; /* BLACK */
    line-height: 1.3;
    white-space: nowrap;
}

/* LGD ID Section */
.id-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-width: 180px;
}

.id-label {
    font-size: 0.7rem;
    color: var(--gray-700);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.id-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-900);
    background: var(--accent-gold);
    padding: 0.25rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.census-id {
    font-size: 0.7rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* Population Section - Fixed Grid Layout */
.header-population {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-width: 350px;
}

.pop-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.pop-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
}

.pop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pop-label {
    font-size: 0.65rem;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.pop-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
}

/* Seal and Language Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
}

.seal-lang-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rajya-mudra-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.lang-select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--gray-700);
    background: var(--white);
    color: var(--gray-900);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

/* ==================== FIXED MINISTERS SECTION (DUPLICATE - COMMENTED OUT) ==================== */
/* .leadership-row {
    background: var(--light-bg);
    padding: 2rem;
    border-top: 3px solid var(--accent-gold);
}

.leadership-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
} */

.leader-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 150px;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.leader-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.leader-info {
    width: 100%;
}

.leader-info span {
    font-size: 0.65rem;
    color: var(--gray-700);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 32px;
}

.leader-info p {
    font-size: 0.8rem;
    color: var(--gray-900);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* ==================== FOOTER VISIBILITY FIX ==================== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3 {
    color: var(--white) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.5rem;
}

.footer-section p,
.footer-section a,
.footer-section li {
    color: var(--gray-300) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}

.footer-section a:hover {
    color: var(--white) !important;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li::before {
    content: "▸ ";
    color: var(--accent-gold);
    font-weight: bold;
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400) !important;
    font-size: 0.85rem !important;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .header-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .village-title-container,
    .id-center,
    .header-population,
    .header-right {
        justify-self: center;
        width: 100%;
        max-width: 500px;
    }

    .leadership-inline {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 1rem;
        gap: 1rem;
    }

    .village-title {
        font-size: 1rem;
    }

    .gp-logo {
        width: 60px;
        height: 60px;
    }

    .header-population {
        min-width: 100%;
    }

    .pop-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .leadership-inline {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .leader-img {
        width: 70px;
        height: 70px;
    }

    .leader-info span {
        font-size: 0.6rem;
        min-height: 28px;
    }

    .leader-info p {
        font-size: 0.75rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .pop-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leadership-inline {
        grid-template-columns: repeat(2, 1fr);
    }

    .leader-img {
        width: 60px;
        height: 60px;
    }
}


/* ==================== FINAL COMPREHENSIVE FIXES ==================== */
/* ==================== FINAL FIXES - ALL ISSUES ==================== */

/* 1. HEADER LAYOUT - COMPACT LGD ID, PERFECT INLINE */
.header-top {
    display: grid;
    grid-template-columns: minmax(200px, auto) minmax(150px, auto) minmax(350px, auto) minmax(150px, auto);
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--gradient-teal);
    gap: 1.5rem;
    min-height: 120px;
}

.village-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gp-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.village-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #202018; /* BLACK */
    line-height: 1.3;
}

/* LGD ID Section - COMPACT */
.id-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    min-width: 150px;
    max-width: 180px;
}

.id-label {
    font-size: 0.65rem;
    color: var(--gray-700);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.4rem;
    text-align: center;
    line-height: 1.2;
}

.id-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    background: var(--accent-gold);
    padding: 0.2rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.census-id {
    font-size: 0.65rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* Population Section */
.header-population {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.pop-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.6rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pop-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.pop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pop-label {
    font-size: 0.6rem;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.pop-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-900);
}

/* Seal and Language */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.seal-lang-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rajya-mudra-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.lang-select {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    border: 2px solid var(--gray-700);
    background: var(--white);
    color: var(--gray-900);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}

/* 2. MINISTERS SECTION - 4-3-3 LAYOUT (DUPLICATE - COMMENTED OUT) */
/* .leadership-row {
    background: var(--light-bg);
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--accent-gold);
}

.leadership-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
} */

.leadership-inline .leader-item:nth-child(n+5):nth-child(-n+7) {
    grid-column: span 1;
}

.leadership-inline .leader-item:nth-child(n+8) {
    grid-column: span 1;
}

/* Adjust grid for second and third rows */
.leadership-inline::after {
    content: "";
    grid-column: 1 / -1;
}

.leader-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    min-height: 200px;
}

.leader-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.leader-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.leader-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.leader-info span {
    font-size: 0.65rem;
    color: var(--gray-700);
    font-weight: 600;
    line-height: 1.3;
    min-height: 36px;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 0.25rem;
}

.leader-info p {
    font-size: 0.8rem;
    color: var(--gray-900);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* 3. SLIDESHOW - FULL VIEW, NO WHITE SPACE */
.slideshow {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background: var(--gray-200);
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    animation: fadeSlide 1s ease-in-out;
}

.slideshow-image.active {
    display: block;
}

/* 4. FOOTER - SAME COLOR AS HEADER */
.footer {
    background: var(--gradient-teal);
    color: var(--gray-900);
    padding: 2.5rem 0 1.5rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--accent-gold);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3 {
    color: var(--gray-900) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.5rem;
}

.footer-section p,
.footer-section a,
.footer-section li {
    color: var(--gray-800) !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    margin-bottom: 0.6rem !important;
}

.footer-section a:hover {
    color: var(--gray-900) !important;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li::before {
    content: "▸ ";
    color: var(--accent-gold);
    font-weight: bold;
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem 1rem 2rem;
    margin-top: 2rem;
    border-top: 2px solid var(--accent-gold);
    color: var(--gray-800) !important;
    font-size: 0.85rem !important;
}

/* 6. VIDEO FIX - PLAY WITHIN WEBSITE */
.video-wrapper-home {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    background: var(--gray-200);
}

.video-wrapper-home iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1200px) {
    .header-top {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .village-title-container,
    .id-center,
    .header-population,
    .header-right {
        justify-self: center;
        width: 100%;
        max-width: 500px;
    }

    /* .leadership-inline grid rules removed - using horizontal flex layout */
}

@media (max-width: 768px) {
    .header-top {
        padding: 1rem;
        gap: 1rem;
    }

    .pop-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    /* .leadership-inline grid rules removed - using horizontal flex layout */

    .leader-img {
        width: 75px;
        height: 75px;
    }

    .slideshow {
        height: 300px;
        border-radius: 15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .pop-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leadership-inline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .leader-img {
        width: 65px;
        height: 65px;
    }

    .slideshow {
        height: 200px;
        border-radius: 10px;
    }
}


/* ==================== MINISTERS 4-3-3 GRID LAYOUT (DUPLICATE - COMMENTED OUT) ==================== */
/* .leadership-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
} */

/* First 4 items - full row */
.leadership-inline .leader-item:nth-child(1),
.leadership-inline .leader-item:nth-child(2),
.leadership-inline .leader-item:nth-child(3),
.leadership-inline .leader-item:nth-child(4) {
    grid-column: span 1;
}

/* Items 5-7 - centered in second row (3 items) */
.leadership-inline .leader-item:nth-child(5) {
    grid-column: 1 / 2;
}

.leadership-inline .leader-item:nth-child(6) {
    grid-column: 2 / 3;
}

.leadership-inline .leader-item:nth-child(7) {
    grid-column: 3 / 4;
}

/* Items 8-10 - centered in third row (3 items) */
.leadership-inline .leader-item:nth-child(8) {
    grid-column: 1 / 2;
}

.leadership-inline .leader-item:nth-child(9) {
    grid-column: 2 / 3;
}

.leadership-inline .leader-item:nth-child(10) {
    grid-column: 3 / 4;
}

@media (max-width: 1200px) {
    .leadership-inline {
        grid-template-columns: repeat(3, 1fr);
    }

    .leadership-inline .leader-item {
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px) {
    .leadership-inline {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==================== ATTRACTIVE MINISTERS 4-3-3 ==================== */
/* ==================== ATTRACTIVE MINISTERS SECTION - 4-3-3 LAYOUT ==================== */
.leadership-row {
    background: linear-gradient(135deg, #FAF7F2 0%, #F5F0E8 100%);
    padding: 3rem 2rem;
    border-top: 4px solid var(--accent-gold);
}

/* .leadership-inline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
} */

/* Row 1: 4 items */
.leadership-inline .leader-item:nth-child(1),
.leadership-inline .leader-item:nth-child(2),
.leadership-inline .leader-item:nth-child(3),
.leadership-inline .leader-item:nth-child(4) {
    grid-column: span 1;
}

/* Row 2: 3 items centered */
.leadership-inline .leader-item:nth-child(5) {
    grid-column: 1 / 2;
    margin-left: auto;
    margin-right: 0;
}

.leadership-inline .leader-item:nth-child(6) {
    grid-column: 2 / 3;
}

.leadership-inline .leader-item:nth-child(7) {
    grid-column: 3 / 4;
    margin-left: 0;
    margin-right: auto;
}

/* Row 3: 3 items centered */
.leadership-inline .leader-item:nth-child(8) {
    grid-column: 1 / 2;
    margin-left: auto;
    margin-right: 0;
}

.leadership-inline .leader-item:nth-child(9) {
    grid-column: 2 / 3;
}

.leadership-inline .leader-item:nth-child(10) {
    grid-column: 3 / 4;
    margin-left: 0;
    margin-right: auto;
}

.leader-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 110px;
    width: 100%;
    max-width: 280px;
}

.leader-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.leader-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.leader-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.leader-info span {
    font-size: 0.7rem;
    color: var(--gray-700);
    font-weight: 600;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
}

.leader-info p {
    font-size: 0.85rem;
    color: var(--gray-900);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Social icons if needed */
.leader-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.leader-social a {
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.leader-social a:hover {
    color: var(--accent-gold);
}

@media (max-width: 1200px) {
    .leadership-inline {
        grid-template-columns: repeat(3, 1fr);
    }

    .leadership-inline .leader-item {
        grid-column: span 1 !important;
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .leadership-row {
        padding: 0.5rem 0.25rem !important;
        /* Minimal padding for mobile */
        background: #F5EFE7 !important;
    }

    .leadership-inline {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        /* Reduced gap for compact mobile view */
        align-items: center !important;
    }

    .leader-item {
        max-width: 100% !important;
        min-height: auto !important;
        /* Remove fixed height */
        padding: 0.75rem !important;
        /* Reduced padding */
        width: 90% !important;
        /* Consistent width */
        display: flex !important;
        flex-direction: row !important;
        /* Horizontal layout on mobile */
        text-align: left !important;
        gap: 1rem !important;
    }

    .leader-img {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }

    .leader-info {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .leader-info span {
        font-size: 0.55rem !important;
        min-height: auto !important;
    }

    .leader-info p {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .leadership-inline {
        gap: 1.25rem 0.75rem;
    }

    .leader-img {
        width: 75px;
        height: 75px;
    }

    .leader-info span {
        font-size: 0.65rem;
        min-height: 36px;
    }

    .leader-info p {
        font-size: 0.8rem;
    }
}


/* ==================== LEADERSHIP SECTION - HORIZONTAL ROW DESIGN ==================== */
/* Enforcing single horizontal row layout with sky-blue background to match reference image */

.leadership-row {
    width: 100% !important;
    background: linear-gradient(135deg, #F5F0E8 0%, #EFE5D5 100%) !important;
    /* Warm cream/beige gradient matching website theme */
    padding: 2rem 0.5rem !important;
    /* Equal top and bottom spacing */
    display: flex !important;
    justify-content: center !important;
    border-bottom: 2px solid #D4B896 !important;
}

.leadership-inline {
    display: flex !important;
    flex-wrap: nowrap !important;
    /* Single row, no wrapping */
    overflow-x: hidden !important;
    /* No scrollbar - all fit inline */
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    justify-content: space-evenly !important;
    align-items: flex-start !important;
    padding: 0 !important;
}

/* Hide scrollbar completely */
.leadership-inline::-webkit-scrollbar {
    display: none !important;
}

.leadership-inline {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Leader item styling - reduced size to fit all 10 inline */
.leadership-inline .leader-item,
.leader-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    background: transparent !important;
    /* No card background */
    padding: 0.3rem !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
    min-width: 85px !important;
    max-width: 95px !important;
    margin: 0 !important;
    transform: none !important;
    /* Reset any transforms */
}

.leadership-inline .leader-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: none !important;
}

/* Leader images - circular with white border - reduced size */
.leadership-inline .leader-img,
.leader-img {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    /* White border */
    object-fit: cover !important;
    margin-bottom: 0.4rem !important;
    padding: 0 !important;
    background: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.leadership-inline .leader-item:hover .leader-img {
    transform: scale(1.05) !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

/* Text styling - centered below images - reduced size */
.leadership-inline .leader-info,
.leader-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
    width: 100% !important;
    z-index: 1 !important;
    text-align: center !important;
}

.leadership-inline .leader-info span,
.leader-info span {
    font-size: 0.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--gray-800) !important;
    letter-spacing: 0.2px !important;
    margin-bottom: 0.05rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.leadership-inline .leader-info p,
.leader-info p {
    font-size: 0.6rem !important;
    font-weight: 500 !important;
    color: #C9B088 !important;
    /* Matching website accent color */
    line-height: 1.2 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Responsive: maintain horizontal scroll on all screen sizes */
@media (max-width: 1200px) {
    .leadership-inline {
        justify-content: flex-start !important;
        /* Align left when scrolling occurs */
    }
}

@media (max-width: 768px) {
    .leadership-row {
        padding: 1.5rem 0.5rem !important;
    }

    .leadership-inline {
        gap: 0.75rem !important;
    }

    .leadership-inline .leader-item,
    .leader-item {
        min-width: 120px !important;
        max-width: 130px !important;
    }

    .leadership-inline .leader-img,
    .leader-img {
        width: 85px !important;
        height: 85px !important;
    }
}

@media (max-width: 480px) {

    .leadership-inline .leader-img,
    .leader-img {
        width: 75px !important;
        height: 75px !important;
    }

    .leadership-inline .leader-info span,
    .leader-info span {
        font-size: 0.65rem !important;
    }

    .leadership-inline .leader-info p,
    .leader-info p {
        font-size: 0.85rem !important;
    }
}



/* ==================== VISIBILITY FIXES ==================== */
/* ==================== VISIBILITY & TRANSLATION TEXT FIXES ==================== */

/* 1. FORCE FOOTER VISIBILITY */
.footer {
    background: #111827 !important;
    /* Very Dark Blue/Gray */
    color: #ffffff !important;
}

.footer h3,
.footer-section h3 {
    color: #ffd700 !important;
    /* Gold for headings */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border-bottom-color: #ffd700 !important;
}

.footer p,
.footer li,
.footer a,
.footer span,
.footer div {
    color: #f3f4f6 !important;
    /* Off-white for high contrast */
    font-weight: 500 !important;
}

.footer a:hover {
    color: #ffd700 !important;
    text-decoration: none !important;
}

.footer-bottom {
    border-top: 1px solid #374151 !important;
    color: #9ca3af !important;
    /* Slightly dimmer for copyright */
}

/* 2. GLOBAL CONTENT VISIBILITY */
/* ensure no gray-on-gray issues in main content */

.content-area p,
.content-area li {
    color: #1f2937;
    /* Dark Gray for readability */
    line-height: 1.6;
}

/* Fix specific sections if they are too light */
.leader-info span {
    color: #4b5563 !important;
    /* Darker gray for designations */
    font-weight: 700 !important;
}

.leader-info p {
    color: #111827 !important;
    /* Almost black for names */
}


/* ==================== FOOTER & TABLE FIXES ==================== */
/* ==================== FOOTER & TABLE VISIBILITY FIXES ==================== */

/* 1. FOOTER - Light Background, Black Text */
.footer {
    background: #F5F0E8 !important;
    /* Light Beige matching previous theme */
    color: #000000 !important;
    border-top: 5px solid var(--accent-gold);
}

.footer h3,
.footer-section h3 {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 800 !important;
    border-bottom: 2px solid var(--accent-gold);
}

.footer p,
.footer li,
.footer a,
.footer span,
.footer div {
    color: #111111 !important;
    /* Very Dark Gray/Black */
    font-weight: 600 !important;
}

.footer a:hover {
    color: var(--accent-gold) !important;
    text-decoration: underline !important;
}

.footer-bottom {
    border-top: 1px solid #ccc !important;
    color: #333333 !important;
}

/* 2. TABLE HEADINGS - Black Text */
.revenue-services-table th,
.table th {
    color: #000000 !important;
    font-weight: 800 !important;
    background: #e5e7eb;
    /* Light gray background for contrast */
}


/* ==================== FINAL POLISH & RESPONSIVE ==================== */
/* ==================== FINAL POLISH: FOOTER & RESPONSIVENESS ==================== */

/* 1. FOOTER REFINEMENT - Decent Black (Softened) */
.footer {
    background: #F5F0E8 !important;
    /* Gentle beige */
    color: #374151 !important;
    /* Dark Gray - readable but not harsh */
    border-top: 4px solid var(--accent-gold);
}

.footer h3,
.footer-section h3 {
    color: #111827 !important;
    /* Almost black for headings */
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem !important;
}

.footer p,
.footer li,
.footer span,
.footer div {
    color: #4b5563 !important;
    /* Medium Dark Gray */
    font-weight: 500 !important;
    /* Normal weight, not too bold */
    line-height: 1.6 !important;
}

/* Fix for Link Visibility (Aaple Sarkar / Others) */
.footer a {
    color: #2563eb !important;
    /* Distinct Royal Blue for Links */
    text-decoration: none;
    font-weight: 600 !important;
    transition: color 0.2s;
}

.footer a:hover {
    color: #1e40af !important;
    /* Darker Blue on hover */
    text-decoration: underline !important;
}

.footer-bottom {
    border-top: 1px solid #d1d5db !important;
    color: #6b7280 !important;
    /* Lighter gray for copyright */
    font-size: 0.9rem !important;
}


/* 2. COMPREHENSIVE RESPONSIVENESS FIXES */

/* Tables - Horizontal Scroll on Mobile */
.revenue-table-container,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table {
    min-width: 600px;
    /* Force scroll on small screens if table compressed */
}

/* Ministers Section - Mobile Optimization - REMOVED */
/* Conflicting rules removed to allow horizontal scrolling layout */

/* Header Sections - Mobile Stacking */
@media (max-width: 900px) {
    .header-top {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .village-title-container,
    .id-center,
    .header-population,
    .header-right {
        width: 100% !important;
        max-width: 400px !important;
        justify-self: center !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .village-title {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Navigation - Mobile Menu Touch Targets */
.sidebar-nav a,
.mobile-menu-link {
    padding: 12px 16px !important;
    /* Larger touch targets */
    font-size: 1rem !important;
}


/* ==================== FINAL RESPONSIVE FIXES ==================== */
/* ==================== FINAL RESPONSIVE & VISIBILITY FIXES ==================== */

/* 1. REVENUE LINK VISIBILITY (Black Text) */
.scheme-link-external,
.scheme-link-external span,
.scheme-link-external svg {
    color: #000000 !important;
    /* Force Black */
    font-weight: 700 !important;
}

.scheme-link-external:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    /* Slight dark hover */
}

/* 2. MOBILE RESPONSIVE MENU FIXES */
@media (max-width: 900px) {

    /* Menu Container */
    .sidebar-nav {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        /* Hidden by default */
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: var(--primary-forest) !important;
        z-index: 9999 !important;
        transition: left 0.3s ease-in-out !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5) !important;
        padding-top: 1rem !important;
    }

    /* Active State (Toggled via JS) */
    .sidebar-nav.active {
        left: 0 !important;
        /* Slide in */
    }

    /* Hamburger Button - Ensure Visible */
    #toggle-btn,
    .toggle-btn {
        display: block !important;
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        z-index: 10000 !important;
        /* Above everything */
        background: var(--accent-gold) !important;
        color: #000 !important;
        padding: 0.5rem !important;
        border-radius: 4px !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    }

    /* Overlay when menu is open (optional but good) */
    .sidebar-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 300px;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        pointer-events: none;
    }

    /* Main Content Adjustment */
    .content-area {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1rem !important;
        padding-top: 80px !important;
        /* Space for hamburger/header */
    }

    /* Header Adjustments for Content Flow */
    .header {
        position: relative !important;
        z-index: 50 !important;
    }
}

/* 3. GLOBAL RESPONSIVE STACKING */
@media (max-width: 768px) {

    /* Stack Grid layouts */
    .main-content-grid,
    .contact-grid,
    .emergency-helpline-container,
    .leadership-full-grid,
    .gallery-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ensure items take full width */
    .contact-card,
    .emergency-helpline-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }

    /* .leader-item removed from this rule to preserve horizontal layout */

    /* Stack Header Inline Elements */
    .header-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        height: auto !important;
        padding-bottom: 1rem !important;
    }

    .village-title-container,
    .header-right {
        width: 100% !important;
        justify-content: center !important;
        margin: 0.5rem 0 !important;
    }
}


/* ==================== MENU FIX ==================== */
/* ==================== MENU LOGIC FIX ==================== */

@media (max-width: 900px) {

    /* 1. Correctly target the Parent ID for the Drawer behavior */
    #sidebar-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        /* Hidden by default */
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: var(--primary-forest) !important;
        z-index: 9999 !important;
        transition: left 0.3s ease-in-out !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5) !important;
        padding-top: 0 !important;
        display: block !important;
    }

    /* 2. Show sidebar when 'open' class is added by JS */
    #sidebar-menu.open {
        left: 0 !important;
    }

    /* 3. Reset the child .sidebar-nav so it doesn't float independently */
    .sidebar-nav,
    #sidebar-menu .sidebar-nav {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        left: auto !important;
        top: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 1rem !important;
        transform: none !important;
    }

    /* 4. Ensure Overlay works with new class logic if needed */
    .sidebar-overlay.visible {
        display: block !important;
        opacity: 1 !important;
    }
}


/* ==================== FINAL MENU TRANSFORM FIX ==================== */
/* ==================== FINAL PROPER MENU FIX (TRANSFORM) ==================== */

@media (max-width: 900px) {

    /* 1. Reset the sidebar to be a FIXED sidebar drawer */
    #sidebar-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        /* Always anchored left */
        height: 100vh !important;
        width: 80% !important;
        max-width: 300px !important;
        background: #BFA588 !important;
        /* Match the beige/gold theme from screenshot */
        z-index: 99999 !important;
        /* Extreme Z-Index to be on top of everything */

        /* Use Transform for performance and reliability */
        transform: translateX(-105%) !important;
        /* Hidden off-screen */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;

        /* Visuals */
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
        padding-top: 0 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    /* 2. Open State */
    #sidebar-menu.open {
        transform: translateX(0) !important;
        /* Slide In */
    }

    /* 3. Header inside Menu */
    .sidebar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 1.5rem !important;
        background: rgba(0, 0, 0, 0.05) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* 4. Links inside Menu */
    .sidebar-nav {
        display: flex !important;
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
        overflow-y: auto !important;
    }

    .sidebar-nav a {
        display: block !important;
        padding: 0.75rem 1rem !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        font-size: 1.1rem !important;
        color: white !important;
        font-weight: 600 !important;
        text-align: left !important;
        text-decoration: none !important;
    }

    /* 5. Overlay */
    .sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 99998 !important;
        /* Just below menu */
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }

    .sidebar-overlay.visible {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* 6. Ensure Hamburger is Visible */
    .mobile-menu-btn {
        display: block !important;
        z-index: 1000 !important;
    }
}


/* ==================== FINAL LAYOUT V2 ==================== */
/* ==================== FINAL LAYOUT & CONTENT ADJUSTMENTS ==================== */

/* 1. MINISTERS GRID: 5x5 Layout (DUPLICATE - COMMENTED OUT) */
/* @media (min-width: 1200px) {
    .leadership-inline {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.75rem !important;
        justify-content: center !important;
        padding: 0 1rem !important;
    }

    .leader-item {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 180px !important;
        padding: 0.75rem 0.25rem !important;
        border-radius: 8px !important;
    }

    .leader-img {
        width: 70px !important;
        height: 70px !important;
        border-width: 2px !important;
        margin-bottom: 0.25rem !important;
    }

    .leader-info h4,
    .leader-info p {
        font-size: 0.75rem !important;
        margin-top: 0.25rem !important;
        line-height: 1.2 !important;
    }

    .leader-info span {
        font-size: 0.65rem !important;
        min-height: 30px !important;
        line-height: 1.1 !important;
        display: block;
    }
} */

/* On smaller desktops, maybe 4 columns or scroll? No, keep it responsive. */
@media (max-width: 1199px) and (min-width: 768px) {
    .leadership-inline {
        grid-template-columns: repeat(3, 1fr) !important;
        /* Fallback for tablets */
    }
}

/* 2. VILLAGE TITLE - INLINE */
.village-title-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    /* Force inline */
    max-width: none !important;
    width: auto !important;
}

.village-title {
    display: inline-block !important;
    white-space: nowrap !important;
    font-size: 1.3rem !important;
    /* Adjust if too big */
    text-align: left !important;
    line-height: 1 !important;
}

/* If screen starts cutting off title, allow wrap gracefully or scale font */
@media (max-width: 600px) {
    .village-title {
        white-space: normal !important;
        font-size: 1.4rem !important;
        text-align: center !important;
    }

    .village-title-container {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* 3. GOVERNMENT SCHEMES LAYOUT */
.schemes-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 1.5rem !important;
}

.scheme-link {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    color: var(--gray-800) !important;
}

.scheme-link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-forest) !important;
    background: #f9fafb !important;
}

.scheme-icon {
    width: 32px !important;
    height: 32px !important;
    margin-right: 1rem !important;
    color: var(--primary-forest) !important;
    flex-shrink: 0 !important;
}

.scheme-link span {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

/* Footer Year - Ensure Style doesn't override logic (JS handles year content) */


/* ================= SCHEMES STYLES ================= */
/* SCHEMES SECTION DASHBOARD STYLES */
.schemes-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 1rem !important;
}

.scheme-link {
    display: flex !important;
    align-items: center !important;
    padding: 1.5rem !important;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%) !important;
    /* Changed from green tint to cream/beige */
    color: var(--gray-800) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 6px rgba(180, 160, 128, 0.15) !important;
    /* Changed shadow to match beige theme */
    border: 2px solid var(--primary-teal) !important;
    /* Changed from #a5d6a7 (light green) to beige/tan */
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.scheme-link:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(180, 160, 128, 0.25) !important;
    /* Changed shadow to match beige theme */
    border-color: var(--primary-forest) !important;
    /* Changed from var(--primary-forest) (green) to darker beige */
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-yellow) 100%) !important;
    /* Changed from green gradient to beige gradient */
    color: var(--gray-800) !important;
    /* Keep dark text for readability */
}

.scheme-link:hover .scheme-icon {
    color: var(--primary-forest) !important;
    /* Changed from white to dark beige */
}

.scheme-icon {
    width: 32px !important;
    height: 32px !important;
    margin-right: 1rem !important;
    color: var(--primary-forest) !important;
    /* Changed from var(--primary-forest) (green) to dark beige */
    transition: color 0.3s ease !important;
}

/* SCHEME DETAIL PAGE */
#scheme-content-area {
    padding: 2rem 1rem !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

.scheme-detail-box {
    padding: 2.5rem !important;
    background: white !important;
    border-radius: 15px !important;
    border: 3px solid var(--primary-forest) !important;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.2) !important;
    animation: fadeIn 0.4s ease-out;
}

.scheme-detail-box h3 {
    color: var(--primary-forest) !important;
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 2px solid var(--secondary-lime) !important;
    padding-bottom: 0.5rem !important;
}

.detail-subtitle {
    color: var(--primary-forest) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.detail-list {
    margin-left: 20px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.back-btn {
    display: inline-block !important;
    margin-bottom: 1.5rem !important;
    padding: 0.6rem 1.2rem !important;
    background: #f1f8e9 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: var(--primary-forest) !important;
    cursor: pointer !important;
    font-weight: bold !important;
    border: 2px solid #a5d6a7 !important;
    font-size: 1rem !important;
    transition: all 0.2s !important;
}

.back-btn:hover {
    background: #e8f5e9 !important;
    border-color: var(--primary-forest) !important;
    transform: translateX(-3px) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* FIX MINISTERS GRID 5x2 (DUPLICATE - COMMENTED OUT) */
/* @media (min-width: 900px) {
    .leadership-inline {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0 0.5rem !important;
    }

    .leader-item {
        min-height: 160px !important;
        padding: 0.5rem !important;
    }

    .leader-img {
        width: 60px !important;
        height: 60px !important;
    }

    .leader-info h4 {
        font-size: 0.8rem !important;
    }

    .leader-info p {
        font-size: 0.7rem !important;
    }
} */


/* FINAL REFINEMENT: LEADER SECTION 5x2 GRID (DUPLICATE - COMMENTED OUT) */
/* @media (min-width: 900px) {
    .leadership-row {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.5rem !important;
    }

    .leadership-inline {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.5rem !important;
        justify-items: center !important;
    }

    .leader-item {
        width: 100% !important;
        min-height: 140px !important;
        padding: 0.5rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .leader-img {
        width: 55px !important;
        height: 55px !important;
        margin-bottom: 5px !important;
    }

    .leader-info span {
        font-size: 0.6rem !important;
        line-height: 1.1 !important;
        display: block !important;
        margin-bottom: 2px !important;
    }

    .leader-info p {
        font-size: 0.7rem !important;
        font-weight: bold !important;
        margin-top: 2px !important;
    }
} */
/* ==================== SCHEME DETAIL PAGES STYLING ==================== */

/* Scheme Detail Box - Clean, Professional Layout */
.scheme-detail-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 245, 250, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid var(--primary-teal);
    border-left: 6px solid var(--primary-forest);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.scheme-detail-box h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-forest);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-teal);
}

.scheme-detail-box h4.detail-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-forest);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.scheme-detail-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

/* Detail Lists - Bullet Points and Numbered Lists */
.detail-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.detail-list.numbered-list {
    list-style-type: decimal;
}

.detail-list.numbered-list li {
    padding-left: 0.5rem;
}

/* External Link Button */
.scheme-link-external {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-emerald) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px;
    border: 3px solid var(--accent-yellow);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 2rem;
}

.scheme-link-external:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--primary-forest) 100%);
}

.scheme-link-external svg {
    width: 20px;
    height: 20px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gray-200);
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.back-btn:hover {
    background: var(--gray-300);
    transform: translateX(-5px);
}

/* Scheme Page Title Styling */
#scheme-details .section-title {
    font-size: 2.2rem;
    color: var(--primary-forest);
    border-bottom: 4px solid var(--primary-teal);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Responsive Design for Scheme Pages */
@media (max-width: 768px) {
    .scheme-detail-box {
        padding: 1.5rem;
    }

    .scheme-detail-box h3 {
        font-size: 1.3rem;
    }

    .scheme-detail-box h4.detail-subtitle {
        font-size: 1.1rem;
    }

    .scheme-detail-box p,
    .detail-list li {
        font-size: 0.95rem;
    }

    .scheme-link-external {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */

/* Mobile First - Small Devices (up to 640px) */
@media (max-width: 640px) {
    .header-container {
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 1rem !important;
    }

    .logo-title-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }

    .logo {
        width: 60px !important;
        height: 60px !important;
    }

    .village-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    .seal-lang-container {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 1rem !important;
    }

    .rajya-mudra-logo {
        width: 45px !important;
        height: 45px !important;
    }

    .lang-select {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .leadership-inline {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .leader-item {
        width: 100% !important;
        padding: 1rem !important;
        min-height: auto !important;
    }

    .leader-img {
        width: 70px !important;
        height: 70px !important;
    }

    .population-stats {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }

    .desktop-nav {
        display: none !important;
    }

    .section {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
    }

    .section-title {
        font-size: 1.4rem !important;
        padding-bottom: 0.75rem !important;
    }

    .member-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .member-card {
        padding: 1rem !important;
    }

    .member-img {
        width: 70px !important;
        height: 70px !important;
    }

    .schemes-list {
        grid-template-columns: 1fr !important;
        padding: 0 1rem !important;
        gap: 1rem !important;
    }

    .scheme-link {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }

    .scheme-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.2rem !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1.5rem 1rem !important;
    }

    .footer h3 {
        font-size: 1.1rem !important;
    }

    .footer p,
    .footer li {
        font-size: 0.85rem !important;
    }

    .scheme-detail-box {
        padding: 1.5rem 1rem !important;
        margin: 1rem !important;
    }

    .scheme-detail-box h3 {
        font-size: 1.3rem !important;
    }

    .scheme-detail-box h4.detail-subtitle {
        font-size: 1.1rem !important;
    }

    .scheme-detail-box p,
    .detail-list li {
        font-size: 0.9rem !important;
    }

    .back-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .scheme-link-external {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    .revenue-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .revenue-table {
        font-size: 0.75rem !important;
    }

    .revenue-table th,
    .revenue-table td {
        padding: 0.5rem 0.25rem !important;
    }
}

/* Tablet Devices (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .header-container {
        padding: 1.5rem !important;
    }

    .logo {
        width: 70px !important;
        height: 70px !important;
    }

    .village-title {
        font-size: 1.2rem !important;
    }

    .leadership-inline {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .schemes-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Large Tablets (1025px to 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .leadership-inline {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .member-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
    .header-container {
        padding: 0.75rem !important;
    }

    .village-title {
        font-size: 1rem !important;
    }

    .section {
        padding: 1rem 0.75rem !important;
    }

    .section-title {
        font-size: 1.2rem !important;
    }

    .scheme-link {
        padding: 0.75rem !important;
        font-size: 0.85rem !important;
    }

    .footer-container {
        padding: 1rem 0.75rem !important;
    }
}

/* ==================== MOBILE & VISIBILITY ENHANCEMENTS ==================== */
/* ==================== MOBILE LEADERSHIP SECTION FIX ==================== */
/* Better alignment and compact layout for mobile */

@media (max-width: 768px) {
    .leadership-row {
        padding: 0.5rem 0 !important;
        /* Minimal padding */
        background: #F5EFE7 !important;
        border-bottom: 1px solid #D4C5B0 !important;
    }

    .leadership-inline {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        /* Tight spacing */
        align-items: stretch !important;
        padding: 0 0.5rem !important;
    }

    .leader-item {
        max-width: 100% !important;
        min-height: auto !important;
        padding: 0.5rem !important;
        /* Compact padding */
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 0.75rem !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        margin: 0 !important;
    }

    .leader-img {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0 !important;
        border: 2px solid #D4B896 !important;
    }

    .leader-info {
        align-items: flex-start !important;
        text-align: left !important;
        flex: 1 !important;
    }

    .leader-info span {
        font-size: 0.5rem !important;
        min-height: auto !important;
        color: #404038 !important;
        /* Darker for better visibility */
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin-bottom: 0.15rem !important;
    }

    .leader-info p {
        font-size: 0.65rem !important;
        color: #202018 !important;
        /* Much darker - almost black */
        font-weight: 700 !important;
        /* Bolder */
        line-height: 1.2 !important;
    }
}

/* ==================== ENHANCED HEADING & NAME VISIBILITY ==================== */
/* Make all headings and names more attractive and visible */

/* Section Titles - Main headings */
.section-title {
    color: #202018 !important;
    /* Almost black for maximum visibility */
    font-weight: 900 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    /* Stronger shadow */
    letter-spacing: 0.5px !important;
}

/* Member Names */
.member-name {
    color: #202018 !important;
    /* Almost black */
    font-weight: 900 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

/* Member Designation */
.member-designation {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 700 !important;
}

/* Contact Role Headings */
.contact-role {
    color: #202018 !important;
    /* Almost black */
    font-weight: 900 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    border-bottom: 3px solid #D4B896 !important;
}

/* Contact Names - Strong text */
.contact-name strong,
.contact-mobile strong {
    color: #202018 !important;
    /* Almost black */
    font-weight: 800 !important;
}

/* Scheme Detail Headings */
.scheme-detail-box h3 {
    color: #202018 !important;
    /* Almost black */
    font-weight: 900 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 3px solid #D4B896 !important;
}

/* Scheme Subtitles */
.detail-subtitle {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.scheme-detail-box h4.detail-subtitle {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Revenue Service Names */
.revenue-services-table tbody td:nth-child(2) {
    color: #202018 !important;
    /* Almost black */
    font-weight: 700 !important;
}

/* Helpline Service Names */
.helpline-service {
    color: #202018 !important;
    /* Almost black */
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Footer Headings */
.footer h3 {
    color: #FFFFFF !important;
    /* White for footer */
    font-weight: 900 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Population Card Labels */
.population-card-label {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 800 !important;
}

/* Scheme Page Title */
#scheme-details .section-title {
    color: #202018 !important;
    /* Almost black */
    font-weight: 900 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Info Item Headings */
.info-item h4 {
    color: #202018 !important;
    /* Almost black */
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Desktop Navigation Links */
.desktop-nav a {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 800 !important;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: white !important;
}

/* Header Village Title */
.village-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 800 !important;
    color: #202018 !important; /* BLACK - changed from white */
    text-align: left;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    white-space: nowrap;
}

/* ID Label and Value */
.id-label {
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.id-value {
    color: #202018 !important;
    /* Almost black */
    font-weight: 900 !important;
}

/* ==================== PROFESSIONAL MINIMAL BOLD STYLING ==================== */
/* ==================== PROFESSIONAL TEXT STYLING - MINIMAL BOLD ==================== */
/* Reduced boldness for professional appearance */

/* Section Titles - Professional bold (not too much) */
.section-title {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold - reduced from 900 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    /* Subtle shadow */
    letter-spacing: 0.3px !important;
}

/* Member Names - Professional bold */
.member-name {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold - reduced from 900 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Member Designation */
.member-designation {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 600 !important;
    /* Medium bold */
}

/* Contact Role Headings - Professional bold */
.contact-role {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold - reduced from 900 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 3px solid #D4B896 !important;
}

/* Contact Names - Professional bold */
.contact-name strong,
.contact-mobile strong {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold - reduced from 800 */
}

/* Scheme Detail Headings - Professional bold */
.scheme-detail-box h3 {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold - reduced from 900 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 3px solid #D4B896 !important;
}

/* Scheme Subtitles - Professional bold */
.detail-subtitle {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 700 !important;
    /* Professional bold - reduced from 800 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

.scheme-detail-box h4.detail-subtitle {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 700 !important;
    /* Professional bold */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Revenue Service Names - Professional bold */
.revenue-services-table tbody td:nth-child(2) {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold */
}

/* Revenue Sr. No. Column - BLACK */
.revenue-services-table tbody td:first-child {
    font-weight: 700 !important;
    /* Professional bold */
    color: #202018 !important;
    /* BLACK - changed from teal */
    text-align: center;
    font-size: 1rem;
}

/* Helpline Service Names - Professional bold */
.helpline-service {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold - reduced from 900 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Footer Headings - BLACK (not white) */
.footer h3 {
    color: #202018 !important;
    /* BLACK - changed from white */
    font-weight: 700 !important;
    /* Professional bold - reduced from 900 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

/* Population Card Labels - Professional bold */
.population-card-label {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 700 !important;
    /* Professional bold - reduced from 800 */
}

/* Scheme Page Title - Professional bold */
#scheme-details .section-title {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold - reduced from 900 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

/* Info Item Headings - Professional bold */
.info-item h4 {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold - reduced from 900 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Desktop Navigation Links - Professional bold */
.desktop-nav a {
    color: #404038 !important;
    /* Dark gray */
    font-weight: 700 !important;
    /* Professional bold - reduced from 800 */
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: white !important;
    /* White on hover/active is OK */
}

/* Header Village Title - Keep white but reduce bold */
.village-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 800 !important;
    color: #202018 !important; /* BLACK - changed from white */
    text-align: left;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    white-space: nowrap;
}

/* ID Label and Value */
.id-label {
    font-weight: 700 !important;
    /* Professional bold - reduced from 800 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.id-value {
    color: #202018 !important;
    /* Black */
    font-weight: 800 !important;
    /* Keep 800 for emphasis */
}

/* Mobile Leadership Section - Professional bold */
@media (max-width: 768px) {
    .leader-info span {
        font-size: 0.5rem !important;
        color: #404038 !important;
        /* Dark gray */
        font-weight: 600 !important;
        /* Medium bold - reduced from 700 */
    }

    .leader-info p {
        font-size: 0.65rem !important;
        color: #202018 !important;
        /* Black */
        font-weight: 700 !important;
        /* Professional bold */
    }
}

/* Contact Card Headings - Professional bold */
.contact-card h3 {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Sidebar Header - Professional bold */
.sidebar-header h3 {
    color: white !important;
    /* White is OK in sidebar */
    font-weight: 700 !important;
    /* Professional bold - reduced from 800 */
}

/* Population Title - Professional bold */
.population-title {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold - reduced from 900 */
}

/* Emergency Helpline Numbers - Professional bold */
.helpline-number {
    font-weight: 800 !important;
    /* Keep 800 for emphasis on numbers */
    color: var(--primary-teal);
}

/* Office Address Box Headings */
.office-address-box h3,
.office-address-box h4 {
    color: #202018 !important;
    /* Black */
    font-weight: 700 !important;
    /* Professional bold */
}

/* ==================== MOBILE LEADERSHIP FINAL FIX ==================== */
/* ==================== MOBILE LEADERSHIP SECTION - FINAL FIX ==================== */
/* Properly visible and aligned leadership section for mobile devices */

@media (max-width: 768px) {

    /* Leadership Row Container */
    .leadership-row {
        padding: 0.75rem 0.5rem !important;
        background: #F5EFE7 !important;
        border-bottom: 1px solid #D4C5B0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* Leadership Inline - Column Layout */
    .leadership-inline {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        align-items: stretch !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* Individual Leader Cards */
    .leadership-inline .leader-item,
    .leader-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.75rem !important;
        padding: 0.6rem 0.75rem !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        border: 1px solid #E8E8E5 !important;
    }

    /* Leader Images */
    .leadership-inline .leader-img,
    .leader-img {
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        border: 2px solid #D4B896 !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
        background: white !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    /* Leader Info Container */
    .leadership-inline .leader-info,
    .leader-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 0.2rem !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    /* Designation Text */
    .leadership-inline .leader-info span,
    .leader-info span {
        font-size: 0.55rem !important;
        font-weight: 600 !important;
        color: #606058 !important;
        /* Dark gray for better visibility */
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Name Text */
    .leadership-inline .leader-info p,
    .leader-info p {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        color: #202018 !important;
        /* Black for maximum visibility */
        line-height: 1.3 !important;
        margin: 0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Hover Effect */
    .leadership-inline .leader-item:hover,
    .leader-item:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
        transform: translateY(-1px) !important;
        transition: all 0.2s ease !important;
    }
}

/* Extra Small Mobile Devices (< 480px) */
@media (max-width: 480px) {
    .leadership-row {
        padding: 0.5rem 0.25rem !important;
    }

    .leadership-inline {
        gap: 0.5rem !important;
    }

    .leadership-inline .leader-item,
    .leader-item {
        padding: 0.5rem 0.6rem !important;
    }

    .leadership-inline .leader-img,
    .leader-img {
        width: 48px !important;
        height: 48px !important;
    }

    .leadership-inline .leader-info span,
    .leader-info span {
        font-size: 0.5rem !important;
    }

    .leadership-inline .leader-info p,
    .leader-info p {
        font-size: 0.65rem !important;
    }
}

/* Ensure desktop view is not affected */
@media (min-width: 769px) {
    .leadership-row {
        padding: 1rem 0 !important;
    }

    .leadership-inline {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 0.5rem !important;
    }

    .leader-item {
        flex-direction: column !important;
        text-align: center !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    .leader-info {
        align-items: center !important;
        text-align: center !important;
    }
}

/* ==================== LEADERSHIP PROPER FIX - DESKTOP UNCHANGED, MOBILE 2-3 PER ROW ==================== */
/* ==================== LEADERSHIP SECTION - PROPER MOBILE FIX ==================== */
/* Desktop: Keep single row layout (UNCHANGED) */
/* Mobile: 2-3 items per row, no huge gaps, properly visible */

/* Desktop View - KEEP EXACTLY AS IS (min-width: 769px) */
@media (min-width: 769px) {
    .leadership-row {
        width: 100%;
        background: #F5EFE7;
        padding: 1rem 0;
        display: flex;
        justify-content: center;
        border-bottom: 1px solid #D4C5B0;
    }

    .leadership-inline {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 0.5rem;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        justify-content: space-evenly;
        align-items: center;
        padding: 0 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .leadership-inline::-webkit-scrollbar {
        display: none;
    }

    .leadership-inline .leader-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: transparent;
        padding: 0.25rem;
        border-radius: 0;
        box-shadow: none;
        border: none;
        flex-shrink: 0;
        flex-grow: 0;
        width: 9%;
        min-width: 85px;
        max-width: 110px;
    }

    .leadership-inline .leader-img {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        border: 3px solid #ffffff;
        object-fit: cover;
        margin-bottom: 0.3rem;
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    }

    .leadership-inline .leader-info {
        display: flex;
        flex-direction: column;
        gap: 0.05rem;
        width: 100%;
    }

    .leadership-inline .leader-info span {
        font-size: 0.55rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #5A5A5A;
        letter-spacing: 0.1px;
        line-height: 1.1;
    }

    .leadership-inline .leader-info p {
        font-family: 'Poppins', sans-serif;
        font-size: 0.65rem;
        font-weight: 600;
        color: #8B7355;
        line-height: 1.15;
        margin: 0;
    }
}

/* Mobile View - FIX VISIBILITY (max-width: 768px) */
@media (max-width: 768px) {
    .leadership-row {
        width: 100% !important;
        background: #F5EFE7 !important;
        padding: 1rem 0.5rem !important;
        /* Reduced padding to minimize gaps */
        border-bottom: 1px solid #D4C5B0 !important;
        overflow: visible !important;
    }

    .leadership-inline {
        display: grid !important;
        /* Use grid for 2-3 per row */
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 items per row on mobile */
        gap: 1rem 0.75rem !important;
        /* Vertical and horizontal gaps */
        width: 100% !important;
        padding: 0 0.5rem !important;
        overflow: visible !important;
        justify-items: center !important;
    }

    .leadership-inline .leader-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        background: white !important;
        padding: 0.75rem 0.5rem !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        max-width: 160px !important;
        /* Limit width for better layout */
        min-height: auto !important;
        /* Remove fixed heights */
        margin: 0 !important;
        border: 1px solid #E8E8E5 !important;
    }

    .leadership-inline .leader-img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
        border: 2px solid #D4B896 !important;
        object-fit: cover !important;
        margin-bottom: 0.5rem !important;
        background: white !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
        flex-shrink: 0 !important;
    }

    .leadership-inline .leader-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.25rem !important;
        width: 100% !important;
    }

    .leadership-inline .leader-info span {
        font-size: 0.5rem !important;
        font-weight: 600 !important;
        color: #606058 !important;
        /* Darker for visibility */
        text-transform: uppercase !important;
        letter-spacing: 0.2px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .leadership-inline .leader-info p {
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        color: #202018 !important;
        /* Black for visibility */
        line-height: 1.3 !important;
        margin: 0 !important;
        text-align: center !important;
    }
}

/* Tablet View - 3 items per row (min-width: 481px and max-width: 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .leadership-inline {
        grid-template-columns: repeat(3, 1fr) !important;
        /* 3 items per row on tablet */
        gap: 1rem !important;
    }

    .leadership-inline .leader-item {
        max-width: 140px !important;
    }
}

/* Extra Small Mobile - 2 items per row (max-width: 480px) */
@media (max-width: 480px) {
    .leadership-row {
        padding: 0.75rem 0.25rem !important;
    }

    .leadership-inline {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Keep 2 per row */
        gap: 0.75rem 0.5rem !important;
        padding: 0 0.25rem !important;
    }

    .leadership-inline .leader-item {
        padding: 0.6rem 0.4rem !important;
        max-width: 150px !important;
    }

    .leadership-inline .leader-img {
        width: 55px !important;
        height: 55px !important;
    }

    .leadership-inline .leader-info span {
        font-size: 0.48rem !important;
    }

    .leadership-inline .leader-info p {
        font-size: 0.6rem !important;
    }
}