/* =========================================================================
   Aesthetic Redesign - Professional Faint Light Theme (v3 - Compact Fix)
   ========================================================================= */

:root {
        --brand-primary: #94a3b8; /* Slate / Faint Light */
    --brand-dark: #334155;
    --brand-light: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
}

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;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    z-index: 100 !important;
    background: #ffffff !important;
    padding: 0 !important;
    /* GAP FIX: removed top padding */
    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: linear-gradient(135deg, var(--brand-dark), var(--brand-primary)) !important;
    margin-top: 0 !important;
    /* GAP FIX: removed top margin */
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: relative !important;
    border-top: none !important;
    border-bottom: none !important;
}

.navbar::before {
    content: '' !important;
    position: absolute !important;
    top: -3px !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa, #3b82f6, #1e40af) !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: #ffffff !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-wrapper {
    display: flex !important;
    position: relative !important;
    padding-top: 0 !important;
    /* GAP FIX: removed padding */
    height: 450px !important;
    overflow: hidden !important;
    margin: 0 30px 2rem 30px !important;
    /* Top margin zeroed to remove gap */
    /* Slider in different shape */
    border-radius: 40px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

#dynamic-content-area {
    padding-top: 0 !important;
    /* Override style.css 180px gap */
    min-height: unset !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 cover */
.h-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background-color: var(--brand-dark) !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: center !important;
    padding: 0 20px !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    max-width: 900px !important;
}

.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: center !important;
    gap: 15px !important;
    display: flex !important;
}

/* =============================================
   MINISTER MARQUEE - Compact, flush
   ============================================= */
.minister-marquee-wrapper {
    background: #ffffff !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: 30px !important;
    padding: 20px 30px 40px 30px !important;
    max-width: 100% !important;
    /* Fill entire width */
    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: none !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 24px !important;
    margin: 0 !important;
    backdrop-filter: blur(5px) !important;
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    flex-direction: column !important;
    animation: fadeInUp 0.8s ease-out forwards;
}

.panel-box:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-6px) !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: #ffffff !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: 15px !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    height: 100% !important;
}

.alert-mini {
    background: #f9fafb !important;
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid var(--brand-primary) !important;
    padding: 15px 14px !important;
    border-radius: 6px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !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
   ============================================= */
#member-list-home {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

/* =============================================
   FOOTER - Compact
   ============================================= */
.main-footer {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border-top: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
    padding: 28px 0 16px 0 !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: 5px !important;
    margin-bottom: 2px !important;
}

.scheme-detail-box {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 30px 4% !important;
    animation: none !important;
    margin: 0 auto 16px auto !important;
    max-width: 92% !important;
}

.glass-card {
    background: #ffffff !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;
}

.glass-card::before,
.scheme-side-item::before {
    display: none !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;
}

/* Make profile cards compact */
.profile-card,
.member-card {
    padding: 14px !important;
}

/* =============================================
   RESPONSIVE: Mobile
   ============================================= */
@media (max-width: 768px) {
    .hero-wrapper {
        height: 220px !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;
    }

    .minister-marquee-wrapper {
        margin: 0 !important;
    }
}

/* =========================================================================
   HOME PAGE V2 SOFT BROWN TEMPLATE
   ========================================================================= */

.hero-wrapper-v2 {
    position: relative;
    /* Use negative margins to break out of any container padding */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 82vh;
    overflow: hidden;
    background: #000;
    margin-top: 20px;
    /* White space between navbar and slider */
    display: block;
}

.hero-slider-bg-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider-bg-v2 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider-bg-v2 img.active {
    opacity: 1;
}

.hero-overlay-v2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.7), rgba(51, 65, 85, 0.3));
}

.hero-content-v2 {
    position: absolute;
    top: 35%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
    z-index: 10;
}

.hero-content-v2 h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle-v2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #efebe9;
    margin-bottom: 30px;
}

.hero-actions-v2 button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s;
}

.btn-primary-v2 {
    background: #d7ccc8;
    color: #3e2723;
}

.btn-primary-v2:hover {
    background: #bcaaa4;
    transform: translateY(-2px);
}

.btn-secondary-v2 {
    background: transparent;
    border: 2px solid #d7ccc8 !important;
    color: #fff;
}

.btn-secondary-v2:hover {
    background: rgba(215, 204, 200, 0.2);
    transform: translateY(-2px);
}

.hero-curve {
    position: absolute;
    bottom: -2px;
    /* Pull it slightly to remove gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 15;
}

.hero-curve svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.hero-curve svg path {
    fill: #f5f2f0;
    /* bg-main */
}

/* Minister Marquee V2 */
.minister-marquee-v2 {
    background: #fff;
    padding: 15px 0;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(93, 64, 55, 0.05);
    margin-bottom: 40px;
}

.minister-track {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    animation: marqueeLeft 30s linear infinite;
    white-space: nowrap;
}

.minister-pill-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #faf8f7;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #d7ccc8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.minister-pill-v2 img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #a1887f;
}

.minister-info {
    display: flex;
    flex-direction: column;
}

.minister-info span {
    font-weight: 700;
    color: #3e2723;
    font-size: 0.95rem;
}

.minister-info small {
    color: #5d4037;
    font-size: 0.75rem;
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-150%);
    }
}

/* Home Grid Layout V2 */
.container-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-layout-v2 {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 30px;
    margin-bottom: 30px;
}

.modern-panel-v2 {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(93, 64, 55, 0.08);
    transition: transform 0.3s ease;
}

.border-top-theme {
    border-top: 5px solid #a1887f;
}

.border-top-theme-light {
    border-top: 5px solid #d7ccc8;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.fill-height {
    height: 100%;
}

.panel-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #efebe9;
    padding-bottom: 15px;
}

.title-v2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3e2723;
    margin: 0;
}

.subtitle-v2 {
    color: #5d4037;
    font-size: 1rem;
}

.center-text {
    text-align: center;
}

.mb-15 {
    margin-bottom: 15px;
}

.btn-outline-v2 {
    background: transparent;
    border: 1px solid #a1887f;
    color: #5d4037;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline-v2:hover {
    background: #a1887f;
    color: #fff;
}

/* Members Grid */
.member-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

/* Alerts */
.alerts-container-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Reduced gap from 15px */
    flex-grow: 1;
    justify-content: flex-start;
    /* Ensure items stay closely packed */
}

.alert-item-v2 {
    display: flex;
    gap: 12px;
    background: #faf8f7;
    padding: 10px 15px;
    /* Reduced from 15px */
    border-radius: 12px;
    border-left: 4px solid #d7ccc8;
    align-items: center;
}

.alert-urgent {
    border-left: 4px solid #c85a5a;
    background: #fff5f5;
}

.alert-icon {
    font-size: 1.2rem;
    /* Reduced from 1.5rem */
}

.alert-content strong {
    display: block;
    color: #3e2723;
    margin-bottom: 5px;
}

.alert-content span {
    font-size: 0.9rem;
    color: #5d4037;
    line-height: 1.4;
}

/* Schemes Box */
.schemes-list-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scheme-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: #faf8f7;
    border-radius: 12px;
    border: 1px solid #efebe9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scheme-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.1);
    border-color: #a1887f;
}

.s-icon-v2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.s-text-v2 strong {
    display: block;
    color: #3e2723;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.s-text-v2 span {
    font-size: 0.85rem;
    color: #5d4037;
}

/* Population Small Box */
.pop-summary-card-v2 {
    padding: 25px;
}

.pop-stats-row {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.stat-box-v2 {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #3e2723;
}

.stat-lbl {
    font-size: 0.85rem;
    color: #5d4037;
    font-weight: 500;
}

/* Full Width Panel */
.full-width-panel-v2 {
    width: 100%;
}

.census-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.census-card-v2 {
    background: #faf8f7;
    border: 1px solid #d7ccc8;
    border-radius: 12px;
    padding: 20px;
}

.c-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #d7ccc8;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.c-header-v2 strong {
    font-size: 1.2rem;
    color: #3e2723;
}

.badge-v2 {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.c-stats-v2 {
    display: flex;
    justify-content: space-between;
}

.c-stats-v2 span {
    font-size: 1.05rem;
    color: #5d4037;
}

.c-stats-v2 strong {
    font-weight: 800;
    color: #3e2723;
}

/* Mobile Responsiveness for V2 */
@media (max-width: 900px) {
    .home-layout-v2 {
        grid-template-columns: 1fr;
    }

    .hero-content-v2 h1 {
        font-size: 2.2rem;
    }

    .hero-wrapper-v2 {
        height: 500px;
    }

    .census-grid-v2 {
        grid-template-columns: 1fr;
    }

    .schemes-list-v2 {
        grid-template-columns: 1fr;
    }

    .hero-curve svg {
        height: 60px;
    }
}


/* Footer Spacing Fix */
.main-footer {
    padding-left: 30px !important;
    padding-right: 30px !important;
}
.member-avatar-v2, .profile-card img, .member-card img {
    border-radius: 50% !important;
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border: 3px solid var(--brand-primary) !important;
}

/* Mobile Responsive Overrides for new layout */
@media (max-width: 1024px) {
    .layout-grid-v3 {
        grid-template-columns: 1fr !important;
    }
    .hero-wrapper-v3 {
        height: 480px !important;
        border-radius: 0 0 20px 20px !important;
    }
}
@media (max-width: 768px) {
    .container-v3 {
        padding: 0 15px 40px !important;
    }
}
.scheme-card-v3:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.btn-outline-white:hover {
    background: #fff !important;
    color: #1e293b !important;
}

/* Fix footer layout preventing hidden text */
.footer-v2 {
    padding: 60px 4% !important; /* Left right padding to avoid cutoff */
    margin: 0 -15px; /* Just in case container holds it back */
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Modern Header Navigation Styles */
.nav-item-v2 {
    color: #475569;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-item-v2:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-item-v2.active {
    background: #1e293b;
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.2);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .header-main-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .brand-section-v2 {
        flex-direction: column;
    }
    .header-right-v2 {
        width: 100%;
        justify-content: space-between;
    }
    .mobile-nav-toggle-v2 {
        display: block !important;
    }
    .navbar-v2 {
        display: none !important;
    }
    .navbar-v2.show {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-links-v2 {
        flex-direction: column;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
    .nav-item-v2 {
        border-radius: 0;
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f1f5f9;
    }
}

/* Add faint soft attractive colors */
body, .site-wrapper, .content-wrapper, main#main-wrapper {
    background-color: #f8fafc !important; /* Soft faint blue-grey */
}

/* Give main container a subtle white box appeal against soft background */
.container-v3 {
    background: transparent !important;
}

/* Smooth out the borders */
.hero-wrapper-v3 {
    border-radius: 0 0 60px 60px !important;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08) !important;
}

/* Beautiful glassmorphism contact card touches */
.contact-ref-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s;
}
.contact-ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

/* Member cards soft touch */
.member-card, .member-ref-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04) !important;
    border-radius: 20px !important;
}
.profile-img, .member-img-circle {
    border: 4px solid #f1f5f9 !important;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* BEAUTIFUL FAINT PASTEL COLOR COMBINATIONS */
body, .site-wrapper, .content-wrapper, main#main-wrapper {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%) !important;
}

.panel-v3 {
    background: #ffffff !important;
}

/* Give the header main content a soft glossy white look */
.header-main-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Color injections to specific sections to make them less white */
.side-layout-v3 .alerts-panel {
    background: #fffbef !important; /* Soft faint yellow */
    border-color: #fef08a !important;
}

.side-layout-v3 .schemes-panel {
    background: #f0fdf4 !important; /* Soft faint green */
    border-color: #bbf7d0 !important;
}

/* Elected Team */
.panel-v3:not(.alerts-panel):not(.schemes-panel):not(.population-panel) {
    background: #f8fafc !important; /* Faint slate */
    border-color: #e2e8f0 !important;
}

/* Population Dashboard */
.population-panel {
    background: #fdf4ff !important; /* Very faint soft lavender */
    border-color: #fbcfe8 !important;
}

/* Overriding cards inside grid for contrast */
.member-grid-v3 .member-card, .census-card-v3 {
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.census-card-v3 {
    border-bottom: 4px solid #c084fc !important;
}

/* Minister Marquee Animation fix (so all 10 work) */
.minister-marquee-v2 {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 15px 0 !important;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}
.minister-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}
.minister-track:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Duplicate the ministers in JS or CSS for seamless loop. Let's make track hold 2x by letting CSS handle inline flex width */
