/*
 * Course View Page Styles
 * Custom styles for the course detail page
 */

/* Course Overview Section */
.course-overview-section {
    padding: 80px 0;
}

.course-overview-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

/* Course Header */
.course-header {
    margin-bottom: 25px;
}

.course-category-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ff8355;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.course-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

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

.course-meta .meta-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--text-color);
}

.course-meta .meta-item i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 16px;
}

/* Course Image */
.course-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    height: 400px; /* Fixed height for the container */
}

.course-image img {
    width: 100%;
    height: 100%; /* Fill the container */
    object-fit: cover; /* Maintain aspect ratio while filling */
    transition: transform 0.5s ease;
}

.course-image:hover img {
    transform: scale(1.03);
}

/* Course Description */
.course-description {
    margin-bottom: 40px;
}

.course-description h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.course-description h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.course-description p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 25px;
}

/* Course Features */
.course-features {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.course-features h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.feature-item span {
    font-size: 15px;
    color: var(--text-color);
}

/* Course Curriculum */
.course-curriculum {
    margin-bottom: 40px;
}

.course-curriculum h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.course-curriculum h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.accordion-item {
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 15px 20px;
    background-color: #f9f9f9;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #252525;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #eee;
}

.accordion-body {
    padding: 20px;
}

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

.curriculum-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.curriculum-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Course Instructors */
.course-instructors {
    margin-bottom: 40px;
}

.course-instructors h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.course-instructors h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.instructor-card {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

.instructor-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.instructor-position {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.instructor-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Course Sidebar */
.course-sidebar {
    position: sticky;
    top: 100px;
}

.course-sidebar-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.course-price {
    text-align: center;
    margin-bottom: 25px;
}

.price-label {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.course-enrollment {
    margin-bottom: 25px;
}

.course-includes h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.course-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-includes ul li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.course-includes ul li:last-child {
    border-bottom: none;
}

.course-includes ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.course-share h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

.course-share .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

/* Brand-specific hover colors for social icons in course view */
.course-share .social-icon:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Facebook */
.course-share .social-icon.facebook:hover {
    background-color: #3b5998;
}

/* Twitter */
.course-share .social-icon.twitter:hover {
    background-color: #1da1f2;
}

/* LinkedIn */
.course-share .social-icon.linkedin:hover {
    background-color: #0077b5;
}

/* WhatsApp */
.course-share .social-icon.whatsapp:hover {
    background-color: #25d366;
}

/* Email */
.course-share .social-icon.email:hover {
    background-color: #ea4335;
}

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

/* Style for course cards in related courses section */
.course-card .course-image {
    height: 250px;
    margin-bottom: 0;
}

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

/* Responsive Styles */
@media (max-width: 991px) {
    .course-sidebar {
        position: static;
        margin-top: 30px;
    }

    .course-image {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .course-overview-section {
        padding: 60px 0;
    }

    .course-title {
        font-size: 28px;
    }

    .course-meta {
        gap: 15px;
    }

    .course-image {
        height: 300px;
    }

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

    .instructor-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .course-overview-content {
        padding: 20px;
    }

    .course-title {
        font-size: 24px;
    }

    .course-meta {
        flex-direction: column;
        gap: 10px;
    }

    .course-image {
        height: 250px;
    }
}
