/* Course Card Styles */
.course-card {
    font-size: 0.8rem;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.course-thumbnail {
    height: 100px;
    position: relative;
    overflow: hidden;
}

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

.course-level {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.course-content {
    padding: 0.5rem !important;
}

.course-category {
    font-size: 0.65rem;
}

.course-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.25rem 0;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-instructor {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.course-meta {
    font-size: 0.65rem;
    margin-top: 0.25rem;
}

.course-rating {
    color: #f59e0b;
}

.course-price {
    font-weight: 700;
    color: #4f46e5;
}

.course-duration {
    color: #6b7280;
}

.course-hover-actions {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scale(0.9);
    opacity: 0;
    z-index: 10;
    transition: all 0.3s ease;
    pointer-events: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.course-card:hover .course-hover-actions {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.action-buttons {
    pointer-events: auto;
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
}

/* Popular Courses Section */
#popular-courses {
    background-color: #f0f8ff;
    position: relative;
    overflow: hidden;
}

#popular-courses::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(67, 97, 238, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.section-header {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
