/* GLOBAL SETTINGS */
body { font-family: 'Inter', sans-serif; background-color: #f8f9fa; color: #334155; }

/* DESKTOP STYLES (> 992px) */
@media (min-width: 992px) {
    .top-bar { 
        background: #0f172a; color: #cbd5e1; height: 40px; 
        display: flex; align-items: center; position: fixed; top: 0; width: 100%; 
        z-index: 1020; font-size: 0.85rem;
    }
    .top-bar i { color: #3b82f6; margin-right: 5px; }

    .navbar { 
        top: 40px; padding: 12px 0; 
        background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); 
        transition: all 0.3s ease-in-out; z-index: 1030; position: fixed; width: 100%;
    }
    .navbar.scrolled { top: 0; padding: 10px 0; background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
    
    .nav-link { font-weight: 500; color: #334155; margin: 0 10px; font-size: 0.95rem; }
    .nav-link:hover { color: #2563eb; }
    
    .desktop-buttons { margin-left: 20px; }
    .btn-nav { padding: 8px 25px; font-size: 0.9rem; border-radius: 50px; font-weight: 600; transition: 0.2s; }
    .btn-login { color: #334155; border: 1px solid #e2e8f0; margin-right: 8px; }
    .btn-login:hover { border-color: #2563eb; color: #2563eb; background: white; }
    .btn-primary-custom { background: #2563eb; color: white; border: 1px solid #2563eb; }
    .btn-primary-custom:hover { background: #1d4ed8; border-color: #1d4ed8; }

    .dropdown-menu { border: none; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-radius: 12px; margin-top: 15px; }
    .dropdown-item { padding: 8px 20px; font-size: 0.9rem; color: #475569; }
    .dropdown-item:hover { background: #f1f5f9; color: #2563eb; }
}

/* MOBILE STYLES (< 991px) */
@media (max-width: 991px) {
    .top-bar { display: none; }
    .navbar { 
        background: white; padding: 12px 0; box-shadow: 0 1px 2px rgba(0,0,0,0.05); 
        top: 0 !important; position: fixed; width: 100%; z-index: 1030;
    }
    .offcanvas { width: 280px !important; border: none; background: #fff; }
    
    .mobile-header { padding: 25px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; }
    .user-avatar { width: 45px; height: 45px; background: #eff6ff; color: #2563eb; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; }
    
    .offcanvas-body { padding: 15px 0; }
    .nav-link { padding: 12px 25px; color: #475569; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; border-left: 3px solid transparent; }
    .nav-link i.icon-main { width: 24px; color: #94a3b8; margin-right: 15px; font-size: 1.1rem; }
    .nav-link:hover, .nav-link.active { background: #f0f9ff; color: #0284c7; border-left-color: #0284c7; }
    .nav-link:hover i.icon-main { color: #0284c7; }

    .sub-menu { background: #fff; }
    .sub-link { display: block; padding: 10px 25px 10px 65px; font-size: 0.9rem; color: #64748b; text-decoration: none; }
    
    .mobile-footer { padding: 20px 20px; border-top: 1px solid #e2e8f0; background: #fff; margin-top: auto; }
    .btn-mobile-block { display: block; width: 100%; padding: 12px; border-radius: 8px; font-weight: 600; text-align: center; text-decoration: none; font-size: 0.95rem; margin-bottom: 10px; transition: 0.2s; }
    .btn-mob-reg { background-color: #2563eb; color: white; box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2); }
    .btn-mob-login { background-color: white; color: #475569; border: 2px solid #e2e8f0; }
}

/* SECTIONS */
.feature-card { background: white; padding: 30px; border-radius: 12px; transition: 0.3s; border: 1px solid #f1f5f9; height: 100%; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: #2563eb; }
.feature-icon { width: 60px; height: 60px; background: #eff6ff; color: #2563eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.section-title { font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.section-subtitle { color: #2563eb; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

.course-card { border: none; border-radius: 12px; overflow: hidden; transition: 0.3s; background: white; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.course-badge { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.95); padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; color: #2563eb; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: #2563eb; }
footer { background: #0f172a; color: #94a3b8; padding: 60px 0 20px; }
footer a { color: #94a3b8; text-decoration: none; transition: 0.2s; display: block; margin-bottom: 10px; }
footer a:hover { color: #3b82f6; padding-left: 5px; }

/* Spacing for fixed navbar on non-home pages */
.page-padding { padding-top: 100px; }