/* css/pages/courses.css — page-specific styles for courses.html (extracted, unchanged) */

        :root {
            --primary: #8b5cf6;
            --primary-dark: #7c3aed;
            --primary-light: #a78bfa;
            --secondary: #0ea5e9;
            --dark-bg: #0a0e17;
            --card-bg: #111827;
            --card-hover: #1e293b;
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --border-color: #334155;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            --radius-lg: 16px;
            --radius-md: 12px;
            --radius-sm: 8px;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --primary-trust-blue: #2762a1;
            --depth-indigo: #3d539e;
            --creative-accent: #94397f;
            --accent-purple: #b16be0;
            --glow-pink: #ff6bcb;
            --glow-blue: #6dd5ed;
            --glow-cyan: #5ae8ff;
            --clarity-white: #f8f9ff;
            --glass-bg: rgba(15, 25, 40, 0.75);
            --glass-border: rgba(255, 255, 255, 0.08);
            --glass-highlight: rgba(255, 255, 255, 0.03);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Custom cursor styles now live in css/cursor.css (shared across all pages) */

        body {
            font-family: 'Inter', sans-serif;
            background: var(--dark-bg);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .premium-background {
            position: fixed;
            inset: 0;
            z-index: -2;
            pointer-events: none;
        }

        /* Header */
        header {
            background: rgba(13, 19, 33, 0.92);
            backdrop-filter: blur(15px);
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 1rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-img {
            height: 52px;
            transition: var(--transition);
        }

        .logo-img:hover {
            transform: translateY(-2px);
        }

        .nav-links {
            list-style: none;
            display: flex;
            gap: 2.5rem;
            margin: 0;
        }

        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            padding: 0.5rem 0;
            position: relative;
            transition: var(--transition);
        }

        .nav-link:hover {
            color: var(--text-primary);
        }

        .nav-link.active {
            color: var(--primary-light);
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--primary);
            border-radius: 2px;
        }

        /* Main content */
        .courses-page {
            padding: 3.5rem 0 5rem;
            position: relative;
            z-index: 2;
        }

        .page-header {
            text-align: center;
            margin-bottom: 4rem;
            position: relative;
        }

        .page-header::before {
            content: '';
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            border-radius: 2px;
        }

        h1 {
            font-size: clamp(2.5rem, 5vw, 3.2rem);
            margin: 0 0 1rem;
            background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .page-subtitle {
            color: var(--text-secondary);
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 1.5rem;
        }

        .breadcrumb {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-muted);
            font-size: 1rem;
            background: rgba(30, 41, 59, 0.5);
            padding: 0.6rem 1.2rem;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .breadcrumb a {
            color: var(--primary-light);
            text-decoration: none;
            transition: var(--transition);
        }

        .breadcrumb a:hover {
            color: var(--secondary);
        }

        /* ========== PREMIUM REDESIGNED DROPDOWNS & FILTER SECTION ========== */
        .filters-container {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 28px;
            padding: 2rem 2.2rem;
            margin-bottom: 3rem;
            border: 1px solid var(--glass-border);
            box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.5);
        }

        .filters-title {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 2rem;
            color: var(--clarity-white);
            letter-spacing: -0.2px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding-bottom: 1.2rem;
        }

        .filters-title i {
            color: var(--primary-light);
            font-size: 1.3rem;
        }

        .filters {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            gap: 1.8rem;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            flex: 1 1 180px;
        }

        .filter-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #b9c7db;
            font-weight: 600;
            margin-left: 0.5rem;
            opacity: 0.85;
        }

        /* ---------- GLOBAL DROPDOWN STYLING (PREMIUM GLASS) ---------- */
        select,
        .filter-group select,
        .sort-options select {
            appearance: none;
            -webkit-appearance: none;
            padding: 0.9rem 1.5rem;
            padding-right: 3.2rem;
            border-radius: 60px;
            border: 1.5px solid rgba(255, 255, 255, 0.05);
            background: rgba(8, 14, 23, 0.8);
            backdrop-filter: blur(8px);
            color: white;
            font-size: 0.95rem;
            font-weight: 500;
            letter-spacing: 0.2px;
            transition: all 0.25s ease;
            outline: none;
            width: 100%;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

            /* Custom dropdown arrow - elegant */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1.2rem center;
            background-size: 18px;
        }

        /* Hover state – glass lift */
        select:hover,
        .filter-group select:hover,
        .sort-options select:hover {
            border-color: rgba(139, 92, 246, 0.6);
            background: rgba(20, 30, 45, 0.9);
            box-shadow: 0 8px 18px rgba(139, 92, 246, 0.2);
        }

        /* Focus state – glowing accent */
        select:focus,
        .filter-group select:focus,
        .sort-options select:focus {
            border-color: var(--primary);
            background: rgba(18, 28, 40, 0.95);
            box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25), 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        /* Style the options inside dropdown (chrome/firefox) */
        select option {
            background: #0f1a2b;
            color: #f1f5f9;
            padding: 12px 16px;
            font-weight: 400;
            border-radius: 12px;
            border: none;
        }

        /* For Firefox: select option hover */
        select option:hover {
            background: #2d3b4f;
        }

        /* Search input - matching aesthetic */
        .filter-group input[type="search"] {
            padding: 0.9rem 1.5rem;
            padding-right: 3rem;
            border-radius: 60px;
            border: 1.5px solid rgba(255, 255, 255, 0.05);
            background: rgba(8, 14, 23, 0.8);
            backdrop-filter: blur(8px);
            color: white;
            font-size: 0.95rem;
            transition: all 0.25s ease;
            outline: none;
            width: 100%;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1.2rem center;
            background-size: 18px;
        }

        .filter-group input[type="search"]:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
            background: rgba(18, 28, 40, 0.95);
        }

        .filter-actions {
            display: flex;
            gap: 1rem;
            margin-left: auto;
            align-items: center;
        }

        .btn {
            padding: 0.9rem 2.2rem;
            border-radius: 60px;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            text-decoration: none;
            letter-spacing: 0.3px;
            white-space: nowrap;
            backdrop-filter: blur(8px);
        }

        .btn-primary {
            background: linear-gradient(145deg, #8b5cf6, #6d28d9);
            color: white;
            box-shadow: 0 10px 20px -8px rgba(139, 92, 246, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 24px -8px #7c3aed;
        }

        .btn-secondary {
            background: rgba(20, 30, 45, 0.7);
            color: #e2e8f0;
            border: 1.5px solid rgba(255, 255, 255, 0.08);
        }

        .btn-secondary:hover {
            background: rgba(35, 50, 70, 0.8);
            color: white;
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* SORT HEADER - with redesigned dropdown */
        .courses-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            background: rgba(12, 20, 30, 0.7);
            padding: 0.6rem 1.2rem 0.6rem 1.8rem;
            border-radius: 80px;
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.04);
        }

        .results-count {
            color: #cbd5e1;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .results-count strong {
            color: white;
            background: linear-gradient(145deg, #c4b5fd, #a78bfa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .sort-options {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .sort-options i {
            color: var(--primary-light);
            font-size: 1rem;
        }

        .sort-options select {
            padding: 0.6rem 2.8rem 0.6rem 1.4rem;
            border-radius: 60px;
            background: rgba(8, 14, 23, 0.7);
            border-color: rgba(255, 255, 255, 0.05);
            font-size: 0.9rem;
            font-weight: 500;
            background-size: 16px;
        }

        /* Courses Grid */
        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2.2rem;
            min-height: 60vh;
        }

        .course-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
            cursor: pointer;
        }

        .course-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15);
            border-color: rgba(139, 92, 246, 0.3);
        }

        .course-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            opacity: 0;
            transition: var(--transition);
        }

        .course-card:hover::before {
            opacity: 1;
        }

        .course-img {
            height: 200px;
            position: relative;
            overflow: hidden;
            background: #05070d;
        }

        /* Blurred, darkened copy of the same image fills any empty space
           behind it — so images with important content near the edges
           (like promotional banners with embedded text) are never cropped,
           while still looking intentional rather than leaving plain gaps. */
        .course-img-backdrop {
            position: absolute;
            inset: -10px;
            background-size: cover;
            background-position: center;
            filter: blur(18px) brightness(0.55) saturate(1.2);
            transform: scale(1.15);
        }

        .course-img::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom, transparent 60%, rgba(11, 15, 25, 0.9));
            z-index: 1;
        }

        .course-img img {
            position: relative;
            z-index: 1;
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.5s ease;
        }

        .course-card:hover .course-img img {
            transform: scale(1.05);
        }

        .course-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: var(--primary);
            color: white;
            padding: 0.4rem 1rem;
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 600;
            z-index: 2;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .course-badge.beginner {
            background: var(--success);
        }

        .course-badge.intermediate {
            background: var(--warning);
        }

        .course-badge.advanced {
            background: var(--danger);
        }

        .course-info {
            padding: 1.8rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 2;
        }

        .course-category {
            color: var(--primary-light);
            font-size: 0.85rem;
            margin-bottom: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .course-title {
            color: var(--text-primary);
            margin: 0 0 1rem;
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.3;
        }

        .course-description {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 1.8rem;
            flex-grow: 1;
        }

        .course-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .meta-item i {
            color: var(--primary-light);
        }

        .course-price {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.1rem;
        }

        .price {
            font-weight: 700;
            font-size: 1.4rem;
            color: var(--success);
        }

        .old-price {
            text-decoration: line-through;
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-right: 0.5rem;
        }

        .rating {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: var(--warning);
            font-weight: 600;
        }

        .rating-count {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-left: 0.3rem;
        }

        /* Loading, Empty, Pagination */
        .loading {
            text-align: center;
            padding: 4rem;
            grid-column: 1 / -1;
        }

        .loading-spinner {
            display: inline-block;
            width: 50px;
            height: 50px;
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 1rem;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .empty-state {
            text-align: center;
            padding: 5rem 2rem;
            grid-column: 1 / -1;
        }

        .empty-state i {
            font-size: 4rem;
            color: var(--text-muted);
            margin-bottom: 1.5rem;
            opacity: 0.5;
        }

        .empty-state h3 {
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .empty-state p {
            color: var(--text-secondary);
            max-width: 500px;
            margin: 0 auto;
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 4rem;
            gap: 0.5rem;
        }

        .pagination button,
        .pagination span {
            padding: 0.8rem 1.2rem;
            border-radius: var(--radius-md);
            background: rgba(30, 41, 59, 0.6);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pagination button:hover:not(:disabled) {
            background: rgba(139, 92, 246, 0.2);
            border-color: var(--primary);
        }

        .pagination .current {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-color: var(--primary);
        }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .page-footer {
            text-align: center;
            margin-top: 5rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .courses-grid {
                grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .filters {
                flex-direction: column;
                width: 100%;
            }

            .filter-group {
                width: 100%;
            }

            .filter-actions {
                margin-left: 0;
                width: 100;
            }

            .btn {
                flex: 1;
            }

            .courses-header {
                flex-direction: column;
                align-items: flex-start;
                border-radius: 30px;
                padding: 1rem;
            }

            .sort-options {
                width: 100%;
            }

            .sort-options select {
                width: 100%;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation: none !important;
                transition: none !important;
            }
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
    