/* Stellar Glass - Futuristic Obsidian Design */

:root {
    /* New Palette: Obsidian & Neon */
    --primary-stellar: #0ea5e9;
    /* Electric Azure */
    --secondary-stellar: #8b5cf6;
    /* Royal Amethyst */
    --accent-stellar: #22d3ee;
    /* Cyan Spark */

    --bg-obsidian: #050505;
    --bg-nebula: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #050505 100%);

    --text-frost: #f8fafc;
    --text-dim: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(24px);

    --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-2xl: 1.5rem;
    --radius-3xl: 2.5rem;
    --radius-full: 9999px;

    --shadow-stellar: 0 0 50px rgba(14, 165, 233, 0.1);
    --transition-stellar: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--bg-obsidian);
    background-image: var(--bg-nebula);
    color: var(--text-frost);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-stellar);
}

/* Typography Overhaul */
h1,
h2,
h3,
h4 {
    color: var(--text-frost);
    letter-spacing: -0.02em;
}

a {
    color: var(--primary-stellar);
    text-decoration: none;
    transition: var(--transition-stellar);
}

a:hover {
    color: var(--accent-stellar);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

/* Floating Header */
.header {
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-3) 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-6);
    flex: 2;
}

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

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

.header-leader img {
    height: 64px;
    width: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 4px;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.header-leader:hover img {
    transform: translateY(-2px);
}

.leader-info {
    text-align: center;
}

.leader-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-midnight);
    display: block;
}

.leader-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-stellar);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

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

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

.lang-select {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-frost);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-stellar);
}

.lang-select:hover {
    border-color: var(--primary-stellar);
    background: rgba(255, 255, 255, 0.08);
}

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

/* Sidebar & Navigation */
/* Desktop Sidebar - Glass Overhaul */
.desktop-sidebar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid var(--glass-border);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-stellar);
}

.desktop-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-midnight);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.desktop-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-dim);
    text-decoration: none;
    border-radius: var(--radius-2xl);
    margin-bottom: 4px;
    transition: var(--transition-stellar);
    font-weight: 500;
}

.desktop-nav a .icon {
    font-size: 1.2rem;
    filter: grayscale(1);
    transition: filter var(--transition-base);
}

.desktop-nav a:hover,
.desktop-nav a.selected {
    background: rgba(14, 165, 233, 0.1);
    color: var(--text-frost);
    font-weight: 700;
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.05);
}

.desktop-nav a:hover .icon,
.desktop-nav a.selected .icon {
    filter: grayscale(0);
}

.desktop-nav a.selected {
    border-right: 4px solid var(--primary-stellar);
}

/* Horizontal Nav Redesign */
.horizontal-nav {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 110px;
    /* Height of header */
    z-index: 999;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
}

.horizontal-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-stellar);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-2xl);
    border: 1px solid transparent;
}

.horizontal-nav a .icon {
    font-size: 1.2rem;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all var(--transition-stellar);
}

.horizontal-nav a:hover,
.horizontal-nav a.selected {
    color: var(--text-frost);
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.05), 0 0 15px rgba(14, 165, 233, 0.1);
}

.horizontal-nav a.selected {
    border-color: var(--primary-stellar);
    background: rgba(14, 165, 233, 0.15);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    font-weight: 800;
}

.horizontal-nav a:hover .icon,
.horizontal-nav a.selected .icon {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Dropdown Support */
.nav-dropdown {
    position: relative;
    height: 100%;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: calc(100% - 10px);
    /* Overlap slightly to prevent gap */
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    padding: var(--space-3) var(--space-2);
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    margin-top: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(14, 165, 233, 0.1);
}

.nav-dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: flex;
}

.dropdown-content a {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.sidebar-separator {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-6) 0;
}

.sidebar-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
    color: var(--primary-stellar);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

/* Mobile Sidebar (Refined) */
/* Mobile Sidebar - Glass Overhaul */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    transition: left var(--transition-stellar);
    z-index: 2000;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.sidebar-header {
    padding: var(--space-6);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-frost);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav a {
    display: block;
    padding: var(--space-4) var(--space-6);
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav a:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-stellar);
}

.sidebar-divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-4) var(--space-6);
}

.sidebar-section-title {
    padding: var(--space-4) var(--space-6) var(--space-2);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-stellar);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.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: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid var(--glass-border);
    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 Redesign */
/* Hero Section Redesign - Stellar Glass */
.hero-section {
    background: transparent;
    padding: var(--space-4) 0;
    margin-bottom: var(--space-12);
    position: relative;
    overflow: hidden;
}

.hero-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-12);
    align-items: center;
}

@media (max-width: 992px) {
    .hero-main-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-left-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    height: 100%;
}

.hero-title-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-3xl);
    padding: var(--space-12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex-grow: 1;
    /* Match height of right stack */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-10);
}

.hero-header-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.hero-gp-logo {
    height: 120px;
    width: 120px;
    background: white;
    border-radius: 50%;
    padding: var(--space-2);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.hero-title-text {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-frost);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    font-weight: 500;
    margin: 0;
}

.hero-ids-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    padding-top: var(--space-10);
}

@media (max-width: 576px) {
    .hero-ids-grid {
        grid-template-columns: 1fr;
    }
}

.hero-id-mini-card {
    background: rgba(14, 165, 233, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: var(--transition-stellar);
}

.hero-id-mini-card:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary-stellar);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.15);
}

.hero-id-mini-card .id-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.hero-id-mini-card .id-details {
    display: flex;
    flex-direction: column;
}

.hero-id-mini-card .id-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-stellar);
    font-weight: 700;
}

.hero-id-mini-card .id-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-frost);
    font-family: 'JetBrains Mono', monospace;
}

.hero-census-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    height: 100%;
}

.id-badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-frost);
    transition: var(--transition-stellar);
}

.id-badge:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary-stellar);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.id-badge strong {
    color: var(--accent-stellar);
    margin-right: 4px;
}

/* Census Grid */
.hero-census-section {
    margin-top: var(--space-8);
}

.hero-census-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-8);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: var(--space-8);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-stellar);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.hero-census-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.village-census-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: left;
    transition: var(--transition-stellar);
}

.village-census-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-stellar);
    box-shadow: inset 0 0 30px rgba(14, 165, 233, 0.05);
}

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

.village-name {
    font-size: 1.25rem;
    font-weight: 800;
}

.village-stats-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.v-stat {
    display: flex;
    flex-direction: column;
}

.v-label {
    font-size: 0.7rem;
    color: var(--gray-300);
    text-transform: uppercase;
    font-weight: 700;
}

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

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

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-3xl);
    padding: var(--space-12) var(--space-8);
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-stellar);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-stellar);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.2);
}

.stat-card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-4);
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.5));
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-frost);
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.stat-card-label {
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-8);
    color: var(--text-frost);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-stellar);
    border-radius: var(--radius-full);
}

.section-title::before {
    display: none;
}

/* Content Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    border-color: var(--primary-stellar);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.card .card-title {
    color: var(--text-frost);
    margin-bottom: var(--space-2);
}

.card .card-description {
    color: var(--text-dim);
}

/* Member Cards V2 (Bento Style) */
.member-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.member-card-v2 {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-stellar);
}

.member-card-v2:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-stellar);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.member-img-v2 {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-2xl);
    object-fit: cover;
    margin: 0 auto var(--space-4);
    border: 2px solid var(--glass-border);
    padding: 4px;
}

.member-initials-v2 {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--primary-stellar), var(--secondary-stellar));
    color: var(--text-frost);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto var(--space-4);
}

.member-name-v2 {
    font-weight: 800;
    color: var(--text-frost);
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.member-designation-v2 {
    font-size: 0.75rem;
    color: var(--primary-stellar);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}



.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-frost);
    margin-bottom: var(--space-4);
}

.card-description {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

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

.card-link:hover {
    gap: var(--space-4);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--bg-obsidian);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slideshow-image.active {
    opacity: 1;
    z-index: 2;
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-4);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-stellar);
    z-index: 10;
    border-radius: var(--radius-2xl);
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: var(--primary-stellar);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

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

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

/* Footer Redesign */
.footer {
    background: var(--primary-midnight);
    color: var(--white);
    padding: var(--space-16) 0;
    margin-top: var(--space-16);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
}

.footer h3 {
    color: var(--primary-stellar);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: var(--space-8);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

/* 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 */
.main-layout-wrapper {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

@media (max-width: 1200px) {
    .horizontal-nav {
        display: none;
    }

    .main-layout-wrapper {
        padding: var(--space-4);
    }

    .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: flex;
        gap: var(--space-3);
    }

    .header-leader img {
        height: 48px;
        width: 48px;
    }

    .header-leader .leader-info {
        display: none;
    }

    .md-hidden {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: var(--space-2) var(--space-4);
    }

    .header-content {
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
    }

    .header-left {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        gap: var(--space-4);
    }

    .header-right {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: var(--space-2);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header-leaders {
        display: flex !important;
        gap: var(--space-3) !important;
    }

    .header-leader img {
        height: 42px !important;
        width: 42px !important;
        border-width: 1px !important;
    }

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

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

    .lang-select {
        padding: var(--space-1) var(--space-2);
        font-size: 0.8rem;
    }

    .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(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.member-card-v2:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-stellar);
}

.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(--text-frost);
    margin-bottom: var(--space-1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

@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-2xl);
    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);
}

/* Enhancing Services Headers - Stellar Glass */
.document-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    color: var(--text-frost);
}

.doc-header {
    background: linear-gradient(135deg, var(--bg-obsidian), var(--primary-midnight));
    padding: var(--space-8);
    border-bottom: 2px solid var(--primary-stellar);
}

.mahsvibhag-wrapper {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-2xl);
}

.section-title-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: var(--space-4) 0;
    margin: 0 !important;
}

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

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

.header-logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-8);
    background: var(--bg-obsidian);
    border-bottom: 3px solid var(--primary-stellar);
    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(--text-frost);
}

.doc-header-text .title-top {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-frost);
    letter-spacing: 0.1em;
}

.doc-header-text .title-main {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 8px 0;
    color: var(--primary-stellar);
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.doc-header-text .title-sub {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dim);
}

.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: #000000;
    /* Darken for better contrast */
    margin-bottom: var(--space-2);
    font-weight: 800;
}


.mahsul-footer .contact p {
    color: #1a1a1a;
    /* Darken for better contrast */
    font-size: 0.95rem;
    font-weight: 700;
}

.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: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-8);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    margin-bottom: var(--space-6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.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(-5px);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-stellar);
}

.contact-card-icon-v2 {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.contact-card-name-v2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-frost);
    margin-bottom: var(--space-2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.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(--primary-stellar);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

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

.contact-fab-v2 {
    width: 50px;
    height: 50px;
    background: var(--primary-stellar);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    box-shadow: 0 8px 15px rgba(14, 165, 233, 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: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-stellar);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.self-dec-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-stellar);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.self-dec-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-stellar);
    margin-bottom: var(--space-6);
}

.self-dec-title {
    font-weight: 800;
    color: var(--text-frost) !important;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: var(--space-4);
}

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

/* === 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: 0 var(--space-8) var(--space-4) var(--space-8);
    margin-top: 0 !important;
}

.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: 0;
}

.doc-table th {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-stellar);
    padding: var(--space-6);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--primary-stellar);
    text-align: left;
}

.doc-table td {
    padding: var(--space-6);
    border-bottom: 1px solid var(--glass-border);
    font-size: 1rem;
    color: var(--text-frost);
}

.doc-table tr:hover {
    background: rgba(14, 165, 233, 0.05);
}

/* === 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: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-3xl);
    border: 1px solid var(--glass-border);
    padding: var(--space-10);
    transition: var(--transition-stellar);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: var(--text-frost);
}

.scheme-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-stellar);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.1);
}

.scheme-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-frost);
    margin-bottom: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    padding-bottom: var(--space-4);
}

.scheme-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-stellar);
    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: 2rem;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.8;
}

.scheme-card .detail-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-stellar);
    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(--primary-stellar);
    color: var(--bg-obsidian);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    top: 3px;
}

.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(--primary-stellar);
    color: var(--bg-obsidian);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition-stellar);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    margin: 8px 5px;
}

.scheme-btn-external:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(14, 165, 233, 0.5);
    background: var(--text-frost);
}

/* 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(--primary-stellar);
    font-weight: 800;
    margin-bottom: var(--space-6);
    font-size: 1.25rem;
    padding: 0 var(--space-8);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.doc-footer {
    padding: var(--space-8);
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4);
    font-weight: 700;
    color: var(--text-dim);
}

.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;
}

.contact-intro {
    margin-bottom: 30px !important;
    font-size: 1.1rem;
    color: var(--text-frost);
    font-weight: 500;
    line-height: 1.6;
}

display: flex;
gap: var(--space-12);
flex-wrap: wrap;
}