/* Related Courses Section Styles */

.related-courses-section {
    padding: 60px 0;
    background-color: #FAFBFC;
}

.related-courses-section .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-courses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.related-courses-title {
    font-size: 32px;
    font-weight: 600;
    color: #212427;
    margin: 0;
    line-height: 1.2;
}

.see-more-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #356DF1;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.see-more-link:hover {
    color: #2563eb;
}

.see-more-link svg {
    transition: transform 0.3s ease;
}

.see-more-link:hover svg {
    transform: translateX(4px);
}

/* Related Courses Grid */
.related-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Course Item */
.course-item {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.course-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Course Image */
.course-image-wrapper {
    position: relative;
    overflow: hidden;
}

.course-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #FF971A;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    z-index: 2;
}

.course-image-link {
    display: block;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

.course-item:hover .course-image {
    transform: scale(1.05);
}

/* Course Content */
.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

.course-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #212427;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-title a:hover {
    color: #356DF1;
}

.course-description {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-instructor {
    margin: 0;
    width: 100%;
    text-align: left;
}

.instructor-name {
    color: #356DF1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.instructor-name:hover {
    color: #2563eb;
}

/* Course Meta */
.course-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6B7280;
    width: 100%;
    justify-content: flex-start;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: #9CA3AF;
    flex-shrink: 0;
}

/* Course Price */
.course-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #356DF1;
    font-size: 16px;
    margin-top: 8px;
    justify-content: flex-start;
    width: 100%;
}

.price-prefix,
.price-suffix {
    font-size: 12px;
    font-weight: 400;
    color: #6B7280;
}

.price-original {
    color: #F02D00;
    font-weight: 400;
    text-decoration: line-through;
    font-size: 14px;
}

.price.free {
    color: #3AB500;
    font-size: 16px;
}

/* Start Learning Button */
.btn-start-learning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #356DF1;
    color: #FFFFFF;
    padding: 11px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 12px;
    width: 100%;
    align-self: stretch;
}

.btn-start-learning:hover {
    background-color: #212427;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 36, 39, 0.3);
}

.btn-start-learning svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-start-learning:hover svg {
    transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .related-courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .related-courses-section {
        padding: 50px 0;
    }
    
    .related-courses-title {
        font-size: 28px;
    }
    
    .related-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .related-courses-section {
        padding: 40px 0;
    }
    
    .related-courses-section .container {
        padding: 0 16px;
    }
    
    .related-courses-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .related-courses-title {
        font-size: 24px;
    }
    
    .related-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-content {
        padding: 16px;
    }
    
    .course-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .related-courses-section {
        padding: 30px 0;
    }
    
    .related-courses-section .container {
        padding: 0 12px;
    }
    
    .related-courses-title {
        font-size: 20px;
    }
    
    .course-content {
        padding: 12px;
        gap: 10px;
    }
    
    .course-title {
        font-size: 16px;
    }
    
    .course-description {
        font-size: 13px;
    }
    
    .btn-start-learning {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
    }
}