/* SPACING AND MOBILE RESPONSIVENESS FIXES */

/* Reduce margins on the section containers */
.section-container {
    margin-bottom: 20px !important;
    padding: 20px !important;
}

/* Fix Hero Wrapper spacing and layout */
.hero-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px !important;
    align-items: center;
}

.hero-left {
    flex: 1.2;
    min-width: 300px;
}





/* Reduce gap between stats row items and margins */
.stats-row {
    margin: 20px 0 !important;
    gap: 15px !important;
}

.stat-card {
    padding: 15px !important;
    min-width: 130px !important;
}

/* Reduce gaps on the GP Services sections */
.services-grid, #gp-services-home {
    gap: 15px !important;
}

/* General spacing reduction */
body, #main-dashboard {
    padding-bottom: 20px !important;
}

.leadership-marquee {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* GP Members Grid on Home Page (Make attractive for 8 members) */
#member-list-home {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    justify-items: center !important;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    .hero-wrapper {
        flex-direction: column;
    }

    .hero-right {
        width: 100% !important;
        min-height: 300px !important;
        border-radius: 20px !important;
    }

    

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-hero-primary, .btn-hero-outline {
        width: 100%;
        text-align: center;
    }

    .stats-row {
        flex-direction: row; 
    }

    .stat-card {
        flex: 1 1 calc(50% - 15px);
        margin-bottom: 0;
    }

    #main-dashboard {
        padding: 15px !important;
    }
}

/* NEW SLIDER DESIGN: Increase height, decrease width, better shape, no cropping */
.hero-right {
    flex: 0.8 !important;
    max-width: 450px !important;
    height: 550px !important;
    position: relative !important;
    background: #000 !important;
    border-radius: 30px 100px 30px 100px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
    overflow: hidden !important;
    border: 5px solid rgba(255, 255, 255, 0.8) !important;
    margin-top: -30px !important;
}

#hero-slider-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: transparent !important;
    border-radius: 25px 95px 25px 95px !important;
}


/* Added for middle alignment */
.village-brand { align-items: center; justify-content: center; text-align: center; }
.village-brand > div { text-align: center; }


/* Added for inline header and smaller menu */
.village-title {
    white-space: nowrap !important;
    font-size: clamp(1.2rem, 4vw, 2.2rem) !important;
}
.header-lgd, .header-sub {
    font-size: clamp(0.7rem, 2vw, 0.9rem) !important;
}

@media (min-width: 1024px) {
    .nav-item {
        font-size: 0.85rem !important;
        padding: 8px 10px !important;
    }
}

/* Added for header inline alignment and menu fixes */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.village-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
.village-brand > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.header-lgd {
    color: #f59e0b !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.village-title {
    white-space: nowrap !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #1e3a8a !important;
    text-transform: uppercase;
    margin: 2px 0 !important;
}
.header-sub {
    color: #64748b !important;
    font-size: 0.85rem !important;
}
@media (max-width: 1024px) {
    .village-title { font-size: 1.5rem !important; }
    .nav-menu a { font-size: 0.85rem !important; padding: 8px 10px !important; }
    .nav-menu { gap: 5px !important; }
}
@media (max-width: 768px) {
    .village-brand > div { align-items: center; text-align: center; }
    .village-title { font-size: 1.3rem !important; white-space: normal !important; line-height: 1.2 !important; }
    .village-brand { flex-direction: column; }
}

/* Reduce menu size in desktop to prevent 'Contact Us' cut-off */
.nav-menu a {
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
}
.nav-menu {
    gap: 5px !important;
}

/* Updated Mobile Header matching Image 1 */
@media (max-width: 768px) {
    .village-brand {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .village-brand > div {
        align-items: flex-start !important;
        text-align: left !important;
    }
    .village-title {
        font-size: 1.1rem !important;
        white-space: normal !important;
        line-height: 1.1 !important;
    }
    .header-lgd {
        font-size: 0.65rem !important;
        letter-spacing: 0px !important;
    }
    .header-sub {
        font-size: 0.75rem !important;
    }
}

/* Ensure menu never crops */
.nav-menu {
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* Gallery layout: 4 cards in one row on desktop */
#gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}
@media (max-width: 1024px) {
    #gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    #gallery-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .header-top { padding: 5px !important; min-height: unset !important; }
    .header-container { padding: 5px !important; }
    .gp-logo { width: 45px !important; height: auto !important; }
}
