/* ═══════════════════════════════════════════════════
   ulu-formel — Premium Unified Design System
   Aesthetics: Modern, Sleek, High-End
═══════════════════════════════════════════════════ */

:root {
    /* Brand Colors */
    --ulu-primary: #16a34a;
    /* Emerald-600 */
    --ulu-primary-light: #dcfce7;
    --ulu-primary-dark: #15803d;

    --ulu-secondary: #0f172a;
    --ulu-accent: #84cc16;
    --ulu-success: #22c55e;
    --ulu-warning: #f59e0b;
    --ulu-danger: #ef4444;
    --ulu-info: #3b82f6;

    /* Neutral Palette */
    --ulu-bg: #f8fafc;
    /* Slate-50 - Premium Modern Base */
    --ulu-bg-soft: #f1f5f9;
    /* Slate-100 */
    --ulu-border: #e2e8f0;
    --ulu-text: #0f172a;
    --ulu-text-muted: #64748b;

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, 'Outfit', sans-serif;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 12px 24px -8px rgba(0, 0, 0, 0.06), 0 2px 6px -2px rgba(0, 0, 0, 0.02);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dashboard */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
}

/* ── Global Resets ── */
body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--ulu-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ulu-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--ulu-primary) 0%, var(--ulu-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.smaller {
    font-size: 0.85rem;
}

.fs-xs {
    font-size: 0.75rem;
}

/* ── Utilities ── */
.glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-premium {
    box-shadow: var(--shadow-premium);
}

.rounded-4 {
    border-radius: var(--radius-lg);
}

.rounded-5 {
    border-radius: var(--radius-xl);
}

.cursor-pointer {
    cursor: pointer;
}

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

/* ── Buttons ── */
.btn {
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    padding: 0.6rem 1.5rem;
}

.btn-primary {
    background-color: var(--ulu-primary);
    border: none;
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--ulu-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.18);
}

.btn-light {
    background-color: var(--ulu-bg-soft);
    border: 1px solid var(--ulu-border);
}

/* ── Cards ── */
.card-premium {
    background: white;
    border: 1px solid var(--ulu-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--ulu-primary-light);
}

/* ── Forms ── */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    border: 1px solid var(--ulu-border);
    transition: var(--transition-base);
    background-color: #ffffff;
}

.form-control:focus {
    border-color: var(--ulu-primary);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
    outline: none;
}

/* ── Navbar & Mobile Menu ── */
.site-header {
    transition: var(--transition-base);
    z-index: 1030;
}

.site-header.bg-transparent {
    background-color: transparent !important;
    padding: 1rem 0;
}

.site-header.bg-transparent .navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    margin: 17px clamp(1rem, 5vw, 9rem);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

@media (max-width: 991px) {
    .site-header.bg-transparent .navbar {
        margin: 12px 1rem;
        border-radius: var(--radius-xl);
    }
}

@media (max-width: 400px) {
    .site-header.bg-transparent .navbar {
        margin: 10px 0.5rem;
    }
}


.nav-link {
    color: var(--ulu-text-muted);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ulu-primary);
}

/* Hamburger Icon */
.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--ulu-secondary);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Offcanvas Refinements */
.offcanvas {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.offcanvas-backdrop.show {
    opacity: 0.1;
}

.hover-bg-light:hover {
    background-color: var(--ulu-bg-soft);
}

.bg-soft {
    background-color: var(--ulu-bg-soft) !important;
}


/* ── Animations ── */
@keyframes pulse-primary {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.pulse {
    animation: pulse-primary 2s infinite;
}

.pulse-badge {
    animation: pulse-danger 2s infinite;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

@keyframes pulse-danger {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.mobile-notif-toggle {
    transition: var(--transition-base);
    background: rgba(22, 163, 74, 0.05) !important;
}

.mobile-notif-toggle:active {
    transform: scale(0.9);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ulu-bg-soft);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Footer ── */
.ls-wider {
    letter-spacing: 0.1em;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    transition: var(--transition-base);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--ulu-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links a:hover {
    color: var(--ulu-primary) !important;
    padding-left: 5px;
}

.footer-bottom {
    font-size: 0.85rem;
}

/* ── Home Page ── */
.fw-black {
    font-weight: 900;
}

.scroll-smooth {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: auto;
}

.scroll-smooth::-webkit-scrollbar {
    display: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* ── Modals & Overlays ── */
#waiverModal .modal-content {
    background-color: var(--ulu-bg);
}

/* ── Dashboard Base ── */
.sidebar-wrapper {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: white;
    border-right: 1px solid var(--ulu-border);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-wrapper.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-wrapper.collapsed .sidebar-mini-logo {
    display: block !important;
}

.sidebar-header {
    padding: 2rem 1.75rem;
}

.nav-link-dash {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    margin: 0.2rem 1rem;
    border-radius: var(--radius-md);
    color: var(--ulu-text-muted);
    font-weight: 600;
    transition: var(--transition-base);
    text-decoration: none;
}

.nav-link-dash:hover {
    background-color: var(--ulu-primary-light);
    color: var(--ulu-primary);
}

.nav-link-dash.active {
    background-color: var(--ulu-primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.2);
}

.nav-link-dash i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
}

.sidebar-label {
    padding: 1.5rem 2.25rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ulu-text-muted);
    font-weight: 800;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.sidebar-wrapper.collapsed .sidebar-label,
.sidebar-wrapper.collapsed .nav-link-dash span,
.sidebar-wrapper.collapsed .sidebar-header img,
.sidebar-wrapper.collapsed .p-4.mt-auto {
    display: none !important;
}

.sidebar-wrapper.collapsed .sidebar-header {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.sidebar-wrapper.collapsed .nav-link-dash {
    justify-content: center;
    padding: 0.85rem 0;
    margin: 0.2rem 0.75rem;
}

.sidebar-wrapper.collapsed .nav-link-dash i {
    margin-right: 0;
    font-size: 1.25rem;
}

.main-content {
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-wrapper~.main-content {
    margin-left: var(--sidebar-width);
}

.sidebar-wrapper.collapsed~.main-content.collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

.topbar {
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--ulu-border);
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.user-pill {
    background: white;
    padding: 6px 16px 6px 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--ulu-border);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-base);
}

.user-pill:hover {
    border-color: var(--ulu-primary);
    box-shadow: var(--shadow-md);
}

.student-subnav {
    padding-top: 1rem;
    top: 85px;
    z-index: 1020;
    transition: all 0.3s ease;
}

.subnav-inner {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--ulu-border);
}

.student-subnav.scrolled .subnav-inner {
    margin-top: 0.5rem;
}

/* Subnav Mobile Adjustments */
@media (max-width: 991px) {
    .student-subnav {
        top: 0;
        padding: 0.5rem 0.5rem 0;
    }

    .subnav-inner {
        border-radius: var(--radius-lg) !important;
        padding: 0.75rem 1rem !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .subnav-inner .nav-pills {
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 0.25rem;
    }

    .subnav-inner .border-end {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 0.75rem;
        padding-right: 0 !important;
    }
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 400px;
    z-index: 9999;
}

/* ── Video Overlays ── */
.bg-black {
    background-color: #000 !important;
}

@media (max-width: 991px) {
    .sidebar-wrapper {
        left: -100%;
    }

    .sidebar-wrapper.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .student-subnav {
        top: 0;
        padding-top: 0.5rem;
    }

    .subnav-inner {
        border-radius: 1rem !important;
    }
}

/* ── Notifications ── */
.notification-item {
    transition: var(--transition-base);
}

.notification-item:hover {
    background-color: var(--ulu-bg-soft);
}

.notification-item.unread {
    background-color: rgba(22, 163, 74, 0.03);
}

.notification-item.unread .title {
    color: var(--ulu-primary) !important;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item .notification-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.notification-item .notification-content .title {
    color: var(--ulu-secondary);
    font-size: 0.85rem;
}

.notification-item .notification-content .message {
    font-size: 0.775rem;
    line-height: 1.4;
    color: var(--ulu-text-muted);
}

.notification-item .delete-notification {
    z-index: 10;
    transition: var(--transition-base);
}

.notification-item .delete-notification:hover {
    color: var(--ulu-danger) !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .dropdown-menu[aria-labelledby="headerNotificationBell"] {
        width: 100vw !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
    }
}

/* ── Hero Enhancements ── */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.hero-section {
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.hero-content h1 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.hero-content .lead {
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--ulu-text-muted);
}

.premium-notice {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.premium-notice .notice-header {
    background: #fafafa !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.premium-notice .notice-header h4,
.premium-notice .notice-header small {
    color: var(--ulu-secondary) !important;
}

.premium-notice .teacher-avatar-wrapper > div {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--ulu-text-muted);
}

.main-hero-img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-card:hover .main-hero-img {
    transform: scale(1.03) rotate(1deg);
}

.floating-badge {
    position: absolute;
    z-index: 10;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.badge-top {
    top: 10%;
    right: -20px;
}

.badge-bottom {
    bottom: 10%;
    left: -20px;
    animation-delay: 1s;
}

/* ── Category Cards Luxury ── */
.category-card-luxury {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.category-card-luxury:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
    border-color: rgba(var(--bs-primary-rgb), 0.1);
}

.category-card-luxury .arrow-icon {
    transition: all 0.3s ease;
}

.category-card-luxury:hover .arrow-icon {
    transform: translateX(8px);
    color: var(--bs-primary) !important;
    opacity: 1 !important;
}

.category-card-luxury:hover .cat-icon-wrap {
    background: rgba(var(--bs-primary-rgb), 0.05) !important;
    color: var(--bs-primary) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.category-card-luxury:hover .cat-icon-wrap i {
    color: var(--bs-primary) !important;
    opacity: 1 !important;
}

.btn-luxury-prev {
    background: #ffffff;
    border: 1px solid #eaeaea;
    color: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.btn-luxury-prev:hover {
    background: #f8f9fa;
}

.btn-luxury-next {
    background: #111;
    border: 1px solid #111;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-luxury-next:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ── Live Lesson Cards Luxury ── */
.live-card-luxury {
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-card-luxury:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.live-card-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-card-luxury:hover .live-card-img {
    transform: scale(1.05);
}

.btn-luxury-action {
    background: #111;
    transition: all 0.3s ease;
}

.btn-luxury-action:hover {
    background: var(--ulu-danger);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.hover-text-danger {
    transition: color 0.3s ease;
}

.hover-text-danger:hover {
    color: var(--ulu-danger) !important;
}

@keyframes pulse-dot-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.pulse-dot {
    animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-small-anim {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pulse-dot-small {
    animation: pulse-dot-small-anim 1.5s infinite;
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Course Cards Luxury ── */
.course-card-luxury {
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card-luxury:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.course-card-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card-luxury:hover .course-card-img {
    transform: scale(1.06);
}

.play-icon-overlay {
    opacity: 0;
    transform: translate(-50%, -40%);
}

.course-card-luxury:hover .play-icon-overlay {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.btn-luxury-primary {
    background: var(--ulu-primary);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
    /* using primary green as fallback if rgb not working */
}

.btn-luxury-primary:hover {
    background: var(--ulu-primary-dark);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3);
    transform: translateY(-2px);
}

.hover-text-primary {
    transition: color 0.3s ease;
}

.hover-text-primary:hover {
    color: var(--ulu-primary) !important;
}

/* ── Error 500 Page Styles ── */
.error-500-body {
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    background-color: var(--bg-dark) !important;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.1) 0%, transparent 40%) !important;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
}

.error-500-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 650px;
    padding: 2.5rem;
    text-align: center;
}

.error-500-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.error-500-code {
    font-size: 9rem;
    font-weight: 800;
    background: var(--warning-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -5px;
    filter: drop-shadow(0 10px 15px rgba(239, 68, 68, 0.3));
}

.error-500-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.error-500-text {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-500-btn-home {
    background: var(--warning-gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

.error-500-btn-home:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.5);
    color: white;
}

.error-500-floating-icon {
    position: absolute;
    font-size: 4rem;
    opacity: 0.05;
    color: #ef4444;
    z-index: -1;
    animation: rotate 20s infinite linear;
}

.btn-glass-contact {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.error-500-icon-1 {
    top: 15%;
    left: 10%;
}

.error-500-icon-2 {
    bottom: 20%;
    right: 15%;
}

.error-500-icon-3 {
    top: 25%;
    right: 25%;
}

/* ── Error 404 Page Styles ── */
.error-404-body {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    background-color: var(--bg-dark) !important;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 40%) !important;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
}

.error-404-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    text-align: center;
}

.error-404-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.error-404-code {
    font-size: 9rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -5px;
    filter: drop-shadow(0 10px 15px rgba(79, 70, 229, 0.3));
}

.error-404-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.error-404-text {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-btn-home {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.error-404-btn-home:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.5);
    color: white;
}

.error-404-floating-icon {
    position: absolute;
    font-size: 4rem;
    opacity: 0.1;
    color: #4f46e5;
    z-index: -1;
    animation: float-404 10s infinite ease-in-out;
}

@keyframes float-404 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(15deg);
    }
}

.error-404-shape-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.error-404-shape-2 {
    bottom: 15%;
    right: 10%;
    animation-delay: -2s;
    font-size: 5rem;
}

.error-404-shape-3 {
    top: 20%;
    right: 20%;
    animation-delay: -5s;
    font-size: 3rem;
}

/* ── Course Listing Category Nav ── */
.category-nav-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    gap: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.category-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    flex-grow: 1;
    scrollbar-width: none;
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.category-items-flex {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.category-nav-link {
    white-space: nowrap;
    padding: 0.7rem 1.6rem;
    border-radius: 100px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5568;
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-nav-link:hover {
    background: #ffffff;
    color: var(--ulu-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(var(--bs-primary-rgb), 0.1);
}

.category-nav-link.active {
    background: var(--ulu-primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
    border-color: var(--ulu-primary);
}

.nav-scroll-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ulu-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    flex-shrink: 0;
}

.nav-scroll-btn:hover {
    background: var(--ulu-primary);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(22, 163, 74, 0.25);
}

@media (max-width: 991px) {
    .nav-scroll-btn {
        display: none;
    }

    .category-nav-container {
        padding: 0.5rem;
        border-radius: 24px;
    }
}

/* ── Extracted Utility & Layout Classes ── */
.category-section-bg {
    background: linear-gradient(145deg, #fcfcfd, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.category-blob-bg {
    background: radial-gradient(circle at 90% 10%, rgba(var(--bs-primary-rgb), 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.section-heading-badge {
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
    letter-spacing: 1.5px;
    font-size: 0.75rem;
}

.section-heading-badge-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
}

.section-heading-line {
    height: 1px;
    width: 60px;
    background: currentColor;
    opacity: 0.1;
}

.section-heading-title {
    letter-spacing: -1.5px;
    color: #0a0a0a;
}

.btn-nav-circle {
    width: 56px;
    height: 56px;
}

.category-grid-wrap {
    margin: 0 -1rem;
}

.category-card-col {
    min-width: 320px;
    flex: 0 0 auto;
}

.cat-icon-box {
    width: 56px;
    height: 56px;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.cat-index-number {
    font-size: 0.9rem;
    color: #d0d0d0;
    font-family: monospace;
}

.cat-card-title {
    letter-spacing: -0.5px;
}

.cat-card-link-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.pulse-dot-inner {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
}

.btn-outline-thick {
    border-width: 1.5px;
}

.live-card-img-wrap {
    border-radius: 24px 24px 0 0;
}

.live-card-aspect {
    aspect-ratio: 16/10;
}

.live-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.live-badge-blur {
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    background: rgba(239, 68, 68, 0.9) !important;
}

.pulse-dot-small-inner {
    font-size: 0.5rem;
}

.live-price-tag {
    font-size: 0.95rem;
    height: 36px;
}

.live-card-body {
    background: #ffffff;
    border-radius: 0 0 24px 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: none;
}

.live-date-badge {
    background: rgba(239, 68, 68, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    color: #ef4444;
}

.live-category-name {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.live-title-text {
    line-height: 1.4;
}

.card-footer-border {
    border-color: rgba(0, 0, 0, 0.04) !important;
}

.text-primary-imp {
    color: var(--ulu-primary) !important;
}

.course-card-img-wrap {
    border-radius: 20px 20px 0 0;
}

.course-card-aspect {
    aspect-ratio: 4/3;
}

.course-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.5) 100%);
}

.play-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.play-icon-inner {
    color: var(--ulu-primary);
    margin-left: 3px;
}

.course-card-body {
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: none;
}

.course-category-badge {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ulu-primary);
    background: rgba(22, 163, 74, 0.08);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
}

.course-title-text {
    line-height: 1.5;
    font-size: 1.05rem;
}

/* ── Course Detail Styling ── */
.course-detail-tabs {
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
}

.course-detail-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
}

.course-detail-tabs .nav-link:hover {
    color: var(--ulu-primary);
    border: none;
}

.course-detail-tabs .nav-link.active {
    color: var(--ulu-primary);
    background: transparent;
    border: none;
}

.course-detail-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ulu-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.course-detail-tabs .nav-link.active::after {
    transform: scaleX(1);
}

.course-description-text {
    color: #475569;
    line-height: 1.8;
    font-size: 1.1rem;
}

.course-detail-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--ulu-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}