/* ================================== */
/* 3. SPIRITUALITY.CSS                */
/* Estilos da página de Responsabilidade Social */
/* ================================== */

/* [MODIFICADO] HERO PADRONIZADO COM BORDAS ARREDONDADAS E TEXTO À ESQUERDA */
.hero--spirituality {
    height: 700px;
    max-height: calc(100vh - var(--header-height));
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; 
    color: var(--color-white);
    border-bottom-left-radius: 70px;
    border-bottom-right-radius: 70px;
    z-index: 10;
}

.hero--spirituality .hero__image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/arte e cultura/evento4.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efeito Parallax */
    z-index: 1;
}

.hero--spirituality .hero__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 2;
}

.hero--spirituality .hero__content {
    position: relative;
    z-index: 3;
    text-align: left;
    margin-left: 15%;
    margin-right: auto;
    max-width: 700px;
}

.hero--spirituality .hero__title {
    font-size: clamp(2.5rem, 3.5vw, 3.5rem); 
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: none;
}
.hero--spirituality .hero__content > .hero__subtitle:first-of-type {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem); 
    font-weight: 600;
    line-height: 1.2;
    text-shadow: none;
    max-width: none;
    margin: 0;
}
.hero--spirituality .hero__content > .hero__subtitle:last-of-type {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: none;
    max-width: none;
    margin: 0;
}


/* --- 3.2 Seção de Valores (com ajuste de sobreposição) --- */
.values-spirit {
    padding: 170px 0 100px 0; /* Padding superior aumentado */
    margin-top: -70px;       /* Margem negativa para sobrepor */
    position: relative;        /* Necessário para o z-index */
    z-index: 5;                /* Garante que fique sobre a borda do hero */
    background-color: var(--color-background-light);
}

.values-spirit__grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.values-spirit__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Alterna a ordem das colunas */
.values-spirit__item:nth-child(even) .values-spirit__image-container {
    order: 2;
}
.values-spirit__item:nth-child(even) .values-spirit__text {
    order: 1;
}

.values-spirit__image-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.values-spirit__image-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.values-spirit__text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.values-spirit__text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* --- 3.3 Seção de Citação --- */
.quote-section {
    position: relative;
    padding: 120px 0;
    background-image: url('../images/espiritualidade/citacao.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efeito Parallax */
    text-align: center;
    color: var(--color-white);
}

.quote-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.quote-section__content {
    position: relative;
    z-index: 2;
}

.quote-section__content p {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.quote-section__content span {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}


/* --- 3.4 Seção de Contribuição --- */
.contribution-section {
    padding: 100px 0;
    /* [MELHORADO] Fundo com gradiente animado */
    background: linear-gradient(45deg, #4A235A, #5D2A7B, #2C3E50, #4A235A);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.section-header--light h2,
.section-header--light p {
    color: var(--color-white);
}

.section-header--light::after {
    background-color: rgba(255, 255, 255, 0.8);
}

/* --- INICIO: CÓDIGO CSS COPIADO --- */
/* Estilos para a seção de Programas Educacionais */
.programs-carousel-section {
    padding: 100px 0;
    background-color: var(--color-background-light);
}
.programs-slider-wrapper {
    position: relative;
    padding: 0 50px;
}
.program-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.program-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background-color: #333;
}
.program-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.program-card:hover .program-card__image {
    transform: scale(1.1);
    filter: brightness(0.6);
}
.program-card__overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 25px;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent 100%);
    z-index: 2;
    text-align: left;
}
.program-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    transition: transform 0.4s ease;
}
.program-card__description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 15px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.program-card:hover .program-card__title {
    transform: translateY(-70px);
}
.program-card:hover .program-card__description {
    max-height: 100px; 
    opacity: 1;
    margin-top: 10px;
}
.programs-slider {
    padding-bottom: 70px;
}
.programs-slider-wrapper .programs-nav-button {
    color: #F16137;
}
.programs-slider-wrapper .programs-pagination .swiper-pagination-bullet-active {
    background-color: #F16137;
}
/* --- FIM: CÓDIGO CSS COPIADO --- */


/* --- Responsividade --- */
@media (max-width: 992px) {
    .hero--spirituality .hero__content {
        margin-left: 10%;
    }

    .values-spirit__item {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .values-spirit__item:nth-child(even) .values-spirit__image-container,
    .values-spirit__item:nth-child(even) .values-spirit__text {
        order: 0; /* Reseta a ordem */
    }

    .programs-carousel-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .programs-slider-wrapper {
        padding: 0 15px;
    }

    .programs-slider-wrapper .swiper-button-next,
    .programs-slider-wrapper .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero--spirituality {
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
    .hero--spirituality .hero__content {
        max-width: 90%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .values-spirit {
        margin-top: -50px;
        padding-top: 110px; /* 60px de padding + 50px de overlap */
    }

    .programs-carousel-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .program-card:hover .program-card__title {
        transform: translateY(0);
    }
    .program-card__description {
        max-height: 100px;
        opacity: 1;
    }
}