* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a1a3e;
    --primary-purple: #6b4c9a;
    --accent-gold: #d4a574;
    --accent-cream: #f5f1e8;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --transition: all 0.3s ease;
}

/* Dark purple behind the page: shows in the iPhone overscroll areas at the top and bottom */
html {
    background: var(--primary-dark);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Keeps sections without their own background white */
    background: white;
}

nav {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-purple) 100%);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

nav a,
nav button {
    -webkit-tap-highlight-color: transparent;
}

nav a:focus:not(:focus-visible),
nav button:focus:not(:focus-visible) {
    outline: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    color: var(--accent-cream);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 4px 8px rgba(212, 165, 116, 0.3));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--accent-cream);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.65) 0%, rgba(107, 76, 154, 0.65) 100%),
                url('images/banner.webp') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    animation: slideInUp 1s ease;
}

.hero h1 {
    font-size: 6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .subtitle {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--accent-cream);
    line-height: 1.8;
}

@media (max-width: 425px) {
    .hero p {
        font-size: 1rem;
    }
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 20px 60px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

section {
    padding: 5rem 5%;
}

.feature-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--primary-purple);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 20px rgba(0,0,0,0.12);

    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(107, 76, 154, 0.25);
}

.cultural-card {
    background-image:
        linear-gradient(
            rgba(26, 26, 62, 0.45),
            rgba(26, 26, 62, 0.75)
        ),
        url('images/gvillage.webp');
}

.community-card {
    background-image:
        linear-gradient(
            rgba(26, 26, 62, 0.45),
            rgba(26, 26, 62, 0.75)
        ),
        url('images/community.webp');
}

.charity-card {
    background-image:
        linear-gradient(
            rgba(26, 26, 62, 0.45),
            rgba(26, 26, 62, 0.75)
        ),
        url('images/charity3.webp');
}

.global-card {
    background-image:
        linear-gradient(
            rgba(26, 26, 62, 0.45),
            rgba(26, 26, 62, 0.75)
        ),
        url('images/global.JPG');
}

.feature-overlay {
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.feature-overlay h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-overlay p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-size: 1rem;
    font-size: 1.19rem;

}

.sponsors-section {
    background: var(--primary-purple);
    padding: 1rem 0;
    overflow: hidden;
}

.sponsors-section .section-title {
    color: white;
}

.sponsors-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);

}

.sponsors-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 1rem 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 60px;
    padding-top: 20px;
}

.sponsors-track {
    display: flex;
    align-items: center;
    gap: 6rem;
    width: max-content;
    animation: scrollSponsors 30s linear infinite;
}

.sponsor-logo {
    width: 180px;
    height: 180px;

    background: white;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 45px rgba(0,0,0,.28);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.sponsor-logo img {
    width: 68%;
    height: 68%;

    object-fit: contain;

    display: block;
}

@keyframes scrollSponsors {

    from {
        transform: translateX(0);
    }

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

}

@media (max-width: 992px) {

    .sponsors-section {
        padding: 6rem 0;
    }

    .sponsors-track {
        gap: 3rem;
    }

    .sponsor-logo {
        width: 150px;
        height: 150px;
    }

}

@media (max-width: 768px) {

    .sponsors-section {
        padding: 5rem 0;

        margin-bottom: -50px;
    }

    .sponsors-track {
        gap: 2rem;
    }

    .sponsor-logo {
        width: 150px;
        height: 150px;
    }

}

@media (max-width: 480px) {

    .sponsors-track {
        gap: 1.5rem;
    }

    .sponsor-logo {
        width: 95px;
        height: 95px;
    }

    .sponsor-logo img {
        width: 60%;
        height: 60%;
    }

}

.events-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.events-container {
    --event-cols: 3;
    --event-gap: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--event-gap);
    margin: 3rem auto 0;
    padding: 0 2rem;
    max-width: 1600px;
}

.more-events {
    display: contents;
}

.event-card {

    flex: 0 0 calc((100% - (var(--event-cols) - 1) * var(--event-gap)) / var(--event-cols));
    max-width: 420px;
    min-width: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    border-top: 5px solid var(--primary-purple);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(107, 76, 154, 0.2);
}

.event-image {
    width: 100%;
    aspect-ratio: 9 / 10;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.event-content {
    padding: 2rem;
}

.event-date {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.event-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.event-btn,
.event-link-btn {
    background: var(--primary-purple);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.event-link-btn {
    display: inline-block;
    text-decoration: none;
}

.event-btn:hover,
.event-link-btn:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
}

.events-toggle {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

@media (max-width: 999px) {
    .events-container {
        --event-cols: 2;
        --event-gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 600px) {
    .events-container {
        --event-cols: 1;
        --event-gap: 1.5rem;
        padding: 0 1rem;
    }

    .event-content {
        padding: 1.5rem;
    }
}

.charity-section {
    align-items: center;
    background: white;
}

.charity-content {
    order: 1;
    max-width: 950px;
}

.charity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.charity-content h3 {
    color: var(--primary-purple);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.charity-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.3rem;
}

.charity-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 1.20rem;

}

#charity-title {
    font-size: 1.5rem;
    color: var(--primary-purple);
}

.charity-highlight {
    color: var(--primary-purple);
}

.charity-btn {
    margin-top: 2rem;
    padding: 18px 40px;
    font-size: 1rem;
}

.charity-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    order: 2;
}

.charity-image-link:hover {
    transform: scale(1.05);
}

.charity-image-link::after {
    content: '🔗 Click to Donate';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(212, 165, 116, 0.95);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.charity-image-link:hover::after {
    opacity: 1;
}

.charity-image {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.charity-image-link:hover .charity-image {
    filter: brightness(0.7);
}

.campaign-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    margin-top: 4rem;
    padding: 2.5rem 3rem;

    background: linear-gradient(135deg, rgba(107, 76, 154, 0.08) 0%, rgba(212, 165, 116, 0.12) 100%);
    border-left: 6px solid var(--accent-gold);
    border-radius: 16px;
}

.campaign-callout-text h3 {
    color: var(--primary-purple);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.campaign-callout-text p {
    color: var(--text-dark);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0;
}

.campaign-callout-btn {
    flex-shrink: 0;
    margin-top: 0;
}

@media (max-width: 768px) {
    .campaign-callout {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }

    .charity-btn {
        display: block;
    }

    .campaign-callout-btn {
        align-self: center;
    }
}

.impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.impact-item {
    background: linear-gradient(
        135deg,
        #5b448e,
        #43316f
    );

    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;

    font-weight: 600;
    font-size: 1rem;

    transition: all 0.3s ease;
}

.impact-item:hover {
    transform: translateX(8px);
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.stat-card .number {
    font-size: 2.5rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    color: var(--primary-purple);
    font-weight: 600;
}

@media (min-width: 769px) {

    .team-grid > :nth-last-child(2) {
        grid-column: 2 / 3;
    }

    .team-grid > :nth-last-child(1) {
        grid-column: 3 / 4;
    }

}

/* Tablet: 4 narrow cards per row, so trim side padding and text size to keep titles on one line */
@media (min-width: 769px) and (max-width: 1100px) {

    .team-grid .team-card {
        padding: 2.5rem 0.5rem;
    }

    .team-grid .team-card h4 {
        font-size: 0.9rem;
    }

    .team-grid .team-card p {
        font-size: 0.85rem;
    }

}

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

    .charity-image-link {
        order: 1;
    }

    .charity-content {
        order: 2;
    }

    .charity-content p {
        font-size: 1.2rem;
    }

    .charity-content h3 {
        font-size: 1.3rem;
    }

    .charity-list li {
        font-size: 0.9rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

}

@media (max-width: 480px) {
    .charity-content h3 {
        font-size: 1.3rem;
    }

    .campaign-goal {
        font-size: 0.95rem;
    }
}

.gallery-section {
    position: relative;
    padding: 85px 0 80px;

    background: #faf9f7;

    overflow: hidden;
}

.gallery-section .section-title {
    position: relative;
    z-index: 2;

    color: var(--primary-dark);

    margin-bottom: 75px;
}

.gallery-section .section-subtitle {
    position: relative;
    z-index: 2;

    color: var(--primary-purple);

    margin-bottom: 50px;
}

.gallery-marquee {
    width: 100%;

    overflow: hidden;

    position: relative;
}

.gallery-track {
    display: flex;

    width: max-content;

    animation: gallery-scroll 35s linear infinite;

    will-change: transform;
}

body.lightbox-open .gallery-track {
    animation-play-state: paused;
}

.gallery-group {
    display: flex;

    gap: 24px;

    padding-right: 24px;

    flex-shrink: 0;
}

.gallery-item {
    position: relative;

    width: 420px;
    height: 315px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 12px 25px rgba(26, 26, 62, 0.10),
        0 3px 7px rgba(26, 26, 62, 0.05);
}

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 16px;

    transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {

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

}

@keyframes gallery-scroll {

    from {
        transform: translateX(0);
    }

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

}

@media (max-width: 1100px) {

    .gallery-item {
        width: 360px;
        height: 270px;
    }

}

@media (max-width: 700px) {

    .gallery-section {
        padding: 70px 0 60px;
    }

    .gallery-section .section-subtitle {
        margin-bottom: 35px;
    }

    .gallery-item {
        width: 300px;
        height: 225px;
    }

    .gallery-group {
        gap: 18px;
        padding-right: 18px;
    }

    .gallery-track {
        animation-duration: 25s;
    }

}

@media (max-width: 425px) {

    .gallery-item {
        width: 270px;
        height: 203px;
    }

}

.gallery-cta {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding: 0 5%;
}

.btn-gallery {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    line-height: 1.2;

    padding: 16px 40px;

    background: var(--primary-purple);
    color: white;
    border: 3px solid var(--accent-gold);

    box-shadow: 0 8px 25px rgba(107, 76, 154, 0.3);
}

.btn-gallery svg {
    transition: transform 0.3s ease;
}

.btn-gallery:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(107, 76, 154, 0.4);
}

.btn-gallery:hover svg {
    transform: translate(3px, -3px);
}

@media (max-width: 425px) {
    .gallery-cta {
        margin-top: 35px;
    }

    .btn-gallery {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

.gallery-lightbox {
    position: fixed;
    inset: 0;

    background: rgba(15, 13, 35, 0.94);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    z-index: 9999;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox img {
    max-width: 92vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    font-size: 36px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-item {
    cursor: pointer;
}

.about-section {
    background: white;

}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 3rem;
    gap: 1.5rem;
}

.about-image {
    width: 100%;
    max-width: 768px;
    height: auto;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-purple) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    order: 1
}

.about-content {
    order: 2
}

.about-content h3 {
    color: var(--primary-purple);
    font-size: 2.3rem;
    margin-bottom: 1.4rem;
}

.about-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.3rem;
}

.highlight-word {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1.05em;
}

.values-title {
    margin-top: 2rem !important;
}

.values-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 1.4rem;
}

.value-item {
    display: flex;
    gap: 1rem;
}

.value-item .icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.value-item .text {
    color: var(--text-dark);
}

@media (min-width: 769px) and (max-width: 1500px) {
    .about-content p {
        font-size: 1.5rem;
    }
}

@media (max-width: 1500px) {
    .about-content p {
        font-size: 1.1rem;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-content {
        display: contents;
    }

    .about-content h3 {
        order: 1;
        text-align: center;
        font-size: 1.9rem;
        margin-top: -0px;
    }

    .about-image {
        order: 2;
        width: 100%;
        margin-bottom: 20px;
    }

    .about-content p:nth-of-type(1) {
        order: 3;
    }

    .about-content p:nth-of-type(2) {
        order: 4;
    }

    .about-content p:nth-of-type(3) {
        order: 5;
    }
}

@media (min-width: 1200px) and (max-width: 1800px) {
    .about-content p {
        font-size: 1.2rem;
    }

}

@media (min-width: 1501px) and (max-width: 1900px) {
    .about-content {
        padding-left: 50px;
    }

}

.container {
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.leadership-section {
    margin-top: 5rem;
}

.leadership-title {
    text-align: center;
    color: var(--primary-purple);
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-content: center;
}

.team-card {
    position: relative;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;

    padding: 3.5rem 2rem;
    border-radius: 12px;

    text-align: center;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    transition: var(--transition);

    min-height: 280px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    overflow: hidden;
}

.team-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(26, 26, 62, 0.35);

    z-index: 0;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 76, 154, 0.15);
}

.team-card h4,
.team-card p {
    position: relative;
    z-index: 1;
}

.team-card h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: white;
    font-size: 0.95rem;
}

.team-president {
    background-image: url("images/execs/ramadan.jpg");
    background-position: center 25%;

}

.team-vice-president {
    background-image: url("images/execs/karim.png");
    background-position: center 25%;
}

.team-jad {
    background-image: url("images/execs/jad.JPG");
    background-position: 54% 50%;
    background-size: 140%;
    background-size: cover;
}

.team-lana {
    background-image: url("images/execs/lana.jpg");
    background-size: 180%;
    background-size: cover;
}

.team-shelkani {
    background-image: url("images/execs/shelkani.jpg");
    background-position: 0% 65%;
    background-size: 140%;
}

.team-maha {
    background-image: url("images/execs/maha.jpg");
}

.team-sam {
    background-image: url("images/execs/sam.jpg");
    background-position: 36% 50%;
}

.team-rami {
    background-image: url("images/execs/rami.jpg");
}

.team-janna {
    background-image: url("images/execs/jana.jpg");
    background-position: 70% 20%;
    background-size: 125%;
}

.team-khalid {
    background-image: url("images/execs/khalid.jpg");
    background-size: 150%;
    background-position: 20% 50%;
}

.cta-section {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.75) 0%, rgba(107, 76, 154, 0.75) 100%),
                url('images/joinnow.webp') center 25%/cover no-repeat;
    color: white;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 5rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--accent-cream);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-footer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 5% 2rem;
    margin-top: 0;
}

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

}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a,
.footer-section p {
    color: var(--accent-cream);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.social-links a img {
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}

.discord-text {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--accent-cream);
}

@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(250px, 400px));
        justify-content: center;
        gap: 2rem 18rem;
    }
}

@media (max-width: 525px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    /* Kept in the layout but hidden so it can fade in and out instead of popping */
    .nav-links {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-purple) 100%);
        padding: 2rem;
        gap: 1rem;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.5s ease, transform 0.3s ease, visibility 0.3s;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 3.0rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .about-image {
        width: 100%;
        height: auto;

        object-fit: contain;
        border-radius: 12px;
        display: block;
        background-color: #f5f1e8;
        margin-left: 0;
    }

    .charity-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
    }

    .values-list {
        grid-template-columns: 1fr;
    }

    .logo-text p {
        display: none;
    }

    .impact-stats {
        grid-template-columns: 1fr;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        height: 250px;
    }

    .feature-overlay {
        padding: 1.5rem;
    }

    .feature-overlay h3 {
        font-size: 1.3rem;
    }

    .feature-overlay p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
    }
}

/* 480px so large phones (e.g. iPhone Pro Max, ~430-440px wide) get the compact team cards too */
@media (max-width: 480px) {

    .team-grid {
        grid-template-columns: 1;
        gap: 1.2rem;
    }

    /* Shift the photo up so his face sits above the name */
    .team-shelkani {
        background-position: 0% 100%;
    }

    .team-card {
        min-height: 230px;
        padding: 2rem 0.5rem;
        grid-template-columns: 1;

    }

    .team-card h4 {
        margin-bottom: 0.4rem;
        /* Shrinks a little on very narrow phones so long words like "Communications" stay whole */
        font-size: min(0.8rem, 3.6vw);

    }

    .team-card p {
        font-size: 0.7rem;
    }
}

/* Narrow cards (very small phones, and 4-across tablets) only show a thin slice of Sam's wide photo, so line it up on him */
@media (min-width: 260px) and (max-width: 403px), (min-width: 769px) and (max-width: 1023px) {
    .team-sam {
        background-position: 43% 50%;
    }
}
