/* assets/css/flickity-events.css */

/* --- Flickity Carousel Container --- */
.events-carousel-container {
    /* Add padding if needed, Flickity might handle overflow */
    padding: 20px 0;
}

.main-carousel {
    /* Background can be set if needed, but cells will cover it */
    /* background: #eee; */
}

/* --- Flickity Carousel Cell Styling --- */
.carousel-cell {
    width: 33.33%; /* Show 3 cells on desktop */
    padding: 0 15px; /* Spacing between cells */
    box-sizing: border-box;
    height: auto; /* Let content determine height */
    margin-right: 0; /* Flickity handles spacing, remove default margin */
    counter-increment: none; /* Remove default Flickity counter */
    background: none; /* Remove default Flickity background */
}

/* --- Event Card Styling within Cell --- */
.carousel-cell .event-card {
    border: none;
    border-radius: 8px;
    /* Soften or remove top shadow to blend with hero */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make cards fill cell height */
    text-align: center;
}

.carousel-cell .event-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Force square aspect ratio */
    object-fit: contain; /* Fit entire image within the square */
    background-color: #f8f9fa; /* Light background for letterboxing */
    display: block;
}

.carousel-cell .event-card__caption {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.carousel-cell .event-card__caption h3 {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
}

.carousel-cell .event-card__caption p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.4;
}

.carousel-cell .event-card__caption .button {
    margin-top: auto;
    align-self: center;
}

/* --- Flickity Navigation Buttons (Optional Styling) --- */
.flickity-prev-next-button {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}
.flickity-prev-next-button:hover {
    background: rgba(0, 0, 0, 0.8);
}
.flickity-prev-next-button .flickity-button-icon {
    fill: white; /* Make arrows white */
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
}
/* Position buttons slightly outside */
.flickity-prev-next-button.previous { left: -15px; }
.flickity-prev-next-button.next { right: -15px; }


/* --- Responsive Adjustments --- */
@media (max-width: 991px) { /* Medium screens - show 2 cells */
    .carousel-cell {
        width: 50%;
        padding: 0 10px;
    }
    .flickity-prev-next-button.previous { left: -10px; }
    .flickity-prev-next-button.next { right: -10px; }
}

@media (max-width: 767px) { /* Small screens - show 1 cell */
    .carousel-cell {
        width: 80%; /* Show one cell, but not full width */
        padding: 0 5px;
        margin: 0 auto; /* Center the single cell */
    }
     /* Adjust controls for mobile */
    .flickity-prev-next-button { width: 35px; height: 35px; }
    .flickity-prev-next-button.previous { left: 5px; }
    .flickity-prev-next-button.next { right: 5px; }

    /* Mobile Header Logo Size */
    .header .header__logo {
        width: 150px; /* Adjust this value as needed */
        height: auto; /* Maintain aspect ratio */
    }
}

/* --- Modal Styles (Keep as they are compatible) --- */
#eventModal .modal-content { background-color: #FFFBF5; border-radius: 8px; }
#eventModal .modal-header { border-bottom: none; padding: 0.5rem 1rem; }
#eventModal .modal-body { padding: 1rem 1.5rem; }
#eventModal .modal-body img { max-width: 100%; height: auto; max-height: 350px; object-fit: contain; display: block; margin: 0 auto 1.5rem auto; border-radius: 5px; }
#eventModal .modal-body h4 { font-weight: bold; margin-bottom: 0.5rem; }
#eventModal .modal-body p#modalEventDate { font-style: italic; color: #666; }
#eventModal .modal-body p#modalEventDescription { text-align: justify; margin-top: 1rem; line-height: 1.5; }
#eventModal .modal-body p#modalEventDescription a { color: #007bff; text-decoration: underline; word-break: break-all; }
#eventModal .modal-body p#modalEventDescription a:hover { color: #0056b3; text-decoration: underline; }
#eventModal .modal-footer { border-top: none; padding: 0.5rem 1.5rem 1rem 1.5rem; }

/* --- General Section Styling --- */
.container.agenda {
    padding-top: 0;
    padding-bottom: 60px;
    background: transparent;
}

/* --- Hero Section Social Icon Override --- */
.hero-convite__social {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 10px 0 0 0; /* Adjust top margin as needed */
    display: flex; /* Align items horizontally */
    justify-content: flex-start; /* Align to the start (left) */
    gap: 15px; /* Space between icons */
}

.hero-convite__social li {
    /* Remove any specific li styling if necessary */
}

.hero-convite__social img {
    width: 32px; /* Set desired small icon width */
    height: 32px; /* Set desired small icon height */
    border-radius: 0 !important; /* Remove any large circular border */
    background: none !important; /* Remove any background color */
    box-shadow: none !important; /* Remove any shadow */
    /* Add other overrides if needed */
 }

/* --- Hero Section Background Video --- */
.hero {
    position: relative; /* Establish positioning context for the video */
    overflow: hidden; /* Hide any video overflow */
    /* Consider adding min-height if needed, e.g., min-height: 80vh; */
    /* Forçar aceleração de hardware para melhor desempenho */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

.hero__bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Cover the entire container */
    z-index: -1; /* Place it behind the hero content */
    /* Garantir que o vídeo mantenha suas propriedades visuais consistentes */
    filter: brightness(1) !important; /* Forçar brilho consistente */
    transform: translateZ(0); /* Forçar aceleração de hardware */
    backface-visibility: hidden;
    will-change: transform;
    /* Desativar possíveis transições que possam afetar o vídeo */
    transition: none !important;
    animation: none !important;
}

/* Estilos para o slogan do hero */
.hero__slogan {
    position: absolute;
    top: 40%;  /* Ajustado de 60% para 50% para subir o texto */
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.4em;  /* Aumentado de 2.5em para 3em */
    font-weight: 300;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0 20px;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Ajustes para o container do convite */
.hero-convite {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    color: white;
}

.hero-convite__descricao {
    margin-bottom: 15px;
}

.hero-convite__descricao .title--small {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    font-weight: 300;
}

.hero-convite__descricao .text {
    margin: 5px 0;
    font-size: 1em;
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    .hero__slogan {
        font-size: 2.5em;
        top: 40%; /* Ajustado para subir o slogan um pouco mais */
    }
    
    .hero-convite {
        left: 50%;
        transform: translateX(-50%);
        bottom: 70px; /* Aumentado de 20px para 60px para subir o container */
        width: calc(100% - 40px);
        max-width: 320px;
        text-align: center;
    }
    
    .hero-convite__social {
        justify-content: center;
    }
}