/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* PALETA DE CORES SÓLIDA E PROFISSIONAL */
:root {
    --teal: #009688;
    --cyan: #00BCD4;
    --purple: #8E24AA;
    --dark-purple: #4A148C;
    --dark-gray: #2d2d2d;
    --light-gray: #e9ecef;
}

/* ================= HEADER ================= */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 85px; 
    width: auto;
    display: block;
}

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

.nav-links a {
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--teal);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-portal {
    background-color: #555;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-portal:hover {
    background-color: var(--teal);
}

.social-icons a {
    color: #888;
    margin-left: 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--teal);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--teal);
    cursor: pointer;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 600px; /* Altura generosa para o vídeo aparecer por completo */
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 50px; /* Garante margem inferior para os cartões */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-bottom: 0; /* Removida a margem negativa que causava o corte */
}

/* BLOCOS DO HERO CLAROS TRANSLÚCIDOS COM ESPAÇAMENTO PERFEITO */
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-card {
    text-align: center;
    padding: 30px 15px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.feature-card:last-child {
    border-right: none;
}

.feature-card:hover {
    background: var(--teal);
}

.feature-card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 0.85rem;
    color: #f8f8f8;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1.3;
}

/* ================= MAIN CONTENT ================= */
.main-content {
    padding: 60px 20px 40px; /* Ajustado o topo para fluir perfeitamente após o hero */
}

.section-title {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 25px;
    border-left: 5px solid var(--teal);
    padding-left: 10px;
}

/* ================= BANNERS REESTRUTURADOS ================= */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.banner-card {
    border-radius: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-4px);
}

.teal-bg { background-color: var(--teal); }
.purple-bg { background-color: var(--purple); }
.cyan-bg { background-color: var(--cyan); }
.dark-purple-bg { background-color: var(--dark-purple); }

.banner-content-inner {
    padding: 30px 35px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.banner-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.banner-text p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.5;
    max-width: 68%;
}

.banner-qrcode {
    position: absolute;
    right: 30px;
    bottom: 25px;
    z-index: 3;
}

.banner-qrcode img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    background: #fff;
    padding: 5px;
    display: block;
}

.banner-image i {
    font-size: 6rem;
    color: #ffffff;
    opacity: 0.15;
    position: absolute;
    right: 25px;
    bottom: 15px;
    z-index: 1;
}

.btn-outline {
    display: inline-block;
    padding: 9px 24px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    background: transparent;
    transition: all 0.3s ease;
    text-align: center;
    width: fit-content;
}

.btn-outline:hover {
    background: #ffffff;
    color: #2d2d2d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================= COURSES SECTION ================= */
.courses-section {
    margin-bottom: 50px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.course-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--teal);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: bold;
    color: #444;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.course-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--teal);
}

/* ================= NEWS SECTION ================= */
.news-section {
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content a {
    color: var(--teal);
    font-weight: bold;
    font-size: 0.9rem;
}

.news-content a i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.news-card:hover .news-content a i {
    margin-left: 10px;
}

/* ================= FOOTER ================= */
.site-footer {
    background: var(--dark-gray);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--cyan);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.map-container iframe {
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVO ================= */
@media (max-width: 992px) {
    .banners-grid, .courses-grid, .news-grid, .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .social-icons {
        display: none;
    }

    .menu-toggle {
        display: block;
        padding: 5px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0;
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links a {
        padding: 18px 20px;
        border-bottom: 1px solid var(--light-gray);
        text-align: center;
        width: 100%;
        font-size: 1.1rem;
        color: var(--dark-gray);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .banners-grid, .courses-grid, .news-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 600px; 
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        padding: 15px 10px;
    }

    .feature-card i {
        font-size: 1.5rem;
    }
    
    .hero-content {
        margin-bottom: 0;
        padding-bottom: 20px;
    }

    .nav-container {
        height: 95px;
    }

    .logo img {
        height: 65px; 
    }

    .btn-portal {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .banner-content-inner {
        padding: 25px;
        min-height: auto;
    }

    .banner-text p {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .banner-qrcode {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 15px;
    }

    .banner-qrcode img {
        width: 85px;
        height: 85px;
    }
}