:root {
    /* === MODERN PROFESSIONAL THEME: "ROYAL INNOVATION" === */
    /* Primary Gradient: Deep Purple to Vibrant Coral (Unique, Professional, Attractive) */
    --gradient-primary: linear-gradient(135deg, #4A0072 0%, #C2185B 100%);

    /* Solid Colors */
    --primary-color: #4A0072;
    /* Deep Regal Purple */
    --accent-color: #FF4081;
    /* Vivid Pink-red for CTAs */
    --text-dark: #121212;
    /* Pure Black for sharpness */
    --text-light: #555555;
    --text-white: #FFFFFF;

    /* Backgrounds */
    --bg-body: #FAFAFA;
    /* Clean Off-white */
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.95);

    /* Borders & Shadows (Modern UI) */
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(74, 0, 114, 0.15);
    /* Purple-tinted shadow */

    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --radius-main: 16px;
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 64, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s forwards;
    opacity: 0;
    /* Ensures it's hidden before animation starts */
}

/* === LAYOUT === */
.max-w-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER (GLASSMORPHISM) === */
.main-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    /* max-width container is applied via class in HTML usually, or we add styles here */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

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

.logo-container img {
    height: 60px;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -0.5px;
}

.lgd-code {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.seal-container {
    width: 45px;
    height: 45px;
}

.seal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lang-selector select {
    border: 2px solid #eee;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.lang-selector select:hover {
    border-color: var(--primary-color);
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    /* Subtle separator */
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 15px 0;
}

.nav-item {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-color);
    background: rgba(74, 0, 114, 0.05);
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: translateX(-50%) scaleX(1);
    width: 80%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* === HERO SECTION (MODERN SPLIT) === */
.hero-wrapper {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.hero-slider-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.4;
    /* Darken for text contrast */
}

.h-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1.5s ease;
}

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

/* Gradient Overlay styling */
.hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #121212 0%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 40px;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 64, 129, 0.4);
    transition: var(--transition);
    animation: pulseGlow 3s infinite;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 64, 129, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* === FLOATING CARDS (Minus Margin Layout) === */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: -80px;
    position: relative;
    z-index: 20;
    padding-bottom: 60px;
}

.quick-card {
    background: canvas;
    /* High contrast system color awareness, fallback to white */
    background: white;
    padding: 30px;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.quick-card:hover {
    transform: translateY(-15px);
    background: var(--primary-color);
}

.quick-card:hover h3,
.quick-card:hover .quick-card-icon {
    color: white;
}

.quick-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    filter: grayscale(100%);
    /* Elegant monochrome start */
    transition: var(--transition);
}

.quick-card:hover .quick-card-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.quick-card h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* === LEADERSHIP (Modern Profile Cards) === */
.leadership-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.heading-underline {
    width: 60px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 3px;
    margin: 0 auto;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.leader-card {
    background: white;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.leader-img-container {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

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

.leader-card:hover .leader-img {
    transform: scale(1.08);
}

.leader-info {
    padding: 25px;
    background: white;
    position: relative;
    z-index: 2;
}

.leader-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.leader-role {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === CONTENT SPLIT (Modern List Design) === */
.split-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin: 80px auto;
}

.scheme-row {
    background: white;
    border-radius: var(--radius-main);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.scheme-row:hover {
    transform: scale(1.02) translateX(10px);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent-color);
}

.scheme-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F3E5F5, #CE93D8);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* Alerts Widget */
.alerts-container {
    background: var(--text-dark);
    /* Dark mode contrast widget */
    color: white;
    border-radius: var(--radius-main);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.alerts-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    opacity: 0.2;
    border-radius: 50%;
    filter: blur(40px);
}

.alert-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color);
}

.alert-item strong {
    color: var(--accent-color);
}

.alert-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* === INNER PAGES === */
.scheme-detail-box {
    background: white;
    padding: 50px;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-lg);
    margin: 40px 0;
}

.modern-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.scheme-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-main);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scheme-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 5px solid var(--primary-color);
}

.card-icon-circle {
    width: 90px;
    height: 90px;
    background: #FAFAFA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    transition: var(--transition);
}

.scheme-card:hover .card-icon-circle {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

/* === FOOTER === */
.main-footer {
    background: var(--text-dark);
    color: #e0e0e0;
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 5px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-col h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-links li {
    list-style: none;
    margin-bottom: 15px;
}

.copyright-text {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {

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

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding-bottom: 15px;
    }

    .brand-section {
        flex-direction: column;
        text-align: center;
        margin-bottom: 10px;
    }

    .header-controls {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .nav-links {
        display: none;
        /* Hide desktop nav */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .navbar.active .nav-links {
        display: flex;
        animation: fadeUp 0.3s forwards;
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero-wrapper {
        height: auto;
        padding: 100px 0 60px;
        min-height: auto;
    }

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

    .quick-links-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
        gap: 20px;
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

/* ======================================================
   POPULATION SECTION
====================================================== */
.population-section {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.population-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.population-section .section-heading {
    color: #ffffff;
    font-size: 2.2rem;
}

.population-section .heading-underline {
    background: linear-gradient(90deg, #FF4081, #FFD700);
    margin: 0 auto;
}

.population-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

/* Main stats card */
.pop-main-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.pop-main-header {
    margin-bottom: 20px;
}

.pop-census-badge {
    background: linear-gradient(90deg, #FF4081, #FFD700);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.pop-stats-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pop-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.pop-stat-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.pop-stat-value {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

/* Detail card */
.pop-detail-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px;
}

.pop-detail-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pop-village-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    overflow: hidden;
}

.pop-village-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255, 64, 129, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pop-village-name {
    color: #FFD700;
    font-weight: 700;
    font-size: 1rem;
}

.pop-village-icon {
    font-size: 1.3rem;
}

.pop-village-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.pop-village-item {
    padding: 14px 18px;
    background: rgba(15, 12, 41, 0.6);
}

.pop-village-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pop-village-value {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.pop-village-value.highlight-val {
    color: #4ade80;
    font-size: 1.2rem;
}

/* Counter card */
.pop-counters-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pop-counter-item {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.pop-counter-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 64, 129, 0.15);
}

.pop-counter-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.pop-counter-num {
    color: #FFD700;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.pop-counter-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 6px;
}

/* ======================================================
   LEADERSHIP CAROUSEL SECTION
====================================================== */
.leaders-section-full {
    background: #f8f5ff;
    padding: 80px 0;
    overflow: hidden;
}

.leaders-section-full .section-heading {
    color: var(--primary-color);
}

.leaders-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    margin-top: 10px;
}

.leaders-carousel-wrapper::before,
.leaders-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.leaders-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #f8f5ff, transparent);
}

.leaders-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, #f8f5ff, transparent);
}

.leaders-carousel {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollCarousel 35s linear infinite;
    padding: 0 40px;
}

.leaders-carousel:hover {
    animation-play-state: paused;
}

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

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

/* Leader Card - redesigned */
.leader-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(74, 0, 114, 0.12);
    overflow: visible;
    text-align: center;
    padding: 30px 24px 24px;
    width: 190px;
    min-width: 190px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(74, 0, 114, 0.22);
}

.leader-img-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.leader-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(74, 0, 114, 0.25);
}

.leader-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #f8f5ff;
}

.leader-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leader-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.leader-role {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ======================================================
   HOME GP MEMBERS SECTION
====================================================== */
.home-gp-members-section {
    background: linear-gradient(135deg, #fdfbff 0%, #f0ebff 100%);
    padding: 80px 0;
}

.home-gp-members-section .section-heading {
    color: var(--primary-color);
}

.home-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.home-member-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(74, 0, 114, 0.10);
    padding: 28px 20px 22px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    border-image: linear-gradient(135deg, #4A0072, #FF4081) 1;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.home-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A0072, #FF4081);
}

.home-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(74, 0, 114, 0.2);
}

.hmc-img-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 0, 114, 0.2);
    border: 3px solid rgba(74, 0, 114, 0.15);
}

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

.hmc-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hmc-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.hmc-role {
    font-size: 0.78rem;
    color: var(--accent-color);
    font-weight: 600;
    margin: 0;
}

/* ======================================================
   VIEW ALL BUTTON
====================================================== */
.btn-view-all {
    background: linear-gradient(135deg, #4A0072, #C2185B);
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    box-shadow: 0 8px 25px rgba(74, 0, 114, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 0, 114, 0.4);
}

/* ======================================================
   GALLERY CARD IMPROVEMENTS
====================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
    position: relative;
    background: #f0f0f0;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(74, 0, 114, 0.2);
}

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

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

/* ======================================================
   ENHANCED MOBILE RESPONSIVENESS
====================================================== */
@media (max-width: 992px) {
    .population-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pop-counters-card {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pop-counter-item {
        flex: 1;
        min-width: 120px;
    }

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

    .home-members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .population-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pop-village-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pop-counters-card {
        flex-direction: row;
        gap: 12px;
    }

    .pop-counter-item {
        flex: 1;
        padding: 18px 10px;
    }

    .pop-counter-num {
        font-size: 1.5rem;
    }

    .leaders-carousel {
        animation-duration: 22s;
    }

    .leader-card {
        width: 160px;
        min-width: 160px;
        padding: 24px 16px 18px;
    }

    .leader-img,
    .leader-img-container {
        width: 80px;
        height: 80px;
    }

    .leader-name {
        font-size: 0.78rem;
    }

    .home-members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .home-member-card {
        padding: 20px 12px 16px;
    }

    .hmc-img-wrap {
        width: 65px;
        height: 65px;
    }

    .hmc-name {
        font-size: 0.8rem;
    }

    .population-section {
        padding: 60px 0;
    }

    .leaders-section-full {
        padding: 60px 0;
    }

    .home-gp-members-section {
        padding: 60px 0;
    }

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

    .btn-view-all {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    /* Quick links 2-column on mobile */
    .quick-links-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .population-grid {
        grid-template-columns: 1fr;
    }

    .pop-village-grid {
        grid-template-columns: 1fr;
    }

    .pop-counters-card {
        flex-direction: column;
    }

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

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

    .leader-card {
        width: 140px;
        min-width: 140px;
    }

    .leaders-carousel {
        gap: 14px;
    }
}