* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.eventos-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Styles */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 30px;
    padding-left: 10px;
}

/* Grid Layout */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Card Styles */
.event-card {
    background: rgb(255, 255, 255);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.event-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

/* Video Play Icon */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-icon::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.event-card:hover .play-icon {
    background: rgba(74, 144, 226, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Event Description */
.event-description {
    padding: 15px;
    background: #8593e4
}

.event-text {
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.5;
    text-align: justify;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Voltar Button */
.voltar-container {
    text-align: center;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .event-image-container {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .event-image-container {
        height: 200px;
    }

    body {
        padding: 20px 15px;
    }
}

/* Animations */
.event-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal for viewing images/videos */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #4a90e2;
}