/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background: var(--nav-dark-green);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--nav-hover-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--nav-dark-green);
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--nav-dark-green);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--nav-dark-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   HEADINGS & SECTIONS
   ======================================== */
.section-heading {
    color: var(--nav-dark-green);
    font-weight: 800;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px;
    border-bottom: 3px solid var(--accent-gold);
    display: inline-block;
}

.heading-underline {
    height: 4px;
    width: 80px;
    background: var(--accent-gold);
    margin: 0.5rem auto 2rem;
    border-radius: 2px;
}

/* ========================================
   MEMBERS MARQUEE
   ======================================== */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Assumes content is duplicated */
    }
}

.member-card-marquee {
    flex: 0 0 200px;
    /* Fixed width for consistency */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ========================================
   POPULATION CARDS
   ======================================== */
.pop-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-top: 5px solid var(--nav-dark-green);
    transition: transform 0.3s ease;
}

.pop-card:hover {
    transform: translateY(-5px);
}

.pop-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.pop-table td {
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #444;
}

.pop-table td strong {
    color: var(--nav-dark-green);
}

/* Adjust Full Screen Width */
.max-w-container {
    max-width: 95%;
    /* Increased from 1400px to fill more space */
    padding: 0 1rem;
}

/* ========================================
   NAV ICONS - Menu Styling
   ======================================== */
.nav-icon {
    display: inline-block;
    font-size: 1.1em;
    margin-right: 5px;
    vertical-align: middle;
    line-height: 1;
    transition: transform 0.3s ease;
}

.nav-text {
    display: inline;
    vertical-align: middle;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    transform: scale(1.2) rotate(-5deg);
}

/* Desktop Nav: Icon above text (column layout) */
@media (min-width: 901px) {
    .nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        text-align: center !important;
    }
    .nav-icon {
        font-size: 1.1em;
        margin-right: 0 !important;
    }
    .nav-text {
        display: block !important;
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
}

/* Mobile Nav: Icon inline, left-aligned */
@media (max-width: 900px) {
    .nav-item {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-direction: row !important;
    }
    .nav-icon {
        font-size: 1.2em !important;
        min-width: 22px;
        text-align: center;
    }
    .nav-text {
        display: inline !important;
        font-size: 15px !important;
    }
}

/* ========================================
   GP SERVICES CATEGORY CARDS
   ======================================== */
.gp-service-cat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.gp-service-cat-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.gp-cat-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.7rem;
}

.gp-cat-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #8B0000, #6a1b9a);
    margin: 0.4rem auto 0;
    border-radius: 2px;
}

.gp-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.gp-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
}

.gp-card-body ul.detail-list {
    padding-left: 18px;
    margin: 0;
}

.gp-card-body ul.detail-list li {
    padding: 3px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 0.86rem;
    color: #444;
}

.gp-card-body ul.detail-list li:last-child {
    border-bottom: none;
}

/* ========================================
   VIDEOS GRID - Mobile Responsive
   ======================================== */
.videos-page .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
}

@media (max-width: 680px) {
    .videos-page .videos-grid {
        grid-template-columns: 1fr !important;
    }
    .video-card video {
        height: 200px !important;
    }
    /* GP Services Cards Stack on Mobile */
    .gp-services-cards-grid {
        grid-template-columns: 1fr !important;
    }
    .gp-service-cat-card .gp-card-img-wrap {
        height: 120px !important;
    }
}

@media (max-width: 900px) and (min-width: 481px) {
    .gp-services-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ========================================
   SERVICES PAGE GENERAL MOBILE FIX
   ======================================== */
@media (max-width: 900px) {
    .services-page .gp-services-cards-grid {
        padding: 0 0.5rem !important;
    }
    .gp-service-cat-card {
        margin-bottom: 0.5rem;
    }
}

/* GP Services - Excluded list: collapse to 1 col on mobile */
@media (max-width: 600px) {
    .scheme-detail-box [style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
    .scheme-detail-box [style*="grid-template-columns: 1fr 1fr"] > div {
        margin-bottom: 0.8rem;
    }
}