/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #f0f8ff; /* Light sky blue background */
    color: #333;
    overflow-x: hidden; /* Hide horizontal scroll */
}
/* Hero Section */
.v-heading-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('images/volunteerbg.jpg'); /* Replace with your background image */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.v-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.v-heading-text {
    color: white;
    font-size: 4rem;
    letter-spacing: 2px;
    /* text-align: center; */
    transition: transform 0.3s ease-in-out;
}

.v-heading-text:hover {
    transform: scale(1.5);
}

/* Volunteer Section */
.volunteer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    background-color: #e0f7fa; /* Light green background shade */
    text-align: center;
}

/* Heading in Volunteer Section */
.volunteer-heading {
    font-size: 2.5rem;
    color: #004d40; /* Darker shade of green for contrast */
    margin-bottom: 30px;
}

/* Volunteer Container - 3 volunteers per row */
.volunteer-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping when there's not enough space */
    justify-content: center; /* Center the content */
    gap: 20px; /* Space between each card */
    padding: 20px 0;
    width: 100%;
}

/* Style for each volunteer card */
.volunteer {
    width: calc(33.33% - 20px); /* 3 cards per row minus the gap */
    max-width: 250px; /* Optional: set a max-width to avoid very large cards */
    height: 250px; /* Set a fixed height for the card */
    background-color: #fff;
    border: 2px solid #004d40; /* Square border around cards */
    border-radius: 10px; /* Slight rounding of corners */
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
}

/* Square Image */
.volunteer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

/* Hover effect on image */
.volunteer:hover img {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Volunteer Name Styling */
.volunteer .name {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out;
    font-size: 1rem;
}

/* Name appears on hover */
.volunteer:hover .name {
    opacity: 1; /* Display on hover */
    background: rgba(0, 0, 0, 0.9); /* Darker background for the name */
}

/* Central Volunteer Styling */
.volunteer.central {
    width: 280px; /* Larger central card */
    height: 280px;
    z-index: 2; /* Ensures it appears above surrounding cards */
    transform: scale(1.05); /* Slightly larger and higher on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
}

/* Media Queries for Responsiveness */

/* Tablets and larger screens */
@media (min-width: 768px) {
    .volunteer {
        width: calc(33.33% - 40px); /* 3 cards per row with a gap */
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .volunteer-heading {
        font-size: 1.8rem;
    }

    /* Make the volunteer container stack vertically on mobile */
    .volunteer-container {
        flex-direction: column; /* Stack the cards vertically */
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }

    .volunteer {
        width: 150px; /* Adjust card size for mobile */
        height: 150px;
        margin-bottom: 20px; /* Space between each card */
    }
}
