/* ================================================================
   MÓDULO INDEPENDENTE: HERO CARROUSEL TECH (box-shadow.css)
   Focado em profundidade, transições infinitas, e layout assimétrico.
   ================================================================ */

header, nav {
    position: relative;
    z-index: 1000 !important; /* Valor bem alto */
}
/* 1. ESTRUTURA E VIEWPORT */
.hero-ciebp {
    position: relative;
    background-color: #FFFBF7; /* Novo Bege/Creme Suave */
    height: 85vh;
    min-height: 650px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Janela de visualização que esconde os slides inativos */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

/* O "Trilho" que o JavaScript move via translateX */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

/* 2. COMPOSIÇÃO DOS SLIDES (Layout Assimétrico) */
.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative; /* Para ancorar a barra rosa inferior */
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 1300px;
}

/* Bloco de Texto (Esquerdo - Mais compacto) */
.col-text {
    flex: 0 1 40%; /* Ocupa no máximo 40% da tela */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    z-index: 10;
}

/* Bloco Visual (Direito - Maior Destaque) */
.col-visual {
    flex: 1; /* Ocupa o restante do espaço */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 3. TIPOGRAFIA E ELEMENTOS DE TEXTO */
.title-primary {
    font-family: 'Barlow', sans-serif; /* Trocado de Bebas para Barlow */
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800; /* Peso extra bold */
    color: #193375; /* Navy */
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.title-secundary {
    font-family: 'Barlow', sans-serif; /* Trocado de Bebas para Barlow */
    font-size: clamp(1rem, 4vw, 4.5rem);
    font-weight: 800;    color: #b9c6e6; /* Navy */
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
}


.highlight {
    color: #FF1D6E; /* CIEBP Pink no destaque */
}

.subtitle {
    font-family: 'Barlow', sans-serif;
    color: #4B5563; /* Cinza um pouco mais escuro para leitura */
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 90%;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 4. ELEMENTOS VISUAIS E EFEITOS DE LUZ (CORE) */
.orbital-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Moldura Circular Principal (Gigante) */
.image-frame {
    /* Tamanho aumentado significativamente */
    width: clamp(435px, 75vw, 890px);
    height: clamp(320px, 45vw, 550px);
    border-radius: 10%;
    border: 6px solid #FFFFFF;
    background: #FFFFFF;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(25, 51, 117, 0.15);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.image-frame-2 {
    /* Tamanho aumentado significativamente */
    width: clamp(800px, 80vw, 1400px);
    height: clamp(420px, 75vw, 550px);
    border-radius: 5%;
    border: 2px solid #ffffff;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(25, 51, 117, 0.15);
}

.image-frame-2 img {
    width: 100%;
    height: 100%;
    object-fit:scale-down;
}

/* Linha Orbital Rosa (Pulsante e Tênue) */
.orbital-line {
    position: absolute;
    width: 112%;
    height: 112%;
    border: 2px solid rgba(255, 29, 110, 0.15); /* CIEBP Pink com transparência */
    border-radius: 50%;
    pointer-events: none;
    animation: orbitalPulse 4s ease-in-out infinite;
    z-index: 1;
}

/* Barra Rosa Inferior do Slide */
.barra-rosa-slide {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #FF1D6E; /* CIEBP Pink */
}

/* 5. NAVEGAÇÃO INTERATIVA (Setas) */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    color: #193375;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #193375;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 30px; }
.next { right: 30px; }

/* 6. BOTÃO CTA CUSTOMIZADO */
.btn-cta {
    padding: 14px 36px;
    border: 2px solid #0C87D1; /* Light Blue */
    background: transparent;
    color: #193375; /* Navy */
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: rgba(12, 135, 209, 0.05); /* Fundo azul bem suave no hover */
    border-color: #193375;
}

/* 7. ANIMAÇÕES E RESPONSIVIDADE */
@keyframes orbitalPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.03); opacity: 1; }
}

/* Ajustes para Tablets e Celulares */
@media (max-width: 992px) {
    .hero-ciebp {
        height: auto;
        min-height: auto;
    }
    .slide {
        padding: 5rem 5% 4rem 5%; /* Mais espaço vertical */
    }
    .slide-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .col-text {
        flex: unset;
        max-width: 100%;
        order: 2; /* Joga o texto para baixo no mobile */
        align-items: center;
    }
    .subtitle { 
        max-width: 100%; 
    }
    .col-visual { 
        order: 1; /* Joga a imagem para cima no mobile */
        width: 100%;
    }
    .image-frame { 
        width: clamp(250px, 70vw, 400px); 
        height: clamp(250px, 70vw, 400px); 
    }
    .nav-arrow { 
        width: 40px; 
        height: 40px; 
        top: auto; 
        bottom: 20px; /* Desce as setas pro rodapé no mobile */
        transform: none;
    }
    .nav-arrow:hover {
        transform: scale(1.1);
    }
    /* Melhora a acessibilidade para quem navega via TAB */
.nav-arrow:focus {
    outline: 20px solid #FF1D6E;
    outline-offset: 20px;
}
.nav-arrow {
    /* ... */
    z-index: 50; /* Suficiente para ficar sobre o slide, mas sob o nav */
}

/* Evita que o texto seja selecionado acidentalmente ao clicar rápido nas setas */
.hero-ciebp {
    user-select: none;
}
    .prev { left: 15%; }
    .next { right: 15%; }
}