/* UNIQUE & MODERN GRAM PANCHAYAT WEBSITE - Soft Violet & Glass Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

/* ==================== 1. ROOT VARIABLES (SOFT VIOLET THEME) ==================== */
:root {
    /* Primary Colors - Soft Violet & Indigo */
    --primary-main: #673AB7;
    --primary-light: #9575CD;
    --primary-dark: #512DA8;

    /* Accent Colors - Changed from Gold to Soft Teal/Lavender for Menu */
    --accent-gold: #FFC107;
    /* Kept for specific highlights but removed from menu */
    --accent-menu: #E1BEE7;
    /* Soft Lavender for menu active bg */
    --accent-active: #4527A0;
    /* Deep Purple for active text */

    /* Backgrounds */
    --bg-body: #F3F4F6;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-white: #FFFFFF;

    /* Text Colors */
    --text-main: #333333;
    --text-light: #555555;
    --text-heading: #222222;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #673AB7 0%, #7E57C2 100%);
    --gradient-menu-active: linear-gradient(90deg, #EDE7F6, #FFFFFF);

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px rgba(103, 58, 183, 0.05);
    --shadow-card: 0 10px 30px rgba(103, 58, 183, 0.08);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==================== 2. GLOBAL STYLES ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #FFFAF0;
    /* Warm cream background */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Only hide horizontal scroll */
    /* REMOVED overflow: hidden to allow single window scrollbar */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==================== 3. NEW LAYOUT ARCHITECTURE (SIDEBAR + MAIN) ==================== */
#main-dashboard {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    max-width: 100%;
    margin: 0 auto;
}

/* --- SIDEBAR NAVIGATION (LEFT) --- */
/* --- SIDEBAR NAVIGATION (LEFT) --- */
.desktop-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #ffffff 0%, #f3e5f5 100%);
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    padding: 1.5rem 1rem;
    box-shadow: 4px 0 20px rgba(103, 58, 183, 0.05);
    /* Soft purple shadow */
    display: flex;
    flex-direction: column;
    z-index: 1000;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.sidebar-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gp-logo-sidebar {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-main);
    line-height: 1.1;
}

.desktop-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Sidebar Navigation Attractive */
.desktop-nav a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-light);
    gap: 0.8rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Mobile Menu Button - REMOVED */
.mobile-menu-btn {
    display: none !important;
}

/* --- SIDEBAR (LEFT PANEL - MOBILE) --- */
.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.desktop-nav a.active,
.desktop-nav a.selected {
    background: var(--primary-main);
    color: white;
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.3);
    border-left: 3px solid white;
}

.desktop-nav a.active .icon,
.desktop-nav a.selected .icon {
    color: white;
}

.desktop-nav a.active:hover,
.desktop-nav a.selected:hover {
    background: var(--primary-main);
    color: white;
    transform: none;
    /* Prevent movement on active hover */
}



/* --- MAIN CONTENT AREA (RIGHT) --- */
.main-layout-wrapper {
    flex: 1;
    padding: 0;
    min-height: 100vh;
    /* Ensure full height */
    width: calc(100% - 260px);
    background: #FFF8E1;
    /* REMOVED overflow-y: auto to allow window scrolling */
}

/* ==================== 4. HEADER (TOP BAR inside MAIN) ==================== */
.lgd-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #ffffff, #fcfcfc);
    padding: 0.3rem 2rem;
    /* Reduced padding */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.lgd-title-group {
    display: flex;
    flex-direction: column;
}

.lgd-label-text {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 2px;
}

.lgd-id-box {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-main);
    display: inline-block;
}

.seal-img {
    height: 50px;
}

.header {
    background: transparent;
    margin: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.village-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-heading);
    background: -webkit-linear-gradient(45deg, #673AB7, #311B92);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-select {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--primary-light);
    background: var(--bg-white);
    color: var(--primary-main);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ==================== 5. HERO SECTION (SPLIT LAYOUT) ==================== */
.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin: 1rem 2rem 2rem 2rem;
    /* Adjusted margin */
    align-items: center;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.hero-text-panel {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-weight: 800;
}

.highlight-text {
    color: var(--primary-main);
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 95%;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-primary {
    padding: 0.8rem 1.8rem;
    background: var(--primary-main);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.3);
    transition: transform 0.2s;
}

.btn-secondary {
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--primary-main);
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.hero-slider-panel {
    height: 100%;
    min-height: 450px;
    /* Ensure sufficient height */
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    /* Flex to fill */
}

.slideshow {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-float);
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: none;
}

.slideshow-image.active {
    display: block;
    animation: zoomFade 6s infinite;
}

@keyframes zoomFade {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* ==================== 6. DASHBOARD GRID (SCHEMES & MEMBERS) ==================== */

/* ==================== POPULATION SECTION (CARD STYLE) ==================== */
.population-section-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.pop-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #E0E0E0;
    overflow: hidden;
}

.pop-header {
    background: #FAFAFA;
    padding: 10px 15px;
    border-bottom: 1px solid #EEE;
    font-weight: 700;
    color: var(--primary-main);
    font-size: 0.9rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pop-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #F5F5F5;
    font-size: 0.9rem;
}

.pop-row:last-child {
    border-bottom: none;
}

.pop-label {
    color: #666;
    font-weight: 500;
}

.pop-value {
    color: var(--primary-dark);
    font-weight: 700;
}

.pop-village-row {
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    border-bottom: 1px solid #EEE;
}

.pop-village-name {
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.pop-village-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #555;
}

.pop-tag {
    background: #F3E5F5;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary-main);
    font-weight: 600;
    font-size: 0.8rem;
}


/* ==================== MEMBER CARD (HORIZONTAL STYLE) ==================== */
.dashboard-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 0 2rem 2rem 2rem;
    align-items: stretch;
    /* Match height */
}

/* Ensure equal height for dashboard cards */
.dashboard-col-left,
.dashboard-col-right {
    display: flex;
    flex-direction: column;
}

.dashboard-card {
    flex: 1;
    /* Stretch to fill column */
}

.gp-member-grid-mini,
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Adaptive Width */
    gap: 1rem;
}

.member-card {
    display: flex;
    flex-direction: row;
    /* Horizontal Layout as per Image 3 */
    align-items: center;
    text-align: left;
    background: #fff;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid #F0F0F0;
    transition: transform 0.2s;
    gap: 1rem;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.member-photo-frame {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    position: relative;
}

.member-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.member-initials-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-main));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.2;
}

.member-designation {
    font-size: 0.8em;
    color: var(--primary-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide the old mini grid styles if conflicting */
/* Deprecated mini-member styles removed */


/* ==================== 7. TICKER & MARQUEE ==================== */
.news-ticker-bar {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-main);
    margin: 0 2rem 1.5rem 2rem;
    /* Aligned with other content */
}

.ticker-label {
    background: var(--primary-main);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 1rem;
    white-space: nowrap;
}

.minister-marquee-wrapper {
    background: #FFF;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    margin-bottom: 1rem;
    /* Reduced space */
    overflow: hidden;
}

.minister-scroll-container {
    display: flex;
    width: max-content;
    animation: scrollMinisters 45s linear infinite;
}

.minister-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
    text-align: center;
    min-width: 100px;
}

.minister-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    object-fit: cover;
    background: #fff;
    margin-bottom: 4px;
}

@keyframes scrollMinisters {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==================== 8. INNER PAGES & TABLES ==================== */
.main-content-grid {
    margin: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-main);
}

/* Government Style Tables */
.gov-table-container,
.revenue-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    background: white;
    margin-bottom: 1.5rem;
    border: 1px solid #EEE;
}

.gov-table,
.revenue-services-table,
.pop-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.gov-table th,
.revenue-services-table th,
.pop-stats-table th {
    background-color: var(--primary-main);
    color: white;
    font-weight: 500;
    padding: 12px 15px;
    text-align: left;
    white-space: nowrap;
}

.gov-table td,
.revenue-services-table td,
.pop-stats-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.gov-table tr:nth-child(even),
.revenue-services-table tr:nth-child(even) {
    background-color: #fafafa;
}

.gov-table tr:hover,
.revenue-services-table tr:hover {
    background-color: #f5f5f5;
}


/* ==================== 9. GALLERY SECTION ==================== */
#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding-bottom: 2rem;
    overflow: visible;
    /* NO Scrollbar */
}

.gallery-card {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.gallery-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ==================== RESPONISVE ==================== */
@media (max-width: 1024px) {
    #main-dashboard {
        flex-direction: column;
    }

    .desktop-sidebar {
        display: none;
    }

    .main-layout-wrapper {
        width: 100%;
        padding: 0;
    }

    .header {
        background: var(--primary-main);
        margin: 0;
        padding: 1rem;
        border-radius: 0 0 20px 20px;
    }

    .village-title {
        color: white;
        background: none;
        -webkit-text-fill-color: initial;
        font-size: 1.4rem;
    }

    .lgd-header-bar {
        padding: 0.5rem 1rem;
    }

    .hero-split-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        margin: 1rem;
        gap: 1.5rem;
    }

    .hero-slider-panel {
        height: 250px;
    }

    .dashboard-grid-layout {
        grid-template-columns: 1fr;
        margin: 0 1rem 1rem 1rem;
    }

    /* Mobile Menu Toggle */
    .md-hidden {
        display: block;
    }
}

/* Helper for sidebar toggle */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 285px;
    height: 100%;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 32px rgba(103, 58, 183, 0.18);
    padding: 0;
}

.sidebar.open {
    transform: translateX(0);
}

/* ===== MOBILE SIDEBAR INNER STYLES ===== */
.sidebar {
    background: linear-gradient(160deg, #ffffff 0%, #f3e5f5 100%);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Sidebar Header (Title + Close button) */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem 1rem 1.5rem;
    border-bottom: 2px solid #ede7f6;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #673AB7, #512DA8);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.25);
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Close (X) Button */
.sidebar-header .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.sidebar-header .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

/* Sidebar Nav Container */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
}

/* Each nav link */
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #4a3360;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.sidebar-nav a .icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ede7f6;
    border-radius: 8px;
    transition: background 0.25s ease;
}

.sidebar-nav a:hover {
    background: linear-gradient(90deg, #ede7f6, #f8f4ff);
    color: #673AB7;
    border-color: #d1c4e9;
    transform: translateX(4px);
}

.sidebar-nav a:hover .icon {
    background: #d1c4e9;
}

.sidebar-nav a.active,
.sidebar-nav a.selected {
    background: linear-gradient(135deg, #673AB7, #7E57C2);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(103, 58, 183, 0.3);
}

.sidebar-nav a.active .icon,
.sidebar-nav a.selected .icon {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.sidebar-nav a.active:hover,
.sidebar-nav a.selected:hover {
    transform: none;
}

/* GP logo / branding strip at bottom of sidebar */
.sidebar-nav::after {
    content: "GP KHARDA";
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0d4f7;
    font-size: 0.7rem;
    font-weight: 800;
    color: #9575cd;
    letter-spacing: 2px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1500;
    display: none;
    transition: opacity 0.35s ease;
}

/* JS toggles .visible class */
.sidebar-overlay.visible,
.sidebar-overlay.active {
    display: block;
}

/* Member Initials Fallback */
.member-initials-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-main);
    background: #EDE7F6;
}

/* FOOTER */
.footer {
    background: #3E2723;
    color: #fff;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer h3 {
    color: var(--accent-gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer a {
    color: #FFECB3;
    text-decoration: none;
}

/* ==================== 10. NEW COMPONENT STYLES (Services, Contact, Certificates) ==================== */

/* --- Contact Us Cards --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #EDEDED;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(103, 58, 183, 0.1);
    border-color: var(--primary-light);
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon {
    font-size: 1.8rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
}

.contact-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-main);
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.contact-mobile {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.contact-mobile .label {
    font-weight: 500;
    color: #888;
}

/* --- Certificate Cards (Self Declaration) --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cert-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #EDEDED;
    transition: all 0.3s ease;
    height: 100%;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    background: #FAFAFA;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.4;
}

.btn-download {
    background: white;
    color: var(--primary-main);
    border: 2px solid var(--primary-main);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    background: var(--primary-main);
    color: white;
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.2);
}

/* --- Excluded Services Grid (GP Services) --- */
.excluded-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* margin-top: 1rem; */
    /* Handled inline */
}

@media (max-width: 768px) {
    .excluded-services-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Table Enhancements --- */
.revenue-services-table th {
    background-color: #2E7D32;
    /* Green Header */
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #1B5E20;
}

.revenue-services-table tr:nth-child(even) {
    background-color: #E8F5E9;
    /* Light Green Striping */
}

.revenue-services-table tr:hover {
    background-color: #C8E6C9;
}

.revenue-services-table td:nth-child(1) {
    font-weight: 700;
    color: var(--primary-main);
    text-align: center;
}

.gov-table th {
    background-color: #E65100;
    /* Orange/Gold for Revenue as implied by Ref 2 */
}

.gov-table td:nth-child(2) {
    font-weight: 600;
    color: #333;
}


/* --- Emergency Helpline Cards (New) --- */
.emergency-helpline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.emergency-helpline-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border-left: 5px solid #d32f2f;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.emergency-helpline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.15);
}

.emergency-icon {
    font-size: 2.2rem;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #d32f2f;
}

.emergency-service {
    font-size: 0.95rem;
    color: #d32f2f;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.emergency-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #333;
    line-height: 1;
}

/* Schemes Modern Grid */
.schemes-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.scheme-modern-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.2rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-heading);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.scheme-modern-item:hover {
    border-color: var(--primary-main);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(103, 58, 183, 0.15);
}

.scheme-icon-box {
    font-size: 2rem;
    height: 50px;
    width: 50px;
    background: rgba(103, 58, 183, 0.08);
    /* Soft purple bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-main);
    transition: background 0.3s;
}

.scheme-modern-item:hover .scheme-icon-box {
    background: var(--primary-main);
    color: white;
}

/* ==================== 10. POPULATION CARD REFINEMENTS (Use Theme Colors) ==================== */
.pop-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(103, 58, 183, 0.1);
    /* Soft purple border */
    overflow: hidden;
    transition: transform 0.3s ease;
}

.pop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
}

.pop-header {
    background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-dark) 100%);
    padding: 12px 15px;
    border-bottom: none;
    font-weight: 700;
    color: white;
    /* White text on purple header */
    font-size: 0.95rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pop-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #F3E5F5;
    /* Very light purple divider */
    font-size: 0.95rem;
    align-items: center;
}

.pop-row:last-child {
    border-bottom: none;
}

.pop-label {
    color: var(--text-light);
    font-weight: 600;
}

.pop-value {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.1rem;
}

.pop-village-row {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    border-bottom: 1px solid #F3E5F5;
}

.pop-village-name {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pop-village-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    background: #FAFAFA;
    padding: 10px;
    border-radius: 8px;
}

.pop-stat-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.pop-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pop-stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.pop-stat-number {
    color: var(--primary-main);
    /* Purple instead of Orange */
    font-weight: 800;
    font-size: 1rem;
}

/* ==================== 11. LIST STYLES FIX ==================== */
ul.detail-list {
    list-style: none;
    /* Remove default bullet */
    padding-left: 0;
}

ul.detail-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.6;
}

ul.detail-list li::before {
    content: '•';
    /* Custom bullet */
    color: var(--primary-main);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Ensure ordered lists dont have double numbers */
ol.detail-list {
    list-style-position: inside;
    padding-left: 0;
}

ol.detail-list li {
    margin-bottom: 8px;
    padding-left: 5px;
    /* Adjust as needed */
}

/* ==================== 12. INNER PAGE COLOR CORRECTIONS ==================== */
/* Remove orange/red specificity if any, rely on var(--primary-main) */
.page-title,
.section-title {
    color: var(--primary-dark) !important;
    /* Force purple theme */
}

h1,
h2,
h3,
h4 {
    color: var(--text-heading);
}

/* Revenue Table Styling */
.revenue-services-table th {
    background-color: var(--primary-main) !important;
    /* Purple header */
    color: white !important;
}

.revenue-services-table tr:nth-child(even) {
    background-color: #F3E5F5 !important;
    /* Light lavender stripe */
}


/* Responsive Table */

.table-responsive {

    display: block;

    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    margin-bottom: 20px;

}