.content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-image: url('/img/volunteering-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: auto;
    box-sizing: border-box;
    min-height: 100vh;
}

.main-header .logo{
    background-image: url("/img/logo-2.png");
}

.first-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    width: 100%;
    color: white;
    box-sizing: border-box;
}

.first-section .first-section-content {
    text-align: center;
    padding: 20px;
}

.first-section .title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.first-section .subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.8;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.first-section .cta-button {
    font-size: 1.2rem;
    padding: 10px 20px;
    background-color: var(--donate-btn);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.5s ease, transform 0.3s ease, letter-spacing 0.3s ease;
    transform: scale(1);
    display: inline-block;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.first-section .cta-button:hover {
    background-color: var(--donate-btn-hover);
    color: var(--text);
    font-weight: 600;
    transform: scale(1.05); 
    letter-spacing: 0.4px; 
}


.events-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}

.section-title {
    font-size: 2.5rem;
    color: var(--header-border);
    text-align: center;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.events-section:hover .section-title {
    transform: scale(1.1);
    color: var(--text);
}

.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 20px;
}

.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 450px;
    width: calc(25% - 20px);
    border: 2px solid var(--text);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid white;

}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.event-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.image-overlay p {
    font-size: 1rem;
    text-align: center;
}


.info-section {
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
}

.info-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.contact-button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: var(--donate-btn);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.5s ease, transform 0.3s ease;
    transform: scale(1);
}

.contact-button:hover {
    background-color: var(--donate-btn-hover);
    color: var(--text);
    font-weight: 600;
    transform: scale(1.05);
}

@media (max-width: 768px) {

    .first-section-content {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }    

    .info-description {
        font-size: 1.5rem; 
    }

    .event-card {
        width: calc(40%);
    }
}

@media (max-width: 480px) {

    .first-section .subtitle {
        font-size: 1.5rem;
    }

    .event-card {
        width: 80%;
    }
}