/* ================================== */
/* CSS para a página de Tecnologias   */
/* ================================== */

/* HERO PADRONIZADO (ESTILO REESCRITO MANTENDO BORDAS) */
#tecnologias-main .hero--full-image {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; 
    color: var(--color-white);
    justify-content: flex-start;
    z-index: 10;
    /* BORDAS ARREDONDADAS MANTIDAS */
    border-bottom-left-radius: 70px;
    border-bottom-right-radius: 70px;
    /* Reset de propriedades antigas */
    height: auto;
    padding-top: 0;
}
#tecnologias-main .hero--full-image .hero__image-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/tecnologias.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    z-index: 1;
}
#tecnologias-main .hero--full-image .hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}
#tecnologias-main .hero--full-image .hero__content {
    position: relative;
    z-index: 3;
    text-align: left;
    margin-left: 15%;
    margin-right: auto;
    max-width: 700px;
    padding-top: 0;
}
#tecnologias-main .hero--full-image .hero__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    text-shadow: none;
    margin-bottom: 15px;
}
#tecnologias-main .hero--full-image .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;
}
#tecnologias-main .hero--full-image .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;
}

/* Primeira seção após o hero com espaçamento padrão, sem sobreposição */
.first-tech-section {
    padding-top: 100px; 
}

/* Seção principal para cada parceiro tecnológico */
.tech-partner {
    padding: 60px 0;
    overflow: hidden;
}

/* Alterna a cor de fundo para criar contraste entre as seções */
.tech-partner:nth-of-type(odd) {
     background-color: var(--color-white);
}
.tech-partner:nth-of-type(even) {
     background-color: var(--color-bg-alt);
}

/* Estrutura de grid para alinhar imagem e texto */
.tech-partner__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

/* Inverte a ordem das colunas para variar o layout */
.tech-partner--reversed .tech-partner__grid .tech-partner__image-container {
    order: 2;
}
.tech-partner--reversed .tech-partner__grid .tech-partner__content {
    order: 1;
}

.tech-partner__image-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tech-partner__image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.tech-partner__image-container:hover .tech-partner__image {
    transform: scale(1.05);
}

/* Estilo para as "tags" coloridas */
.tech-partner__content .tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
}

/* Cores das tags usando as variáveis do global.css */
.tag--sas { background-color: var(--color-primary); }
.tag--agendaedu { background-color: #6d28d9; }
.tag--portal { background-color: var(--color-secondary); }
.tag--zoom { background-color: var(--color-tertiary-blue); }

.tech-partner__content h3 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.tech-partner__content p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: var(--color-text);
}

/* Adaptações da seção "features" para este contexto */
.features {
    padding: 100px 0;
    background-color: var(--color-bg-alt);
}


/* --- Responsividade Específica --- */
@media (max-width: 992px) {
    #tecnologias-main .hero--full-image .hero__content {
        margin-left: 10%;
    }
    .tech-partner__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .tech-partner--reversed .tech-partner__grid .tech-partner__image-container,
    .tech-partner--reversed .tech-partner__grid .tech-partner__content {
       order: 0; /* Reseta a ordem no mobile para seguir a do HTML */
    }

    .tech-partner__grid .btn {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #tecnologias-main .hero--full-image {
        min-height: 80vh;
    }
    #tecnologias-main .hero--full-image .hero__content {
        max-width: 90%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .first-tech-section {
        padding-top: 60px; /* Espaçamento padrão para mobile */
    }
}