:root {
    --primary-color: #004c8c; /* Azul Institucional */
    --secondary-color: #002d5c; /* Azul Escuro */
    --accent-color: #00aaff; /* Azul Brilhante para detalhes */
    --text-color: #333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-blue: linear-gradient(135deg, #004c8c 0%, #002d5c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Utilitários */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }

/* Botões */
.btn-primary, .btn-secondary, .btn-light, .btn-outline, .btn-whatsapp {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 800;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    font-size: 0.8rem;
    padding: 8px 15px;
    margin-left: 10px;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--gradient-blue);
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
}

.btn-nav::after { display: none; }

/* Menu Mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('assets/img.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,45,92,0.9) 0%, rgba(0,76,140,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text span {
    color: var(--accent-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Sobre Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.styled-video {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.section-subtitle {
    color: var(--accent-color);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #666;
    line-height: 1.6;
}
.accordion-header.active + .accordion-body {
    max-height: 300px; /* Ajuste se necessário */
}

/* CTA Bolsa */
.cta-bolsa {
    background: var(--gradient-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.highlight-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.badges-container img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
}

/* Cursos Grid */
.bg-light { background-color: #f9fbfd; }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.course-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-text {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
}

/* Stats */
.stats-section {
    background: url('assets/img.jpg') fixed center/cover;
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.overlay-stats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 92, 0.85);
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    z-index: 2;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* Locations */
.locations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.location-card {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-weight: 600;
    color: var(--secondary-color);
    border: 1px solid #eee;
    transition: var(--transition);
}

.location-card:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Diferenciais */
.bg-dark { background-color: #1a1a1a; }

.differentials-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-height: 600px;
    overflow-y: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.differentials-wrapper.expanded {
    max-height: 5000px; /* Valor alto suficiente para mostrar tudo */
}

.diff-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    color: #ccc;
    backdrop-filter: blur(5px);
}

.diff-card strong { color: white; display: block; margin-bottom: 5px; }

/* Footer */
footer {
    background: #111;
    color: #aaa;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-list li {
    list-style: none;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.footer-bottom a { color: var(--accent-color); text-decoration: none; }

#back-to-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.float-whatsapp:hover { transform: scale(1.1); }

/* Animações (Classes utilitárias) */
.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-left { transform: translateX(-50px); }
.fade-in-right { transform: translateX(50px); }

.visible {
    opacity: 1;
    transform: translate(0,0);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-list {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding-top: 50px;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-list.active { right: 0; }
    
    .hero-text h1 { font-size: 2.2rem; }
    
    .split-layout, .cta-grid { grid-template-columns: 1fr; }
    
    .cta-text { order: 2; }
    .cta-badges { order: 1; margin-bottom: 20px; }
}