.filter-container {
    margin: 0 auto;
}

.filter-title {
    font-weight: 600;
    font-size: 24px;
    color: var(--primary-color);
    margin: auto 0;
}

.course-card-detail {
    border-radius: 20px;
    position: relative;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-detail:hover {
    transform: translateY(-5px);
}

.filter-teacher-type {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: start !important;
}

.filter-teacher-type::-webkit-scrollbar {
    display: none;
}

.teacher-filter {
    min-width: 250px;
    height: 50px;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .banner-container {
        height: 600px;
    }

    .filter-title {
        text-align: center;
    }

    .course-img-container {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .banner-container {
        height: 400px;
    }

    .course-img-container {
        height: 200px;
    }

    .course-title h2 {
        font-size: 18px;
    }

    .course-teacher-title h3 {
        font-size: 14px;
    }

    .course-price {
        font-size: 20px;
    }
}

.course-img-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.course-img-container:hover .course-img {
    transform: scale(1.1);
}

.course-title {
    text-decoration: none;
    display: block;
    overflow: hidden;
}

.course-title h2 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.3s ease;
    transform-origin: left;
}

.course-card-detail:hover .course-title h2 {
    transform: scale(1.1);
}

.course-teacher-title {
    text-decoration: none;
    display: block;
}

.course-title h2 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.3s ease;
}

.course-teacher-title h3 {
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.course-card-detail:hover .course-title h2 {
    transform: scale(1.1);
}

.course-price {
    color: #F7931E;
    font-size: 24px;
    font-weight: 600;
}

.ribbon-container {
    position: relative;
    overflow: hidden;
}

.ribbon {
    position: absolute;
    top: 25px;
    left: -35px;
    padding: 5px 40px;
    background: var(--primary-color);
    color: white;
    transform: rotate(-45deg);
    z-index: 1;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ribbon-approved {
    background: #008DC0;
}

.ribbon-featured {
    background: #F7931E;
}

.ribbon-new {
    background: #28a745;
}

.ribbon-special {
    background: #dc3545;
}

.btn-solid-primary {
    display: flex;
    justify-content: center;
    align-items: center;
}