:root {
    --primary: #004a99; /* Azul FAEV */
    --primary-dark: #003366;
    --secondary: #1a1a1a;
    --text-body: #444444;
    --light-bg: #f0f4f8;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased; /* Melhora renderização de fonte */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOTÕES GERAIS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.btn-outline { border: 2px solid white; color: white; margin-left: 10px; }
.btn-outline:hover { background: white; color: var(--secondary); }

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--secondary);
    color: #ccc;
    font-size: 0.85rem;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span { margin-right: 20px; }
.top-info i { margin-right: 5px; color: var(--primary); }

.top-social a { margin-left: 15px; color: #ccc; }
.top-social a:hover { color: var(--primary); }

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img { height: 70px; }

.nav-menu { display: flex; gap: 30px; }

.nav-menu a {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

#menu-toggle, .menu-icon { display: none; }

/* --- HERO SECTION --- */
.hero {
    background: url('assets/polo.jpeg') no-repeat center center/cover;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero .badge {
    background: var(--primary);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- MEC VALIDATION --- */
.mec-validation {
    padding: 70px 0;
    margin-top: -10px;
    position: relative;
    z-index: 20;
}

.mec-box {
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.1);
    border-left: 6px solid var(--primary);
}

.mec-content {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
}

.mec-qr { width: 150px; }

.mec-text h3 { margin-bottom: 10px; color: var(--primary); }

.link-arrow {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

/* --- CURSOS & CARDS --- */
.courses-section { padding: 80px 0; }
.divider { width: 60px; height: 4px; background: var(--primary); margin: 15px auto 0; }
.text-center { text-align: center; margin-bottom: 60px; }

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    width: 100%;
    font-size: 2.2rem;
    flex-wrap: wrap;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.badge-inline {
    background-color: #ff9800;
    color: white;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    vertical-align: middle;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.center-grid { justify-content: center; }

.course-box {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
    height: 100%; /* Garante altura uniforme */
    display: flex;
    flex-direction: column;
}

.course-box:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary); }

/* Ajuste imagem completa */
.course-img {
    height: 220px;
    background-size: cover;
    background-position: top center;
    position: relative;
    width: 100%;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.course-badge.ead { background: #28a745 !important; }

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

.course-content .category {
    display: block;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.course-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.course-content p { font-size: 0.95rem; margin-bottom: 20px; color: #666; flex-grow: 1; }

/* Botão Saiba Mais Sólido */
.btn-link {
    display: block;
    width: fit-content;
    background-color: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.btn-link:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    color: white;
}

/* --- SWIPER AJUSTES --- */
.pos-swiper { padding: 20px 5px 50px 5px !important; }
.swiper-slide { height: auto; display: flex; }
.swiper-button-next, .swiper-button-prev { color: var(--primary); }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* CTA Extra */
.more-courses-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
}
.more-courses-cta p { font-weight: 600; margin-bottom: 15px; }

/* --- FOOTER --- */
footer { background: #111; color: #aaa; padding-top: 70px; }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid #222;
}

.footer-col h3 { color: white; margin-bottom: 25px; font-size: 1.2rem; }

.contact-list li { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-list i { color: var(--primary); margin-top: 5px; }

.footer-bottom { padding: 25px 0; text-align: center; font-size: 0.85rem; }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .nav-menu {
        position: absolute;
        top: 90px; left: 0; width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-menu li { border-bottom: 1px solid #eee; }
    .nav-menu a { display: block; padding: 15px 20px; }
    
    #menu-toggle:checked ~ .nav-menu { max-height: 350px; }
    .menu-icon { display: block; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

    .hero h1 { font-size: 2rem; }
    .hero-content { padding: 0 10px; }
    .hero-btns { display: flex; flex-direction: column; gap: 10px; }
    .btn-outline { margin-left: 0; }

    .mec-box { padding: 40px 20px; }
    .mec-content { flex-direction: column; text-align: center; gap: 30px; }
    
    .courses-grid { grid-template-columns: 1fr; }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}