/* eventos.css */

.events-page {
    background-color: #8891a3;
}

.events-hero {
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #0d2a6a, #3a445a);
}

.events-hero h1 {
    position: relative;
    z-index: 1;
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.events-hero p {
    position: relative;
    z-index: 1;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

.upcoming-events {
    padding: 50px;
    margin-bottom: 40px;
}

.past-events {
    padding: 40px 50px 100px;
}

.upcoming-events h2,
.past-events h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Upcoming Events */

.event-list {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template-columns: repeat(auto-fit, minmax(300px, 500px));
    gap: 30px;
    justify-content: center;
}

.upcoming-events img {
    height: 380px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.wrapper-event-card {
    height: 500px;
    perspective: 1000px;
}

.event-card {
    background-color: #f0f0f0;
    font-size: 14px;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.wrapper-event-card:hover .event-card {
    transform: rotateY(180deg);
}

.event-info-front, .event-info-back {
    text-align: center;
    height: 100%;
    width: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-info-back {
    transform: rotateY(180deg);
    text-align: justify;
    padding: 30px;
    font-size: 14px;
}

/* past events */

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.past-events img {
    height: 380px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.wrapper-past-event-card {
    height: 500px;
    perspective: 1000px;
}

.past-event-card {
    background-color: #f0f0f0;
    font-size: 14px;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.wrapper-past-event-card:hover .past-event-card {
    transform: rotateY(180deg);
}

.card-front-event, .card-back-event {
    text-align: center;
    height: 100%;
    width: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-back-event {
    transform: rotateY(180deg);
    text-align: justify;
    padding: 30px;
    font-size: 14px;
}

/* Responsive adjustments for eventos.css */
@media (max-width: 768px) {
    .events-hero h1 {
        font-size: 2.5em;
    }

    .events-hero p {
        font-size: 1em;
    }

    .upcoming-events h2,
    .past-events h2 {
        font-size: 2em;
    }

    .event-list,
    .event-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .events-hero h1 {
        font-size: 2em;
    }

    .event-info-front h3 {
        font-size: 1.4em;
    }
}