﻿.link-view-more {
    color: var(--blue-alias-brand, #1251EE);
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 10px 20px 10px;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

#partialListCourses {
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.main-content-wrapper > div:last-child {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1251EE;
}

input[type=checkbox] {
    opacity: 1;
    position: initial;
}

.stats {
    display: flex;
    column-gap: 20px;
}

.stat-card {
    flex: 1;
    padding: 16px 24px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    display: inline-block;
    padding: 8px;
    border-radius: 8px;
}

.stat-card:first-child .stat-icon {
    background-color: #E6F4FF;
}

.stat-card:nth-child(2) .stat-icon {
    background-color: #ECFDF5;
}

.stat-card:nth-child(3) .stat-icon {
    background-color: #FFF7E6;
}

.stat-card:nth-child(4) .stat-icon {
    background-color: #F9F0FF;
}

.stat-value {
    margin-top: 8px;
    font-size: 32px;
    font-weight: 700;
    line-height: 150%;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    color: rgba(0, 0, 0, 0.45);
}

.course-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.course-more-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
    color: #1251EE;
}

.course-more img {
    margin-top: 5px;
}

.result-search {
    display: flex;
    column-gap: 24px;
    margin-top: 24px;
    padding: 40px;
    border-radius: 16px;
    color: #fff;
    background: #001D66;
}

.result-search-left {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(0, 112, 255, 0.20);
}

.result-search-middle span {
    font-size: 28px;
    font-weight: 700;
    line-height: 150%;
}

.result-search-middle p {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
}

.result-search-right {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

    .result-search-right a {
        padding: 10px;
        border-radius: 8px;
        white-space: nowrap;
        text-align: center;
        font-size: 16px;
        line-height: 24px;
    }

        .result-search-right a:hover {
            opacity: 0.8;
        }

        .result-search-right a:first-of-type {
            background-color: #1251EE;
        }

            .result-search-right a:first-of-type:hover {
                color: #fff;
            }

        .result-search-right a:last-child {
            color: rgba(0, 0, 0, 0.88);
            background-color: #fff;
        }


#title-section-course {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .stats {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 0 0 calc(50% - 10px);
    }

    #title-section-course {
        flex-direction: column;
    }

    .result-search {
        flex-direction: column;
        padding: 16px;
        margin: 10px;
        row-gap: 10px
    }
}

.rating-render i {
    font-size: 13px;
    color: #FF9747;
    transition: 0.3s;
}

#partialListCourses .img-thumb-grid {
    aspect-ratio: 241/166;
    object-position: center;
}

#partialListCourses .img-thumb-list {
    aspect-ratio: 181/124;
    object-position: center;
}

.stars-yellow {
    color: var(--primary-yellow);
    font-size: 14px !important;
}

.course-content {
    margin-top: 24px;
}

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f6f6f6;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    height: fit-content;
}

.course-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.course-image {
    width: 100%;
    height: 112.831px;
    object-fit: cover;
    display: block;
}

.course-badges {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}

.course-badge--light {
    background: #ffffff;
    border: 1px solid #cfcfcf;
    color: #1f1f1f;
}

.course-badge--upcoming {
    background: #fffaf1;
    border: 1px solid #f2c46f;
    color: #f29a1a;
}

.course-badge--going {
    background-color: #E6F4FF;
    border: 1px solid #91CAFF;
    color: #1677FF;
}

.course-badge--ended {
    background-color: #FFF1F0;
    border: 1px solid #FFA39E;
    color: #F5222D;
}

.course-info {
    padding: 12px;
}

.course-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-label {
    color: #8d8d8d;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.course-rating-simple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
}

    .course-rating-simple i {
        color: #f4c400;
        font-size: 22px;
    }

.course-title {
    display: -webkit-box;
    overflow: hidden;
    color: #1f1f1f;
    font-size: 18px;
    font-weight: 700;
    line-height: 150%;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 54px;
}

.course-title:hover {
    color: var(--blue-alias-brand);
    text-decoration: none;
}

.course-description {
    display: none;
}

.course-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #dddddd;
    background: #f6f6f6;
}

.course-users {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8d8d8d;
    font-size: 16px;
    font-weight: 500;
}

    .course-users i {
        font-size: 20px;
    }

.course-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2156f5;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

    .course-action:hover {
        color: #2156f5;
        text-decoration: none;
    }

    .course-action i {
        font-size: 16px;
    }

@media screen and (max-width: 768px) {
    aside {
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-content-wrapper {
        padding: 0;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .course-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .course-card {
        border-radius: 24px;
    }

    .course-image {
        height: 220px;
    }

    .course-badges {
        top: 16px;
        left: 16px;
        right: 16px;
        gap: 8px;
    }

    .course-badge {
        min-height: 36px;
        padding: 6px 14px;
        border-radius: 12px;
        font-size: 14px;
    }

    .course-info {
        padding: 12px;
    }

    .course-label,
    .course-rating-simple,
    .course-users,
    .course-action {
        font-size: 14px;
    }

        .course-rating-simple i,
        .course-users i {
            font-size: 18px;
        }

    .course-title {
        font-size: 18px;
    }

    .course-footer {
        padding: 14px 18px 18px;
    }
}
