/* =========================================================================
   Aesthetic Redesign - Professional Faint Light Theme (v3 - Compact Fix)
   ========================================================================= */

:root {
    --brand-primary: #a67b5b;
    --brand-dark: #704f38;
    --brand-light: #fcf6f0;
    --text-main: #111827;
    --text-muted: #4b5563;
    --bg-main: #f3f4f6;
    --bg-card: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-color: #e5e7eb;
}

body {
    background: var(--bg-main) !important;
    color: var(--text-main) !important;
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =============================================
   HEADER - Make it position:static so it takes 
   up space and content flows naturally below
   ============================================= */
.main-header {
    position: relative !important;
    /* KEY FIX: was 'absolute' in style.css */
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    z-index: 100 !important;
    background: #fcf8f2 !important;
    padding: 12px 0 0 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none !important;
    transition: none !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

.village-name {
    color: var(--text-main) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-main) !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

.lgd-code {
    background: var(--bg-main) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
}

/* =============================================
   NAVBAR - Tight animated gradient separator
   ============================================= */
.navbar {
    background: #fcf8f2 !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: relative !important;
    border-top: 3px solid transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.navbar::before {
    content: '' !important;
    position: absolute !important;
    top: -3px !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, #704f38, #d4a373, #e9edc9, #d4a373, #704f38) !important;
    background-size: 300% auto !important;
    animation: gradientSlide 4s linear infinite !important;
}

@keyframes gradientSlide {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: -300% center;
    }
}

.nav-item {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    padding: 13px 18px !important;
    border-radius: 0 !important;
    border: none !important;
    text-transform: none !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    border-bottom: 3px solid transparent !important;
    letter-spacing: 0 !important;
}

.nav-item:hover,
.nav-item.active {
    background: var(--brand-light) !important;
    color: var(--brand-dark) !important;
    border: none !important;
    border-bottom: 3px solid var(--brand-primary) !important;
    transform: none !important;
}

/* =============================================
   HERO SLIDER - Compact, no padding issues
   ============================================= */
.hero-wrapper {
    position: relative !important;
    height: 100vh !important;
    min-height: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    color: white !important;
    text-align: left !important;
}

/* Hide inner-page spacer (no longer needed now header is relative) */
.inner-page-spacer {
    display: none !important;
}

.hero-slider-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

.hero-slider-bg::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.35) 60%, rgba(0, 0, 0, 0.05) 100%) !important;
}

/* Slide images - use object-fit full */
.h-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    background-color: transparent !important;
    opacity: 0 !important;
    transition: opacity 1.2s ease-in-out !important;
}

.h-slide.active {
    opacity: 1 !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 50px !important;
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
    max-width: none !important;
    /* KEY FIX: was 900px centering */
}

.hero-content h1 {
    font-size: 2.2rem !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

.hero-content .hero-subtitle {
    font-size: 1rem !important;
    color: #e2e8f0 !important;
    text-shadow: none !important;
    margin-bottom: 16px !important;
    font-weight: 400 !important;
}

.hero-actions {
    justify-content: flex-start !important;
    gap: 12px !important;
    display: flex !important;
}

/* =============================================
   MINISTER MARQUEE - Compact, flush
   ============================================= */
.minister-marquee-wrapper {
    background: #fcf8f2 !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    margin: 0 0 15px 0 !important;
    /* Minimal gap below minister section */
    max-width: 100% !important;
    padding: 8px 0 !important;
    box-shadow: none !important;
}

.minister-pill {
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    background: #f9fafb !important;
    padding: 5px 14px !important;
    border-radius: 30px !important;
    margin: 0 10px !important;
}

.minister-img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-right: 10px !important;
}

.minister-info span {
    color: var(--text-main) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.minister-info small {
    color: var(--text-muted) !important;
    font-size: 0.72rem !important;
}

/* =============================================
   HOME MAIN GRID - Compact gaps/padding
   ============================================= */
.home-main-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 16px !important;
    padding: 16px 16px 24px 16px !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    align-items: stretch !important;
}

.home-col-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
}

.home-col-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
}

@media (max-width: 991px) {
    .home-main-grid {
        grid-template-columns: 1fr !important;
        padding: 12px !important;
    }
}

/* =============================================
   PANEL BOXES - Compact internal padding
   ============================================= */
.panel-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 18px !important;
    margin: 0 !important;
    backdrop-filter: none !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.panel-box:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px) !important;
    border-color: #d1d5db !important;
}

.panel-title {
    font-size: 1.1rem !important;
    color: var(--text-main) !important;
    text-align: left !important;
    border-bottom: 2px solid var(--brand-primary) !important;
    padding-bottom: 8px !important;
    margin-bottom: 14px !important;
    text-transform: none !important;
    letter-spacing: 0px !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary,
.btn-hero {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 9px 20px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: background 0.2s !important;
    letter-spacing: 0px !important;
    text-transform: none !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
}

.btn-primary:hover {
    background: var(--brand-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    padding: 9px 20px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: background 0.2s !important;
    text-transform: none !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    backdrop-filter: blur(4px) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    transform: none !important;
}

/* "View All" buttons in panel-box inherit a more neutral style */
.panel-box .btn-secondary,
.panel-box button {
    background: #f8fafc !important;
    color: var(--brand-dark) !important;
    border: 1px solid var(--border-color) !important;
    padding: 8px 18px !important;
    font-size: 0.82rem !important;
}

.panel-box .btn-secondary:hover,
.panel-box button:hover {
    background: var(--brand-light) !important;
    border-color: var(--brand-primary) !important;
}

/* =============================================
   SCHEME SIDE LIST - Compact
   ============================================= */
.scheme-side-item,
.pop-card-item,
.pop-summary-box-new,
.pop-detailed-box-new {
    background: #fcf8f2 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 10px !important;
    padding: 12px !important;
    transition: border-color 0.2s !important;
}

.scheme-side-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}

.scheme-side-item:hover,
.pop-card-item:hover,
.pop-summary-box-new:hover,
.pop-detailed-box-new:hover {
    border-color: var(--brand-primary) !important;
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
}

.scheme-side-icon {
    background: var(--bg-main) !important;
    border-radius: 8px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
}

.scheme-side-item strong,
.pop-card-item strong,
.alert-mini strong {
    color: var(--text-main) !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
}

.scheme-side-item div,
.pop-card-item span,
.alert-mini span {
    color: var(--text-muted) !important;
    font-size: 0.82rem !important;
}

/* =============================================
   ALERTS
   ============================================= */
.alerts-widget-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.alert-mini {
    background: #f9fafb !important;
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid var(--brand-primary) !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
}

.alert-mini.urgent {
    border-left-color: #ef4444 !important;
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    border-left-color: #ef4444 !important;
}

/* =============================================
   MEMBER GRID on HOME - Single Flex Row
   ============================================= */
#member-list-home {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* On small screens, allow members to wrap into 2 columns */
@media (max-width: 600px) {
    #member-list-home {
        flex-wrap: nowrap !important;
        gap: 15px !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 10px !important;
    }
    #member-list-home .elegant-card {
        max-width: 80% !important;
        min-width: 250px !important;
        flex: 0 0 auto !important;
    }
}

/* Stats grid single row */
.stats-grid-new {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    overflow-x: auto !important;
}

@media (max-width: 600px) {
    .stats-grid-new {
        flex-wrap: wrap !important;
    }
    .stat-card-new {
        flex: 1 1 45% !important;
        min-width: 120px !important;
    }
}

/* =============================================
   FOOTER - Compact
   ============================================= */
.main-footer {
    background: #fcf8f2 !important;
    color: var(--text-main) !important;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    padding: 28px 15px 16px 15px !important;
    margin-top: 20px !important;
}

.footer-col h3 {
    color: var(--text-main) !important;
    font-size: 1rem !important;
    margin-bottom: 14px !important;
    font-weight: 600 !important;
}

.footer-col strong {
    color: var(--text-main) !important;
}

.footer-col p,
.footer-col span,
.footer-col li {
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
}

/* =============================================
   INNER PAGES - Compact
   ============================================= */
.main-content-grid {
    padding: 0 16px 16px 16px !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
}

.section-heading {
    font-size: 1.8rem !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.scheme-detail-box {
    background: #fcf8f2 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 45px !important;
    /* Increased padding significantly for large screens */
    animation: none !important;
    margin-bottom: 24px !important;
}

.glass-card {
    background: #fcf8f2 !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
    border-radius: 10px !important;
    padding: 18px !important;
}

.glass-card:hover {
    box-shadow: var(--shadow-md) !important;
    border-color: var(--brand-primary) !important;
    transform: translateY(-3px) !important;
}

.card-icon-circle {
    background: var(--bg-main) !important;
    color: var(--brand-primary) !important;
    border-radius: 10px !important;
    width: 60px !important;
    height: 60px !important;
    font-size: 1.8rem !important;
    margin-bottom: 10px !important;
}

.detail-list li,
.pop-card-item {
    border-radius: 6px !important;
}

.pop-vertical-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* =============================================
   SECTION BLOCKS - Remove excessive padding
   ============================================= */
.section-block {
    padding: 1rem 0 !important;
}

.max-w-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

.center-text {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
}

.heading-underline {
    width: 60px !important;
    height: 4px !important;
    background: var(--brand-primary) !important;
    margin: 0 auto !important;
    border-radius: 10px !important;
}

/* =============================================
   REF TABLE - Inner pages
   ============================================= */
.ref-table-container {
    overflow-x: auto !important;
    margin-bottom: 1rem !important;
}

.ref-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.85rem !important;
}

.ref-table th,
.ref-table td {
    padding: 8px 10px !important;
    border: 1px solid var(--border-color) !important;
    text-align: left !important;
}

.ref-table th {
    background: var(--bg-main) !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
}

/* =============================================
   MISC OVERRIDES
   ============================================= */
.main-container {
    animation: none !important;
}

main#main-wrapper {
    animation: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove old stats strip negative margin */
.stats-strip {
    margin-top: 0 !important;
}

/* Reduce member grid gap on inner pages */
.member-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 992px) {
    .home-main-grid {
        grid-template-columns: 1fr !important;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .member-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Make profile cards compact */
.profile-card,
.member-card {
    padding: 14px !important;
}

/* =============================================
   RESPONSIVE: Mobile
   ============================================= */
@media (max-width: 768px) {
    .hero-wrapper {
        height: 100vh !important;
    }

    .hero-content h1 {
        font-size: 1.4rem !important;
    }

    .hero-content {
        padding: 0 20px !important;
    }

    .hero-content .hero-subtitle {
        font-size: 0.85rem !important;
    }

    .home-main-grid {
        grid-template-columns: 1fr !important;
        padding: 10px !important;
        gap: 12px !important;
    }

    .inner-page-spacer {
        display: none !important;
    }

    .scheme-detail-box {
        padding: 25px !important;
        /* Smaller, but still comfortable, padding for mobile */
    }

    .minister-marquee-wrapper {
        margin: 0 !important;
    }
}

/* =============================================
   Zero Gap Fix: Remove space below header 
   ============================================= */
.main-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.navbar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.inner-page-spacer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#main-wrapper,
.main-container,
#dynamic-content-area,
.content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.hero-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.section-block {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.home-main-grid,
.main-content-grid,
.max-w-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =============================================
   ANIMATIONS & MODERN EFFECTS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Starts hidden, revealed by forwards */
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--brand-primary) !important;
}

/* =============================================
   Extra Section Animations (requested by user)
   ============================================= */
.panel-box {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}

.panel-box:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 30px -5px rgba(166, 123, 91, 0.2) !important; /* Soft violet shadow */
    border-color: var(--brand-primary) !important;
}

.hero-content h1 {
    animation: bounceInLeft 1s ease-out forwards;
}

.hero-subtitle {
    animation: fadeInRight 1s ease-out forwards;
}

@keyframes bounceInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    50% { opacity: 1; transform: translateX(10px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.scheme-side-item:hover,
.pop-card-custom:hover {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(245,243,255,1) 100%) !important;
    transform: translateX(5px) !important;
    box-shadow: 0 5px 15px rgba(166, 123, 91, 0.15) !important;
    border-color: var(--brand-primary) !important;
}

.minister-pill {
    transition: all 0.3s ease;
}
.minister-pill:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--brand-light) !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 4px 12px rgba(166, 123, 91, 0.15) !important;
}


/* Full-Width Enhancements for Home Page */
.home-main-grid {
    width: 100% !important;
    max-width: 1400px !important;
    padding: 30px 20px !important; /* Space between sections */
    gap: 30px !important;
    margin: 0 auto !important;
}

.home-col-left, .home-col-right {
    gap: 30px !important;
}

.panel-title {
    width: 100% !important;
    text-align: center !important;
    border-bottom: none !important;
    position: relative !important;
    margin-bottom: 25px !important;
    font-size: 1.4rem !important;
}
.panel-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 5px;
}

/* Footer Padding Fixes */
.main-footer {
    padding: 40px 30px !important;
}

/* Unique Slider Styling */
.hero-wrapper {
    margin-top: 15px !important;
    border-radius: 12px !important;
    max-width: 96% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 10px 30px rgba(166, 123, 91, 0.4) !important;
    overflow: hidden !important;
    border: 2px solid #eadbc8 !important;
}

.h-slide {
    animation: slowZoom 8s ease-in-out infinite alternate !important;
}
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}



/* =============================================
   NEW HOME LAYOUT REDESIGN STYLES
   ============================================= */
.full-width-section {
    width: 100% !important;
    padding: 60px 0 !important;
    background: #fbf5ee !important;
    position: relative !important;
}

.bg-soft {
    background: #f6f1ec !important; /* Soft sand */
}

/* HERO UNIQUE STYLE */
.hero-wrapper-new {
    position: relative;
    width: 100%;
    height: 85vh; /* Large impactful hero */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.hero-wrapper-new .hero-slider-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

/* Overlay dark/brown vignette for contrast */
.hero-wrapper-new::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(112, 79, 56, 0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.hero-glass-card {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 50px 40px;
    border-radius: 24px;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateY(20px);
}

.hero-glass-content h1 {
    font-size: 3rem !important;
    color: #ffffff !important;
    margin: 15px 0 !important;
    font-weight: 800 !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-badge {
    display: inline-block;
    background: #d4a373;
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-glass-content .hero-subtitle {
    font-size: 1.2rem;
    color: #fcf6f0;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-glow {
    box-shadow: 0 8px 25px rgba(166, 123, 91, 0.6) !important;
    padding: 12px 30px !important;
    font-size: 1.1rem !important;
    border-radius: 30px !important;
}

/* MARQUEE REDESIGN */
.minister-marquee-new {
    background: #fff !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #e6dcd0 !important;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.minister-track {
    display: inline-block;
    align-items: center;
    animation: scroll 40s linear infinite;
}

.minister-pill {
    display: inline-flex;
    align-items: center;
    background: #fdfcfb;
    border: 1px solid #e6dcd0;
    padding: 6px 20px 6px 6px;
    border-radius: 50px;
    margin: 0 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* FULL WIDTH STATS GRID */
.stats-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

.stat-card-new {
    background: #fdfaf6;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e6dcd0;
    box-shadow: 0 10px 30px rgba(112, 79, 56, 0.05);
    transition: transform 0.3s;
}

.stat-card-new:hover {
    transform: translateY(-5px);
    border-color: #a67b5b;
}

.stat-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #704f38;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #a67b5b;
    font-weight: 600;
}

/* MODERN SPLIT GRID FOR SCHEMES & ALERTS */
.modern-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.modern-panel {
    background: #fdfaf6;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid #e6dcd0;
    display: flex;
    flex-direction: column;
}

.panel-header-new {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.panel-icon {
    font-size: 2rem;
}

.panel-title-new {
    font-size: 1.8rem !important;
    color: #704f38 !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.schemes-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex: 1;
}

.scheme-card-new {
    background: #fdfcfb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e6dcd0;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scheme-card-new:hover {
    background: #fbf5ee;
    transform: scale(1.02);
    border-color: #a67b5b;
}

.scheme-card-new strong {
    font-size: 1.1rem;
    color: #704f38;
}

.scheme-card-new span {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

/* ALERTS LIST */
.alerts-list-new {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.alert-item-new {
    padding: 20px;
    border-radius: 12px;
    background: #fdfcfb;
    border-left: 5px solid #a67b5b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

.alert-item-new:hover {
    transform: translateX(5px);
}

.alert-item-new strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #704f38;
}

.urgent-alert {
    border-left-color: #ef4444 !important;
    background: #fef2f2 !important;
}

/* MEMBERS GALLERY SCROLL */
.members-gallery-new {
    display: flex;
    flex-wrap: wrap; /* Grid-like wrapping */
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.center-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .modern-split-grid {
        grid-template-columns: 1fr;
    }
    .hero-glass-content h1 {
        font-size: 2.2rem !important;
    }
}
@media (max-width: 600px) {
    .schemes-grid-new {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
    .full-width-section {
        padding: 40px 15px !important;
    }
    .modern-panel {
        padding: 25px;
    }
}

/* =============================================
   ULTIMATE HEADER REDESIGN (Stylish, Professional)
   ============================================= */

/* Main Header Container */
.main-header {
    background: #fcf8f2 !important;
    border-bottom: none !important;
    box-shadow: 0 4px 20px rgba(112, 79, 56, 0.08) !important;
    padding: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

/* Header Content Alignment */
.header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 15px 30px !important;
}

/* Brand Section */
.brand-section {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.logo-container {
    background: #fbf5ee !important;
    padding: 8px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(166, 123, 91, 0.15) !important;
    border: 2px solid #f6f1ec !important;
}

.logo-img {
    width: 65px !important;
    height: 65px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.logo-container:hover .logo-img {
    transform: rotate(5deg) scale(1.05) !important;
}

/* Typography for Title */
.brand-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.village-name {
    font-size: 1.8rem !important;
    color: #4a3320 !important; /* Deep rich brown */
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 5px 0 !important;
    text-transform: uppercase !important;
}

/* Stylish LGD Pill */
.lgd-code {
    background: linear-gradient(135deg, #a67b5b, #8b5a2b) !important;
    color: #ffffff !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 10px rgba(166, 123, 91, 0.3) !important;
    border: none !important;
    display: inline-block !important;
    width: max-content !important;
}

/* Controls */
.header-controls {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
}

.seal-img {
    height: 55px !important;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)) !important;
}

/* Language Selector Customization */
#language-select {
    background: #fbf5ee !important;
    color: #704f38 !important;
    border: 2px solid #e6dcd0 !important;
    padding: 8px 35px 8px 15px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23704f38%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px top 50% !important;
    background-size: 10px auto !important;
}

#language-select:hover, #language-select:focus {
    border-color: #a67b5b !important;
    box-shadow: 0 4px 12px rgba(166, 123, 91, 0.15) !important;
    outline: none !important;
}

/* NAVBAR REDESIGN */
.navbar {
    background: #fbf5ee !important;
    border-top: 1px solid #f6f1ec !important;
    border-bottom: 2px solid #e6dcd0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar::before {
    display: none !important; /* Hide old gradient slide */
}

/* Ensure ul is visible */
.navbar ul {
    position: relative !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.nav-links {
    list-style: none !important;
}

.nav-item {
    color: #704f38 !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    padding: 16px 24px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #a67b5b;
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.nav-item:hover {
    color: #4a3320 !important;
    background: #f6f1ec !important;
    border-radius: 8px 8px 0 0 !important;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100% !important;
}

.nav-item.active {
    color: #4a3320 !important;
    background: #f6f1ec !important;
    border-radius: 8px 8px 0 0 !important;
}

/* Responsive Overrides for Header */
@media (max-width: 992px) {
    .header-content {
        padding: 15px 20px !important;
    }
    .village-name {
        font-size: 1.4rem !important;
    }
    .seal-img {
        display: none !important; /* Hide seal on mobile for space */
    }
}
@media (max-width: 768px) {
    .brand-section {
        gap: 10px !important;
    }
    .logo-img {
        width: 45px !important;
        height: 45px !important;
    }
    .village-name {
        font-size: 1.2rem !important;
    }
    .lgd-code {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
    .nav-item {
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
    }
}

/* Make the whole website a faint attractive warm tone */
body, html {
    background-color: #f7f3ec !important; /* Soft earthy attractive background for all white spaces */
}

/* Beautiful shadows and glowing warm borders for everything to look very premium and NOT plain white */
.modern-panel, .contact-card-modern, .stat-card-new, .scheme-card-new {
    background: #ffffff !important;
    border: 1px solid #eedac6 !important;
    box-shadow: 0 10px 25px rgba(166,123,91, 0.1) !important;
}

.contact-card-body {
    background: #fcf9f5 !important;
}

/* Enhancing header attractiveness */
.main-header {
    border-bottom: 2px solid #eedac6 !important;
}


/* =============================================
   ELEGANT CARD LAYOUT (From Reference Image 3)
   ============================================= */

/* Partition into rows one after another */
.contact-category-section {
    margin-bottom: 50px;
    width: 100%;
}
.category-heading {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a3320;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #e6dcd0;
}

/* Ensure 1 row 4 cards small layout for desktop */
.elegant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    width: 100%;
}

@media(min-width: 1200px) {
    .elegant-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 cards per row on large screens */
        gap: 25px;
    }
}

.elegant-card {
    background: #ffffff;
    border: 1px solid #f1e9df;
    border-radius: 12px;
    padding: 20px 15px 15px 15px; /* Reduced paddings */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Fill container */
}

.elegant-card:hover {
    box-shadow: 0 10px 30px rgba(112, 79, 56, 0.1);
    border-color: #d4a373;
    transform: translateY(-5px);
}

.elegant-card-top {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Images fit nicely instead of massive ovals */
.elegant-img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    object-position: center;
    background: #fbf5ee;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.elegant-init {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a67b5b, #e9edc9);
    color: #4a3320;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.elegant-card-body h5.elegant-desg {
    font-size: 1rem;
    font-weight: 800;
    color: #4a3320;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.elegant-card-body .elegant-name, 
.elegant-card-body .elegant-phone {
    font-size: 0.8rem;
    color: #704f38;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.elegant-card-body .elegant-name span, 
.elegant-card-body .elegant-phone span {
    font-size: 0.95rem;
    color: #888;
    font-weight: 500;
}


/* CSS to ensure mobile menu functions */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 10px 0 !important;
        background: #fbf5ee !important;
    }
    .nav-links.show {
        display: flex !important;
    }
}
