/* --- VARIAVEIS E RESET --- */
:root {
    /* Paleta Vermelha Profissional */
    --primary: #dc2626;       
    --primary-dark: #991b1b;  
    --accent: #0f172a;        
    
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --success: #16a34a;       
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-card: 16px;
    --radius-btn: 8px;
}

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

/* --- NOVA BARRA DE NAVEGAÇÃO --- */
.main-navbar {
    background-color: #f5f5f5; 
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100; 
}

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

.site-logo {
    max-height: 180px; 
    width: auto; 
    display: block;
}

.student-area-nav {
    position: relative; 
}

.main-navbar .btn-student {
    color: var(--primary);
    border: 2px solid var(--primary-light);
    background: white;
}
.main-navbar .btn-student:hover {
   background: var(--primary-light);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden; 
    width: 100%;
}

/* --- ÁREA DO ALUNO --- */
.student-area {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50; 
}

.btn-student {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.btn-student:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Popover do Menu do Aluno */
.student-menu {
    position: absolute;
    top: 120%; 
    right: 0;
    background: white;
    width: 260px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.student-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.menu-item:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

.menu-item i {
    font-size: 1.2rem;
    color: var(--text-light);
}

.menu-item:hover i {
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #7f1d1d 100%); 
    color: white;
    padding: 6rem 1.5rem 8rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tag {
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: inline-block;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}
.hero-shape {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-page);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.5);
}
.filter-wrapper {
    position: sticky;
    top: 20px;
    z-index: 100;
    display: flex;
    justify-content: center;
    margin: -3rem 1rem 3rem;
}
.filter-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.5);
}
.filter-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover { color: var(--primary); background: #f1f5f9; }

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); 
}

/* --- GRID E CARDS --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}
.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeUp 0.6s forwards;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.card-header {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.course-card:hover .card-header img { transform: scale(1.1); }
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.course-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.course-subtitle {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.features-list {
    list-style: none;
    margin-bottom: 1.5rem;
}
.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 0.925rem;
    color: #475569;
    line-height: 1.5;
}
.check-icon {
    color: var(--success);
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 2px;
}

.card-footer {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
    background: #ffffff;
}

.btn {
    padding: 12px;
    border-radius: var(--radius-btn);
    border: none;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

/* --- BOTÃO MATRICULE-SE (Verde) --- */
.btn-whatsapp {
    background-color: var(--success);
    color: white;
    flex: 1; /* Faz esse botão ocupar todo o espaço disponível */
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-whatsapp:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(22, 163, 74, 0.3);
}

.btn-plus {
    background-color: #f1f5f9;
    color: var(--accent);
    border: 1px solid #e2e8f0;
    width: 48px; /* Largura fixa para ficar quadrado */
    padding: 0;  /* Remove padding lateral */
    font-size: 1.2rem; /* Ícone maior */
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-plus:hover {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-info {
    width: 100%; /* Agora ocupa o card todo */
    background-color: #f1f5f9;
    color: var(--accent);
    border: 1px solid #e2e8f0;
}
.btn-info:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    text-decoration: none;
}
.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
}
.main-footer {
    background-color: var(--primary); 
    color: white;
    padding-top: 4rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-logo {
    max-height: 50px;
    filter: brightness(0) invert(1); /* Torna o logo branco se for preto/transparente */
    margin-bottom: 1.5rem;
    display: block;
}

/* Área dos Selos/Badges (MEC, ABF, etc) */
.footer-badges {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.footer-badges img {
    height: 50px; /* Altura fixa para alinhar os selos */
    width: auto;
    object-fit: contain;
    background: white; /* Caso as imagens tenham fundo transparente */
    border-radius: 4px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li, 
.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    line-height: 1.4;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; 
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .footer-logo {
        margin: 0 auto 1.5rem;
    }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    .main-navbar .navbar-content {
        padding: 0 1rem; 
        gap: 10px;       
    }

    .logo-container {
        max-width: 50%; 
        display: flex;
        align-items: center;
    }

    .site-logo {
        height: auto;        
        max-height: 85px;    
        width: auto;         
        max-width: 100%;     
        object-fit: contain; 
    }

    .student-area-nav {
        flex-shrink: 0; 
    }

    .main-navbar .btn-student span {
        display: inline-block;
        font-size: 0.8rem;
    }
    
    .main-navbar .btn-student {
        width: auto;       
        height: auto;
        padding: 8px 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50px;
        gap: 6px;
    }

    .hero {
        padding: 2rem 1rem 4rem;
        overflow: hidden; 
        width: 100%;
    }

    .hero-shape {
        width: 150%;
        left: 0;
    }
    
    .hero h1 { 
        font-size: 1.6rem; 
        margin-bottom: 0.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr; 
        padding: 0 1rem 6rem;
    }

    .filter-wrapper { 
        margin: -2rem 0 2rem; 
    }
    
    .filter-container { 
        justify-content: flex-start; 
        overflow-x: auto; 
        padding: 15px;
    }
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: white;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 4px; }
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10;
}
.modal-close:hover { background: #e2e8f0; color: #ef4444; }
.modal-header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 1px solid #e2e8f0;
}
.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent);
    margin: 10px 0;
}
.salary-box {
    background: #fef2f2; 
    border: 1px solid #fecaca;
    color: #991b1b;
}
.salary-box i { font-size: 1.5rem; }
.salary-box small { display: block; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; opacity: 0.8; }
.salary-box strong { display: block; font-size: 1.1rem; }
.modal-body { padding: 2rem; }
.modal-section { margin-bottom: 2rem; }
.modal-section h3 {
    font-size: 1.1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}
.section-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.opp-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.opp-card:hover { border-color: var(--primary); background: white; box-shadow: var(--shadow-sm); }
.opp-icon { color: var(--primary); font-size: 1.2rem; }
.divider { border: 0; border-top: 1px solid #e2e8f0; margin: 2rem 0; }
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    position: sticky;
    bottom: 0;
}
.full-width { 
    width: 100%; 
    justify-content: center; /* Centraliza */
    padding: 14px 24px; 
    font-size: 1.1rem; 
    gap: 10px; 
}
@media (max-width: 600px) {
    .modal-content { height: 100%; max-height: 100%; border-radius: 0; }
    .opportunities-grid { grid-template-columns: 1fr 1fr; }
    .modal-header h2 { font-size: 1.5rem; }
}
.btn-details {
    background-color: #f1f5f9;
    color: var(--accent);
    border: 1px solid #e2e8f0;
    padding: 0 20px; /* Espaçamento lateral para o texto caber */
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Espaço entre o ícone e o texto */
    text-decoration: none;
    transition: all 0.2s;
    border-radius: var(--radius-btn);
    font-weight: 600;
}

.btn-details:hover {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.social-highlight-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.social-btn-classic {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    width: 100%;
    
    /* Texto sempre branco e forte */
    color: #ffffff !important;
    text-decoration: none !important;
    
    border-radius: 8px; /* Cantos arredondados clássicos */
    font-size: 1rem;
    font-weight: 600;
    border: none;
    
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-btn-classic i {
    font-size: 1.5rem; /* Ícone grande */
}

.social-btn-classic.facebook {
    background-color: #1877F2; 
}

.social-btn-classic.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn-classic:hover {
    transform: translateY(-3px); /* Sobe um pouco */
    filter: brightness(1.1); /* Fica levemente mais brilhante */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}