
:root {
    --bg: #0f172a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --box: #1e293b;
    --header: rgba(15, 23, 42, 0.95);
    --accent: #f97316;
}

* { margin:0; padding:0; box-sizing:border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background:var(--bg); color:var(--text); line-height:1.6; overflow-x: hidden; }

/* --- Header & Mobile Menu --- */
header {
    background: var(--header);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 2000;
}
.logo { font-size:1.7rem; font-weight:900; color:var(--accent); text-decoration: none; }

.nav-container { display: flex; align-items: center; gap: 1.5rem; }

.search-box {
    background: #1e293b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid #334155;
}
.search-box input { background:none; border:none; color:white; padding:8px; outline:none; width: 200px; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.btn-login { background: var(--accent); color: #000 !important; padding: 8px 20px; border-radius: 8px; font-weight: 700; }

.menu-toggle { display: none; font-size: 1.5rem; color: var(--text); cursor: pointer; }

/* --- Slideshow Banner --- */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #000;
}
.mySlides { display: none; position: relative; width: 100%; height: 100%; }
.mySlides img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

.banner-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}
.banner-title { font-size: 3rem; font-weight: 900; margin-bottom: 10px; color: #fff; }
.banner-subtitle { font-size: 1.3rem; color: var(--accent); }

/* Animation */
.fade { animation: fadeAnim 1.5s; }
@keyframes fadeAnim { from {opacity: .4} to {opacity: 1} }

/* --- Categories --- */
.categories-wrapper {
    background: #111827;
    padding: 1.2rem 0;
    border-bottom: 1px solid #334155;
    text-align: center;
    position: sticky;
    top: 73px;
    z-index: 1000;
}
.categories { overflow-x: auto; white-space: nowrap; padding: 0 1rem; }
.categories button {
    padding: 8px 22px; margin: 0 5px; border-radius: 20px;
    border: 1px solid #334155; background: transparent; color: #94a3b8; cursor: pointer;
}
.categories button.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: bold; }

/* --- Course Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.card {
    background: var(--box); border-radius: 15px; overflow: hidden;
    border: 1px solid #334155; transition: 0.3s; cursor: pointer;
}
.card:hover { transform: translateY(-10px); border-color: var(--accent); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.info { padding: 1.5rem; }
.type-badge { background: rgba(249, 115, 22, 0.1); color: var(--accent); padding: 4px 10px; border-radius: 5px; font-size: 0.8rem; font-weight: bold; }
.title { font-size: 1.2rem; font-weight: 700; margin: 12px 0; }
.price { color: var(--accent); font-size: 1.3rem; font-weight: 800; }

/* --- Footer --- */
footer {
    background: #020617; padding: 4rem 5% 2rem;
    border-top: 1px solid #334155; margin-top: 5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; max-width: 1400px; margin: 0 auto;
}
.footer-about .footer-logo { font-size: 1.6rem; font-weight: 900; color: var(--accent); margin-bottom: 1rem; display: block; text-decoration: none; }
.footer-links h4 { margin-bottom: 1.2rem; color: #fff; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 72px; left: -100%;
        width: 100%; height: calc(100vh - 72px);
        background: var(--bg);
        flex-direction: column;
        padding-top: 2rem;
        transition: 0.4s;
        z-index: 100;
    }
    .nav-links.active { left: 0; }
    .search-box { display: none; } /* Hide desktop search */
    .banner-title { font-size: 2rem; }
    .slideshow-container { height: 300px; }
}

        main { max-width: 1000px; margin: 2rem auto; padding: 0 1.5rem 100px; }
        .hero-card {
            background: var(--box);
            border-radius: 24px;
            overflow: hidden;
            border: 1px solid #334155;
            margin-bottom: 2rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
        }
        .hero-img { width: 100%; height: 400px; object-fit: cover; border-bottom: 1px solid #334155; }
        .hero-body { padding: 2rem; }
        .badge {
            background: rgba(249, 115, 22, 0.1);
            color: var(--accent);
            padding: 5px 15px;
            border-radius: 99px;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
        }
        .course-main-title { font-size: 2.5rem; font-weight: 800; margin: 1rem 0; line-height: 1.2; }
        .lesson-container {
            background: var(--box);
            border-radius: 20px;
            padding: 2rem;
            border: 1px solid #334155;
        }
        .section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
        .lesson-list { display: flex; flex-direction: column; gap: 12px; }
        .lesson-item {
            background: #0f172a;
            padding: 1.2rem;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 15px;
            border: 1px solid transparent;
            transition: 0.3s;
        }
        .lesson-item:hover { border-color: var(--accent); transform: translateX(5px); }
        .lesson-icon {
            width: 35px;
            height: 35px;
            background: #334155;
            color: var(--accent);
            display: grid;
            place-items: center;
            border-radius: 50%;
            font-weight: 800;
            font-size: 0.9rem;
        }
        .lesson-title { font-weight: 600; font-size: 1.05rem; }
        .sticky-action {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 600px;
            background: rgba(30, 41, 59, 0.9);
            backdrop-filter: blur(15px);
            padding: 1rem 2rem;
            border-radius: 99px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #475569;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            z-index: 1100;
        }
        .price-box { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
        .enroll-btn {
            background: var(--accent);
            color: #000;
            text-decoration: none;
            padding: 12px 30px;
            border-radius: 99px;
            font-weight: 800;
            transition: 0.3s;
        }
        .enroll-btn:hover { background: #fb923c; transform: scale(1.05); }
        @media (max-width: 768px) {
            .hero-img { height: 250px; }
            .course-main-title { font-size: 1.8rem; }
            .hero-body { padding: 1.5rem; }
            .sticky-action { padding: 0.8rem 1.5rem; bottom: 10px; }
            .price-box { font-size: 1.2rem; }
            .enroll-btn { padding: 10px 20px; font-size: 0.9rem; }
        }