/* ===== Course Page Styles ===== */

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    margin-top: 80px;
    display: flex;
    gap: 10px;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

/* Course Hero */
.course-hero {
    background: var(--gradient-dark);
    padding: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.course-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.course-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem 0;
}

.course-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.course-hero-description {
    font-size: 1.15rem;
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.course-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.course-hero-meta .meta-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.course-hero-meta .meta-icon {
    font-size: 2rem;
}

.meta-label {
    color: var(--light-gold);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.meta-value {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

/* Video Container */
.video-container {
    position: sticky;
    top: 100px;
}

.video-thumbnail {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.video-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(10, 10, 10, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--black);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    transition: transform 0.3s ease;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Purchase Card */
.course-purchase-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.purchase-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.purchase-price .price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 1.1rem;
}

.purchase-price .price-current {
    color: var(--black);
    font-size: 2.5rem;
    font-weight: 800;
}

.price-discount {
    display: inline-block;
    background: #E74C3C;
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    width: fit-content;
}

.purchase-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-gold);
    color: var(--black);
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.purchase-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow);
}

.purchase-features {
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.purchase-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #555;
}

.purchase-feature span:first-child {
    color: var(--gold);
    font-weight: 700;
}

/* Course Details Section */
.course-details-section {
    padding: 4rem 0;
    background: var(--white);
}

.course-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.course-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Content Blocks */
.content-block {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--light-gray);
}

.block-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gold);
}

/* Learning Grid */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.learning-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.learning-icon {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Curriculum */
.curriculum-info {
    display: flex;
    gap: 1rem;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.curriculum-section {
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.curriculum-section:hover {
    border-color: var(--gold);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #F9F9F9;
    cursor: pointer;
    transition: background 0.3s ease;
}

.section-header:hover {
    background: #F4F4F4;
}

.section-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.curriculum-section.active .section-icon {
    transform: rotate(-180deg);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
}

.section-meta {
    display: flex;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.curriculum-section.active .section-content {
    max-height: 1000px;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--light-gray);
    transition: background 0.3s ease;
}

.lesson-item:hover {
    background: #F9F9F9;
}

.lesson-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lesson-icon {
    font-size: 1.3rem;
}

.lesson-title {
    color: var(--black);
    font-weight: 500;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lesson-duration {
    color: #666;
    font-size: 0.9rem;
}

.preview-btn {
    padding: 0.4rem 1rem;
    background: var(--gradient-gold);
    color: var(--black);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    transform: scale(1.05);
}

/* Requirements & Description */
.requirements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.requirements-list li {
    padding-right: 2rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.requirements-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
}

.description-content {
    color: #555;
    line-height: 1.8;
}

.description-content p {
    margin-bottom: 1.5rem;
}

.description-content h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin: 2rem 0 1rem;
}

.description-content ul {
    margin-right: 2rem;
    margin-bottom: 1.5rem;
}

.description-content ul li {
    margin-bottom: 0.8rem;
    color: #555;
}

/* Instructor Card */
.instructor-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.instructor-avatar-large {
    width: 120px;
    height: 120px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    flex-shrink: 0;
}

.instructor-details {
    flex: 1;
}

.instructor-name-large {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.instructor-title-large {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.instructor-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #F9F9F9;
    border-radius: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.stat-item span {
    color: #666;
    font-size: 0.9rem;
}

.instructor-bio {
    color: #555;
    line-height: 1.8;
}

/* Sidebar */
.course-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.course-features-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gold);
}

.course-features-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
    color: #555;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list .feature-icon {
    font-size: 1.5rem;
}

/* Related Courses */
.related-courses-section {
    padding: 4rem 0;
    background: #F9F9F9;
}

.courses-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.course-card-small {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-card-small:hover {
    transform: translateY(-5px);
}

.course-image-small {
    height: 200px;
    background: var(--gradient-dark);
}

.course-content-small {
    padding: 1.5rem;
}

.course-content-small h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.course-price-small {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.course-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.course-link:hover {
    color: var(--gold);
}

/* Responsive Design */
@media (max-width: 968px) {
    .course-hero-content {
        grid-template-columns: 1fr;
    }

    .video-container {
        position: static;
    }

    .course-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-sticky {
        position: static;
    }

    .course-hero-title {
        font-size: 2rem;
    }

    .course-hero-description {
        font-size: 1rem;
    }

    .course-hero-meta {
        grid-template-columns: 1fr;
    }

    .learning-grid {
        grid-template-columns: 1fr;
    }

    .instructor-card {
        flex-direction: column;
        text-align: center;
    }

    .instructor-avatar-large {
        margin: 0 auto;
    }

    .instructor-stats {
        justify-content: center;
    }

    .courses-grid-small {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .content-block {
        padding: 1.5rem;
    }

    .block-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-meta {
        font-size: 0.8rem;
    }

    .lesson-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .instructor-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
