/* ============================================
   VOLUNTEERING SECTION - PARALLAX CARD SYSTEM
   Matching Main Header Style
   ============================================ */

/* Volunteering section - Full viewport container */
.volunteering-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-bottom: var(--section-spacing-desktop);
    overflow: hidden;
    background-color: var(--bg-color);
}

/* Hide the old section title */
.volunteering-section .section-title {
    display: none;
}

/* Main Card Container - 4:3 aspect ratio, 15% from borders, with parallax */
.volunteering-main-card {
    position: relative;
    width: 70vw;
    /* 15% from left and right = 70% width */
    aspect-ratio: 4 / 3;
    margin-top: 5vh;
    /* 5% from header */
    margin-bottom: 15vh;
    /* 15% from bottom */

    /* LIQUID GLASS EFFECT - Same as main header */
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 0 rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-sizing: border-box;

    /* Parallax transform will be applied via JavaScript */
    transform: translateY(0);
    transition: transform 0.1s linear;

    /* Inner padding */
    padding: 5%;
    display: flex;
    flex-direction: column;
    /* Stack title and cards */
    gap: 5%;
    align-items: center;
    justify-content: center;
}

/* Volunteering Title - Inside main card */
.volunteering-title {
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 900;
    color: var(--text-color);
    margin: 0 0 30px 0;
    text-align: center;
    font-family: var(--font-family-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: 100%;
}

/* Inner cards container */
.volunteering-cards-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    /* Keep cards side-by-side */
    gap: 5%;
    align-items: stretch;
}

/* Individual volunteering cards - matching main card style */
.volunteering-card {
    flex: 1;
    position: relative;
    overflow: hidden;

    /* LIQUID GLASS EFFECT - Same as main header */
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 0 rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-sizing: border-box;

    /* Background image - will be set via HTML or JS */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Fade in animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1),
        box-shadow 0.3s ease;

    /* Content positioning */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

/* Blur overlay for cards - COVERS ENTIRE SURFACE */
.volunteering-card::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    background: rgba(45, 45, 45, 0.3);
    /* Dark tint for better text contrast */
    z-index: 0;
    border-radius: inherit;
}

/* Dark overlay for better text readability - ABOVE BLUR */
.volunteering-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

/* Card visible state - fade in */
.volunteering-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for second card */
.volunteering-card:nth-child(2) {
    transition-delay: 0.2s;
}

/* Card content container */
.volunteering-card-content {
    position: relative;
    z-index: 2;
    /* Above both blur and gradient overlays */
    color: var(--text-color);
}

/* Card title */
.volunteering-card-title {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Card description */
.volunteering-card-description {
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    line-height: 1.6;
    color: rgba(220, 227, 232, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-weight: 400;
    margin-bottom: 10px;
}

/* Card image credit - subtle attribution */
.volunteering-card-credit {
    font-size: clamp(0.65rem, 0.85vw, 0.85rem);
    line-height: 1.4;
    color: rgba(220, 227, 232, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Credit links styling */
.volunteering-card-credit a {
    color: rgba(220, 227, 232, 0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(220, 227, 232, 0.3);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.volunteering-card-credit a:hover {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}

/* Hover effect on cards */
.volunteering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 70px rgba(0, 0, 0, 0.45), inset 0 0 0 0 rgba(255, 255, 255, 0.15);
}


/* ============================================
   CONTACT BUTTON - MATCHING MAIN HEADER STYLE
   ============================================ */
.contact-button {
    display: block;
    padding: 1.2vw 2.8vw;
    text-decoration: none;
    font-size: 1.3vw;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: visible;

    /* LIQUID GLASS EFFECT - Same as main header */
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 0 rgba(255, 255, 255, 0.1);

    /* Text styling */
    color: var(--text-color-dark);

    transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.contact-button:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 16px 70px rgba(0, 0, 0, 0.4), inset 0 0 0 0 rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
}

.contact-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 0 rgba(255, 255, 255, 0.1);
}


/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    .volunteering-main-card {
        width: 80vw;
        padding: 4%;
        gap: 4%;
    }

    .volunteering-card {
        padding: 25px;
    }

    .volunteering-card-title {
        font-size: clamp(1.25rem, 3vw, 2rem);
    }

    .volunteering-card-description {
        font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    }
}

/* Mobile - stack cards vertically */
@media (max-width: 768px) {
    .volunteering-section {
        min-height: auto;
        padding: 8vh 20px;
    }

    .volunteering-main-card {
        width: calc(100% - 40px);
        aspect-ratio: auto;
        margin-top: 2vh;
        margin-bottom: 5vh;
        padding: 20px;
        flex-direction: column;
        border-radius: 30px;
    }

    .volunteering-cards-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .volunteering-card {
        min-height: 250px;
        padding: 20px;
        border-radius: 20px;
    }

    .volunteering-card-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .volunteering-card-description {
        font-size: 0.95rem;
    }

    /* Contact button mobile */
    .contact-button {
        padding: 14px 35px;
        font-size: 4vw;
        border-radius: 25px;
    }

    /* Volunteering title - mobile responsive */
    .volunteering-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        margin: 0 0 20px 0;
        padding: 0 10px;
        color: var(--text-color);
        /* Light text inside glass card */
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .volunteering-main-card {
        padding: 15px;
        border-radius: 25px;
    }

    .volunteering-card {
        min-height: 200px;
        padding: 15px;
        border-radius: 15px;
    }

    .volunteering-card-title {
        font-size: 1.25rem;
    }

    .volunteering-card-description {
        font-size: 0.875rem;
    }
}