/*
    Body
*/

body {
    font-family: Poppins;
}

img {
  image-rendering: optimizeQuality; /* deixa o navegador escolher a melhor interpolação */
  max-width: 100%;       /* responsivo sem estourar */
  height: auto;
}

/*
    Configurações da NavBar
*/

.navbar-container {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
}

.navbar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.navbar-title {
    font-weight: 600;
}

.navbar-links {
    color: rgb(80, 80, 80);
    font-size: 14pt;
    font-weight: 500;
}

.navbar-links-animation {
    transition: 0.3s;
    will-change: transform;
}

.navbar-links-animation:hover {
    transform: scale(1.15);
}

.navbar-icon {
    display: flex;
    /* Troque de inline para flex */
    justify-content: center;
    /* Centraliza horizontalmente */
    align-items: center;
    /* Centraliza verticalmente */
    color: white;
    font-size: 15pt;
    background-color: rgb(0, 0, 0);
    border-radius: 50%;
    height: 35px;
    width: 35px;
}

.dropdown-box {
    background-color: rgba(255, 255, 255);
    backdrop-filter: blur(15px);
    box-shadow: 4px 4px 6px rgba(0, 42, 255, 0.3);
}

/* User button e dropdown - visíveis apenas no desktop (768px+) */
/* A classe 'hidden md:block' no HTML já controla isso, mas adicionamos regras extras para garantir */
@media (max-width: 767px) {
    /* Esconder UserIcon e dropdown no mobile */
    #userIcon,
    button#userIcon,
    #userDropdown {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Mobile Menu - visível apenas no mobile */
@media (min-width: 768px) {
    #mobileMenuBtn {
        display: none !important;
    }
    
    #mobileMenu {
        display: none !important;
    }
}

/* Mobile Menu Styles */
#mobileMenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 9999;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

#mobileMenu.active {
    display: flex !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #mobileMenu {
        background-color: #111827;
    }
}

/* Prevenir scroll do body quando menu aberto */
body.menu-open {
    overflow: hidden;
}

/* Animação do botão hamburguer */
#mobileMenuBtn {
    transition: all 0.3s ease;
}

#mobileMenuBtn:active {
    transform: scale(0.95);
}

#mobileMenuBtn.active {
    background-color: rgb(250, 204, 21) !important;
}

/* Bottom Navigation Bar - Apenas Mobile */
#bottomNav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    height: 64px !important;
}

#bottomNav .flex {
    background-color: transparent !important;
    height: 64px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
}

.bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 4px !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-radius: 12px !important;
    min-width: 60px !important;
    position: relative !important;
    flex: 1 !important;
}

.bottom-nav-item:hover {
    background-color: rgba(0, 102, 204, 0.05) !important;
}

.bottom-nav-item i {
    color: #9ca3af !important;
    transition: color 0.2s ease !important;
    font-size: 1.25rem !important;
}

.bottom-nav-item span {
    color: #9ca3af !important;
    transition: color 0.2s ease !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.bottom-nav-item:active {
    transform: scale(0.95) !important;
    background-color: rgba(0, 102, 204, 0.1) !important;
}

.bottom-nav-item.active {
    color: #0066CC !important;
}

.bottom-nav-item.active i {
    color: #0066CC !important;
}

.bottom-nav-item.active span {
    color: #0066CC !important;
    font-weight: 600 !important;
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #0066CC, #0052A3);
    border-radius: 0 0 4px 4px;
}

/* Adicionar padding bottom no conteúdo para não ficar atrás da bottom nav */
@media (max-width: 767px) {
    body {
        padding-bottom: 80px !important;
    }
    
    /* Garantir que o conteúdo principal não fique atrás da bottom nav */
    main,
    .container,
    section:last-of-type {
        margin-bottom: 0 !important;
    }
}

/* Esconder bottom nav no desktop */
@media (min-width: 768px) {
    #bottomNav {
        display: none !important;
    }
}


/*
Hero Initial Configurations (Slide Hero)
*/
.slide-dots {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}

.slide-img {
    background-size: cover;
    background-repeat: no-repeat;
}

/*
Stats Section
*/

.stats-section {
    min-height: 100vh;
    background-color: rgb(28, 126, 202);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stats-title {
    padding: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 30pt;
    font-weight: 700;
}

.stats-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.stats-desc {
    margin-top: 50px;
    color: white;
}

.stats-button {
    margin-top: 70px;
    color: #ffffff;
    border-color: 1px solid white;
    border-radius: 16px;
}

.stats-button:hover {
    color: #1C7ECA;
    background-color: rgb(255, 255, 255);
}

.stats-svg {
    background-image: url("../img/divisor.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    background-color: white;
    opacity: 0.1;
    filter: blur(100px);
    z-index: -1;
}

.stats-section::before {
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
}

.stats-section::after {
    width: 300px;
    height: 300px;
    bottom: 80px;
    right: 60px;
}


/*
Elementary to High School Education Section
*/

.education-section {
    margin-top: 30px;
    min-height: 100vh;
}

.education-card {
    height: auto;
    will-change: transform;
    transition: 0.3s;
}

.education-card:hover {
    transform: scale(1.05);
}

.education-learn-more {
    color: #1C7ECA;
}

.education-learn-more:hover {
    color: rgb(20, 70, 112);
    text-decoration: underline;
}

.education-learn-more-arrow {
    color: #1C7ECA;
}

/*
    Our highlights / Our News
*/

.highlights-see-more {
    background-color: #2094ee;
    transition: 0.45s;
}

.highlights-see-more:hover {
    background-color: #1C7ECA;
    color: white;
}

.noticias-card {
    transition: 0.3s;
    max-height: 140px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.noticias-card:hover {
    transform: scale(1.025);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.noticias-card img {
    transition: all 0.3s ease;
}

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

.noticias-card .text-xs {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Container dos cards de notícias */
#newsCardsContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Botão "Ver todas as notícias" centralizado */
#newsCardsContainer + div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    width: 100%;
}

/* Ajustar espaçamento dos cards de destaque */
.destaque-card {
    transition: 0.3s;
    margin-bottom: 0.5rem;
}

.destaque-card:last-child {
    margin-bottom: 0;
}

/* Reduzir espaçamento do container de destaques */

/* Utilitários para truncamento de texto */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



.destaque-badge {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    z-index: 10;
    font-weight: 700;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fade-in-up 0.7s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* Garante altura igual para ambas as colunas em telas grandes */
@media (min-width: 1024px) {
    .lg\:grid-cols-2>div {
        height: 100%;
    }
}

/*
    Technical Courses
*/

.courses-cards {
    will-change: transform;
    transition: 0.3s;
}

.courses-cards:hover {
    transform: scale(1.05);
}

.courses-learn-more {
    color: #1C7ECA;
}

.courses-learn-more:hover {
    color: rgb(20, 70, 112);
    text-decoration: underline;
}

.courses-learn-more-arrow {
    color: #1C7ECA;
}

/*
Footer Section
*/

.footer-alerts {
    border: 2px solid rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

.footer-alerts-input {
    border: 1px solid white;
}

.footer-alerts-button {
    background-color: transparent;
    color: #1C7ECA;
    border-radius: 16px;
    transition: 0.45s;
}

.footer-alerts-button:hover {
    background-color: #1C7ECA;
    color: white;
}

.footer-links {
    color: black;
}

.footer-links:hover {
    color: rgb(30, 110, 175);
    text-decoration: underline;
    transition: 0.3s;
}

.footer-links-border-bottom {
    border-bottom: 4px solid #1C7ECA;
    padding: 3px;
    border-radius: 0px 0px 3px 3px;
}

.footer-icons {
    color: #1C7ECA;
}

.footer-icons:hover {
    color: rgb(20, 70, 112);
}

/*
    Tamanhos de fonte customizados para o hero
    Adicionados para suportar tamanhos maiores que não existem no Tailwind
*/

.text-7xl {
    font-size: 4.5rem !important; /* 72px */
    line-height: 1 !important;
}

.text-8xl {
    font-size: 6rem !important; /* 96px */
    line-height: 1 !important;
}

.text-9xl {
    font-size: 8rem !important; /* 128px */
    line-height: 1 !important;
}

/*
    Garantir que gradientes funcionem corretamente
*/

.hero-preview {
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}