
/* ==========================================================================
   ESTILOS GERAIS DA HOME (CARROSSEL E ESTRUTURA)
   ========================================================================== */
/* Garante que o wrapper principal não tenha fundo branco aparecendo */
.hero-diferenciais-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #000; /* Fundo preto para sumir com qualquer fresta branca */
    width: 100%;
}

/* Unificando o container: Remova a outra declaração .hero-slider-container que estava solta */
.hero-slider-container.hero-new {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa a tela inteira */
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
}

/* Localize esta parte no seu css\home.css */
.hero-slide {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    overflow: hidden;
    display: none; 

    /* INSIRA AS LINHAS ABAIXO AQUI */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-slide.active {
    display: block !important;
    opacity: 1 !important;
    z-index: 2;
}

/* ==========================================================================
   BANNER 01 - DESKTOP (Ajustado para centralização perfeita)
   ========================================================================== */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    /* AJUSTE CIRÚRGICO: Usando top 50% com transform para garantir que o 
       ponto de ancoragem seja o centro exato do texto, independente da tela */
    top: 25%; 
    transform: translateY(-50%);
    text-align: center;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 4.5rem;
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.hero-content h2 span {
    color: #FF6600;
}


/* ==========================================================================
   BANNER 01 - MOBILE - NOTEBOOKS (1400px)
   ========================================================================== */
@media screen and (max-width: 1400px) {
    .hero-content {
        /* Move o texto mais para cima especificamente na tela do notebook */
        top: 40% !important; 
    }

    .hero-content h2 {
        /* Reduz proporcionalmente o tamanho da fonte para não estourar as laterais */
        font-size: 3.2rem !important; 
        line-height: 1.2 !important;
    }
}

/* ==========================================================================
   BANNER 01 - MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    .hero-section .hero-slide:first-child .hero-content {
        top: 40% !important; /* Aumentamos aqui para descer o bloco todo */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 20px !important;
    }

    .hero-section .hero-slide:first-child .hero-content h2 {
        font-size: 2.0rem !important; /* Reduzi um pouco mais para garantir que caiba */
        text-align: center !important;
        line-height: 1.2 !important;
        margin-top: 20px !important; /* Espaço extra no topo do texto */
    }

    .hero-section .hero-slide:first-child .hero-content h2 {
        font-size: 2.2rem !important; /* Diminui o tamanho (ajuste este valor se precisar de mais) */
        text-align: center !important; /* Força a centralização */
        line-height: 1.1 !important;  /* Mantém o espaçamento entre linhas justo */
        width: 100% !important;
        margin: 0 auto !important;    /* Centraliza o bloco de texto na tela */
        padding: 0 10px !important;    /* Adiciona um respiro lateral para não colar na borda */
    }
}

/* ==========================================================================
   BANNER 02 - DESKTOP
   ========================================================================== */
.container-banner-2 {
    position: relative;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
}

.texto-lateral-banner, .marinha-card {
    position: relative;
    z-index: 3;
}

.texto-lateral-banner h2 {
    text-shadow: 0 18px 35px rgba(0,0,0,0.55);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    font-family: 'Montserrat';
    margin: 0;
}

.marinha-card {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    border-radius: 22px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    max-width: 280px;
    color: #fff;
}

/* Remove qualquer texto injetado que esteja sobrando */
.marinha-card p::before, .marinha-card p::after,
.marinha-card span::before, .marinha-card span::after {
    content: none !important;
}

.logo-marinha-banner img {
    flex-shrink: 0;
    height: 80px;
    width: auto;
}

.marinha-text-box {
    color: #fff;
    text-align: right;
}

.marinha-text-box p {
    text-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* Isso resolve a duplicidade no Desktop */
@media (min-width: 769px) {
    .marinha-card span {
        display: none !important;
    }
}

/* ==========================================================================
   BANNER 02 - MOBILE (VERSÃO CORRIGIDA)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Container */
    .hero-slide:nth-child(2) .container-banner-2 {
        display: block !important;
        padding: 90px 20px 0 !important;
        text-align: center !important;
        height: auto !important;
    }

    /* 2. Título */
    .hero-slide:nth-child(2) .texto-lateral-banner {
        margin-bottom: 20px !important;
    }

    .hero-slide:nth-child(2) .texto-lateral-banner h2 {
        font-size: 1.6rem !important;
        line-height: 1.2;
    }

    /* 3. Imagem Central */
    .hero-slide:nth-child(2) .centro-banner {
        margin-bottom: 10px !important;
    }

    .hero-slide:nth-child(2) .centro-banner img {
        height: 160px !important; 
        width: auto !important;
        object-fit: contain;
    }

    /* 4. Card da Marinha - Forçando visibilidade do texto */
    .hero-slide:nth-child(2) .marinha-card {
        display: block !important;
        background: rgba(0, 0, 0, 0.7) !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        margin: 10px auto 45px !important;
        width: fit-content !important;
        max-width: 85% !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    /* Esconde o ícone e a caixa de texto do desktop para não dar conflito */
    .hero-slide:nth-child(2) .marinha-card img,
    .hero-slide:nth-child(2) .logo-marinha-banner {
        display: none !important;
    }
    
    /* SELETOR UNIVERSAL: Formata o texto "Somos homologados..." não importa a tag */
    .hero-slide:nth-child(2) .marinha-card span,
    .hero-slide:nth-child(2) .marinha-card p,
    .hero-slide:nth-child(2) .marinha-text-box p {
        display: block !important;
        color: #FFFFFF !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        text-align: center !important;
        margin: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Garante que não haja duplicidade de injeção */
    .hero-slide:nth-child(2) .marinha-card span::before,
    .hero-slide:nth-child(2) .marinha-card span::after {
        content: none !important;
    }
}

/* ==========================================================================
   BANNER 03 - DESKTOP (PADRONIZADO)
   ========================================================================== */
.fundo-banner-3 {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: url('../img/home/banner03/fundoTransparencia.webp') no-repeat center center; 
    background-size: cover;
    z-index: 1;
}

.container-banner-3 {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.banner3-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.bloco-personagem-tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.personagem {
    max-height: 50vh;
    width: auto;
}

.wrapper-tags {
    display: flex;
    gap: 15px;
}

.tag-img {
    height: 40px;
    width: auto;
}

.bloco-conteudo {
    flex: 1.5;
    display: flex;
    justify-content: center;
}

.logo-cbsp {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   BANNER 03 - MOBILE (ATUALIZADO PARA REDUZIR A LOGO)
   ========================================================================== */
@media (max-width: 768px) {
    
    .banner3-wrapper {
        flex-direction: column; /* Empilha */
        justify-content: center;
        text-align: center;
        margin-top: 20px;
    }

    /* Esconde o boneco no mobile */
    .personagem {
        display: none !important;
    }

    /* Move a Logo para o topo (Ordem 1) */
    .bloco-conteudo {
        order: 1;
        width: 100%;
        margin-bottom: 10px; /* Adiciona um pequeno espaço extra abaixo da logo reduzida */
    }

    .logo-cbsp {
        /* 👇 REDUÇÃO DA LOGO AQUI 👇 */
        max-width: 65% !important; /* Estava 85%, reduzi para 65% para um visual mais equilibrado */
        height: auto !important;
    }

    /* Move as Tags para baixo da logo (Ordem 2) */
    .bloco-personagem-tags {
        order: 2;
        width: 100%;
    }

    .wrapper-tags {
        justify-content: center;
        gap: 10px;
    }

    .tag-img {
        height: 32px; /* Tags menores no mobile */
    }
}

/* ==========================================================================
   BANNER 04 - DESKTOP
   ========================================================================== */
.container-banner-4 {
    position: relative;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.banner4-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: -80px;
    width: 100%;
}

.col-esquerda-b4 {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.col-esquerda-b4 img {
    width: 100%;
    height: auto;
}

.col-esquerda-b4 .placas { max-width: 550px; }
.col-esquerda-b4 .frase { max-width: 500px; }

.col-esquerda-b4 .tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.col-esquerda-b4 .tags img {
    height: 35px;
    width: auto;
}

.col-esquerda-b4 .tags .tag-online {
    background-color: #2ECC71;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-family: 'Montserrat';
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    height: 35px;
}

.col-direita-b4 {
    flex: 1;
    text-align: left;
}

.col-direita-b4 img {
    max-height: 55vh;
    width: auto;
    border-radius: 20px;
    /* ALTERAÇÃO CIRÚRGICA: Sombra removida completamente */
    box-shadow: none; 
}

   /* ==========================================================================
   BANNER 04 - MOBILE
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Remove o personagem para limpar o layout */
    .col-direita-b4 {
        display: none !important;
    }

    /* 2. Centraliza o conteúdo e ajusta o espaçamento */
    .banner4-wrapper {
        flex-direction: column !important;
        margin-top: 0 !important; /* Remove o margin negativo do desktop */
        padding-top: 40px;
        gap: 20px !important;
    }

    .col-esquerda-b4 {
        width: 100% !important;
        align-items: center !important;
        text-align: center;
        flex: none !important;
    }

    /* 3. Ajuste das Placas de NR (Tamanho equilibrado) */
    .col-esquerda-b4 .placas {
        max-width: 80% !important;
        height: auto !important;
        margin-bottom: 5px;
    }

    /* 4. Ajuste da Frase (Para não bater nas bordas) */
    .col-esquerda-b4 .frase {
        max-width: 75% !important;
        height: auto !important;
    }

    /* 5. Ajuste das Tags para empilhamento ou melhor espaçamento */
    .col-esquerda-b4 .tags {
        display: flex !important;
        flex-direction: row !important; /* Mantém lado a lado se couber */
        justify-content: center !important;
        flex-wrap: wrap !important; /* Quebra linha se o celular for muito estreito */
        gap: 10px !important;
        width: 90% !important;
    }

    .col-esquerda-b4 .tags img {
        height: 28px !important; /* Tags um pouco menores para o mobile */
        width: auto !important;
    }

    .col-esquerda-b4 .tags .tag-online {
        height: 28px !important;
        font-size: 0.75rem !important;
        padding: 0 15px !important;
    }
}

/* ==========================================================================
   DIREFENCIAIS - DESKTOP
   ========================================================================== */

.diferenciais-flutuantes {
    margin-top: -100px; /* Isso sobe a seção */
    position: relative;
    z-index: 20; /* Garante que os cards fiquem ACIMA da imagem do banner */
}

.container-diferenciais {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 30px; /* Adicionei 20px no topo e embaixo para dar respiro interno */
}

.item-dif {
    text-align: left;
}

.item-dif .icon-wrapper {
    margin-bottom: 15px;
}

.item-dif img {
    width: 45px;
    height: auto;
}

.item-dif h3 {
    color: #fff;
    font-size: 18px; /* MODIFICADO: Aumentado de 14px para 18px para dar destaque */
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px; /* MODIFICADO: Um leve respiro a mais antes de começar o texto */
    font-family: 'Montserrat', sans-serif;
}

.item-dif p {
    color: #eee;
    font-size: 14px; /* MODIFICADO: Aumentado de 11px para 14px (padrão excelente de leitura) */
    line-height: 1.6; /* MODIFICADO: Aumentado de 1.4 para 1.6 (abre o espaçamento entre as linhas) */
    font-weight: 300;
    margin: 0;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #000; /* Evita o flash branco ao carregar */
}

/* ==========================================================================
   DIREFENCIAIS - MOBILE
   ========================================================================== */

   @media (max-width: 768px) {
    /* 1. O Container Pai precisa permitir o transbordo (overflow) */
    .container-diferenciais {
        display: flex !important;
        flex-wrap: nowrap !important; /* Impede que os cards pulem para a linha de baixo */
        overflow-x: auto !important; /* Ativa a rolagem lateral */
        scroll-snap-type: x mandatory !important; /* Faz o "imã" para centralizar o card */
        -webkit-overflow-scrolling: touch; /* Suaviza o movimento no iPhone/iOS */
        gap: 0 !important;
        padding: 20px 0 !important;
    }

    /* 2. Cada Item precisa ter um tamanho fixo de 100% da tela */
    .item-dif {
        flex: 0 0 100% !important; /* O '0 0' impede que o card encolha */
        width: 100% !important;
        min-width: 100% !important;
        scroll-snap-align: center !important; /* Onde o card para ao soltar o dedo */
    }
}
@media (max-width: 768px) {
    .container-diferenciais {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        /* Removemos o scroll-snap para a animação ser fluida */
        overflow: hidden !important; 
    }

    .item-dif {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        /* Aplica a animação: 15 segundos, infinita, com pausas */
        animation: carrosselMobile 15s infinite ease-in-out;
    }
}

/* Definição do movimento: 4 itens (0%, 25%, 50%, 75%, 100%) */
@keyframes carrosselMobile {
    0%, 20% { transform: translateX(0%); }
    25%, 45% { transform: translateX(-100%); }
    50%, 70% { transform: translateX(-200%); }
    75%, 95% { transform: translateX(-300%); }
    100% { transform: translateX(0%); }
}

/* ==========================================================================
   CONTROLES E DOTS COMUNS
   ========================================================================== */

.hero-controls-wrapper {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
}

.hero-prev, .hero-next {
    font-size: 50px;
    color: rgba(255,255,255,0.5);
    background: none;
    border: none;
    cursor: pointer;
}

/* Ajuste das bolinhas - Versão Desktop Final */
.hero-dots {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    bottom: 150px; /* Mantendo o respiro que ajustamos */
    z-index: 99;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    transform: scale(1); /* Força o tamanho normal para todos */
}

/* O seletor !important aqui garante que ele só cresça se o JS aplicar a classe */
.dot.active {
    background-color: #FF6600 !important;
    transform: scale(1.3) !important; 
}

/* ==========================================================================
   MOBILE - AJUSTE FINAL DOS DOTS (TODOS OS BANNERS)
   ========================================================================== */
@media (max-width: 768px) {
    
    .hero-dots {
        position: absolute !important;
        /* Baixando o máximo possível para tirar da frente do conteúdo */
        bottom: 5px !important; 
        
        /* Centralização horizontal */
        left: 50% !important;
        transform: translateX(-50%) !important;
        
        /* Layout das bolinhas */
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        width: auto !important;
        z-index: 100 !important;
    }

    /* Ajuste de tamanho para mobile (opcional, para ficar mais delicado) */
    .dot {
        width: 10px !important;
        height: 10px !important;
    }

    /* Garante que o slide tenha um respiro na base para não cobrir os dots */
    .hero-slide {
        padding-bottom: 20px !important;
    }
}

/* ==========================================================================
   MODILE - ESTILOS GERAIS DA HOME (CARROSSEL E ESTRUTURA)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Ajusta o tamanho do banner para não sumir com o conteúdo */
    .hero-slider-container.hero-new {
        height: 60vh; /* Diminuímos um pouco para dar espaço aos diferenciais abaixo */
        min-height: 450px;
    }

    /* 2. Reposiciona os Dots para não ficarem em cima dos ícones */
    .hero-dots {
        position: absolute !important;
        bottom: 15px !important; /* Ajuste este valor para subir ou descer mais */
        top: auto !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        z-index: 10 !important;
    }

    /* 3. Ajusta a seção de Diferenciais no Mobile */
    .diferenciais-flutuantes {
        margin-top: 0 !important; /* Garante que não sobreponha o banner no mobile */
        background-color: #000;
        padding: 50px 0; /* Aumenta o respiro vertical */
        width: 100%;
    }

    .container-diferenciais {
        display: flex !important; /* Força o comportamento de linha */
        flex-wrap: nowrap !important; /* Impede que os itens quebrem para baixo */
        overflow-x: auto !important; /* Habilita o scroll horizontal (swipe) */
        scroll-snap-type: x mandatory !important; /* Trava o movimento no centro do item */
        gap: 0 !important;
        padding: 0 !important;
        
        /* Esconde a barra de rolagem para um visual mais limpo */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
    }
    .container-diferenciais::-webkit-scrollbar {
        display: none;
    }

 /* --- CADA ITEM (CARD) --- */
    .item-dif {
        flex: 0 0 100% !important; /* Força cada item a ter a largura total da tela */
        width: 100%;
        min-width: 100%;
        scroll-snap-align: center; /* Centralização perfeita ao soltar o dedo */
        
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0 40px !important; /* Padding lateral para o texto não encostar nas bordas */
        box-sizing: border-box;
    }

    .item-dif .icon-wrapper {
        margin-bottom: 20px;
        display: block;
    }

    .item-dif img {
        width: 60px; /* Ícones um pouco maiores no mobile para facilitar a visão */
        height: auto;
    }

    .item-dif h3 {
        font-size: 1.1rem !important;
        margin-bottom: 15px;
    }

    .item-dif p {
        font-size: 0.9rem !important;
        line-height: 1.5;
        max-width: 280px; /* Limita a largura do texto para melhor leitura */
    }
}


/* ==========================================================================
   SEÇÃO CURSOS - GERAL E DESKTOP
   ========================================================================== */
.secao-cursos {
    background-color: #FF6600 !important;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Evita que o slider vaze para fora da página */
}

.secao-cursos h2 {
    font-size: 3.5rem;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 60px;
    font-family: 'Montserrat', sans-serif;
}

/* 1. MOLDURA (Container que limita a visão) */
.cursos-overflow {
    width: 100%;
    overflow: hidden; 
    margin: 0 auto;
    position: relative;
}

/* 2. CONTAINER DO SLIDER (Agrupa setas e conteúdo) */
.cursos-slider-wrapper {
    position: relative;
    max-width: 1100px; /* Largura total dos 3 cards + gaps */
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* 3. A "FITA" DE CARDS (O que o JS move) */
.cursos-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    will-change: transform;
    align-items: stretch; /* Garante que todos fiquem com o mesmo tamanho vertical */
}

/* 4. CARDS INDIVIDUAIS */
.card-curso {
    flex: 0 0 calc(33.333% - 20px) !important; 
    box-sizing: border-box;
    background: #ffffff !important; /* Fundo branco do card */
    border-radius: 40px !important; /* Arredondamento perfeito das bordas */
    overflow: hidden !important;    /* Força a imagem a respeitar o arredondamento */
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;        /* Deixa o tamanho livre para não sufocar a imagem */
    padding: 0 !important;          /* Zera qualquer preenchimento interno */
    margin: 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15); /* Sombra suave para destacar o card */
}

.card-curso .img-wrapper {
    width: 100% !important; 
    height: auto !important; 
    margin: 0 !important; 
    padding: 0 !important;
    border: none !important;
    display: block !important;
}

.card-curso img {
    width: 100% !important;
    height: auto !important;       /* Deixa a imagem definir a própria altura real */
    display: block !important;
    object-fit: contain !important; /* Garante que NENHUM pedaço da arte seja cortado */
    border-radius: 0px !important;  /* Respeita o overflow do card pai */
    margin: 0 !important;
    padding: 0 !important;
}

/* 5. SETAS LATERAIS */
.slider-prev, .slider-next {
    background: none;
    border: none;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 10px;
    transition: opacity 0.3s;
}

.slider-prev:hover, .slider-next:hover {
    opacity: 0.7;
}

.slider-prev { left: -60px; }
.slider-next { right: -60px; }

/* 6. BOTÃO "TODOS OS CURSOS" */
.btn-cursos-wrapper {
    margin-top: 60px;
}

.btn-cursos-wrapper a {
    background: #000 !important;
    color: #fff !important;
    padding: 15px 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    display: inline-block;
    text-transform: uppercase;
    transition: transform 0.3s;
}

.btn-cursos-wrapper a:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   SEÇÃO CURSOS - RESPONSIVIDADE (MOBILE CORRIGIDO)
   ========================================================================== */
@media (max-width: 768px) {
    .secao-cursos {
        padding: 60px 0;
    }

    .secao-cursos h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .cursos-slider {
        gap: 0; 
    }

    .card-curso {
        flex: 0 0 100% !important; /* Mantém o comportamento do slide em 100% */
        max-width: 100% !important; /* Alterado de 85% para 100% para ocupar a tela inteira e não vazar o próximo */
        margin: 0 !important;
        border-radius: 30px !important;
        padding: 0 20px !important; /* Adiciona um respiro nas laterais para o card não colar na borda do celular */
        box-sizing: border-box !important;
    }

    .card-curso img {
        width: 100% !important;
        height: auto !important;
    }

    .card-curso .img-wrapper {
        width: 100% !important;
        height: auto !important; /* Remove travas de proporção que possam achatar a imagem */
        aspect-ratio: auto !important; 
    }

    /* --- AJUSTE DAS SETAS NO MOBILE --- */
    .slider-prev, .slider-next {
        display: flex !important; 
        font-size: 35px; 
        z-index: 100;
        background: rgba(255, 102, 0, 0.6) !important; /* Aumentado o contraste para destacar sobre a foto */
        color: #fff;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        top: 50%; 
    }

    .slider-prev { 
        left: 10px !important; 
    }
    .slider-next { 
        right: 10px !important; 
    }
}
/* ==========================================================================
   SEÇÃO DEPOIMENTOS GOOGLE (NOVO LAYOUT COM IMAGENS)
   ========================================================================== */
.secao-depoimentos-google {
    background-color: #FFFFFF !important; /* Altera o fundo de cinza para branco */
    padding: 60px 0;
    width: 100%;
    box-sizing: border-box;
}

.depoimentos-topo {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.img-titulo-depoimentos {
    max-width: 580px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.container-carrossel-depoimentos {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 60px; 
    box-sizing: border-box;
}

/* Força as imagens a ficarem lado a lado na horizontal */
.google-reviews-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px; 
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 15px 5px;
}

/* Esconde a barra de rolagem horizontal feia */
.google-reviews-wrapper::-webkit-scrollbar {
    display: none;
}
.google-reviews-wrapper {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

/* Define o tamanho de cada card de imagem */
.img-card-depoimento {
    flex: 0 0 calc(33.333% - 14px) !important; 
    min-width: 280px;
    height: auto;
    object-fit: contain;
    border-radius: 15px; 
}

/* Estilo das Setas Laterais */
.seta-carrossel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #777777; 
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.seta-carrossel.esquerda { left: 10px; }
.seta-carrossel.direita { right: 10px; }

/* Responsividade */
@media (max-width: 992px) {
    .img-card-depoimento { flex: 0 0 calc(50% - 10px) !important; }
}
@media (max-width: 650px) {
    .container-carrossel-depoimentos { padding: 0 45px; }
    .img-card-depoimento { flex: 0 0 100% !important; }
}

/* ==========================================================================
   SEÇÃO HOMOLOGAÇÃO (DESKTOP) - CORRIGIDO
   ========================================================================== */
.secao-homologados {
    position: relative;
    background: url('../img/home/homologado/homeFundoSomosHomologados.webp') no-repeat center center;
    background-size: cover;
    padding: 60px 0 0 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.secao-homologados .container-fluxo {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important; 
    max-width: 1200px !important; 
    margin: 0 auto;
    padding: 0 50px;
    width: 100%;
    gap: 50px; /* Mantém a separação física do operário */
}

.homologados-personagem {
    flex: 0 0 auto !important; 
    display: flex;
}

.homologados-personagem img {
    max-height: 620px;
    width: auto;
    display: block;
}

.card-homologados {
    flex: 0 1 500px !important; /* Retângulo menor mantido */
    background: #ffffff; 
    padding: 35px 35px; /* Reduzi levemente o padding lateral para dar mais área útil interna */
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin-bottom: 80px;
    box-sizing: border-box;
    position: relative;
    z-index: 2; 
    margin-left: 0 !important; 
}

.card-homologados h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.card-homologados p {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* AJUSTE CRÍTICO: Alinhamento e contenção dos logos institucionais */
.homologados-logos {
    display: flex;
    gap: 20px; /* Reduzido de 35px para os logos caberem lado a lado sem apertar */
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* Segurança extra: impede qualquer quebra de layout ou vazamento */
    width: 100%;
}

.homologados-logos img {
    height: 55px; /* Reduzido sutilmente de 65px para calhar perfeitamente no novo espaço interno */
    width: auto;
    max-width: 45%; /* Garante que nenhuma imagem consuma mais do que a metade do card */
    object-fit: contain;
}

/* ==========================================================================
   SEÇÃO HOMOLOGAÇÃO (MOBILE) - AJUSTADO
   ========================================================================== */
@media (max-width: 992px) {
    .secao-homologados {
        padding: 40px 0 !important;
        background-position: center !important;
    }

    .secao-homologados .container-fluxo {
        display: flex !important;
        flex-direction: column !important; /* No mobile, empilha os elementos verticalmente */
        align-items: center !important; 
        justify-content: center !important; 
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        width: 100%;
        gap: 0;
    }

    .homologados-personagem {
        display: none !important; /* Mantém o operário oculto no mobile para focar no texto */
    }

    .card-homologados {
        flex: 0 1 100% !important; 
        width: 100%;
        max-width: 500px; /* Mantém o tamanho controlado no mobile para não esticar demais */
        background: #ffffff; 
        padding: 30px 25px; 
        border-radius: 25px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        margin-bottom: 40px;
        box-sizing: border-box;
        margin-left: 0 !important; /* Zera qualquer margem remanescente */
    }

    .card-homologados h2 {
        font-size: 1.8rem !important; /* Ajustado tamanho para telas menores */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        font-weight: 900 !important; 
        letter-spacing: -1px !important;
        text-align: center;
    }

    .card-homologados p {
        font-size: 1rem !important; 
        line-height: 1.4 !important;
        margin-bottom: 25px !important;
        font-weight: 500 !important;
        color: #444 !important;
        text-align: center;
    }

    .homologados-logos {
        display: flex !important;
        justify-content: center !important; 
        align-items: center !important;
        gap: 25px !important;
        width: 100% !important;
    }

    .homologados-logos img {
        height: auto !important;
        max-height: 50px !important; 
        width: auto !important;
        object-fit: contain !important;
    }
}

/* ==========================================================================
   CLIENTES - DESKTOP (E ESTRUTURA GERAL)
   ========================================================================== */
.nossos-clientes {
    padding: 60px 0;
    background-color: #fff;
    overflow: hidden;
}

.nossos-clientes h2 {
    color: #3e546e;
    font-weight: 900;
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.clientes-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.clientes-overflow {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.clientes-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.cliente-item {
    flex: 0 0 25%; /* Exibe 4 logos por vez no desktop */
    max-width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cliente-item img {
    max-width: 150px;
    height: auto;
    filter: none !important; 
    opacity: 1 !important; 
    transition: transform 0.3s;
}

.cliente-item img:hover {
    transform: scale(1.1);
}

/* Controles: Setas e Dots */
.nossos-clientes .slider-prev,
.nossos-clientes .slider-next {
    background: #666;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.slider-dots {
    margin-top: 30px;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #717171;
}

/* ==========================================================================
   CLIENTES - MOBILE (MÁXIMO 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    .clientes-wrapper {
        width: auto !important; /* Remove a largura forçada que causava o vazio */
    }

    .cliente-item {
        flex: 0 0 100% !important; /* Exibe 1 logo por vez no mobile */
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .cliente-item img {
        max-width: 180px; /* Logos levemente maiores no mobile para destaque */
    }

    /* Oculta as setas no mobile para priorizar o uso dos dots/swipe */
    .nossos-clientes .slider-prev,
    .nossos-clientes .slider-next {
        display: none; 
    }

    .nossos-clientes h2 {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   MEDIA QUERIES - RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    .container-banner-2 {
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 120px !important;
        gap: 20px !important;
    }
    .texto-lateral-banner {
        order: 1 !important;
        text-align: center !important;
        width: 100% !important;
    }
    .texto-lateral-banner h2 {
        font-size: 1.1rem !important;
        letter-spacing: 1px;
    }
    .centro-banner {
        order: 2 !important;
        display: block !important;
        width: 100% !important;
    }
    .centro-banner img {
        max-height: 200px !important;
        margin-top: 0 !important;
    }
    .logo-marinha-banner {
        order: 3 !important;
        display: flex !important;
        justify-content: center !important;
        width: auto !important;
        text-align: center !important;
        padding: 0 !important;
    }
    .marinha-card {
        width: 100% !important;
        max-width: 340px !important;
        padding: 12px 16px !important;
    }
    .logo-marinha-banner img {
        height: 40px !important;
        margin: 0 auto !important;
    }
    .logo-marinha-banner p {
        font-size: 0.8rem !important;
    }
    .marinha-text-box {
        margin-left: 0 !important;
        text-align: center !important;
    }
    
}