body.events-public {
    background: #f6fbff;
}
.events-section {
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.events-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: #015a70;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: slideAnimation 15s infinite;
}

.bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) blur(2px);
    /* deixa mais escuro e desfocado */
}

/* Animação para trocar as imagens */
@keyframes slideAnimation {

    0%,
    20% {
        opacity: 1;
    }

    25%,
    100% {
        opacity: 0;
    }
}

.bg-slide:nth-child(2) {
    animation-delay: 5s;
}

.bg-slide:nth-child(3) {
    animation-delay: 10s;
}

/* Container dos cards */
.events-container {
    position: relative;
    display: flex;
    flex-wrap:
        wrap;
    gap: 20px;
    justify-content: center;
    z-index: 2;
    /* acima do fundo animado */
}

/* Estilo dos cards com efeito vidro */
.event-card {
    background: rgba(255, 255, 255, 0.2);
    /* vidro translúcido */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 15px;
    color: #fff;
    text-align: center;
}

.event-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.event-content p {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.event-button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.event-button:hover {
    background: rgba(255, 255, 255, 0.6);
}
