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

/* Course Header */

.course-header {
    background: url('../images/course/LMS-Inner-Banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 200px 0 140px;
    margin-top: 0;
}

.course-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 25px;
}

.course-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.course-header .breadcrumb-item a:hover {
    color: white;
}

.course-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.course-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.course-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.course-badges .badge {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-header .course-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #ffff;
}

.course-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    max-width: 700px;
}

.course-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item i {
    font-size: 1rem;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.instructor-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--line-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.instructor-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.instructor-name {
    color: var(--secondary-color);
    font-weight: 500;
}

.instructor-name:hover {
    color: white;
    text-decoration: underline;
}

/* Course Content Section */
.course-content-section {
    padding: 60px 0 100px;
    background: var(--bg-light);
}

.content-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.content-card p {
    text-align: justify;
}

.opportunity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.opportunity-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-left: 30px;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--line-color);
}

/* Course Highlights */
.course-highlights {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));
    border-radius: var(--border-radius);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.highlight-item i {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.highlight-item div {
    display: flex;
    flex-direction: column;
}

.highlight-item strong {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.highlight-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* What You'll Learn */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.learning-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.learning-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 2px;
}

.learning-item span {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Curriculum Accordion */
.curriculum-intro {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    padding: 20px 25px;
    background: white;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));
    color: var(--text-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.module-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.module-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.module-info strong {
    font-size: 1rem;
    color: var(--text-dark);
}

.module-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.accordion-body {
    padding: 0 25px 25px;
}

.lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

.lesson-list li i {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 0.9rem;
}

.lesson-list li .duration {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Requirements */
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

.requirements-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

.instructor-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.instructor-details h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.instructor-title {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.instructor-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.instructor-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.instructor-stats span i {
    color: var(--primary-color);
}

.instructor-bio {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Reviews */
.reviews-summary {
    display: flex;
    gap: 40px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.rating-big {
    text-align: center;
    flex-shrink: 0;
}

.rating-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.rating-big .stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin: 10px 0;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rating-bars {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.rating-bar-item span:first-child {
    width: 60px;
    color: var(--text-muted);
}

.rating-bar-item .bar {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-item .bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

.rating-bar-item span:last-child {
    width: 40px;
    text-align: right;
    color: var(--text-muted);
}

.reviews-list {
    margin-bottom: 25px;
}

.review-item {
    padding: 25px 0;
    border-bottom: 1px solid #f1f5f9;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.reviewer-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-meta .stars {
    color: #fbbf24;
    font-size: 0.85rem;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.7;
}

.load-more-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
}

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

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

.sidebar-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-lg);
}

.course-preview {
    position: relative;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
    margin-bottom: 25px;
}

.preview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.preview-icon i {
    font-size: 2rem;
    color: white;
}

.play-btn {
    background: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.play-btn i {
    color: var(--primary-color);
}

.price-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    /* margin-bottom: 10px; */
}

.price-section .current-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-section .original-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: #fef2f2;
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.price-note i {
    color: #dc2626;
}

.cta-buttons {
    margin-bottom: 20px;
}

.cta-buttons .btn-primary {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.guarantee-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.guarantee-text i {
    color: var(--secondary-color);
}

.sidebar-features h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.sidebar-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.sidebar-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f5f9;
}

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

.sidebar-features li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.share-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.share-section span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Related Courses */
.related-courses-section {
    padding: 80px 0;
    background: white;
}

.related-course-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.related-course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.course-icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.course-icon-wrap i {
    font-size: 1.8rem;
    color: white;
}

.related-course-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-course-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.course-meta-mini {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.course-meta-mini span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-meta-mini i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .course-header {
        padding: 120px 0 50px;
    }

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

    .sticky-sidebar {
        position: relative;
        top: 0;
        margin-top: 40px;
    }

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

    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }

    .rating-bars {
        width: 100%;
    }

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

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

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

@media (max-width: 767.98px) {
    .course-header {
        padding: 100px 0 40px;
    }

    .course-header .course-title {
        font-size: 1.75rem;
    }

    .course-meta-row {
        gap: 15px;
    }

    .content-card {
        padding: 25px;
    }

    .module-header {
        gap: 12px;
    }

    .module-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .module-info strong {
        font-size: 0.95rem;
    }

    .price-section .current-price {
        font-size: 1.8rem;
    }
}
