/* ============================================
   SBM GROUP - CSS WHITE PREMIUM PROFISSIONAL
   STATUS: CORRIGIDO (MOBILE BANNERS, SLIDE, SIDEBAR DESKTOP)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   VARIÁVEIS E RESET
   ============================================ */
:root {
    --preto-principal: #111111;
    --preto-profundo: #0a0a0a;
    --branco-puro: #ffffff;
    --branco-off: #fafafa;
    --cinza-super-claro: #f5f5f5;
    --cinza-claro: #e5e5e5;
    --cinza-medio: #999999;
    --cinza-escuro: #333333;
    --cinza-texto: #4a4a4a;
    --azul-destaque: #010101;
    --azul-hover: #0052a3;
    --vermelho-tag: #dc2626;
    
    --sombra-leve: 0 2px 8px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 4px 16px rgba(0, 0, 0, 0.12);
    --sombra-forte: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ============================================
   CORREÇÃO DEFINITIVA - BARRA DUPLA
   ============================================ */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

html {
    height: 100%;
    overflow: auto; /* Deixa o html controlar TUDO */
}

body {
    min-height: 100%;
    overflow: visible; /* Body não controla rolagem */
}
ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Segurança para Imagens (Previne sidebar estourando no desktop) */
.content-column img,
.side-card-content img,
.sbm-side-cards img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   HEADER DESKTOP
   ============================================ */
.sbm-header {
    background: var(--preto-principal);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top {
    background: var(--preto-profundo);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.btn-search,
.btn-professionals {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-search {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

}

.btn-search:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-professionals {
    background: white;
    color: #333;
	
}

.btn-professionals:hover {
    transform: translateY(-2px);
}

.material-icons {
    font-size: 18px;
}

.header-main {
    padding: 20px 0;
}

.sbm-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sbm-nav-left ul,
.sbm-nav-right ul {
    display: flex;
    gap: 0;
    align-items: center;
}

.sbm-nav-content nav ul li {
    position: relative;
}

.sbm-nav-content nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 12px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.sbm-nav-content nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #888);
    transition: width 0.3s ease;
}

.sbm-nav-content nav ul li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.sbm-nav-content nav ul li a:hover::before {
    width: 80%;
}

.sbm-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.sbm-logo:hover {
    transform: scale(1.05);
}

.sbm-logo img {
    display: block;
    filter: brightness(1.1);
}

/* ============================================
   MENU MOBILE
   ============================================ */
.sbm-header-mobile {
    background: var(--preto-principal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    position: sticky;
    top: 0;
    padding: 20px 0;
    z-index: 2000;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.menu-toggle,
.btn-search-mobile {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover,
.btn-search-mobile:hover {
    opacity: 0.7;
}

.mobile-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--preto-profundo);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    text-align: center;
    padding: 20px 0;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    margin: 10px 0;
}

.mobile-menu ul li a {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: inline-block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
    color: var(--azul-hover);
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 25px;
}

/* ============================================
   HERO CARDS
   ============================================ */
.sbm-group-section {
    padding: 30px 0;
    padding-bottom: 10px !important;
    background: var(--preto-principal);
    margin-bottom: -40px;
}

.sbm-cards-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    padding-bottom: 50px;
}

.sbm-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
}

.sbm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-forte);
}

.main-card {
    height: 420px;
   
}

.sbm-side-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.side-card-top {
    height: 198px;
}

.side-card-bottom {
    height: 198px;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    z-index: 2;
}

.side-card-top .card-overlay,
.side-card-bottom .card-overlay {
    padding: 20px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--vermelho-tag);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 12px;
}

.tag.secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.card-overlay h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.3;
    color: #ffffff;
}

.side-card-top .card-overlay h2,
.side-card-bottom .card-overlay h2 {
    font-size: 15px;
}

.stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ============================================
   PUBLICIDADE (PADRÃO & MEIO)
   ============================================ */
.ad-space {
    padding: 50px 0; /* CORREÇÃO DESKTOP: Padding em cima e em baixo */
    background: var(--preto-principal);
    border-radius: 10px;
}

.ad-black {
    background: var(--preto-principal);
}

.ad-space .container {
    background: var(--preto-principal);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-space .container p {
    font-size: 13px;
    color: var(--cinza-medio);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.large-ad-space-2 .container {
    height: 90px;
}

/* FIX ESPECÍFICO PARA O BANNER DO MEIO */
.ad-slider-meio img,
.container > img[alt="Publicidade SBM"] {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SEÇÃO DE CONTEÚDO
   ============================================ */
.content-section {
    background: var(--preto-principal);
    padding: 0px 0;
}

.main-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.main-highlight {
    overflow: hidden;
    transition: all 0.4s ease;
}

.highlight-image {
    height: 280px;
    background-size: cover;
    background-position: center;
}

.highlight-text {
    padding: 28px;
    color: var(--cinza-escuro);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.6;
}

.content-column {
    background: var(--preto-principal);
    padding: 30px;
    border-radius: 16px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--cinza-super-claro);
}

.column-header h2 {
    color: var(--branco-puro);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.column-header a {
    color: var(--branco-off);
    font-size: 0.85rem;
    font-weight: 600;
}

.column-header a:hover {
    color: var(--branco-off);
}

.article-list li {
    padding: 16px 0 !important;
    transition: all 0.3s ease;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li a {
    display: block;
    color: var(--branco-off);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-list li a:hover {
    color: #ddd;
}

.article-list li .date {
    display: block;
    font-size: 0.75rem;
    color: var(--cinza-medio);
    font-weight: 500;
}

/* ============================================
   CTA PROFISSIONAIS
   ============================================ */
.professionals-cta-section {
    background: var(--preto-principal);
    padding: 70px 0;
}

.professionals-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #059669 0%, #6ee7b7 100%);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--sombra-forte);
}

.professionals-cta-content .cta-text h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.professionals-cta-content .cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-button {
    background: #ffffff;
    color: #1e40af;
    padding: 18px 45px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   NOTÍCIAS (SLIDESHOW)
   ============================================ */
.world-news-section {
    background: var(--preto-principal);
    padding: 20px 0;
}

/* Remova o linear-gradient e use apenas a cor sólida */
.world-news-section,
.courses-section,
.content-section {
    background: var(--preto-principal) !important;
}

/* Se quiser garantir que a newsletter não pegue esse efeito de fumaça */
.newsletter-section {
    background: var(--branco-off) !important;
    position: relative;
    z-index: 10; /* Garante que ela fique por cima de qualquer resíduo de fundo */
}


.section-title {
    color: var(--branco-puro);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -1px;
    position: relative;
    padding-bottom: 18px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--branco-off);
    border-radius: 2px;
}

.world-news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.carousel-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--branco-puro);

}

.carousel-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image {
    height: 320px;
    background-size: cover;
    background-position: center;
}

.slide-content {
    padding: 35px;
}

.category-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--azul-destaque);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 16px;
}

.slide-content h3 {
    font-size: 1.7rem;
    color: var(--cinza-escuro);
    margin: 16px 0;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.slide-content p {
    color: var(--cinza-texto);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
}

.date-info {
    font-size: 0.8rem;
    color: var(--cinza-medio);
    font-weight: 600;
}

.carousel-nav {
    padding: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cinza-medio);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--preto-profundo);
    transform: scale(1.3);
}

.side-news-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-news-card {
    display: flex;
    flex-direction: column;
    background: var(--branco-puro);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--sombra-leve);
}

.side-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-forte);
}

.side-card-thumb {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
}

.side-card-content {
    padding: 22px;
}

.side-card-content h4 {
    color: var(--cinza-escuro);
    font-size: 1rem;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.4;
}

/* ============================================
   CURSOS E TREINAMENTOS
   ============================================ */
.courses-section {
    background: var(--preto-principal);
    padding: 10px 0;
}

.course-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: var(--branco-puro);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--sombra-leve);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-forte);
}

.course-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.course-card h3 {
    color: var(--cinza-escuro);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 24px 24px 12px;
    line-height: 1.3;
}

.course-card p {
    color: var(--cinza-texto);
    padding: 0 24px 18px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.course-tag {
    display: block;
    background: var(--cinza-super-claro);
    color: var(--cinza-escuro);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 14px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid var(--cinza-claro);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: var(--branco-off);
    padding: 70px 0;
    text-align: center;
}

.newsletter-content h2 {
    color: var(--cinza-escuro);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--branco-puro);
    border: 1px solid var(--cinza-claro);
    border-radius: 25px;
    padding: 35px;
    box-shadow: var(--sombra-media);
}

.newsletter-form input,
.newsletter-form select {
    width: 100%;
    padding: 15px 20px;
    font-size: 0.95rem;
    border: 1px solid var(--cinza-claro);
    border-radius: 50px;
    background: var(--branco-off);
    color: var(--cinza-escuro);
    transition: border-color 0.3s ease;
}

.newsletter-form input::placeholder {
    color: var(--cinza-medio);
}

.newsletter-form input:focus,
.newsletter-form select:focus {
    outline: none;
    border-color: var(--azul-destaque);
}

.newsletter-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23666' height='24' width='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    cursor: pointer;
}

.newsletter-form button {
    background: var(--azul-destaque);
    color: #fff;
    padding: 16px 36px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form button:hover {
    background: var(--azul-hover);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--preto-principal);
    color: #999999;
    padding: 60px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sbm-logo-footer {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 20px;
}

.sbm-logo-footer .logo-group {
    font-size: 14px;
    font-weight: 300;
    color: #666666;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #999999;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: #999999;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-contact p {
    color: #999999;
    margin: 10px 0;
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-bottom {
    background: var(--preto-profundo);
    padding: 28px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #666666;
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    gap: 18px;
}

.social-icons a {
    color: #666666;
    font-size: 1.1rem;
}

.social-icons a:hover {
    color: #ffffff;
}

/* ============================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ============================================ */

/* TABLET (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .section-title {
        line-height: 40px;
    }
    
    .sbm-cards-layout,
    .main-content-layout,
    .world-news-layout {
        grid-template-columns: 1fr;
    }
    
    .sbm-side-cards {
        flex-direction: row; 
        padding-bottom: 30px;
    }
    
    .course-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {
    .sbm-header {
        display: none;
    }

    .sbm-header-mobile {
        display: block;
    }

    /* Correções do Banner do Meio e Rodapé */
    .ad-space {
        /* Reduz padding no mobile para aproximar do conteúdo */
        padding: 10px 0 20px !important;
        margin-bottom: 0;
    }
    
    /* Aproxima a seção hero do banner */
    .sbm-group-section {
        margin-bottom: 0 !important;
        padding-top: 10px !important;
    }
    
    /* Regra geral para imagens de Publicidade no Mobile (Topo, Meio, Fim) */
    .ad-slider-meio img,
    .ad-space img,
    .container > img[alt="Publicidade SBM"] {
        max-width: 100%;
        width: 100%;
        height: auto !important; /* Sobrescreve alturas inline */
        object-fit: contain;
    }

    /* Ajuste da container do banner */
    .ad-space .container {
        max-width: 100%;
        width: 100%;
        border: none !important;
        flex-direction: column;
        padding: 0 20px;
    }
    
    /* CORREÇÃO: Slideshow Mobile "Comendo Conteúdo" */
    .carousel-container {
        height: 650px; /* Aumentado para caber texto e imagem */
    }
    
    .slide-image {
        height: 220px; /* Imagem menor no mobile para dar espaço ao texto */
    }

    .courses-section {
        padding-bottom: 20px !important;
    }

    .large-ad-space-2 .container {
        max-width: 300px;
        width: 100%;
        display: flex;
        justify-content: center;
        overflow: hidden;
    }
}

/* MOBILE PEQUENO (max-width: 640px) */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .sbm-nav-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .sbm-side-cards {
        flex-direction: column; 
    }
    
    .professionals-cta-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 30px;
    }
    
    .course-cards-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        padding: 25px;
        border-radius: 20px;
    }

    .newsletter-content h2 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}