:root {
    --primary: #ea580c; /* Laranja AESA */
    --primary-hover: #c2410c;
    --secondary: #fbbf24; /* Amarelo AESA */
    --dark: #1c1917;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout Responsivo */
.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Moderno */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

/* Menu Mobile */
/* Estado inicial do menu */
.nav-menu {
    display: none;
    /* escondido por padrão */
    gap: 2rem;
    list-style: none;
    flex-direction: column;
    /* mobile em coluna */
    background: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.nav-link li:hover {
    color: var(--primary);
}

/* Quando ativo via JS */
.nav-menu.active {
    display: flex;
}

/* Links dentro do menu mobile */
.nav-menu a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Botão hambúrguer visível apenas em mobile */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

/* Em telas grandes, menu sempre visível e botão escondido */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
        width: auto;
    }

    .nav-menu a {
        border: none;
        padding: 0;
    }

    .mobile-menu-btn {
        display: none !important;
    }

   
}

@media (max-width: 768px) {
    #banner-carousel {
            height: 173px !important;
        }
}

/* Componentes de UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Grid de Artigos/Repositório */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

/* Fonte e cores principais */
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Cabeçalho */
.cabecalho {
    background: linear-gradient(135deg, #ad5c00, #ff7b00);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cabecalho h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Conteúdo principal */
.conteudo {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

/* Blocos de curso */
.cursos {
    flex: 1 1 45%;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cursos h2 {
    color: #ad5c00;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    border-left: 4px solid #ad5c00;
    padding-left: 0.5rem;
}

.cursos h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #ff8800;
}

.cursos p {
    margin: 0.5rem 0 1rem;
    font-size: 1rem;
    color: #555;
}

/* Imagem do curso */
.imagem-curso {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Botão */
.btnn {
    background: #ad6800;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btnn:hover {
    background: #ff8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .conteudo {
        flex-direction: column;
    }

    .cursos {
        flex: 1 1 100%;
    }

    .cabecalho h1 {
        font-size: 2rem;
    }
}

/* Submenu escondido inicialmente */
.nav-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: absolute;
    /* para desktop */
    background: #fff;
    border: 1px solid #ccc;
}

/* Desktop: abre no hover */
@media (min-width: 992px) {
    .nav-menu li.menu-item-has-children:hover>.sub-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile: abre com classe .open */
@media (max-width: 991px) {
    .nav-menu .sub-menu {
        position: static;
        /* não sobrepõe, fica dentro do fluxo */
        border: none;
    }

    .nav-menu .sub-menu.open {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* seta ao lado do Vestibular */
.arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* gira a seta quando ativo */
.vestibular-toggle.active .arrow {
    transform: rotate(180deg);
}

/* Links dentro do submenu */
.nav-menu .sub-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.nav-menu .sub-menu li a:hover {
    background: #f0f0f0;
}

.nav-menu li.menu-item-has-children {
    position: relative;
}