/* Cultos Hero Section */
.cultos-hero {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: pulse 2s infinite;
}

.hero-icon i {
    font-size: 3rem;
}

.cultos-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cultos-hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* Live Stream Section */
.livestream-section {
    padding: 5rem 0;
    background: var(--white);
}

.livestream-container {
    max-width: 1000px;
    margin: 0 auto;
}

.livestream-active {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.livestream-active iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.livestream-waiting {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 15px;
    padding: 5rem 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.livestream-waiting::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.waiting-content {
    position: relative;
    z-index: 1;
}

.waiting-logo {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.waiting-logo img {
    width: 150px;
    height: 150px;
    opacity: 0.9;
}

.waiting-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.waiting-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.youtube-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: var(--light-gray);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 3rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: var(--dark-green);
    transform: scale(1.1);
}

.services-carousel {
    overflow: hidden;
    margin-bottom: 2rem;
}

.services-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Suavizei a transição */
    gap: 2rem; /* Espaço de 32px entre os itens */
}

/* CÁLCULO PRECISO PARA NÃO QUEBRAR O LAYOUT */
.service-card {
    /* Desktop (3 itens): (100% - 2 espaços de 2rem) / 3 */
    min-width: calc((100% - 4rem) / 3);
    width: calc((100% - 4rem) / 3);
    
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-info {
    padding: 2rem;
    background: rgba(0,0,0,0.9);
    color: var(--white);
    text-align: center;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-time {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(107,142,107,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--dark-green);
    width: 30px;
    border-radius: 6px;
}

/* Estilos para o container da Live */
.livestream-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
}

/* Indicador de Ao Vivo */
.live-title {
    color: #e74c3c; /* Vermelho YouTube */
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.live-indicator {
    animation: blink 1.5s infinite;
    font-size: 0.8rem;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Deixar o Iframe Responsivo (16:9) */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Estilo para quando está Offline */
.offline-message {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    color: #666;
}

.offline-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.offline-message h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.btn-youtube {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 10px 20px;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-youtube:hover {
    background-color: #cc0000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .cultos-hero h1 {
        font-size: 2rem;
    }

    .cultos-hero p {
        font-size: 1rem;
    }

    .livestream-waiting {
        padding: 3rem 1.5rem;
    }

    .waiting-content h2 {
        font-size: 1.8rem;
    }

    .waiting-content p {
        font-size: 1.1rem;
    }

    .service-card {
        min-width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cultos-hero h1 {
        font-size: 1.5rem;
    }

    .waiting-content h2 {
        font-size: 1.5rem;
    }
}



@media (max-width: 1024px) {
    .service-card {
        /* (100% - 1 espaço de 2rem) / 2 */
        min-width: calc((100% - 2rem) / 2);
        width: calc((100% - 2rem) / 2);
    }
}

/* Mobile (1 item) */
@media (max-width: 768px) {
    .service-card {
        /* 1 item ocupa tudo */
        min-width: 100%;
        width: 100%;
    }
    
    /* Ajusta tamanho das setas no celular para não atrapalhar a visão */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cultos-hero h1 {
        font-size: 2rem;
    }

    .live-title{
        font-size: 0.8rem;
    }
}