/* ==========================================
   EDUCPRO - CSS LIMPO E FUNCIONAL
   Cores Educacionais: Azul + Verde
   ========================================== */

:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e40af;
    --primary-green: #10b981;
    --dark-green: #059669;
    --education-gradient: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
    padding-top: 0;
}

/* Espaçamento para compensar menu fixo */
#header-part+* {
    margin-top: 0;
}

a {
    text-decoration: none !important;
    transition: all 0.3s ease;
    /* CRÍTICO: Garantir que links funcionem */
    pointer-events: auto !important;
    cursor: pointer !important;
}

a:hover {
    text-decoration: none !important;
}

/* HEADER TOP */
.header-top {
    background: #1a1d29;
    padding: 10px 0;
    min-height: 33px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top .container {
    display: flex;
    align-items: center;
}

.header-top .row {
    width: 100%;
    margin: 0;
    align-items: center;
}

.header-contact ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-contact ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #fff;
    line-height: 1;
}

.header-contact ul li img {
    filter: brightness(0) invert(1);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.header-opening-time {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-opening-time p {
    font-size: 12px;
    color: #fff;
    margin: 0;
    line-height: 1;
}

/* HEADER LOGO */
.header-logo-support {
    padding: 8px 0;
    background: #252936;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    /* Sem filter — preservar as cores originais do logotipo */
}

@media (max-width: 991px) {
    .logo img {
        max-height: 32px;
    }
}

@media (max-width: 575px) {
    .logo img {
        max-height: 26px;
    }
}

.support {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
    margin-right: 15px;
    border-right: 2px solid var(--primary-green);
}

.support .icon {
    width: 35px;
    height: 35px;
    background: var(--education-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support .icon img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.support .cont p {
    font-size: 9px;
    color: #a8adb7;
    margin: 0;
}

.support .cont span {
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
}

/* BOTÕES - CRÍTICO: GARANTIR FUNCIONALIDADE */
.main-btn {
    background: var(--education-gradient);
    color: #fff;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    /* CRÍTICO */
    pointer-events: auto !important;
    z-index: 10000 !important;
    position: relative !important;
}

.main-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1e40af 0%, #059669 100%);
    color: #fff;
}

/* NAVEGAÇÃO - CRÍTICO: GARANTIR FUNCIONALIDADE */
.navigation {
    background: #1a1d29;
    border-bottom: 2px solid #2563eb;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Menu fixo ao fazer scroll */
.navigation.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.navbar {
    padding: 0;
    min-height: auto;
}

.navbar-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    /* CRÍTICO */
    pointer-events: auto !important;
    z-index: 10000 !important;
}

.navbar-nav .nav-item {
    position: relative;
    /* CRÍTICO */
    pointer-events: auto !important;
    z-index: 10000 !important;
}

.navbar-nav .nav-item a {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    padding: 10px 16px;
    display: block;
    text-decoration: none !important;
    /* CRÍTICO */
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    position: relative !important;
}

.navbar-nav .nav-item a:hover,
.navbar-nav .nav-item a.active {
    color: #10b981;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
}

/* SUBMENU - CRÍTICO: GARANTIR FUNCIONALIDADE */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #252936 !important;
    min-width: 240px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-top: 2px solid #10b981;
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    /* Inicialmente escondido */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    /* CRÍTICO */
    pointer-events: auto !important;
    z-index: 10000 !important;
}

/* Mostrar submenu ao hover */
.nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    /* CRÍTICO */
    pointer-events: auto !important;
    z-index: 10000 !important;
    background: transparent !important;
}

.sub-menu li a {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    color: #a8adb7 !important;
    display: block;
    text-decoration: none !important;
    border-left: 2px solid transparent;
    /* CRÍTICO */
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    position: relative !important;
}

.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #10b981 !important;
    border-left-color: #2563eb;
    text-decoration: none !important;
}

/* SLIDER */
.single-slider {
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;
}

.single-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.88) 0%, rgba(16, 185, 129, 0.88) 100%);
    pointer-events: none;
}

.slider-cont {
    position: relative;
    z-index: 2;
}

.slider-cont h2 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.slider-cont p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
}

/* PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--education-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.preloader.fade-out {
    opacity: 0;
}

/* MOBILE */
.navbar-toggler {
    border: 2px solid #fff;
    padding: 6px 8px;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    width: auto;
    display: inline-block;
    position: relative;
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.navbar-toggler .icon-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler.active .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.navbar-toggler.active .icon-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 991px) {

    /* Logo alinhado à esquerda no mobile */
    .header-logo-support {
        padding: 10px 0;
    }

    .header-logo-support .logo {
        text-align: left !important;
    }

    .header-logo-support .logo img {
        max-height: 28px;
    }

    .header-logo-support .row {
        align-items: center;
    }

    .header-logo-support .support-button {
        display: none !important;
    }

    /* Botão hamburger visível e à direita */
    .navbar-toggler {
        display: block;
        margin-left: auto;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Navbar com flexbox */
    .navigation {
        position: relative;
    }

    .navigation .container {
        position: relative;
    }

    .navigation .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
        min-height: 50px;
    }

    .navbar-collapse {
        background: rgba(30, 64, 175, 0.98);
        padding: 20px;
        margin-top: 10px;
        border-radius: 10px;
        width: 100%;
        display: none;
    }

    .navbar-collapse.show {
        display: block !important;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .navbar-nav .nav-item {
        margin: 0;
        width: 100%;
    }

    .navbar-nav .nav-item a {
        color: #fff !important;
        padding: 12px 15px;
    }

    .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: rgba(255, 255, 255, 0.1) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        margin-top: 5px;
    }

    .sub-menu.show {
        display: block !important;
    }

    .sub-menu li a {
        color: #fff !important;
        padding: 10px 15px;
    }

    .sub-menu li a:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
    }

    /* Slider responsivo */
    .single-slider {
        min-height: 400px;
    }

    .slider-cont h2 {
        font-size: 32px;
    }

    .slider-cont p {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .header-logo-support .logo img {
        max-height: 30px;
    }

    .navbar-toggler {
        padding: 5px 7px;
    }

    .navbar-toggler .icon-bar {
        width: 18px;
        height: 2px;
        margin: 3px 0;
    }

    .navigation .navbar {
        min-height: 45px;
    }

    .single-slider {
        min-height: 350px;
    }

    .slider-cont h2 {
        font-size: 28px;
    }

    .slider-cont p {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .header-logo-support .logo img {
        max-height: 28px;
    }

    .navbar-toggler {
        padding: 4px 6px;
        right: 10px;
    }

    .navbar-toggler .icon-bar {
        width: 16px;
        height: 2px;
        margin: 2px 0;
    }

    .navigation .navbar {
        min-height: 40px;
    }

    .navbar-collapse {
        padding: 15px;
    }

    .navbar-nav .nav-item a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .sub-menu li a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .single-slider {
        min-height: 300px;
    }

    .slider-cont h2 {
        font-size: 24px;
    }

    .slider-cont p {
        font-size: 13px;
    }
}