/* --- SkillarCode Premium Tokens --- */
:root {
    --sc-bg: #f5f9ff;
    --sc-white: #ffffff;
    --sc-primary: #007bff;
    --sc-dark: #1a202c;
    --sc-text: #4a5568;
    --sc-whatsapp: #1b9c4a;
    --sc-border: #e2e8f0;
    --sc-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Dark Theme Fix (Ref: image_c1e758.png) */
body.sc-dark-theme {
    --sc-bg: #0f172a;
    --sc-white: #1e293b;
    --sc-dark: #f8f9fa;
    --sc-text: #cbd5e1;
    --sc-border: #334155;
    --sc-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--sc-bg);
    color: var(--sc-text);
    overflow-x: hidden;
}

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

/* --- Header Layout --- */
/* --- Header Layout --- */
.sc-header {
    background-color: var(--sc-white);
    height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--sc-shadow);
    border-bottom: 1px solid var(--sc-border);
}

.sc-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* --- Left Side (Logo + Nav) --- */
.sc-nav-left {
    display: flex;
    align-items: center;
    gap: 40px; 
}

.sc-logo a {
    font-size: 26px;
    font-weight: 700;
    color: var(--sc-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sc-logo span { color: var(--sc-primary); }

.sc-nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.sc-nav-item {
    text-decoration: none;
    color: var(--sc-text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sc-nav-item:hover { color: var(--sc-primary); }

/* --- NEW: Explore Mega Dropdown --- */
.sc-nav-dropdown-wrapper {
    position: relative;
    padding: 25px 0; /* Smooth hover zone */
}

.sc-drop-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.sc-nav-dropdown-wrapper:hover .sc-drop-icon {
    transform: rotate(180deg);
}

.sc-explore-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 480px;
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.sc-nav-dropdown-wrapper:hover .sc-explore-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sc-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sc-dropdown-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.sc-dropdown-card:hover {
    background: var(--sc-bg-blue);
}

.sc-drop-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.sc-drop-card-info h4 {
    font-size: 14px;
    color: var(--sc-dark);
    margin: 0;
}

.sc-drop-card-info p {
    font-size: 11px;
    color: var(--sc-text);
    margin: 0;
}

/* View All Style */
.sc-view-all-card {
    grid-column: span 2;
    background: #f8f9fa;
    justify-content: center;
}

/* --- Right Side Actions --- */
.sc-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Theme Toggle Fix --- */
.sc-theme-toggle {
    width: 50px;
    height: 26px;
    background-color: #e2e8f0;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.4s ease;
}

body.sc-dark-theme .sc-theme-toggle {
    background-color: var(--sc-primary);
}

.sc-toggle-ball {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden; /* Ye ensure karega ki koi icon bahar na dikhe */
}

body.sc-dark-theme .sc-toggle-ball {
    transform: translateX(24px);
}

/* Icons styling inside the ball */
.sc-sun-icon, .sc-moon-icon {
    font-size: 12px;
    position: absolute; /* Dono ko ek ke upar ek rakha hai */
    transition: all 0.3s ease;
}

.sc-sun-icon {
    color: #f59e0b;
    opacity: 1;
    transform: scale(1);
}

.sc-moon-icon {
    color: #1e293b;
    opacity: 0;
    transform: scale(0) rotate(-45deg); /* Chupa hua */
}

/* Dark mode transitions */
body.sc-dark-theme .sc-sun-icon {
    opacity: 0;
    transform: scale(0) rotate(45deg);
}

body.sc-dark-theme .sc-moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.sc-btn-whatsapp {
    background-color: var(--sc-whatsapp);
    color: white;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}

/* --- Mobile Drawer & Submenu --- */
.sc-menu-toggle { display: none; font-size: 22px; cursor: pointer; color: var(--sc-dark); }

.sc-mobile-drawer {
    display: none;
    background: var(--sc-white);
    width: 100%;
    position: absolute; top: 75px; left: 0;
    border-bottom: 1px solid var(--sc-border);
    padding: 20px;
    box-shadow: var(--sc-shadow);
}

.sc-mobile-submenu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    display: none;
}

.sc-mobile-dropdown.active .sc-mobile-submenu {
    display: block;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .sc-menu-toggle { display: block; }
    .sc-btn-whatsapp span { display: none; }
    .sc-btn-whatsapp { padding: 10px; border-radius: 50%; }
    .sc-nav-left { gap: 0; }
    .sc-mobile-drawer.active { display: block; animation: slideDown 0.3s ease; }
}


/* =========================================
   2. MAIN CONTENT & COURSES
   ========================================= */
.sc-main-content {
    padding-top: 100px;
}

.sc-courses-section {
    padding: 60px 0;
}

.sc-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sc-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--sc-dark);
}

.sc-section-title span {
    color: var(--sc-primary);
}

.sc-section-subtitle {
    font-size: 16px;
    color: var(--sc-text);
    margin-top: 10px;
}

.sc-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.sc-course-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sc-shadow);
    transition: transform 0.3s;
}

.sc-course-card:hover {
    transform: translateY(-8px);
}

.sc-card-banner {
    position: relative;
    aspect-ratio: 16/9;
    background: #e2e8f0;
}

.sc-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.sc-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 5;
    text-transform: uppercase;
}

.sc-tag-popular {
    background: var(--sc-primary);
}

.sc-tag-new {
    background: var(--sc-orange);
}

.sc-card-body {
    padding: 24px;
    flex-grow: 1;
}

.sc-course-name {
    font-size: 18px;
    color: var(--sc-dark);
    margin-bottom: 12px;
    height: 52px;
    line-height: 1.4;
    overflow: hidden;
}

.sc-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}

.sc-stars {
    color: #fec107;
    display: flex;
    gap: 2px;
}

.sc-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.sc-price-discount {
    font-size: 22px;
    font-weight: 700;
    color: var(--sc-dark);
}

.sc-price-original {
    font-size: 14px;
    color: var(--sc-text);
    text-decoration: line-through;
}

.sc-discount-percent {
    color: var(--sc-green);
    font-weight: 600;
}

.sc-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sc-btn-purchase,
.sc-btn-details {
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.sc-btn-purchase {
    background: var(--sc-primary);
    color: #fff;
}

.sc-btn-details {
    border: 1px solid var(--sc-primary);
    color: var(--sc-primary);
}

/* =========================================
   3. FINAL PREMIUM FOOTER (Ref: image_c1e431.png)
   ========================================= */
.sc-footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 80px 0 30px;
    border-top: 1px solid #1e293b;
}

.sc-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.sc-footer-brand .sc-logo a {
    color: #fff;
}

.sc-footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
}

.sc-social-links {
    display: flex;
    gap: 12px;
}

.sc-social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.sc-footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.sc-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--sc-primary);
}

.sc-footer-list {
    list-style: none;
}

.sc-footer-list li {
    margin-bottom: 12px;
}

.sc-footer-list a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.sc-footer-list a:hover {
    color: var(--sc-primary);
    padding-left: 5px;
}

.sc-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

/* =========================================
   4. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }

    .sc-menu-toggle {
        display: block;
    }

    .sc-mobile-drawer {
        display: none;
        background: var(--sc-white);
        width: 100%;
        position: absolute;
        top: 75px;
        left: 0;
        padding: 25px;
        border-bottom: 1px solid var(--sc-border);
    }

    .sc-mobile-drawer.active {
        display: block;
    }

    .sc-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sc-footer-grid {
        grid-template-columns: 1fr;
    }

    .sc-card-actions {
        grid-template-columns: 1fr;
    }

    .sc-btn-whatsapp span {
        display: none;
    }

    .sc-btn-whatsapp {
        padding: 10px;
        border-radius: 50%;
    }
}