body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* --- GLOBAL STYLES --- */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Roboto', sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
            background-color: #f8f9fa;
            color: #333;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        body.dark-mode {
            background-color: #121212;
            color: #e0e0e0;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* --- NAVIGATION --- */
        nav {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 10px 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 999;
            transition: background-color 0.3s ease;
        }

        nav.dark-mode {
            background-color: #222;
        }

        nav .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        nav ul {
            list-style-type: none;
            display: flex;
        }

        nav ul li {
            margin-left: 15px;
        }

        nav ul li a {
            text-decoration: none;
            color: #ff0000;
            font-weight: 500;
            padding: 32px 18px;
            border-radius: 4px;
            transition: background-color 0.3s, color 0.3s;
        }

        /* Active nav link (current page) */
        .nav-link.active-link {
            color: #ff0000;
            font-weight: 700;
        }
        nav.dark-mode .nav-link.active-link {
            color: #ffff00;
        }
        
        @media screen and (max-width: 1024px) {
            nav ul li a { padding: 20px 10px; }
        }
        @media screen and (max-width: 768px) {
            nav ul li a { padding: 10px 10px; }
        }
        
        nav ul li a:hover {
            background-color: #ff0000;
            color: #fff;
        }

        nav.dark-mode ul li a {
            color: #ffff00;
        }

        nav.dark-mode ul li a:hover {
            background-color: #ffff00;
            color: #000;
        }

        /* Mode Toggle */
        .mode-toggle {
            position: relative;
            width: 50px;
            height: 26px;
            border-radius: 13px;
            background-color: #ff0000;
            cursor: pointer;
            transition: background-color 0.3s;
            box-shadow: 0 2px 6px rgba(0,0,0,0.12);
            display: inline-block;
        }

        .mode-toggle::before {
            content: "";
            position: absolute;
            top: 2px;
            left: 2px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.18);
            transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
        }

        .mode-toggle.active {
            background-color: #333;
        }

        .mode-toggle.active::before {
            left: 26px;
        }

        .mode-toggle-container {
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        /* Logo styling */
        .astra-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
        .astra-logo__img { width: 70px; height: auto; display: block; }
        .astra-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
        .astra-logo__title { font-size: 25px; font-weight: 700; color: #ffb407; }
        .astra-logo__tagline { margin-left: 50px; font-size: 25px; font-weight: 600; color: #ffb407; }
        @media screen and (max-width: 1024px) {
            .astra-logo__tagline { margin-left: 20%; font-size: 18px; }
            .astra-logo__title { font-size: 18px; }
        } 
        @media screen and (max-width: 360px){
            .astra-logo__title { font-size: 14px; }
            .astra-logo__tagline { font-size: 14px; }
        }

        /* Dropdown Styling */
        nav ul li.has-dropdown { position: relative; }
        nav ul li.has-dropdown > a.dropdown-toggle::after {
            content: " \25BE"; font-size: 0.8em; margin-left: 6px; transition: transform .2s ease;
        }
        nav ul li .dropdown-menu {
            position: absolute; top: calc(100% + 10px); left: 0;
            background: rgba(255,255,255,0.9);
            backdrop-filter: saturate(120%) blur(6px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); border: 1px solid rgba(0,0,0,0.06);
            border-radius: 7px; padding: 8px 10px; z-index: 1000;
            display: flex; opacity: 0; margin-top: 17px; visibility: hidden;
            transform: translateY(6px); pointer-events: none;
            transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
        }
        nav.dark-mode ul li .dropdown-menu {
            background: rgba(34,34,34,0.92); border: 1px solid rgba(255,255,255,0.08);
        }
        nav ul li .dropdown-menu.dropdown-row { flex-direction: column; gap: 2px; }
        nav ul li .dropdown-menu.dropdown-row > li { margin: 0; }
        nav ul li .dropdown-menu a {
            padding: 10px 14px; white-space: nowrap; border-radius: 6px;
            display: block; color: #ff0000;
        }
        nav ul li .dropdown-menu a:hover { background: rgb(255, 0, 0); color: #ffffff; }
        nav.dark-mode ul li .dropdown-menu a { color: #ffff00; }
        nav.dark-mode ul li .dropdown-menu a:hover { background: rgb(255, 255, 0); color: #000000; }
        
        @media screen and (min-width: 769px) {
            nav ul li.has-dropdown:hover > .dropdown-menu.dropdown-row {
                opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
            }
        }
        nav ul li.has-dropdown.open > a.dropdown-toggle::after { transform: rotate(180deg); }

        /* Mobile Nav */
        .mobile-only { display: none; }
        @media screen and (max-width: 820px) {
            .mobile-only { display: flex; padding: 10px 20px; margin-top: 20px; }
            .desktop-only { display: none; }
            
            .hamburger { display: block; cursor: pointer; }
            .hamburger span {
                display: block; width: 32px; height: 6px;
                background-color: #ff0000; margin: 5px 0;
                transition: all 0.3s ease; border-radius: 15px;
            }
            .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 9px); }
            .hamburger.active span:nth-child(2) { opacity: 0; }
            .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -10px); }
            .dark-mode .hamburger span { background-color: #ffff00; }
            
            .nav-menu {
                position: fixed; left: -100%; top: 70px; gap: 0;
                flex-direction: column; background-color: #fff;
                width: 100%; text-align: center; transition: 0.3s;
                box-shadow: 0 10px 27px rgba(255, 251, 0, 0.05);
                border-top-left-radius: 14px; border-top-right-radius: 14px;
                padding-bottom: 20px; height: 80vh; overflow-y: auto;
            }
            .dark-mode .nav-menu { background-color: #101010; }
            .nav-menu.active { left: 0; }
            .nav-menu > li { margin: 16px 0; }
            nav ul li a { padding: 16px 18px; border-bottom: 1px solid rgba(0,0,0,0.06); display: block;}
            .dark-mode nav ul li a { border-bottom-color: rgba(255,255,255,0.12); }
            
            nav ul li .dropdown-menu.dropdown-row {
                position: static; background: transparent; box-shadow: none;
                padding: 0 20px; max-width: 280px; margin: 0 auto;
                display: none; flex-direction: column; align-items: stretch;
                margin-top: 10px; border-radius: 5px;
            }
            nav ul li.has-dropdown.open > .dropdown-menu.dropdown-row { display: flex; opacity: 1; visibility: visible; pointer-events: auto; }
            nav ul li .dropdown-menu a {
                padding: 12px 18px; margin: 5px 0; border: 0;
                border-bottom: 1px solid rgba(0,0,0,0.06); text-align: center;
            }
            .dark-mode nav ul li .dropdown-menu a { border-bottom-color: rgba(255,255,255,0.12); }
        }
        @media screen and (min-width: 821px) {
            .desktop-only { display: flex; }
        }

        /* --- PRO HERO SECTION --- */
        .course-hero {
            position: relative;
            padding-top: 200px;
            padding-bottom: 120px;
            background: 
                linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%),
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
            background-size: cover; background-position: center;
            background-attachment: fixed;
            text-align: center; color: #fff;
            clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
            margin-bottom: 40px;
        }
        .course-hero h1 {
            font-size: clamp(3rem, 6vw, 4.5rem); 
            font-weight: 900; text-transform: uppercase; 
            margin-bottom: 15px; letter-spacing: -1px;
            text-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        .course-hero p { 
            font-size: 1.3rem; max-width: 700px; margin: 0 auto; 
            opacity: 0.95; font-weight: 300; line-height: 1.8;
        }
        .course-hero h1::after {
            content: ''; display: block; width: 80px; height: 4px; 
            background: #ff0000; margin: 20px auto 0; border-radius: 2px;
        }

        /* --- PRO CONTROLS --- */
        .controls-section { padding: 20px 0 60px; }
        .controls-wrapper {
            display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px;
            background: #fff; padding: 20px 30px; border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.05);
            margin-top: -80px; position: relative; z-index: 10;
        }
        body.dark-mode .controls-wrapper { background: #1e1e1e; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

        /* Search Bar */
        .search-box { position: relative; flex: 1; min-width: 280px; }
        .search-box input {
            width: 100%; padding: 15px 50px 15px 20px;
            border: 1px solid #e0e0e0; border-radius: 12px; outline: none;
            transition: all 0.3s ease; font-size: 1rem; background: #f9f9f9;
        }
        .search-box input:focus { 
            border-color: #ff0000; background: #fff; 
            box-shadow: 0 5px 15px rgba(255,0,0,0.1); 
        }
        .search-box i {
            position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
            color: #ff0000; font-size: 1.1rem;
        }
        body.dark-mode .search-box input { background: #2a2a2a; border-color: #444; color: #fff; }
        body.dark-mode .search-box input:focus { border-color: #ffff00; background: #2a2a2a; }

        /* Filter Pills */
        .filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
        .filter-btn {
            padding: 10px 24px; border: 1px solid transparent; background: transparent;
            border-radius: 50px; cursor: pointer; font-weight: 600;
            transition: all 0.3s ease; color: #666; font-size: 0.95rem;
        }
        .filter-btn:hover { color: #ff0000; background: rgba(255,0,0,0.05); }
        .filter-btn.active {
            background: #ff0000; color: #fff; 
            box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3); transform: scale(1.05);
        }
        body.dark-mode .filter-btn { color: #aaa; }
        body.dark-mode .filter-btn:hover { color: #ffff00; background: rgba(255,255,0,0.1); }
        body.dark-mode .filter-btn.active { background: #ffff00; color: #000; box-shadow: 0 4px 12px rgba(255, 255, 0, 0.3); }

        /* --- PRO COURSE GRID --- */
        .course-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 40px; padding-bottom: 80px; padding-top: 40px;
        }

        .course-card {
            background: #fff; border-radius: 16px; overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative; display: flex; flex-direction: column;
            border: 1px solid rgba(0,0,0,0.03);
            opacity: 0; animation: fadeUp 0.6s forwards;
        }
        @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(30px); } }
        
        body.dark-mode .course-card { background: #1e1e1e; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
        .course-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
        .course-card::after {
            content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 4px;
            background: #ff0000; transition: width 0.4s ease;
        }
        .course-card:hover::after { width: 100%; }
        body.dark-mode .course-card::after { background: #ffff00; }

        /* Emoji Header Area */
        .card-image { 
            height: 220px; 
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(255,0,0,0.05) 0%, rgba(255,0,0,0.12) 100%);
            overflow: hidden; 
        }
        body.dark-mode .card-image {
            background: linear-gradient(135deg, rgba(255,255,0,0.05) 0%, rgba(255,255,0,0.15) 100%);
        }
        .card-image .emoji-icon { 
            font-size: 6.5rem; 
            transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
            filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
        }
        .course-card:hover .card-image .emoji-icon { 
            transform: scale(1.15) rotate(5deg); 
        }
        
        .badge {
            position: absolute; top: 15px; left: 15px;
            background: rgba(255, 255, 255, 0.95); color: #ff0000;
            padding: 6px 14px; border-radius: 30px; font-size: 0.75rem; font-weight: 800;
            text-transform: uppercase; letter-spacing: 0.5px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1); backdrop-filter: blur(5px);
        }
        body.dark-mode .badge { background: rgba(0,0,0,0.8); color: #ffff00; }

        .card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
        .card-content h3 { font-size: 1.4rem; margin-bottom: 15px; color: #222; font-weight: 800; line-height: 1.3; }
        body.dark-mode .card-content h3 { color: #fff; }

        .meta-info {
            display: flex; gap: 20px; font-size: 0.85rem; color: #777; margin-bottom: 20px;
            border-bottom: 1px solid #f0f0f0; padding-bottom: 20px;
        }
        .meta-info span { display: flex; align-items: center; gap: 6px; }
        .meta-info i { color: #ff0000; }
        body.dark-mode .meta-info { color: #aaa; border-bottom-color: #333; }
        body.dark-mode .meta-info i { color: #ffff00; }

        .card-desc { font-size: 0.95rem; color: #555; margin-bottom: 25px; line-height: 1.6; flex-grow: 1; }
        body.dark-mode .card-desc { color: #ccc; }
        .card-footer { margin-top: auto; }
        
        .details-btn {
            display: block; width: 100%; background: #f4f6f8; color: #333;
            padding: 12px 0; border-radius: 8px; font-weight: 700; cursor: pointer;
            transition: all 0.3s ease; border: none; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
        }
        .details-btn:hover { background: #ff0000; color: #fff; box-shadow: 0 5px 15px rgba(255,0,0,0.2); }
        body.dark-mode .details-btn { background: #333; color: #fff; }
        body.dark-mode .details-btn:hover { background: #ffff00; color: #000; }

        /* --- MODAL --- */
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 2000;
            display: flex; justify-content: center; align-items: center;
            opacity: 0; visibility: hidden; transition: 0.3s;
            backdrop-filter: blur(8px);
        }
        .modal-overlay.active { opacity: 1; visibility: visible; }

        .modal-box {
            background: #fff; width: 90%; max-width: 650px; max-height: 90vh;
            border-radius: 20px; overflow-y: auto; position: relative;
            transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 25px 60px rgba(0,0,0,0.3);
        }
        .modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
        body.dark-mode .modal-box { background: #1e1e1e; border: 1px solid #333; }

        .modal-header {
            background: linear-gradient(135deg, #ff0000, #cc0000); color: #fff; padding: 30px;
            display: flex; justify-content: space-between; align-items: flex-start;
        }
        body.dark-mode .modal-header { background: #222; border-bottom: 1px solid #333; }
        .modal-header h2 { font-size: 1.8rem; margin: 0; padding-right: 20px; font-weight: 800; }
        .close-modal {
            background: rgba(255,255,255,0.2); border: none; color: #fff; 
            width: 36px; height: 36px; border-radius: 50%;
            font-size: 1.2rem; cursor: pointer; transition: 0.2s;
            display: flex; align-items: center; justify-content: center;
        }
        .close-modal:hover { background: #fff; color: #ff0000; }
        body.dark-mode .close-modal:hover { background: #ffff00; color: #000; }

        .modal-body { padding: 40px; }
        .info-row { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed #ddd; }
        body.dark-mode .info-row { border-bottom-color: #333; }
        .info-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #888; display: block; margin-bottom: 8px; font-weight: 700;}
        .info-value { font-size: 1.1rem; color: #222; font-weight: 500; }
        body.dark-mode .info-value { color: #ddd; }
        
        .modal-actions { padding: 20px 40px 40px; background: #fff; text-align: right; }
        body.dark-mode .modal-actions { background: #1e1e1e; }
        .apply-btn {
            background: #ff0000; color: #fff; padding: 14px 35px; text-decoration: none;
            border-radius: 50px; font-weight: 700; display: inline-block;
            box-shadow: 0 10px 20px rgba(255, 0, 0, 0.25);
            transition: 0.3s; letter-spacing: 0.5px;
        }
        .apply-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(255, 0, 0, 0.35); color: #fff; }
        body.dark-mode .apply-btn { background: #ffff00; color: #000; box-shadow: 0 10px 20px rgba(255, 255, 0, 0.2); }
        body.dark-mode .apply-btn:hover { box-shadow: 0 15px 30px rgba(255, 255, 0, 0.3); color: #000;}

        /* --- FOOTER --- */
        footer {
            background: linear-gradient(135deg, #111, #222); 
            color: #ccc; 
            padding: 80px 0 30px; 
            position: relative; 
            font-size: 0.95rem;
            margin-top: auto;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 50px;
        }

        .footer-col h3 {
            color: #fff;
            font-size: 1.4rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;
        }
        
        .footer-col h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: #ff0000;
        }

        .footer-col p { line-height: 1.8; margin-bottom: 20px; }

        .social-links { display: flex; gap: 15px; }
        .social-links a {
            display: inline-flex; align-items: center; justify-content: center;
            width: 40px; height: 40px; background: rgba(255,255,255,0.1);
            color: #fff; border-radius: 50%; transition: all 0.3s; text-decoration: none;
        }
        .social-links a:hover { background: #ff0000; transform: translateY(-3px); }

        .footer-links { list-style: none; }
        .footer-links li { margin-bottom: 12px; }
        .footer-links a {
            color: #ccc; text-decoration: none; transition: all 0.3s;
            display: inline-flex; align-items: center;
        }
        .footer-links a::before {
            content: '\203A'; margin-right: 8px; color: #ff0000; font-size: 1.2rem; line-height: 1;
        }
        .footer-links a:hover { color: #ff0000; padding-left: 5px; }

        .contact-info { list-style: none; }
        .contact-info li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
        .contact-info i { color: #ff0000; font-size: 1.1rem; margin-top: 5px; }

        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 30px; text-align: center; color: #888;
        }

        .dark-mode footer { background: linear-gradient(135deg, #000, #111); }
        .dark-mode .footer-col h3::after, .dark-mode .social-links a:hover,
        .dark-mode .contact-info i, .dark-mode .footer-links a:hover,
        .dark-mode .footer-links a::before {
            background-color: #ffff00; color: #ffff00;
        }
        .dark-mode .footer-col h3::after, .dark-mode .social-links a:hover {
            background-color: #ffff00; color: #000;
        }
        .dark-mode .footer-links a::before, .dark-mode .contact-info i {
            color: #ffff00; background: transparent;
        }