/* --- CONFIGURAÇÕES GLOBAIS E DE MARCA --- */
:root {
    --cor-fundo: #595654;
    --cor-primaria: #8c8372;
    --cor-texto-principal: #ece8db;
    --cor-texto-secundario: #f2f2f2;
    --cor-fundo-card: #6e6a68;
    --fonte-titulos: 'Lora', serif;
    --fonte-corpo: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--fonte-corpo);
    background-color: var(--cor-fundo);
    color: var(--cor-texto-principal);
    -webkit-font-smoothing: antialiased;
}

/* --- CABEÇALHO --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    position: absolute;
    width: 100%;
    top: 0; 
    left: 0;
    z-index: 10;
}
.logo { height: 35px; opacity: 0.9; }
.user-menu { display: flex; align-items: center; font-weight: 600; }
.user-name { margin-right: 15px; font-size: 0.9em; }
.user-avatar .fa-user-circle { font-size: 2.2em; color: var(--cor-texto-secundario); }

/* --- SEÇÃO HERO COM CARROSSEL (ATUALIZADO) --- */
.hero-carousel {
    height: 70vh;
    width: 100%;
}
.swiper-container {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    position: relative; /* Essencial para o posicionamento da imagem e do texto */
    overflow: hidden; /* Garante que nada vaze para fora do slide */
    display: flex;
    align-items: center;
    padding: 0 60px;
}
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* A imagem cobre todo o slide, cortando o mínimo possível */
    object-position: center; /* Centraliza a imagem. Mude para "top center" se o topo for mais importante */
    z-index: 1; /* Fica no fundo */
}
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Camada escura uniforme */
    z-index: 2; /* Fica entre a imagem e o texto */
}
.slide-content {
    position: relative;
    z-index: 3; /* Fica na frente de tudo */
    max-width: 650px;
}
.hero-title {
    font-family: var(--fonte-titulos);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--cor-texto-secundario);
    line-height: 1.1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Sombra mais sutil */
}
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}
.cta-button {
    font-family: var(--fonte-corpo);
    background-color: var(--cor-primaria);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover { background-color: #a19782; transform: translateY(-2px); }
.swiper-button-next, .swiper-button-prev { color: var(--cor-texto-secundario) !important; z-index: 4; }

/* --- CATÁLOGO DE CURSOS --- */
.main-content { padding-top: 0; }
.courses-catalog { padding: 40px 60px; }
.category-title {
    font-family: var(--fonte-titulos);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    margin-top: 20px;
    color: var(--cor-texto-secundario);
}
.courses-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.course-card {
    background-color: var(--cor-fundo-card);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--cor-texto-principal);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.course-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.course-title { font-size: 1.1rem; font-weight: 600; padding: 15px 20px 5px 20px; color: var(--cor-texto-secundario); }
.course-instructor { font-size: 0.9rem; font-weight: 400; padding: 0 20px 15px 20px; }

/* --- RODAPÉ --- */
.main-footer { text-align: center; padding: 40px 20px; margin-top: 40px; font-size: 0.9em; color: #a19782; }

/* --- RESPONSIVIDADE PARA MOBILE --- */
@media (max-width: 768px) {
    .main-header, .swiper-slide, .courses-catalog { padding-left: 20px; padding-right: 20px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .courses-row { grid-template-columns: 1fr; }
}