﻿.popular-courses-area{
    padding: 60px 0;
}
.section-subtitle-wrapper{
    gap: 20px;
}
.section-subtitle-wrapper .text-subtitle {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #070A0E;
}

.section-subtitle-wrapper .line {
    width: 40px;
    height: 1px;
    background-color: #070A0E;
}

.section-main-title.text-dark-blue {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700; 
    font-size: 55px;
    line-height: 72px;
    letter-spacing: 0px;
    opacity: 1;
    background: linear-gradient(270deg, #3431C6 0%, #000021 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    color: transparent; 
}

.course-filter-buttons {
    margin-bottom: 10px;
}

.filter-btn {
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background-color: #000021; /* Nền xanh đen (Mặc định) */
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .filter-btn:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

    .filter-btn.active {
        background-color: #3431C6; /* Nền xanh tím (Trạng thái chọn) */
    }

/* --- Thiết kế Thẻ Khóa học (Course Card) --- */
.custom-course-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden; /* Cắt phần ảnh thừa ở viền bo tròn */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .custom-course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    }

    /* Ảnh khóa học */
    .custom-course-card .card-image {
        position: relative;
        width: 100%;
        height: 220px; /* Cố định chiều cao ảnh để các thẻ đều nhau */
    }

        .custom-course-card .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

/* Nút Lưu (Bookmark) */
.bookmark-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.4); /* Nền đen mờ */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

    .bookmark-btn:hover {
        background-color: #3431C6;
    }

/* Khối Nội dung */
.custom-course-card .card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ép phần nội dung đẩy phần bottom xuống cuối thẻ */
}

/* Thông tin Meta (Số bài học, học viên...) */
.custom-course-card .card-meta{
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px; 
}

    .custom-course-card .card-meta li {
        font-family: 'Google Sans', sans-serif;
        color: #070A0E;
        font-weight: 400;
        font-size: 14px;
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .custom-course-card .card-meta i {
        color: #3431C6; 
        font-size: 16px;
    }

/* Tiêu đề & Mô tả */
.custom-course-card .card-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    color: #000000E0;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 28px;
}

    .custom-course-card .card-title a {
       
        text-decoration: none;
    }

        .custom-course-card .card-title a:hover {
            color: #3431C6;
        }

.custom-course-card .card-desc {
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    color: #000000E0;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}
.custom-course-card .card-bottom {
    font-family: 'Google Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #DADADB;
    padding-top: 16px;
}

.rating-box-custom {  
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-num {
    font-weight: 700;
    color: #000000E0;
    font-size: 16px;
    line-height: 24px;
}

.stars {
    color: #F8B81F; 
    font-size: 12px;
    display: flex;
    gap: 2px;
}

.review-count {
    font-size: 16px;
    line-height: 24px;
    color: #000000E0;
    font-weight: 500;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .course-filter-buttons {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }
}
