     :root {
            --primary: #007bff;
            --primary-dark: #0056b3;
            --secondary: #6c757d;
            --success: #28a745;
            --info: #17a2b8;
            --warning: #ffc107;
            --danger: #dc3545;
            --light: #f8f9fa;
            --dark: #343a40;
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-hero: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
            --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
            --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
            --border-radius: 0.375rem;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        [data-theme="dark"] {
            --bs-body-bg: #1a1a1a;
            --bs-body-color: #ffffff;
            --bs-dark: #ffffff;
            --light: #2d2d2d;
        }

        * {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.7;
            overflow-x: hidden;
        }

        /* Navigation Styles */
        .fecesa-navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1030;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            background: rgba(255, 255, 255, 0.9) !important;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            padding: 0.75rem 0;
        }

        [data-theme="dark"] .fecesa-navbar {
            background: rgba(26, 26, 26, 0.9) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .fecesa-navbar.scrolled {
            background: rgba(255, 255, 255, 0.95) !important;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            padding: 0.5rem 0;
        }

        [data-theme="dark"] .fecesa-navbar.scrolled {
            background: rgba(26, 26, 26, 0.95) !important;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
        }

        .navbar-brand {
            font-weight: 700;
            color: var(--dark) !important;
            transition: var(--transition);
        }

        [data-theme="dark"] .navbar-brand {
            color: white !important;
        }

        .navbar-brand img {
            transition: var(--transition);
        }

        .navbar-brand:hover img {
            transform: scale(1.05) rotate(5deg);
        }

        .navbar-nav {
            gap: 0.25rem;
        }

        .nav-link {
            transition: var(--transition);
            border-radius: 8px;
            margin: 0 0.125rem;
            padding: 0.5rem 1rem !important;
            font-weight: 500;
            color: var(--dark) !important;
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .nav-link {
            color: rgba(255, 255, 255, 0.9) !important;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .nav-link:hover::before {
            left: 100%;
        }

        .nav-link:hover {
            background: var(--primary);
            color: white !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        }

        .nav-link.active {
            background: var(--primary);
            color: white !important;
            box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
        }

        .dropdown-menu {
            border: none;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            margin-top: 0.5rem;
            padding: 1rem;
            min-width: 280px;
        }

        [data-theme="dark"] .dropdown-menu {
            background: rgba(45, 45, 45, 0.95);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .dropdown-header {
            color: var(--primary);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 1px;
            padding: 0.5rem 0;
            border-bottom: 2px solid var(--primary);
            margin-bottom: 0.5rem;
        }

        .dropdown-item {
            border-radius: 8px;
            padding: 0.75rem 1rem;
            margin: 0.25rem 0;
            transition: var(--transition);
            color: var(--dark) !important;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        [data-theme="dark"] .dropdown-item {
            color: rgba(255, 255, 255, 0.9) !important;
        }

        .dropdown-item:hover {
            background: var(--primary);
            color: white !important;
            transform: translateX(10px);
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
        }

        .dropdown-item i {
            width: 20px;
            text-align: center;
            font-size: 1rem;
        }

        /* Theme Toggle */
        .theme-toggle {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(0, 123, 255, 0.3);
            color: var(--dark);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            cursor: pointer;
        }

        [data-theme="dark"] .theme-toggle {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .theme-toggle:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.1) rotate(15deg);
            border-color: var(--primary);
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        }

        /* Auth buttons */
        .auth-buttons .btn {
            border-radius: 25px;
            padding: 0.5rem 1.25rem;
            font-weight: 500;
            transition: var(--transition);
            border: 2px solid transparent;
            margin-left: 0.5rem;
        }

        .btn-outline-primary {
            border-color: var(--primary);
            color: var(--primary);
            background: transparent;
        }

        .btn-outline-primary:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        }

        .btn-primary {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            border-color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
        }

        /* Mobile Styles */
        @media (max-width: 991.98px) {
            body {
                padding-top: 70px;
            }
            
            .navbar-nav {
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(20px);
                border-radius: 12px;
                padding: 1rem;
                margin-top: 1rem;
                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            }
            
            [data-theme="dark"] .navbar-nav {
                background: rgba(45, 45, 45, 0.95);
            }

            .nav-link {
                margin: 0.25rem 0;
            }
            
            .auth-buttons {
                margin-top: 1rem;
                padding-top: 1rem;
                border-top: 1px solid rgba(0, 0, 0, 0.1);
            }
            
            [data-theme="dark"] .auth-buttons {
                border-top-color: rgba(255, 255, 255, 0.1);
            }
        }

        .navbar-toggler {
            border: none;
            padding: 0.375rem 0.5rem;
            border-radius: 8px;
            transition: var(--transition);
        }

        .navbar-toggler:focus {
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        }

        .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.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        [data-theme="dark"] .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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }
        /* Hero Section */
        .hero-section {
            background: var(--gradient-hero);
            color: white;
            padding: 120px 0 80px;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
            animation: float 20s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .hero-section .container {
            position: relative;
            z-index: 2;
        }

        .hero-section img {
            transition: var(--transition);
            border: 5px solid rgba(255, 255, 255, 0.2);
        }

        .hero-section img:hover {
            transform: scale(1.05) rotate(2deg);
        }

        /* Card Styles */
        .program-card, .news-card, .resource-card {
            transition: var(--transition);
            border-radius: var(--border-radius);
            overflow: hidden;
        }

        .program-card:hover, .news-card:hover, .resource-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
        }

        .icon-wrapper {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: var(--transition);
        }

        .icon-wrapper-lg {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            transition: var(--transition);
        }

        .program-card:hover .icon-wrapper,
        .resource-card:hover .icon-wrapper-lg {
            transform: scale(1.2) rotate(10deg);
        }

        /* Button Styles */
        .btn {
            border-radius: 50px;
            padding: 0.75rem 1.5rem;
            font-weight: 500;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .btn-primary {
            background: var(--gradient-primary);
            border: none;
        }

        .btn-primary:hover {
            background: var(--gradient-primary);
            filter: brightness(1.1);
        }

        /* Theme Toggle */
        .icon-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            cursor: pointer;
        }

        .icon-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        /* News Section */
        .news-card img {
            height: 200px;
            object-fit: cover;
            transition: var(--transition);
        }

        .news-card:hover img {
            transform: scale(1.1);
        }

        /* Testimonials */
        .testimonials-section {
            background: var(--gradient-primary);
            position: relative;
        }

        .testimonial-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--border-radius);
            backdrop-filter: blur(10px);
        }

        /* CTA Sections */
        .cta-section {
            background: var(--gradient-primary) !important;
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
        }

        /* Footer */
        .footer {
            background: #1a1a1a !important;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }

        /* Back to Top */
        .btn-back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .btn-back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .btn-back-to-top:hover {
            transform: translateY(-5px);
        }

        /* Loading Animation */
        .loading {
            opacity: 0;
            transform: translateY(30px);
            transition: var(--transition);
        }

        .loading.loaded {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-section {
                padding: 80px 0 60px;
                text-align: center;
            }
            
            .display-3 {
                font-size: 2rem;
            }
            
            .btn-back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
            }
        }

        /* Performance optimizations */
        img {
            max-width: 100%;
            height: auto;
        }

        .lazy {
            opacity: 0;
            transition: opacity 0.3s;
        }

        .lazy.loaded {
            opacity: 1;
        }

        /* Focus styles for accessibility */
        .btn:focus,
        .nav-link:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        /* Print styles */
        @media print {
            .navbar, .btn-back-to-top, .cta-section {
                display: none !important;
            }
        }

        /* Ensure loading animations work */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.fecesa-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

[data-theme="dark"] .fecesa-navbar.scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Back to top button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}
/* Resource Modal Styles */
.resource-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-btn, .year-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    text-align: center;
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid #dee2e6;
    color: #495057;
    text-decoration: none;
}

.course-btn:hover, .year-btn:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
    text-decoration: none;
}

.course-btn i, .year-btn i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.resource-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.resource-item:hover {
    border-left-color: #007bff;
    background-color: #f8f9fa;
}

.file-icon {
    width: 40px;
    text-align: center;
    font-size: 1.25rem;
}

.resource-list {
    max-height: 300px;
    overflow-y: auto;
}

.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px 15px;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.modal-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-nav-btn {
    padding: 8px 16px;
    border-radius: 5px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.modal-nav-btn:hover {
    background-color: #e9ecef;
}

.modal-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}