/* ==========================================================================
   CONFIGURAÇÕES GERAIS E RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h2 {
    font-size: 2rem;
}

@media (min-width: 850px) {
    h2 {font-size: 1.7rem;}
}

body {
    background: #f2f2f2;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Botões Globais */
.btn-contorno {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #0056d2;
    color: #0056d2;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-contorno:hover {
    background-color: #0056d2;
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   BANNER (HERO SECTION)
   ========================================================================== */
.banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    aspect-ratio: 6/2;
    background-color: #ffffff;
    background-size: contain;
    background-position-x: right;
    background-repeat: no-repeat;
    max-width: 100%;
    background-image: url('/Imagens/Fotos/banner-index.webp');
}

@media (max-width: 940px) {
    .banner {
        background-image: url('/Imagens/Fotos/banner-vSmall.webp');
        aspect-ratio: 940/788;
    }
}

.banner1 {
    flex: 1 1 400px;
}

.banner1 h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.banner1 p {
    font-size: 1.2rem;
    margin: 20px 0 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-inline: auto;
}

.banner2 {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.banner2 img {
    max-width: 90%;
}

@media (min-width: 992px) {
    .banner { text-align: left; padding: 40px 10%; }
    .banner1 p { margin-inline: 0; }
    .banner2 { justify-content: flex-end; }
}

/* ==========================================================================
   SEÇÃO APRENDA (LOGOS)
   ========================================================================== */
.aprenda {
    padding: 50px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.aprenda h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1f1f1f;
}

.aprenda-icones {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    animation: slide 40s linear infinite;
    min-width: 100%;
    flex-direction: row;
    flex-shrink: 0;
}

.aprenda-icones img {
    border-radius: 10px;
}

/* Esconde o que sair da tela e define a área visível */
.aprenda-icones-container {
    overflow: hidden;
    padding: 20px 0;
    background: white; /* ou a cor do seu site */
    white-space: nowrap;
    position: relative;
    display: flex;
}

.aprenda-icones img {
    height: 120px;
    aspect-ratio: 180/108;
    vertical-align: middle;
}

@media (max-width: 992px) {
    .aprenda-icones img {
        height: 80px;
    }
}

/* Define o movimento: de 0 até metade da largura total (já que duplicamos) */
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.aprenda-icones-container::before,
.aprenda-icones-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 20px; /* Largura do efeito de fade */
    height: 100%;
    z-index: 2; /* Garante que fique por cima das imagens */
    pointer-events: none; /* Permite clicar nos ícones por baixo do fade */
}

/* Fade da Esquerda */
.aprenda-icones-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

/* Fade da Direita */
.aprenda-icones-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}


.aprenda-icones-container:hover .aprenda-icones {
    animation-play-state: paused;
}

/* ==========================================================================
   SEÇÃO INVISTA (CARDS)
   ========================================================================== */
.invista {
    background-color: #f5f7fa;
    padding: 80px 0;
}

.invista h2 {
    text-align: center;
    margin-bottom: 50px;
}

.invista-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.invista-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.invista-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper img {
    width: 50px;
    margin-bottom: 20px;
}

@media (max-width: 1050px) {
    .invista-grid { grid-template-columns: repeat(1, minmax(300px, 1fr)); }
    
    .invista-card { margin: 0 10%;}
}

/* ==========================================================================
   BENEFÍCIOS (MUNDO HÍBRIDO)
   ========================================================================== */
.beneficios {
    padding: 80px 0;
    background: #fff;
}

.beneficios-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.beneficios-conteudo {
    flex: 1 1 450px;
    text-align: left;
}

.beneficios-conteudo h2 {
    margin-bottom: 35px;
    color: #1f1f1f;
    font-weight: 700;
    line-height: 1.5;
}

.beneficios-imagem {
    flex: 1 1 400px;
}

@media (max-width: 992px) {
    .beneficios-conteudo h2 {
        text-align: justify;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   HABILIDADES (PACOTES POPULARES) - RESPONSIVO E FLUIDO
   ========================================================================== */
.habilidades {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Este container controla o empilhamento total */
.habilidades-header {
    display: flex;
    flex-wrap: wrap; /* Permite empilhar quando o espaço acabar */
    gap: 40px;
    align-items: flex-start;
}

.header-info {
    flex: 1 1 10%; /* Base de 280px, mas cresce se houver espaço */
    margin-bottom: 20px;
}

.header-info h2 {
    margin-bottom: 20px;
}

/* Grid de cards flexível */
.habilidades-grid {
    flex: 3 1 600px; /* Tenta ser 3x maior que o título, mas quebra com 600px */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.curso-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    flex: 1 1 280px; /* Largura ideal do card */
    max-width: 400px;
}

@media (max-width: 1250px) {
    .habilidades-header { display: unset;}
}

@media (max-width: 960px) {
    .habilidades-header { display: grid; align-items: center; justify-content: center;}
    .habilidades-grid { display: grid; grid-template-columns: repeat(1, minmax(300px, 1fr)); }
}

@media (max-width: 991px) {
    .header-info {
        flex: 1 1 100%; /* No tablet/celular, o título ocupa a linha toda */
    }
}

.curso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.curso-card .thumb {
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #002B5C;
}

/*==========================================================================

   CATEGORIAS DE CURSOS

   ========================================================================== */

.cursos-categorias {
    padding: 80px 0;
    background: #fff;
}


.titulo-sessao {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}


.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}


.categoria-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}


.icon-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
}


.tech { background: #e1f5fe; }

.work { background: #f3e5f5; }

.prog { background: #e8f5e9; }

.robot { background: #fff3e0; }


.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.tag {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    transition: 0.2s;
}


.tag:hover {
    border-color: #0056d2;
    background: #f0f7ff;
    color: #0056d2;
}


.cursos-footer {
    text-align: center;
    margin-top: 50px;
}


.btn-principal {
    display: inline-block;
    padding: 16px 40px;
    background-color: #0056d2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
}


.btn-principal:hover {
    background-color: #003e99;
    transform: translateY(-3px);
} 















