/* === THEME: SOFT PEACH & CHARCOAL v2 (Enhanced) === */
:root {
    /* Brand Colors */
    --brand-primary: #ff8a65;
    /* Coral */
    --brand-dark: #d84315;
    /* Darker Orange/Red */
    --brand-light: #fff3e0;
    /* Cream */

    /* Neutrals */
    --text-main: #37474f;
    --text-muted: #607d8b;
    --bg-white: #ffffff;
    --bg-off-white: #fafafa;
    --bg-warm-grey: #f5f5f5;

    /* Accents */
    --accent-teal: #26a69a;
    --accent-gold: #fbc02d;

    /* Shadows & Glass */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Softer, larger shadow */
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* Frosty */
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-off-white);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Utility to apply animation */
.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-zoom {
    animation: zoomIn 0.8s ease-out forwards;
}

/* === HEADER (Glassmorphic) === */
/* === HEADER (White Elegant) === */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding-top: 10px;
    padding-bottom: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    padding: 5px;
    background: transparent;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.village-name {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #d84315, #bf360c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    text-shadow: none;
}

.lgd-code {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #37474f;
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }
}

.seal-img {
    height: 55px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    opacity: 1;
}

/* Navbar Premium Layout */
.navbar {
    margin-top: 15px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px 25px;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    border-bottom: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: var(--bg-warm-grey);
    color: var(--brand-dark);
    border-bottom: 3px solid var(--brand-dark);
}

.nav-item::after {
    display: none;
}

.inner-page-spacer {
    height: 10px;
    /* Reduced to minimize gap between header and heading */
    width: 100%;
    /* Made transparent to remove the "black box" look */
    background: transparent;
    margin-bottom: 1rem;
}

/* === HERO SECTION (Parallax Effect) === */
.hero-wrapper {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    padding-top: 220px;
    /* Push content down significantly to clear the large header */
    /* No negative margin - ensuring content starts below header */
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.h-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.h-slide.active {
    opacity: 1;
    transition: opacity 1s;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 138, 101, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 138, 101, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: white;
    color: var(--text-main);
    transform: translateY(-3px);
}

/* === MINISTER MARQUEE SECTION === */
.minister-marquee-wrapper {
    background: #f3e5f5;
    /* Light purple tint similar to reference */
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid #d1c4e9;
    border-bottom: 1px solid #d1c4e9;
    z-index: 5;
    /* Ensure it is above some elements but below header/modal */
}

.minister-track {
    display: inline-block;
    animation: scrollLeft 30s linear infinite;
}

.minister-track:hover {
    animation-play-state: paused;
}

.minister-pill {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    margin: 0 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.minister-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.minister-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.minister-info {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.minister-info small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === STATS STRIP (Overlapping) === */
.stats-strip {
    position: relative;
    margin-top: -70px;
    z-index: 10;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.stat-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.stat-box {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: #e0e0e0;
}

/* === SECTIONS === */
.section-block {
    padding: 6rem 0;
    position: relative;
}

.section-block.bg-soft {
    background-color: #fff9f5;
}

/* Slight peach tint */
.section-block.bg-grey {
    background-color: var(--bg-warm-grey);
}

.max-w-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 2rem;
}

.center-text {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-heading {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.heading-underline {
    width: 80px;
    height: 5px;
    background: var(--brand-primary);
    margin: 0 auto;
    border-radius: 10px;
}

/* === NEW: SARPANCH MESSAGE SECTION === */
.sarpanch-msg-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
}

.sarpanch-photo-box {
    position: relative;
    text-align: center;
}

.sarpanch-img-lg {
    width: 280px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    font-size: 4rem;
    color: var(--brand-primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.msg-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.msg-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.signature {
    font-family: 'Cursive', serif;
    font-size: 1.5rem;
    color: var(--brand-dark);
    text-align: right;
}

/* === NEW: NOTICE BOARD STYLE === */
.notice-board-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    height: 100%;
    border-top: 5px solid var(--brand-primary);
}

.notice-marquee {
    height: 300px;
    overflow: hidden;
    position: relative;
    margin-top: 1rem;
}

.marquee-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: marqueeUp 15s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marqueeUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

.notice-item {
    padding: 15px;
    background: var(--bg-warm-grey);
    border-radius: 8px;
    border-left: 4px solid var(--accent-teal);
}

.notice-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.notice-text {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

/* === CARDS (Modern Glass) === */
.modern-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.glass-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-primary);
}

.card-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-warm-grey);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    transition: all 0.3s;
}

.glass-card:hover .card-icon-circle {
    background: var(--brand-primary);
    color: white;
    transform: rotate(10deg);
}

/* === HOME PAGE GRID LAYOUT (New) === */
.home-main-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    /* 60% Left, 40% Right */
    gap: 2.5rem;
    padding: 2rem 0;
    align-items: start;
}

.panel-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--brand-light);
    padding-bottom: 10px;
    display: inline-block;
}

/* Mini Member Grid (For Home Page Left Panel) */
#member-list-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

/* Override member styles for home page specifically */
#member-list-home .profile-frame {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    border-width: 4px;
}

#member-list-home .profile-name {
    font-size: 1rem;
}

#member-list-home .profile-role {
    font-size: 0.8rem;
}

/* Schemes Side List (Right Panel) */
.schemes-side-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scheme-side-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-warm-grey);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.scheme-side-item:hover {
    background: white;
    border-color: var(--brand-primary);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.scheme-side-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Population Vertical Stats (Left Panel Bottom) */
.pop-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pop-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.pop-label {
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pop-value {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--brand-dark);
}

/* Alerts Widget (Right Panel Bottom) */
.alerts-widget-box {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.alert-mini {
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-mini.urgent {
    background: #ffebee;
    border-left-color: #f44336;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .home-main-grid {
        grid-template-columns: 1fr;
        /* Stack columns */
    }
}


/* === MEMBERS (Clean) === */
.members-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 3rem;
    row-gap: 4rem;
    justify-content: center;
}

.member-card {
    text-align: center;
    position: relative;
    padding: 15px;
    border-radius: 15px;
    background: transparent;
    transition: none;
    /* Stabilization */
    animation: none !important;
    /* Force stop any inherited animation */
}

.profile-frame {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 6px;
    background: white;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-card:hover .profile-frame {
    transform: scale(1.05);
    /* Reduced scale to be less jarring */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile-info {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 5px;
}

.profile-name {
    font-size: 1.15rem;
    /* Slightly adjusted size */
    color: var(--text-main);
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.3;
}

.profile-role {
    color: var(--brand-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 5px;
}

/* Stabilize Home Panel Lists */
#member-list-home,
.schemes-side-list {
    animation: none !important;
    transform: none !important;
}

/* === CERTIFICATES (Grid) === */
.self-declaration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.declaration-download-btn {
    background: var(--brand-light);
    color: var(--brand-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.declaration-download-btn:hover {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.05);
}

/* === VIDEO SECTION === */
.video-section-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    background: black;
}

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

/* === FOOTER === */
.main-footer {
    background: #263238;
    color: #eceff1;
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}

.footer-col h3 {
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links a {
    color: #cfd8dc;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--brand-primary);
    padding-left: 5px;
}

/* === MOBILE === */
@media (max-width: 768px) {
    .main-header {
        position: fixed;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .header-content {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .logo-img {
        height: 50px;
        /* Smaller logo */
    }

    .village-name {
        font-size: 1.4rem;
        /* Smaller title */
        margin-bottom: 2px;
    }

    .lgd-code {
        font-size: 0.75rem;
        padding: 2px 8px;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
        gap: 10px;
    }

    .seal-img {
        height: 40px;
        /* Smaller seal */
    }

    .mobile-nav-toggle {
        padding: 2px;
    }

    .bar {
        height: 3px;
        margin: 4px auto;
    }

    .navbar {
        display: none;
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    .navbar.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        background: #263238;
        /* Dark background */
        padding: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        margin-top: 0;
    }

    .nav-item {
        color: #ffffff !important;
        /* Force white text */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: left;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .nav-item:hover,
    .nav-item.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--brand-primary) !important;
        padding-left: 20px;
        /* Slide effect */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .stats-strip {
        margin-top: 0;
        padding: 15px;
        background: var(--bg-off-white);
    }

    .stat-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .sarpanch-msg-layout {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
        gap: 2rem;
    }

    .sarpanch-img-lg {
        width: 180px;
        height: 220px;
        margin: 0 auto;
    }

    .signature {
        text-align: center;
        margin-top: 1rem;
    }

    .video-section-layout {
        grid-template-columns: 1fr;
    }

    .inner-page-spacer {
        height: 180px;
        /* Matches new header height */
    }

    .hero-wrapper {
        padding-top: 180px;
        /* Push hero content down more for fixed header */
        min-height: 100vh;
        height: auto;
        /* Allow expansion */
    }
}

/* ================= POPULATION CARDS (Detailed Census) ================= */
.pop-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pop-card-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.pop-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 8px;
}

.pop-card-header strong {
    font-size: 1.05rem;
    color: var(--brand-dark);
}

.st-badge {
    background: #e0f2f1;
    color: #00695c;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.pop-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pop-card-stats strong {
    color: var(--text-main);
}

.pop-card-item.total-card {
    background: #fff3e0;
    border-color: #ffe0b2;
}

.pop-card-item.total-card .pop-card-header strong {
    color: #e65100;
}


/* ================= FOOTER REDESIGN ================= */
.main-footer {
    background: #1a202c;
    /* Dark Blue-Gray */
    color: #cbd5e0;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: #ff9800;
    /* Orange Accent */
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 152, 0, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ff9800;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
}

.helpline-list li {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.helpline-list strong {
    color: #fff;
}


/* ================= INNER PAGES & TABLES ================= */
/* Ensure content isn't hidden behind fixed header */
#dynamic-content-area {
    padding-top: 180px;
    /* Adjust based on header height */
    min-height: 80vh;
}

.section-heading {
    text-align: center;
    color: var(--brand-dark);
    margin-bottom: 3rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    /* Removing duplicate underline (::after) as templates use .heading-underline div */
    display: none;
    background: var(--brand-primary);
    border-radius: 2px;
}

/* Modern Tables (GP Services, Revenue) */
.modern-table-container {
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: white;
    margin-bottom: 2rem;
}

/* Beautiful Table Styling */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.modern-table thead {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: white;
}

.modern-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: white;
    border: none;
}

.modern-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #4a5568;
    font-size: 0.95rem;
    background: white;
}

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

.modern-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.modern-table tr:hover td {
    background-color: #fff3e0;
    /* Light orange tint on hover */
    color: var(--brand-dark);
}


/* ================= CARDS (Contact, Gallery, Certificates) ================= */

/* Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.contact-card-modern {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--brand-primary);
}

.contact-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff3e0;
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.contact-card-modern h3 {
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
}

.contact-card-modern p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Certificate Cards */
.cert-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.cert-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-3px);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

/* Additional Grid Utilities */
.modern-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 1rem 0;
}

.gallery-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    background: #fff;
}

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

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Map existing classes to new styles */
.contact-card,
.glass-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--brand-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-card:hover,
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon,
.card-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff3e0;
    /* Light orange bg */
    color: var(--brand-primary);
    /* Orange text */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-role,
.glass-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.contact-name,
.contact-mobile {
    font-size: 0.95rem;
    color: #555;
    margin: 3px 0;
}

.declaration-download-btn {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.declaration-download-btn:hover {
    background-color: #e65100;
    /* Darker orange */
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* === GP MEMBERS INNER PAGE (Reference Design) === */
.members-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    justify-content: center;
}

.member-ref-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.member-ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-primary);
}

.member-img-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-name-ref {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.member-role-ref {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* === UTILITIES & ADJUSTMENTS === */
.scheme-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}

.main-footer {
    padding-left: 20px;
    padding-right: 20px;
}