/*
Theme Name:        Advanced EdTech Pro
Theme URI:         https://kartshri.com/themes/advanced-edtech-pro
Author:            Akash Sikarwar
Author URI:        https://kartshri.com
Description:       Next-Generation Modern Indian EdTech WordPress Theme inspired by Physics Wallah, Testbook, and Careerwill. Features automatic EdTech Homepage setup, full-width SaaS dashboard layouts, single course landing pages with interactive HLS video & curriculum tabs, NTA exam mode, Dark/Light mode, and mobile-first bottom navigation.
Version:           3.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
Text Domain:       advanced-edtech-theme
*/

:root {
    --ed-primary: #2563eb;
    --ed-primary-hover: #1d4ed8;
    --ed-accent: #7c3aed;
    --ed-success: #16a34a;
    --ed-danger: #dc2626;
    --ed-warning: #f59e0b;
    --ed-bg: #f8fafc;
    --ed-surface: #ffffff;
    --ed-surface-alt: #f1f5f9;
    --ed-text: #0f172a;
    --ed-muted: #475569;
    --ed-border: #e2e8f0;
    --ed-radius-lg: 16px;
    --ed-radius-md: 12px;
    --ed-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
}

[data-ed-theme="dark"] {
    --ed-bg: #0b1120;
    --ed-surface: #1e293b;
    --ed-surface-alt: #0f172a;
    --ed-text: #f8fafc;
    --ed-muted: #94a3b8;
    --ed-border: #334155;
    --ed-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.edtech-modern-body {
    margin: 0;
    padding: 0;
    background: var(--ed-bg);
    color: var(--ed-text);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px;
}

/* Hide redundant plugin inner shell header when theme header is active */
.edtech-modern-body .aelms-topbar,
.edtech-modern-body .aelms-mobile-bottom-nav {
    display: none !important;
}

.edtech-modern-body .aelms-platform-shell {
    background: transparent !important;
    padding-bottom: 0 !important;
}

/* Top Announcement Bar */
.ed-topbar-promo {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b0764 50%, #1e40af 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.ed-topbar-promo a {
    color: #fde047;
    text-decoration: underline;
}

/* Sticky Glassmorphism Navbar */
.ed-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ed-border);
}

[data-ed-theme="dark"] .ed-header {
    background: rgba(30, 41, 59, 0.92);
}

.ed-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ed-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ed-text);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.ed-logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ed-primary), var(--ed-accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.ed-nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ed-nav-links a {
    color: var(--ed-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    transition: color 0.15s;
}

.ed-nav-links a:hover {
    color: var(--ed-primary);
}

.ed-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ed-btn-primary {
    background: linear-gradient(135deg, var(--ed-primary), #4f46e5);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.ed-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.ed-btn-outline {
    background: var(--ed-surface);
    color: var(--ed-text) !important;
    border-color: var(--ed-border);
}

.ed-theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--ed-border);
    background: var(--ed-surface-alt);
    cursor: pointer;
    font-size: 16px;
}

/* Hero Section */
.ed-hero {
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 45%),
                radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.12), transparent 50%),
                var(--ed-surface);
    border-bottom: 1px solid var(--ed-border);
    padding: 56px 24px;
}

.ed-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.ed-hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.ed-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--ed-primary);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.ed-hero h1 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.025em;
}

.ed-gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ed-hero p {
    font-size: 17px;
    color: var(--ed-muted);
    margin: 0 0 24px;
}

.ed-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.ed-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--ed-border);
}

.ed-stat-box strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--ed-primary);
}

.ed-stat-box span {
    font-size: 12.5px;
    color: var(--ed-muted);
    font-weight: 600;
}

/* Featured Hero Course Card */
.ed-featured-card {
    background: var(--ed-surface);
    border: 2px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--ed-radius-lg);
    padding: 26px;
    box-shadow: var(--ed-shadow);
    position: relative;
}

.ed-live-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Exam Category Chips */
.ed-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 28px 0 40px;
}

.ed-cat-card {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-md);
    padding: 16px;
    text-decoration: none;
    color: var(--ed-text);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.ed-cat-card:hover {
    border-color: var(--ed-primary);
    transform: translateY(-2px);
    box-shadow: var(--ed-shadow);
}

/* Modern Course Cards Grid */
.ed-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0 48px;
}

.ed-course-card {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--ed-shadow);
    transition: transform 0.2s ease;
}

.ed-course-card:hover {
    transform: translateY(-4px);
}

.ed-course-banner {
    background: linear-gradient(135deg, #1e3a8a, #4c1d95);
    color: #ffffff;
    padding: 22px;
    position: relative;
}

.ed-course-banner h3 {
    margin: 10px 0 6px;
    font-size: 19px;
    line-height: 1.35;
}

.ed-course-body {
    padding: 20px 22px;
}

.ed-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.ed-meta-pill {
    background: var(--ed-surface-alt);
    color: var(--ed-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.ed-price-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--ed-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ed-price-big {
    font-size: 24px;
    font-weight: 800;
    color: var(--ed-text);
}

.ed-price-strike {
    font-size: 14px;
    color: var(--ed-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

/* Single Course Detail Page Layout */
.ed-single-course-wrap {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin: 36px auto;
}

.ed-curriculum-box {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.ed-curriculum-header {
    padding: 16px 20px;
    background: var(--ed-surface-alt);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.ed-lecture-row {
    padding: 12px 20px;
    border-top: 1px solid var(--ed-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14.5px;
}

/* Footer */
.ed-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 24px 90px;
    margin-top: 64px;
}

.ed-footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.ed-footer h4 {
    color: #ffffff;
    margin-top: 0;
}

.ed-footer a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

/* Mobile Bottom Bar */
.ed-mobile-dock {
    display: none;
}

@media (max-width: 900px) {
    .ed-hero-grid, .ed-single-course-wrap {
        grid-template-columns: 1fr;
    }
    .ed-nav-links {
        display: none;
    }
    .ed-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .ed-mobile-dock {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: var(--ed-surface);
        border-top: 1px solid var(--ed-border);
        z-index: 9999;
    }
    .ed-mobile-dock a {
        text-decoration: none;
        color: var(--ed-text);
        font-size: 11px;
        font-weight: 700;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
}


/* v2.0.0 Mobile Drawer, Paid+Free Badges & Adaptive Device Adjustments */
.ed-mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--ed-border);
    background: var(--ed-surface-alt);
    color: var(--ed-text);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.ed-mobile-drawer {
    display: none;
    background: var(--ed-surface);
    border-bottom: 1px solid var(--ed-border);
    padding: 16px 20px;
}

.ed-mobile-drawer.open {
    display: block;
}

.ed-mobile-drawer a {
    display: block;
    padding: 12px 10px;
    color: var(--ed-text);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--ed-border);
}

.ed-filter-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ed-filter-bar::-webkit-scrollbar {
    display: none;
}

.ed-free-ribbon {
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
}

.ed-bonus-banner {
    background: rgba(22, 163, 74, 0.1);
    border: 1px dashed #16a34a;
    color: var(--ed-text);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12.5px;
    margin: 12px 0;
}

.ed-sticky-mobile-enroll {
    display: none;
}

@media (max-width: 900px) {
    .ed-mobile-menu-btn {
        display: inline-flex;
    }
    .ed-header-inner {
        padding: 10px 14px;
    }
    .ed-container {
        padding: 0 14px;
    }
    .ed-hero {
        padding: 28px 14px;
    }
    .ed-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
        gap: 16px;
    }
    .ed-sticky-mobile-enroll {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 64px;
        left: 0;
        right: 0;
        background: var(--ed-surface);
        border-top: 2px solid var(--ed-primary);
        padding: 10px 16px;
        z-index: 9998;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
    }
}
