:root {
    --primary-blue: #0f5ca8;
    --primary-gold: #ffd700;
    --primary-green: #2bb68c;
    --primary-red: #f14e4c;
    --dark-blue: #134B73;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header */
.header-enem {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-enem {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
    animation: fadeIn 1s ease-in-out;
}

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

.nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.8rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
    background: rgba(15, 92, 168, 0.1);
    transform: translateY(-2px);
}

/* Navbar responsive fix */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #dee2e6;
        padding-top: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 40px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold) 0%, #FFC107 100%);
}

.footer-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.support-logos {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.logo-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.support-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Accessibility improvements */
.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.navbar-brand:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading animation for logo */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .support-logos {
        justify-content: center;
    }

    .footer {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        text-align: center;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}