/* ===== COURSE DETAILS STYLES ===== */
:root {
    --primary-color: #2d63c8;
    --secondary-color: #ff6b6b;
    --text-color: #333;
    --light-text: #777;
    --border-color: #eaeaea;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Course Header Section */
.course-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    color: var(--white);
    text-align: right;
    margin-bottom: 40px;
}

.course-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.course-header .container {
    position: relative;
    z-index: 2;
}

.course-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 14px;
    direction: rtl;
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs .current {
    color: rgba(255, 255, 255, 0.7);
}

/* Course Details Section */
.course-details-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.course-main-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

/* Course Quick Info */
.course-quick-info {
    margin-bottom: 30px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.course-meta li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex: 1;
    min-width: 150px;
}

.course-meta i {
    font-size: 24px;
    color: var(--primary-color);
    margin-left: 15px;
}

.meta-info span {
    display: block;
    font-size: 12px;
    color: var(--light-text);
}

.meta-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* Course Featured Image */
.course-featured-image {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.course-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
}

/* Course Description */
.course-description {
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Course Tabs */
.course-tabs {
    margin-top: 40px;
}

.nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.nav-item {
    margin-left: 5px;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(45, 99, 200, 0.1);
}

.nav-item.active .nav-link {
    background-color: var(--primary-color);
    color: var(--white);
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.fade.in {
    opacity: 1;
}

.tab-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.tab-content-inner {
    line-height: 1.8;
}

/* Requirements & Syllabus */
.requirements-title,
.syllabus-title {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-color);
}

.requirements-list,
.syllabus-list {
    padding-right: 20px;
    margin-bottom: 30px;
}

.requirements-list li,
.syllabus-list li {
    margin-bottom: 10px;
    position: relative;
}

/* Curriculum Tab */
.course-curriculum {
    margin-top: 20px;
}

.curriculum-section {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.section-header {
    background-color: var(--bg-light);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.section-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.section-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.section-content {
    padding: 0;
}

.section-lessons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.lesson-icon {
    margin-left: 15px;
    color: var(--primary-color);
    font-size: 18px;
}

.lesson-title {
    flex: 1;
    font-size: 14px;
}

.lesson-duration {
    font-size: 12px;
    color: var(--light-text);
}

/* Instructor Tab */
.instructor-profile {
    display: flex;
    margin-bottom: 30px;
}

.instructor-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 20px;
    flex-shrink: 0;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info {
    flex: 1;
}

.instructor-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px;
}

.instructor-title {
    color: var(--light-text);
    margin-bottom: 15px;
}

.instructor-bio {
    line-height: 1.8;
}

/* Reviews Tab */
.course-rating-summary {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.average-rating {
    font-size: 18px;
    margin-bottom: 10px;
}

.average-rating span {
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    font-size: 24px;
    color: var(--warning-color);
    margin-bottom: 15px;
}

/* Course Sidebar */
.course-sidebar {
    position: sticky;
    top: 30px;
}

.course-widget {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Course Info Widget */
.course-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.course-info-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.course-info-list i {
    font-size: 20px;
    color: var(--primary-color);
    margin-left: 15px;
}

.course-info-list span {
    flex: 1;
    color: var(--light-text);
}

.course-info-list strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Course Price Widget */
.course-price-widget {
    text-align: center;
}

.price-header {
    margin-bottom: 20px;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2355b0;
    border-color: #2355b0;
}

.btn-outline-primary {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Course Share Widget */
.social-share {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-share .facebook {
    background-color: #3b5998;
}

.social-share .twitter {
    background-color: #1da1f2;
}

.social-share .linkedin {
    background-color: #0077b5;
}

.social-share .whatsapp {
    background-color: #25d366;
}

.social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Instructor Widget */
.instructor-widget .instructor-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.instructor-widget .instructor-image {
    margin-left: 0;
    margin-bottom: 15px;
}

.instructor-widget .instructor-info h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.instructor-widget .rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

.instructor-widget .stars {
    color: var(--warning-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.instructor-widget .instructor-bio {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--light-text);
}

