/* =================================================================== */
/* CSS PARA PÁGINA DE CADASTRO DE INTERESSE (TEMA IASC)                */
/* Este arquivo depende de 'global.css', 'home.css' e 'educacao-infantil.css' para funcionar. */
/* =================================================================== */

@keyframes floatIcon {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- 1. HERO (ESTILO CORRIGIDO) --- */
.hero-cadastro {
    position: relative;
    overflow: hidden;
    z-index: 2;
    height: 420px;
    padding-top: var(--header-height);
    background: none;
    box-sizing: border-box;
    color: var(--color-white);
}

.hero-cadastro__content {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    padding: 0 20px;
}

.hero-cadastro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
}


/* --- 2. CHAMADA PARA INSCRIÇÃO COM FUNDO E ÍCONES --- */
.inscricao-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FF8C00, #f16137);
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    z-index: 2;
}

.inscricao-cta-section .container {
    position: relative;
    z-index: 2;
}

.inscricao-cta-section .section-header {
    margin-bottom: 40px;
}

.inscricao-cta-section .section-header h2 {
    color: var(--color-white);
}

.inscricao-cta-section .section-header p {
    color: var(--color-white);
    max-width: 80ch;
    font-size: 1.15rem;
    line-height: 1.8;
}

.inscricao-cta-section .section-header::after {
    background-color: var(--color-white);
}

.inscricao-cta-section::before,
.inscricao-cta-section::after {
    content: '';
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    animation: floatIcon 8s ease-in-out infinite;
}

.inscricao-cta-section::before {
    content: '\f19d'; /* Ícone: graduation-cap */
    font-size: 10rem;
    top: -20px; /* Posição ajustada */
    left: 5%;
    transform: rotate(-15deg);
}

.inscricao-cta-section::after {
    content: '\f02d'; /* Ícone: book */
    font-size: 12rem;
    bottom: -20px;
    right: 8%;
    transform: rotate(15deg);
    animation-delay: -4s;
}

.inscricao-cta__action {
    text-align: center;
}

.inscricao-cta__action .btn-promo {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.inscricao-cta__action .btn-promo:hover {
    background: var(--color-bg-alt);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


/* --- 3. SEÇÃO EDITAIS (NOVO LAYOUT) --- */
.editais-section-reforged-styled {
    padding: 80px 0;
    background-color: var(--color-bg-alt);
    text-align: center;
}

.editais-main-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.unidade-card-parent-styled, .documentos-card-parent-styled {
    background-color: #78865C; /* Cor de fundo do card principal */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
}

.unidade-title-styled, .documentos-title-styled {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.unidade-cards-wrapper-styled, .documentos-cards-wrapper-styled {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.edital-card-styled, .documento-card-styled {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.edital-title-styled, .documento-title-styled {
    color: var(--color-text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.edital-button-styled, .documento-button-styled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    background-color: #F16137; /* Cor de fundo alterada para a nova cor */
    color: var(--color-white);
}

.edital-button-styled:hover, .documento-button-styled:hover {
    background-color: #FF8C00; /* Cor de hover ligeiramente mais clara */
}

/* Removemos os estilos específicos de cor para os botões, já que todos terão a mesma cor. */
.edital-button-styled.primary,
.edital-button-styled.secondary,
.documento-button-styled.teal,
.documento-button-styled.lime {
    background-color: #F16137;
    color: var(--color-white);
}

.edital-button-styled.primary:hover,
.edital-button-styled.secondary:hover,
.documento-button-styled.teal:hover,
.documento-button-styled.lime:hover {
    background-color: #FF8C00;
}


.outros-documentos-wrapper-styled {
    text-align: center;
    margin-top: 50px;
}
.subtitle-documentos{
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 20px;
}

.documentos-card-parent-styled {
    margin: 0 auto;
}


/* --- 4. SEÇÃO FAQ --- */
.faq-iasc-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    margin-bottom: 0;
}
.faq-item:first-of-type {
    border-top: 1px solid var(--color-border);
}


.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "\f067";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary {
    color: var(--color-primary);
}

.faq-item[open] summary::after {
    content: "\f068";
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 20px 20px 0;
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- 5. RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .hero-cadastro {
        height: 300px;
    }
    .inscricao-cta-section,
    .editais-section-reforged-styled,
    .faq-iasc-section {
        padding: 60px 0;
    }
    .inscricao-cta-section::before,
    .inscricao-cta-section::after {
        font-size: 6rem;
    }
    .inscricao-cta-section::before {
        top: 0;
        left: 5%;
    }
    .inscricao-cta-section::after {
        bottom: 0;
        right: 5%;
    }
    .unidade-card-parent-styled {
        padding: 20px;
    }
    .unidade-cards-wrapper-styled,
    .documentos-cards-wrapper-styled {
        flex-direction: column;
    }
    .unidade-title-styled, .documentos-title-styled {
        font-size: 1.2rem;
    }
    .edital-title-styled, .documento-title-styled {
        font-size: 1rem;
        height: auto;
        min-height: 50px;
    }
}