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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    line-height: 1.6;
}

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

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 160px; /* Cabeçalho bem imponente */
}

.logo {
    display: flex;
    align-items: center;
}

/* Logo positioned absolutely to overflow without expanding navbar height */
.logo-img {
    height: 140px; /* Logo aumentada de forma considerável */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2.2rem;
    color: #2a5298;
}

.logo-fallback, .logo-fallback-footer {
    color: #2a5298;
}
.logo-fallback { font-size: 3.5rem; }
.logo-fallback-footer { font-size: 2.5rem; margin-right: 10px; }

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.logo-img-footer {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: #2a5298;
}

.user-name {
    color: #2a5298;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login, .btn-logout {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white !important;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-login:hover, .btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-logout {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1504052434569-70ad5836ab65?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.95) 100%);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #f7fafc;
}

/* ==================== INFO SECTION ==================== */
.info-section {
    padding: 5rem 0;
    background: white;
}

.info-header {
    text-align: center;
    margin-bottom: 3rem;
}

.info-header h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.info-header p {
    color: #718096;
    font-size: 1.1rem;
}

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

.info-card {
    text-align: center;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 15px;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 2.5rem;
    color: white;
}

.info-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #718096;
}

/* ==================== VIDEO SECTION ==================== */
.video-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.video-header {
    text-align: center;
    margin-bottom: 3rem;
}

.video-header h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.video-header p {
    color: #718096;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* ==================== CURSOS PREVIEW ==================== */
.cursos-preview {
    padding: 5rem 0;
    background: white;
}

.cursos-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cursos-header h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.cursos-header p {
    color: #718096;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.curso-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.curso-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.curso-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.curso-card:hover .curso-img img {
    transform: scale(1.1);
}

.curso-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #2a5298;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.curso-info {
    padding: 1.5rem;
}

.curso-info h3 {
    margin-bottom: 0.5rem;
    color: #1e3c72;
    font-size: 1.2rem;
}

.professor {
    color: #2a5298;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.descricao {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.curso-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #a0aec0;
}

.curso-meta i {
    margin-right: 5px;
}

.curso-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.preco {
    font-size: 1.5rem;
    font-weight: bold;
    color: #48bb78;
}

.btn-ver-curso {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-ver-curso:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cursos-more {
    text-align: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: transparent;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid #1e3c72;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem !important;
    color: #2d3748 !important;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.bio-content p {
    color: #4a5568;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    display: grid;
    gap: 1.5rem;
}

.about-features li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.about-features li i {
    font-size: 1.5rem;
    color: #667eea;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.about-features li div {
    display: flex;
    flex-direction: column;
}

.about-features li strong {
    color: #1e3c72;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.about-features li span {
    color: #718096;
    font-size: 0.95rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat {
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}

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

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #667eea 10%, transparent 10%);
    background-size: 15px 15px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(30, 60, 114, 0.2);
    border: 8px solid white;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 992px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 1.5rem 20px;
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-img {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .info-grid, .cursos-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }

    /* Grids Administrativos e Dashboards */
    .dashboard-grid, .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* Responsividade em Tabelas */
    .table-container {
        overflow-x: auto;
        display: block;
        width: 100%;
    }
    
    .admin-table {
        min-width: 600px;
    }

    /* Ajustes Gerais de Containers */
    .admin-container {
        padding: 1rem 0;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .btn-login, .btn-logout, .dropdown-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-content {
        width: 100%;
        position: relative;
    }

    .hero-section {
        min-height: 60vh;
    }
}

/* Botões de ação */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #667eea;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ==================== DROPDOWN MENU ==================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.dropdown-btn i:first-child {
    font-size: 1.1rem;
}

.dropdown-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-btn i:last-child {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
}

.dropdown-content.open {
    display: block;
}

.dropdown-content a {
    color: #4a5568;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dropdown-content a i {
    width: 20px;
    color: #667eea;
}

.dropdown-content a:hover {
    background: #f7fafc;
    color: #667eea;
    padding-left: 1.5rem;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.3rem 0;
}

.dropdown-logout {
    color: #e53e3e !important;
}

.dropdown-logout i {
    color: #e53e3e !important;
}

.dropdown-logout:hover {
    background: #fff5f5 !important;
    color: #c53030 !important;
}

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

/* ==================== NAVEGAÇÃO ATIVA ==================== */
.nav-link {
    position: relative;
}

.nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}