/* Courses Module Styles - Refined */

/* Breadcrumb Override - Ensure Blue Background */
.breadcrumb-bar {
    background: linear-gradient(135deg, #1D4ED8 0%, #60A5FA 100%) !important;
    padding: 15px 0 !important;
}

.breadcrumb-bar .breadcrumb-title {
    color: #fff !important;
}

.breadcrumb-bar .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-bar .breadcrumb-item.active {
    color: #fff;
}

/* Course Card - Standardized */
.course-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #1E40AF;
    /* Primary Blue Hover Border */
}

/* Thumbnail */
.course-thumbnail {
    position: relative;
    overflow: hidden;
    height: 180px;
    background-color: #f8f9fa;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.course-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 45px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Badges */
.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-badge.free {
    background: #198754;
    /* Success Green */
    color: #fff;
}

.course-badge.premium {
    background: #ffc107;
    /* Warning Yellow */
    color: #000;
}

/* Content */
.course-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #6c757d;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.course-meta span i {
    color: #1E40AF;
    /* Primary Blue Icon */
    margin-right: 4px;
}

.course-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-title a {
    color: #2c3e50;
    text-decoration: none;
}

.course-title a:hover {
    color: #1E40AF;
}

.course-desc {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Footer & Buttons */
.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.course-instructor {
    display: flex;
    align-items: center;
}

.course-instructor img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 8px;
}

.course-instructor span {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.btn-enroll {
    display: inline-block;
    padding: 6px 15px;
    background-color: transparent;
    color: #1E40AF;
    border: 1px solid #1E40AF;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}


/* Single Course Page Styles */

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

.course-details-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #272b41;
    margin-bottom: 15px;
}

.course-details-header .course-meta {
    border-bottom: none;
    justify-content: flex-start;
    gap: 20px;
    font-size: 14px;
}

.course-details-header .course-meta span i {
    font-size: 14px;
}

.rating {
    color: #ffc107;
    font-size: 14px;
}

.rating span {
    color: #757575;
    margin-left: 5px;
}

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

.video-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-card img {
    width: 100%;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E40AF;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.price-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.price-card .price {
    font-size: 36px;
    font-weight: 700;
    color: #272b41;
    margin-bottom: 20px;
    display: block;
}

.price-card .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    margin-left: 10px;
    font-weight: 400;
}

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

.course-includes li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
}

.course-includes li i {
    width: 25px;
    color: #1E40AF;
}

/* Main Content */
.course-description-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.course-description-box h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #272b41;
}

/* Curriculum Accordion */
.accordion-item {
    border: 1px solid #e5e5e5;
    margin-bottom: 10px;
    border-radius: 5px !important;
    overflow: hidden;
}

.accordion-button {
    background-color: #f9f9f9;
    color: #333;
    font-weight: 600;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: #f0f7ff;
    color: #1E40AF;
}

.accordion-body {
    padding: 0;
}

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

.lesson-list li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

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

.lesson-list li i {
    margin-right: 10px;
    color: #777;
}

.lesson-list li.locked i {
    color: #ccc;
}