/* Reset e estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #505050;
}

/* Navbar estilo Edmo - ✅ ATUALIZADO com suporte a imagem de fundo */
.navbar-clean {
    width: 100%;
    height: 80px;
    background-color: var(--navbar-bg, #ffffff);
    background-image: var(--navbar-bg-image, none);
    background-position: var(--navbar-bg-image-position, center center);
    background-size: var(--navbar-bg-image-size, cover);
    background-repeat: no-repeat;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* ✅ ADICIONAR: Overlay para controlar opacidade da imagem */
.navbar-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navbar-bg, #ffffff);
    opacity: calc(1 - var(--navbar-bg-image-opacity, 0.8));
    z-index: 1;
    pointer-events: none;
}

/* ✅ Garantir que o conteúdo da navbar fique acima do overlay */
.navbar-clean .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 75px;
    transition: all 0.3s ease;
}

.logo a {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navbar-text, #221638);
}

/* Menu */
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.menu li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu li a {
    text-decoration: none;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--navbar-text, #221638);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: var(--navbar-text-hover, #fe4a55);
}

/* Linha inferior animada no hover */
.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--navbar-text-hover, #fe4a55);
    transition: width 0.3s ease;
    opacity: 0;
}

.menu li a:hover::after {
    width: 70%;
    opacity: 1;
}

/* Efeito de navbar ao rolar */
.navbar-scrolled {
    height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .logo img {
    max-height: 35px;
}

/* Botão de login */
.menu li.login-btn a {
    background-color: var(--login-btn-bg, #fe4a55);
    color: var(--login-btn-text-color, #ffffff) !important;
    border-radius: 30px;
    padding: 10px 25px;
    margin-left: 15px;
    height: auto;
    transition: all 0.3s ease;
}

.menu li.login-btn a:hover {
    background-color: var(--login-btn-hover-bg, #221638);
    color: var(--login-btn-hover-text, #ffffff) !important;
}

.menu li.login-btn a::after {
    display: none;
}

/* Ajuste para o conteúdo principal - MODIFICADO para permitir banner de largura total */
.content-area {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    visibility: hidden;
}

/* Conteúdo interno após o banner */
.main-content {
    display: none !important;
}

/* Menu hamburguer para mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--navbar-text, #221638);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        z-index: 1000;
    }

    .menu.active {
        max-height: 400px;
    }

    .menu li {
        width: 100%;
        height: auto;
    }

    .menu li a {
        padding: 15px 20px;
        width: 100%;
        justify-content: center;
    }

    .menu li a::after {
        bottom: 5px;
    }

    .menu li.login-btn {
        margin: 10px 0;
    }

    .menu li.login-btn a {
        margin: 0 20px;
    }

    .navbar-clean {
        height: 70px;
    }

    .content-area {
        margin-top: 90px;
    }
}

/* Estilos para os diferentes layouts de navbar */

/* Layout padrão */
.navbar-layout-default .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Layout centralizado */
.navbar-layout-centered .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.navbar-layout-centered .left-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.navbar-layout-centered .center-logo {
    text-align: center;
}

.navbar-layout-centered .right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.navbar-layout-centered .left-menu,
.navbar-layout-centered .right-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

/* Layout dividido */
.navbar-layout-split .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.navbar-layout-split .center-menu {
    display: flex;
    justify-content: center;
}

.navbar-layout-split .login-container {
    display: flex;
    justify-content: flex-end;
}

/* Layout com logo à direita */
.navbar-layout-right_logo .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.navbar-layout-right_logo .left-section {
    display: flex;
    align-items: center;
}

/* Estilos para posicionamento do botão de login */
.login-btn {
    margin: 0 10px;
}

/* Responsividade para todos os layouts */
@media (max-width: 992px) {
    .navbar-layout-centered .container,
    .navbar-layout-split .container {
        grid-template-columns: auto auto;
    }

    .navbar-layout-centered .center-logo {
        grid-column: 1;
        text-align: left;
    }

    .navbar-layout-centered .left-section {
        display: none;
    }

    .navbar-layout-centered .right-section {
        grid-column: 2;
    }

    .navbar-layout-split .center-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
    }

    .navbar-layout-split .center-menu.active {
        display: block;
    }

    .navbar-layout-right_logo .left-section ul.menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
    }

    .navbar-layout-right_logo .left-section ul.menu.active {
        display: block;
    }
}

/* Banner Principal da Página Inicial - Versão Personalizável */
.frontpage-banner {
    position: relative;
    padding-top: var(--hero-padding-top, 120px);
    padding-bottom: var(--hero-padding-bottom, 120px);
    margin-top: var(--hero-margin-top, 80px);
    width: 100%;
    height: var(--hero-height, auto);
    background-color: #f5f7fa;
    overflow: hidden;
    text-align: var(--hero-text-align, center);
}

.frontpage-banner.with-image {
    background-position: var(--hero-background-position, center center);
    background-size: var(--hero-background-size, cover);
    background-repeat: no-repeat;
    background-attachment: var(--hero-bg-fixed, scroll);
}

.frontpage-banner.with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay-color, rgba(0, 0, 0, 0.4));
    opacity: var(--hero-overlay-opacity, 0.4);
    z-index: 1;
}

.frontpage-banner .container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.frontpage-banner .banner-content {
    max-width: var(--hero-content-width, 600px);
    margin: 0 auto;
    text-align: var(--hero-text-align, center);
}

.frontpage-banner .banner-content.text-left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.frontpage-banner .banner-content.text-right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.frontpage-banner .banner-content h1 {
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hero-heading-color, #ffffff);
}

.frontpage-banner .banner-content p {
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--hero-text-color, #ffffff);
}

/* ===== CONFIGURAÇÕES DO BOTÃO DO BANNER HERO ===== */
.frontpage-banner-button {
    background-color: var(--hero-button-bg) !important;
    color: var(--hero-button-text-color) !important;
    border: none !important;
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border-radius: var(--hero-button-radius, 5px) !important;
    text-align: center !important;
}

.frontpage-banner-button:hover {
    background-color: var(--hero-button-hover-bg) !important;
    color: var(--hero-button-hover-text) !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.frontpage-banner-button.rounded {
    border-radius: 50px !important;
}

.frontpage-banner-button.with-animation {
    position: relative !important;
    overflow: hidden !important;
}

.frontpage-banner-button.with-animation::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
}

.frontpage-banner-button.with-animation:hover::before {
    left: 100% !important;
}

.frontpage-banner-button.rounded {
    border-radius: 50px;
}

.frontpage-banner-button:hover {
    background-color: var(--hero-button-hover-bg, #221638);
    color: var(--hero-button-hover-text, #ffffff) !important;
    text-decoration: none;
}

.frontpage-banner-button.with-animation:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsividade do banner */
@media (max-width: 991px) {
    .frontpage-banner {
        padding: 100px 0;
    }

    .frontpage-banner .banner-content h1 {
        font-size: 38px;
    }
}

@media (max-width: 767px) {
    .frontpage-banner {
        padding: 80px 0;
    }

    .frontpage-banner .banner-content h1 {
        font-size: 32px;
    }

    .frontpage-banner .banner-content p {
        font-size: 16px;
    }

    .frontpage-banner-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Ajuste para o conteúdo principal */
.content-area {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    visibility: hidden;
}

/* Conteúdo interno após o banner */
.main-content {
    display: none !important;
}

/* Estilos para os blocos informativos - versão melhorada */
.feature-blocks-section {
    padding: 120px 0;
    margin-top: -20px;
    background-color: var(--feature-blocks-bg, #ffffff);
}

/* Contentor para blocos informativos com flexbox para centralização */
.feature-blocks-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centraliza horizontalmente */
    margin: 0 -15px;
}

.feature-block {
    padding: 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: flex;
    width: 25%; /* 25% para 4 blocos por linha */
}

/* Ajuste responsivo para diferentes tamanhos de tela */
@media (max-width: 1199px) {
    .feature-block {
        width: 33.333%; /* 3 blocos por linha */
    }
}

@media (max-width: 991px) {
    .feature-block {
        width: 50%; /* 2 blocos por linha */
    }
}

@media (max-width: 575px) {
    .feature-block {
        width: 100%; /* 1 bloco por linha */
    }
}

.feature-block-inner {
    background-color: var(--feature-block-bg, #ffffff);
    border-radius: 8px;
    padding: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-block-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.feature-block h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--feature-blocks-title, #221638);
}

.feature-block p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    overflow-wrap: break-word;
    color: var(--feature-blocks-text, #333333);
}

.feature-block-link {
    display: inline-block;
    padding: 8px 20px;
    background: #fe4a55;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.feature-block-link:hover {
    background: #221638;
    color: #fff;
    text-decoration: none;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .feature-block {
        margin-bottom: 20px;
    }

    .row {
        display: flex;
        flex-direction: column;
    }
}

/* Seção Top Categories - 4 COLUNAS */
.top-categories-section {
    padding: 120px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #221638;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #505050;
    max-width: 600px;
    margin: 0 auto;
}

/* GRID DE 4 COLUNAS */
.top-categories-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Simplificado */
.category-card-simple {
    display: flex;
    align-items: center;
    background-color: var(--top-categories-card-bg, #ffffff);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: 70px;
}

.category-card-simple:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #fe4a55;
    text-decoration: none;
}

/* Ícone/Imagem - MAIOR PARA FICAR VISÍVEL */
.category-icon-simple {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #e9f7fe; <- REMOVIDO */
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.category-icon-simple img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Texto */
.category-title-simple {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--top-categories-card-text, #333333);
    line-height: 1.2;
    flex: 1;
}

.category-card-simple:hover .category-title-simple {
    color: var(--top-categories-card-text, #333333);
}

/* RESPONSIVIDADE PARA 4 COLUNAS */
@media (max-width: 1024px) {
    .top-categories-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card-simple {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .top-categories-container {
        grid-template-columns: 1fr;
    }

    .top-categories-section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Esconder a seção de cursos na página inicial */
.frontpage-course-list-enrolled,
.frontpage-course-list-all,
.frontpage-available-courses,
.courses.frontpage-course-list-all,
.course-info-container,
.frontpage-course-list h2,
.available-courses h2,
.section-courses,
.section-available-courses,
[data-block="course_list"],
.block_course_list,
.available-courses,
.frontpage-category-combo,
.sitetopic,
#frontpage-category-names,
#frontpage-category-combo,
#frontpage-course-list,
#site-news-forum,
#frontpage-available-course-list,
.buttons,
.skip-block-to,
.course_category_tree,
.frontpage-site-description {
    display: none !important;
}

/* Container padrão para todas as seções */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Melhorias para responsividade e espaçamento */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-3 {
    width: 25%;
    padding: 0 15px;
}

@media (max-width: 992px) {
    .col-md-3 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-3 {
        width: 100%;
    }
}
/* ===================================
   CARROSSEL DE CURSOS POPULARES
=================================== */
.popular-courses-section {
    padding: 60px 0;
    position: relative;
}

.courses-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.courses-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.course-card {
    flex: 0 0 33.333%; /* 3 cursos por padrão */
    min-width: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.course-card-inner {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    line-height: 1.4;
}

.course-title:hover {
    color: #007cba;
    text-decoration: none;
}

.course-summary {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.course-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.course-link:hover {
    color: #005a87;
    text-decoration: none;
}

.course-link i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.course-link:hover i {
    transform: translateX(3px);
}

/* Controles do Carrossel */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    background: #007cba;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover:not(:disabled) {
    background: #005a87;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #007cba;
    transform: scale(1.2);
}

.indicator:hover {
    background: #007cba;
    opacity: 0.7;
}

/* Estado vazio */
.popular-courses-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.popular-courses-empty i {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}

.popular-courses-empty h3 {
    color: #999;
    margin-bottom: 10px;
}

/* Responsivo */
@media (max-width: 1024px) {
    .course-card {
        flex: 0 0 50%; /* 2 cursos em tablets */
    }
}

@media (max-width: 768px) {
    .course-card {
        flex: 0 0 100%; /* 1 curso em mobile */
    }
    
    .courses-track {
        gap: 15px;
    }
    
    .course-card {
        padding: 0 5px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .popular-courses-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .carousel-controls {
        gap: 15px;
    }
    
    .course-content {
        padding: 15px;
    }
    
    .course-image {
        height: 150px;
    }
}