/* Course Overview Page Styles */
/* Course Overview Page Styles */
:root {
    /* Copying from style.css for consistency */
    --primary-color: #E88D67;
    --primary-hover: #D07B55;
    --text-main: #2C1810;
    --text-muted: #6D5D55;
    --bg-body: #FFF9F7;
    --bg-card: #FFFFFF;
    --radius-md: 24px;
    --radius-sm: 16px;
    --accent-bg: #FFF5F0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

/* Hero Section */
.overview-hero {
    background: var(--bg-body);
    /* Use theme body/accent */
    padding: 8rem 2rem 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stats Bar */
.stats-bar {
    background: #fff;
    padding: 2rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Syllabus Section */
.syllabus-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.accordion-item {
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-content {
    display: none;
    border-top: 1px solid #f0f0f0;
}

.accordion-item.active .accordion-content {
    display: block;
}

.lesson-item {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
    cursor: pointer;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-item:hover {
    background: #fcfcfc;
}

.lesson-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lesson-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.lesson-icon.locked {
    background: #f0f0f0;
    color: var(--text-muted);
}

.lesson-icon.unlocked {
    background: #E3F2FD;
    color: var(--primary-color);
}

.lesson-title {
    font-size: 0.95rem;
}

.preview-badge {
    font-size: 0.75rem;
    background: #E3F2FD;
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    width: 90%;
    max-width: 1000px;
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateX(-50%) translateY(200%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sticky-action-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-enroll {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {

    /* Hero */
    .overview-hero {
        padding: 5rem 1.5rem 3rem 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        position: relative;
        z-index: 2;
        /* Ensure content is above mandala */
    }

    .overview-hero.bg-mandala-1::after {
        top: -150px !important;
        left: -180px !important;
        opacity: 0.5;
        z-index: 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    /* Stats - 2x2 Grid */
    .stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        flex-direction: unset;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    /* Syllabus */
    .syllabus-section {
        padding: 2rem 1rem;
    }

    .syllabus-section.bg-mandala-2::before,
    .syllabus-section.bg-mandala-2::after {
        width: 200px;
        height: 200px;
        opacity: 0.3;
        top: -50px !important;
    }

    /* Sticky Bar Optimization */
    .sticky-action-bar {
        width: 95%;
        bottom: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .price-tag {
        font-size: 1.2rem;
    }

    .btn-enroll {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

/* Video Modal Styles */
.video-modal-content {
    background: #000;
    /* Dark background for video */
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-modal-content .modal-close {
    color: #fff;
    right: 1rem;
    top: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.video-modal-content .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#video-player-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

#video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Inline Preview Styles */
.lesson-preview-container {
    display: none;
    background: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
    padding: 2rem;
    animation: slideDown 0.3s ease-out;
}

.lesson-preview-container.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-inline-video {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.preview-inline-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
}

.preview-inline-content h1,
.preview-inline-content h2,
.preview-inline-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.preview-inline-content p {
    margin-bottom: 1rem;
}

.preview-inline-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.lesson-item.active-preview {
    background: #f0f7ff;
    border-left: 4px solid var(--primary-color);
}

/* Mandala Override for Syllabus Section */
.syllabus-section.bg-mandala-2::before {
    top: -80px !important;
    left: -80px !important;
    bottom: auto !important;
    width: 400px;
    height: 400px;
    opacity: 0.5;
}

.syllabus-section.bg-mandala-2::after {
    top: -80px !important;
    right: -80px !important;
    width: 400px;
    height: 400px;
    opacity: 0.5;
}

/* Ensure content is above mandalas */
.syllabus-section .section-header,
.syllabus-section .accordion {
    position: relative;
    z-index: 2;
}