
.volunteers {
    text-align: center;
    padding: 2rem;
}

/* Section Background */
.volunteer-section {
    font-family: "Montserrat", serif;
    background-color: #3e8e41;
    padding: 50px 0;
    color: #fff;
    position: relative;
    /* To position the button within the section */
}

.volunteers h2 {
    font-size: 1.5 rem;
    font-weight: bold;
    text-align: center;
    font-family: "Montserrat", serif;
    font-weight: bold;
}

.volunteers p {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Horizontal Zig-Zag Image Styling */
.zigzag-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 30px;
}

.zigzag-img-wrapper {
    text-align: center;
    position: relative;
}

.zigzag-img-wrapper:nth-child(odd) {
    transform: translateY(-45px);
}

.zigzag-img-wrapper img {
    width: 100%;
    max-width: 280px;
    /* Default size */
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* For screens 768px and larger */
@media (min-width: 768px) {
    .zigzag-img-wrapper img {
        max-width: 350px;
        /* Slightly larger */
    }
}

/* For screens 992px and larger */
@media (min-width: 992px) {
    .zigzag-img-wrapper img {
        max-width: 400px;
        /* Larger size for medium screens */
    }
}

/* For screens 1200px and larger */
@media (min-width: 1200px) {
    .zigzag-img-wrapper img {
        max-width: 490px;
        /* Largest size */
    }
}

@media (max-width: 500px) {
    .Volunteer-2 {
        margin-bottom: 50px;
    }
}


/* Button Styling */
.btn-primary .joinus {
    background-color: #feac06;
    border-color: #f6ea0f;
    padding: 12px 25px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #3e8e41;
    transform: scale(1.05);
}

/* Position Button Bottom-Right with Adjustment */
.button-container {
    position: absolute;
    bottom: 20px;
    right: 150px;
    /* Moved slightly left */
}
