/* Course Details Page Specific Styles */

/* Course Header */
.course-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    margin-top: 70px;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.breadcrumb a {
    color: var(--gray-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--dark-color);
    font-weight: 500;
}

.course-header-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.course-header-info h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.course-excerpt {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.course-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.course-meta-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

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

.meta-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.meta-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

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

.course-rating-large {
    margin-top: 25px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars i {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-value {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-left: 5px;
}

.rating-count {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Course Purchase Card */
.course-purchase-card {
    position: sticky;
    top: 100px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.course-preview {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.course-preview:hover .preview-overlay {
    opacity: 1;
}

.btn-video-preview {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-video-preview:hover {
    background-color: #e1156d;
    transform: translateY(-3px);
}

.pricing {
    padding: 30px;
}

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

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

.original-price {
    font-size: 1.3rem;
    color: var(--gray-color);
    text-decoration: line-through;
}

.discount-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-note {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.purchase-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-full i {
    margin-right: 8px;
}

.guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: 8px;
    margin-bottom: 25px;
}

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

.course-features-list h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.course-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.course-features-list i {
    color: var(--primary-color);
    width: 20px;
}

/* Course Tabs */
.course-tabs {
    padding: 80px 0;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--gray-color);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Overview Tab */
.overview-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.overview-main h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.overview-main h3 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
}

.overview-main p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.learn-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.learn-item i {
    color: #28a745;
    margin-top: 3px;
    flex-shrink: 0;
}

.who-list {
    list-style: disc;
    padding-left: 20px;
    color: var(--gray-color);
}

.who-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Overview Sidebar */
.requirements-card, .share-course {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.requirements-card h3, .share-course h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.requirements-card ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--gray-color);
}

.requirements-card li {
    margin-bottom: 10px;
}

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

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter { background-color: #000000; }
.share-btn.linkedin { background-color: #0077b5; }
.share-btn.link { background-color: var(--primary-color); }

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Curriculum Tab */
.curriculum-subtitle {
    color: var(--gray-color);
    margin-bottom: 30px;
}

.accordion {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-item {
    border-bottom: 1px solid var(--light-gray);
}

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

.accordion-header {
    padding: 25px 30px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(67, 97, 238, 0.03);
}

.accordion-header h4 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
}

.module-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.module-details {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.accordion-header i {
    transition: var(--transition);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(67, 97, 238, 0.02);
}

.accordion-item.active .accordion-content {
    padding: 30px;
    max-height: 1000px;
}

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

.lesson-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.lesson-list i {
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
}

.lesson-list span:first-of-type {
    flex-grow: 1;
}

.lesson-duration {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.curriculum-note {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.curriculum-note p {
    color: #856404;
    margin: 0;
}

/* Instructor Tab */
.instructor-profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

.instructor-image img {
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.instructor-info h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.instructor-title {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.instructor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.instructor-bio {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 30px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.expertise-tags span {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Reviews Tab */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 40px;
}

.average-rating {
    text-align: center;
}

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

.stars-large i {
    color: #ffc107;
    font-size: 1.5rem;
    margin: 0 2px;
}

.rating-count {
    color: var(--gray-color);
    margin-top: 5px;
}

.review-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.reviewer img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer h4 {
    margin-bottom: 5px;
}

.review-date {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.review-rating i {
    color: #ffc107;
}

.review-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.review-content p {
    color: var(--gray-color);
    line-height: 1.7;
}

.reviews-actions {
    text-align: center;
    margin-top: 40px;
}

/* Related Courses */
.related-courses {
    background-color: var(--light-color);
    padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .course-header-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .course-purchase-card {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .instructor-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .instructor-image {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .instructor-stats {
        justify-content: center;
    }
    
    .reviews-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .course-header {
        padding: 120px 0 60px;
    }
    
    .course-header-info h1 {
        font-size: 2.2rem;
    }
    
    .course-meta-large {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tabs-header {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .learn-grid {
        grid-template-columns: 1fr;
    }
    
    .accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .accordion-header h4 {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .course-header-info h1 {
        font-size: 1.8rem;
    }
    
    .course-excerpt {
        font-size: 1rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .price-display {
        flex-wrap: wrap;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
}