/* Khuntamodi GP - Vibrant Modern Design - FIXED VERSION */

:root {
    /* Vibrant Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    --purple-600: #667eea;
    --pink-500: #f093fb;
    --cyan-400: #4facfe;

    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2.5rem;
    --radius-full: 9999px;
    --radius-pill: 9999px;

    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #c8d3f7 0%, #d9c8e8 50%, #f7d3ed 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(200, 211, 247, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 211, 237, 0.5) 0%, transparent 50%);
    animation: backgroundShift 15s ease infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundShift {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px var(--space-6);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 2;
}

.header-title-center {
    flex: 1;
}

.header-leaders {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-8);
}

.header-leader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-leader img {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.leader-info {
    text-align: center;
    line-height: 1.1;
}

.leader-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-800);
}

.leader-title {
    font-size: 0.6rem;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), -1px -1px 3px rgba(0, 0, 0, 0.8);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    justify-content: flex-end;
    flex: 1;
}

.rajya-mudra-logo {
    height: 110px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: transform var(--transition-base);
}

.rajya-mudra-logo:hover {
    transform: scale(1.05);
}

.lang-select {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: var(--gray-800);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

.lang-select:hover {
    border-color: var(--purple-600);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--gray-800);
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-2xl);
    transition: left var(--transition-base);
    z-index: 2000;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: var(--space-6);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav a {
    display: block;
    padding: var(--space-4) var(--space-6);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.selected {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-left-color: var(--purple-600);
    color: var(--purple-600);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1999;
}

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

/* Main Layout */
.main-layout-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6);
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-6);
}

.desktop-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.desktop-sidebar-header {
    margin-bottom: var(--space-4);
}

.desktop-sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.desktop-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    transition: all var(--transition-fast);
}

.desktop-nav a:hover,
.desktop-nav a.selected {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: var(--purple-600);
}

.sidebar-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-600), transparent);
    margin: var(--space-6) 0;
}

.sidebar-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--gray-800);
}

.sidebar-schemes {
    margin-top: var(--space-4);
}

.content-area {
    min-height: 500px;
    animation: fadeIn 0.5s ease;
}

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

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

.desktop-right-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.population-box {
    margin-bottom: var(--space-6);
}

.population-label {
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--gray-800);
}

.population-list {
    list-style: none;
}

.population-list li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--gray-200);
}

.population-value-item {
    font-weight: 700;
    color: var(--purple-600);
}

.id-info-section {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 2px solid var(--gray-200);
}

.id-info-item {
    margin-bottom: var(--space-4);
}

.id-info-item .id-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-1);
}

.id-info-item .id-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--purple-600);
}

.census-section {
    margin-top: var(--space-6);
}

.census-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-20) var(--space-6);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-12);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-gp-logo {
    height: 110px;
    width: 110px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.hero-gp-logo:hover {
    transform: scale(1.05);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.95;
    margin-bottom: var(--space-8);
    font-weight: 300;
}

/* ID Badges */
.hero-id-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-6) 0 var(--space-10);
    flex-wrap: wrap;
}

.id-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    color: white;
    transition: all var(--transition-base);
}

.id-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.id-badge strong {
    color: var(--color-accent-yellow);
}

/* Census Section */
.hero-census-section {
    margin-top: var(--space-10);
    width: 100%;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.hero-census-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-8);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero-census-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-accent-yellow);
    border-radius: 2px;
}

.hero-census-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

.hero-census-grid.single-village {
    display: flex;
    justify-content: center;
}

.hero-census-grid.single-village .village-census-card {
    max-width: 450px;
    width: 100%;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .hero-census-grid {
        grid-template-columns: 1fr;
    }
}

/* Village Card Styles */
.village-census-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.village-census-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.village-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-4);
}

.village-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

.village-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent-yellow);
    letter-spacing: 0.5px;
}

.village-stats-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.v-stat {
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v-label {
    opacity: 0.75;
    font-weight: 400;
    color: #f0f0f0;
}

.v-value {
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

/* Quick Stats - Glassmorphism */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-card-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: var(--space-4);
}

.stat-card-value {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-2);
}

.stat-card-label {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--space-8);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: var(--space-4);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.card-icon {
    font-size: 2.5rem;
    /* Slightly smaller to fit next to title */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0;
}

.card-description {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--purple-600);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.card-link:hover {
    gap: var(--space-3);
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--gray-900);
    box-shadow: var(--shadow-2xl);
    aspect-ratio: 16 / 9;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    background: var(--gray-900);
}

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

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    padding: var(--space-4);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
    z-index: 10;
    border-radius: var(--radius-md);
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-prev {
    left: var(--space-4);
}

.slideshow-next {
    right: var(--space-4);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-12) var(--space-6);
    margin-top: var(--space-20);
    border-top: 2px solid rgba(102, 126, 234, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.footer h3 {
    font-weight: 700;
    margin-bottom: var(--space-4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease;
}

.slide-up {
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Utility Classes */
.md-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-layout-wrapper {
        grid-template-columns: 1fr;
    }

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

    .mobile-menu-btn {
        display: block;
        margin-right: var(--space-2);
    }

    .gp-logo {
        height: 90px;
        width: 90px;
        padding: 5px;
    }

    .rajya-mudra-logo {
        height: 90px;
    }

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

    .header-leaders {
        display: none;
    }

    .md-hidden {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--space-12) var(--space-4);
    }

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

    .card-grid {
        grid-template-columns: 1fr;
    }

    .header-top {
        flex-wrap: wrap;
    }

    .id-center {
        order: 3;
        width: 100%;
        margin-top: var(--space-3);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Info Cards Section */
.info-cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--gray-700);
}

.info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--purple-600);
}

/* Member UI Redesign V2 */
.member-category-section {
    margin-bottom: var(--space-12);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.member-card-v2 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(102, 126, 234, 0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.member-card-v2:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, #ffffff 0%, rgba(102, 126, 234, 0.12) 100%);
    box-shadow: var(--shadow-2xl);
    border-color: var(--purple-600);
}

.member-img-v2 {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-4);
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-initials-v2 {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-name-v2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.member-designation-v2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--purple-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .member-grid-v2 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* === Youtube Gallery Styles === */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.video-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail-container {
    position: relative;
    aspect-ratio: 16/9;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--theme-orange);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 4px;
    /* visually centered */
    opacity: 0.9;
}

.video-title {
    padding: var(--space-4);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-text);
    text-align: center;
}

/* === Lightbox Overlay === */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.lightbox-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.video-lightbox-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.video-container {
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 3100;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-lightbox:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* === Confirmation Overlay === */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.confirmation-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.confirmation-box {
    background: linear-gradient(135deg, rgba(82, 106, 214, 0.98) 0%, rgba(98, 55, 142, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: var(--radius-3xl);
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.download-icon-wrapper {
    display: none;
}

.confirmation-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

/* Enhancing Services Headers */
.mahsvibhag-wrapper {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.section-title-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--space-8) 0;
}

.mahsvibhag-wrapper .section-title {
    text-align: center;
    background: none;
    -webkit-text-fill-color: var(--gray-900);
    color: var(--gray-900);
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mahsvibhag-wrapper .section-title::after {
    display: none;
}

.header-logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-8);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    border-bottom: 3px solid var(--purple-600);
    width: 100%;
    border-top-left-radius: var(--radius-2xl);
    border-top-right-radius: var(--radius-2xl);
}

.mh_gov_logo,
.lokseva_hakka {
    height: 70px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.doc-header-text {
    text-align: center;
    color: var(--gray-900);
}

.doc-header-text .title-top {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}

.doc-header-text .title-main {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 4px 0;
    color: var(--purple-600);
}

.doc-header-text .title-sub {
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
}

.mahsul-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    padding: var(--space-6) var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid var(--purple-600);
    width: 100%;
    border-bottom-left-radius: var(--radius-2xl);
    border-bottom-right-radius: var(--radius-2xl);
}

.mahsul-footer .contact {
    text-align: left;
}

.mahsul-footer .contact h4 {
    color: var(--purple-600);
    margin-bottom: var(--space-2);
    font-weight: 800;
}

.mahsul-footer .contact p {
    color: var(--gray-800);
    font-size: 0.9rem;
    font-weight: 600;
}

.aaple_sarkar {
    height: 100px;
    width: auto;
    background: white;
    padding: var(--space-3);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.confirmation-title {
    margin-bottom: var(--space-6);
    color: white !important;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.confirmation-message {
    margin-bottom: var(--space-8);
    color: rgba(255, 255, 255, 0.8) !important;
    white-space: pre-wrap;
    font-size: 1.1rem;
    line-height: 1.5;
}

.confirmation-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.btn-cancel,
.btn-confirm {
    padding: var(--space-4) var(--space-12);
    min-width: 160px;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-confirm {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.btn-confirm:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

/* === Contact Card V2 (Premium) === */
.contact-card-v2 {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-6);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.contact-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--theme-orange), var(--theme-purple));
    opacity: 0.8;
}

.contact-card-v2:hover {
    transform: translateX(10px) translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-card-icon-v2 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-card-details-v2 {
    flex-grow: 1;
}

.contact-card-role-v2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-1);
}

.contact-card-name-v2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: var(--space-2);
}

.contact-card-mobile-wrapper-v2 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.95rem;
    color: var(--theme-text-muted);
}

.contact-card-link-v2 {
    color: var(--theme-orange);
    font-weight: 600;
    text-decoration: none;
}

.contact-card-link-v2:hover {
    text-decoration: underline;
}

.contact-fab-v2 {
    width: 45px;
    height: 45px;
    background: var(--theme-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(255, 107, 43, 0.3);
    transition: all 0.3s;
}

.contact-fab-v2:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 43, 0.5);
}

/* === Self Declaration Grid === */
.self-dec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.self-dec-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.self-dec-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(255, 255, 255, 0.5);
}

.self-dec-icon {
    width: 48px;
    height: 48px;
    color: var(--theme-orange);
    margin-bottom: var(--space-4);
}

.self-dec-title {
    font-weight: 600;
    color: var(--theme-text) !important;
    margin-bottom: var(--space-4);
}

.self-dec-download-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: 0.85rem;
    color: #888;
}

/* === Document & Table Premium Styling === */
.document-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    margin-bottom: var(--space-12);
}

.doc-header {
    background: var(--gradient-primary);
    padding: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.doc-header .title-main {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

.service-table-wrapper {
    overflow-x: auto;
    padding: var(--space-4) var(--space-8);
}

.mahsvibhag-wrapper .doc-header {
    background: white;
    padding: 0;
    /* Handled by logo container */
    color: var(--gray-900);
}

.doc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: var(--space-4);
}

.doc-table th {
    background: rgba(102, 126, 234, 0.1);
    color: var(--gray-800);
    padding: var(--space-4);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--purple-600);
    text-align: left;
}

.doc-table td {
    padding: var(--space-4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    color: var(--gray-800);
}

.doc-table tr:hover {
    background: rgba(102, 126, 234, 0.08);
}

.doc-table tr:last-child td {
    border-bottom: none;
}

/* === Gallery Upgrade === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-4) 0;
}

.gallery-card {
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--purple-600);
}

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

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* === Government Schemes Premium Layout === */
.scheme-hero {
    padding: var(--space-16) var(--space-8);
    margin-bottom: var(--space-12);
}

.scheme-content-wrapper {
    padding: 0 var(--space-4);
    margin-bottom: var(--space-20);
}

.scheme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.scheme-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: var(--space-8);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-xl);
    color: #333;
}

.scheme-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-2xl);
}

.scheme-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: relative;
    padding-bottom: var(--space-3);
}

.scheme-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.scheme-card .detail-list {
    list-style: none;
    padding-left: 0;
}

.scheme-card .detail-list li {
    margin-bottom: var(--space-4);
    position: relative;
    padding-left: 1.75rem;
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}

.scheme-card .detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan-400);
    font-weight: 900;
}

.scheme-card .numbered-list {
    counter-reset: step-counter;
}

.scheme-card .numbered-list li {
    counter-increment: step-counter;
}

.scheme-card .numbered-list li::before {
    content: counter(step-counter);
    background: var(--gradient-accent);
    color: var(--gray-900);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    top: 2px;
}

.scheme-cta-container {
    text-align: center;
    margin-top: var(--space-8);
}

.scheme-btn-external {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--gradient-secondary);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
    margin: 8px 5px;
}

.scheme-btn-external:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 45px rgba(245, 87, 108, 0.5);
    color: white;
}

/* instruction and reference sections within components */
.reference-section,
.instruction-section,
.list-section {
    padding: var(--space-6) var(--space-8);
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title-table,
.section-title-list {
    color: var(--purple-600);
    font-weight: 700;
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
    padding: 0 var(--space-8);
}

.doc-footer {
    padding: var(--space-6) var(--space-8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    color: var(--gray-700);
}

.doc-instruction-list,
.ref-list,
.doc-list {
    margin-left: var(--space-12);
    color: var(--gray-700);
    font-size: 0.9rem;
}

.doc-instruction-list li,
.ref-list li,
.doc-list li {
    margin-bottom: var(--space-2);
}

.list-content {
    display: flex;
    gap: var(--space-12);
    flex-wrap: wrap;
}

/* === Mobile Menu Responsiveness === */

@media (max-width: 992px) {
    .desktop-sidebar {
        display: none !important;
    }

    .main-layout-wrapper {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }

    .header-leaders {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: var(--gray-800);
        padding: 8px;
        border-radius: 8px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }

    /* Keep GP title and other bits readable */
    .header-container {
        padding: 0.5rem 1rem !important;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 5000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* SCROLLABLE MENU */
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: var(--space-6);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    gap: 0.75rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: #f8f9fa;
    color: var(--purple-600);
}

.sidebar-nav a .icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.sidebar-separator {
    height: 1px;
    background: #eee;
    margin: 1rem 1.5rem;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* === Services Page Responsiveness === */
@media (max-width: 992px) {
    .document-container {
        margin-bottom: var(--space-6);
        border-radius: var(--radius-xl);
    }

    .doc-header {
        padding: var(--space-4);
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .header-logo-container {
        padding: var(--space-4);
        flex-direction: column;
        gap: var(--space-4);
    }

    .mh_gov_logo, .lokseva_hakka {
        height: 50px !important;
        width: auto;
    }

    .doc-header-text .title-main {
        font-size: 1.1rem !important;
    }

    .doc-header-text .title-top {
        font-size: 0.85rem;
    }

    .doc-header-text .title-sub {
        font-size: 0.8rem;
    }

    /* Responsive Table to Cards */
    .doc-table {
        border: 0;
    }

    .doc-table thead {
        display: none;
    }

    .doc-table tr {
        display: block;
        margin-bottom: var(--space-6);
        border: 1px solid rgba(102, 126, 234, 0.2);
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.5);
        padding: var(--space-6);
        box-shadow: var(--shadow-md);
    }

    .doc-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-2) 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: right;
        font-size: 0.9rem;
        min-width: unset !important;
    }

    .doc-table td:last-child {
        border-bottom: 0;
    }

    .doc-table td::before {
        content: attr(data-label);
        font-weight: 800;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: var(--purple-600);
        margin-right: var(--space-4);
        text-align: left;
    }

    .section-title-table, .section-title-list {
        padding: 0 var(--space-4);
        font-size: 1rem;
        text-align: center;
    }

    .doc-footer, .reference-section, .instruction-section, .list-section {
        padding: var(--space-4);
    }

    .doc-instruction-list, .ref-list, .doc-list {
        margin-left: var(--space-6);
        font-size: 0.85rem;
    }

    .service-table-wrapper {
        padding: var(--space-2);
    }
}
