.main-container {
    top: 110px;
}

/* progress */
.progress__info-container {
    margin-top: 10px;
    margin-bottom: 50px;
    display: flex;
}

.progress__info {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.progress__info--course {
    display: flex;
    align-items: center;
    gap: 5px
}

.info--course-icon {
    border-radius: 20px;
    background: #d0f1ff;
    display: block;
    padding: 18px;
}

.info--course-title {
    margin: 5px 0;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 18px);
}

.info--course-statistical {
    font-weight: 700;
    font-size: clamp(16px, 2vw, 18px);
}

.info--course-number {
    color: #0083be;
}

.info--course-iconclock {
    border-radius: 20px;
    background: #d4e9da;
    display: block;
    padding: 18px;
}

.info--course-clocknumber {
    color: #216c36;
}

.info--course-iconratio {
    border-radius: 20px;
    background: #f6e0bf;
    display: block;
    padding: 18px;
}

.info--course-rationumber {
    color: #d2830c;
}

.info--course-iconsave {
    border-radius: 20px;
    background: #cecaff;
    display: block;
    padding: 18px;
}

.info--course-savenumber {
    color: #653ea3;
}

.info--course-icon img,
.info--course-iconclock img,
.info--course-iconratio img,
.info--course-iconsave img {
    width: 30px;
}

/* end progress */

.pending-approval__course {
    margin: 0 0 50px;
}

/* my course */
.my__course--content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.my__course--title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
}

.my__course--link {
    display: flex;
    text-decoration: none;
    align-items: center;
    gap: 4px;
    color: #808190;
}

.my__course--link:hover {
    color: #0120D4;
    border-bottom: 1px solid #0120D4;
}

.my__course--info,
.academy__course--list,
.pending-approval__course--list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.my__course--item {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgb(228, 228, 228);
    cursor: pointer;
}

.my__course--item:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}

.my__course--detail {
    padding: 20px;
    overflow: hidden;
}

.my__course--name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 18px;
}

.my__course--teacher {
    text-transform: uppercase;
    color: #808190;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    margin: auto 0 10px;
}

.number--vote {
    background: linear-gradient(197deg, #fbcd32 0%, #ff8147 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
}

.my__course----spvote {
    color: #808190;
    font-size: 14px;
    margin-left: 7px;
}

.my__course--progress {
    position: relative;
    width: 100%;
    height: 10px; /* Chiều cao của thanh tiến trình */
    background-color: #e0e0e0; /* Màu nền của thanh tiến trình */
    border-radius: 10px; /* Bo tròn các góc của thanh tiến trình */
    overflow: hidden; /* Đảm bảo các phần tử con không vượt quá kích thước của thanh tiến trình */
    margin-top: 10px; /* Khoảng cách phía trên thanh tiến trình */
}

.progress-bar {
    width: 100%;
    height: 100%;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(163deg, #8D4DF3 0%, #0120D4 98.99%);
    transition: width 0.4s ease-in-out; /* Hiệu ứng chuyển động khi cập nhật chiều rộng */
    border-radius: 10px;
}


.my__course--continued {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my__course--speed {
    color: rgba(128, 129, 144, 1);
    font-style: italic;
    font-size: 14px;
}

.my__course--stydying {
    display: flex;
    font-style: italic;
    font-size: 14px;
    background: linear-gradient(163deg, #8d4df3 0%, #0120d4 98.99%);
    background-clip: text;
    line-height: 1;
}

.my__course--stydying:hover {
    border-bottom: 1px solid #0120D4;
}

/* end my course */

/* saved course */
.saved__course {
    margin: 50px 0;
}

.course--list__item {
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgb(228, 228, 228);
    cursor: pointer;
}

.course--list__item:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.course--list--image,
.my__course--image {
    width: 100%;
    aspect-ratio: calc(1 / 0.5625);
    overflow: hidden;
}

.course--list--image img,
.my__course--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course--list--content {
    padding: 20px;
}

.course--list--title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 18px;
}

.course--list--title:hover {
    color: gray;
    opacity: 1;
}

.course--list--desc {
    color: #808190;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
}

.course--list--teacher {
    text-transform: uppercase;
    color: #808190;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    margin: auto 0 10px;
}

.course--list--info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course--list--vote {
    color: #fa9d3e;
    display: flex;
    align-items: center;
}

.star.full {
    background: linear-gradient(90deg, rgba(251, 205, 50, 1), rgba(255, 129, 71, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
}

.number--vote {
    margin-right: 5px;
}

.course--list--spvote {
    color: rgba(128, 129, 144, 1);
    margin-left: 10px;
}

.course--list--student {
    display: flex;
    align-items: center;
    color: rgba(128, 129, 144, 1);
}

.course--list--price {
    margin: 10px 0;
}

.course--list--sale {
    color: #ca3f00;
    margin-right: 10px;
    font-size: 16px;
    font-weight: 700;
}

.course--list--ori {
    color: #808190;
    font-size: 14px;
}

@media (max-width: 576px) {

    .row {
        margin-left: 5px;
    }

    .row > * {
        padding-left: 15px;
    }

    .pending-approval__course {
        margin: 0 0 10px;
    }

    .main-container {
        top: 1px;
    }

    /* Đặt lại kích thước của nội dung chính */

    /* Điều chỉnh container */
    .progress__info-container {
        margin: 20px;
    }

    /* Chia thành 2 cột trên màn hình nhỏ */
    .progress__info {
        grid-template-columns: repeat(2, 1fr); /* Hiển thị 2 cột */
        gap: 15px; /* Khoảng cách giữa các phần tử */
    }

    /* Điều chỉnh các thành phần course */
    .progress__info--course {
        display: flex;
        flex-direction: row; /* Đặt icon và thông tin thành hàng ngang */
        align-items: center; /* Căn giữa theo chiều dọc */
        gap: 10px; /* Khoảng cách giữa các thành phần */
    }

    .info--course-icon,
    .info--course-iconclock,
    .info--course-iconratio,
    .info--course-iconsave {
        padding: 8px; /* Giảm padding cho icon */
        display: flex; /* Đảm bảo icon nằm ngang */
        align-items: center; /* Căn giữa icon */
        justify-content: center; /* Căn giữa icon theo chiều ngang */
    }

    .info--course-title {
        font-size: 12px; /* Giảm kích thước font chữ */
    }

    .info--course-statistical {
        font-size: 15px; /* Giảm kích thước số liệu */
    }

    /* Giảm kích thước icon */
    .info--course-icon img,
    .info--course-iconclock img,
    .info--course-iconratio img,
    .info--course-iconsave img {
        width: 25px;
    }

    .my__course--content {
        flex-direction: column; /* Đặt nội dung thành hàng dọc */
        align-items: flex-start; /* Căn trái nội dung */
        gap: 10px; /* Khoảng cách giữa các thành phần */
    }

    .my__course--title {
        font-size: clamp(16px, 5vw, 22px); /* Giảm kích thước tiêu đề */
    }

    .my__course--link {
        font-size: 14px; /* Giảm kích thước cho link */
    }

    .my__course--info,
    .academy__course--list,
    .pending-approval__course--list {
        grid-template-columns: 1fr; /* Hiển thị mỗi item trên một hàng */
        gap: 20px; /* Giảm khoảng cách giữa các item */
    }

    .my__course--item {
        border-radius: 8px; /* Giảm kích thước bo tròn */
    }

    .my__course--detail {
        padding: 15px; /* Giảm padding bên trong */
    }

    .my__course--name {
        font-size: 16px; /* Giảm kích thước tên khóa học */
    }

    .my__course--teacher {
        font-size: 14px; /* Giảm kích thước tên giáo viên */
        padding: 5px 0; /* Giảm padding giữa các thành phần */
    }

    .my__course--progress {
        height: 8px; /* Giảm chiều cao thanh tiến trình */
    }

    .my__course--continued {
        flex-direction: column; /* Đặt các thành phần thành hàng dọc */
        gap: 10px; /* Khoảng cách giữa các thành phần */
        align-items: flex-start; /* Căn trái */
    }

    .my__course--speed,
    .my__course--stydying {
        font-size: 12px; /* Giảm kích thước chữ */
    }


    .saved__course {
        margin: 20px 0; /* Giảm margin cho màn hình nhỏ */
    }

    .academy__course {
        margin-bottom: 30px; /* Khoảng cách dưới */
    }

    .my__course--content {
        flex-direction: column; /* Chuyển tiêu đề và link thành hàng dọc */
        align-items: flex-start; /* Căn trái nội dung */
        gap: 10px; /* Khoảng cách giữa các thành phần */
    }

    .my__course--title {
        font-size: clamp(16px, 5vw, 22px); /* Giảm kích thước tiêu đề */
    }

    .my__course--link {
        font-size: 14px; /* Giảm kích thước chữ cho link */
    }

    .academy__course--list {
        grid-template-columns: 1fr; /* Hiển thị mỗi item trên một hàng */
        gap: 20px; /* Giảm khoảng cách giữa các item */
    }

    .course--list__item {
        border-radius: 8px; /* Giảm độ bo tròn */
    }

    .course--list--content {
        padding: 15px; /* Giảm padding */
    }

    .course--list--title {
        font-size: 16px; /* Giảm kích thước tiêu đề */
    }

    .course--list--desc {
        font-size: 14px; /* Giảm kích thước mô tả */
    }

    .course--list--teacher {
        font-size: 14px; /* Giảm kích thước tên giáo viên */
        padding: 5px 0; /* Giảm padding */
    }

    .course--list--vote,
    .course--list--student {
        font-size: 14px; /* Giảm kích thước chữ */
    }

    .course--list--price {
        margin: 5px 0; /* Giảm margin */
    }

    .course--list--sale {
        font-size: 14px; /* Giảm kích thước giá sale */
    }

    .course--list--ori {
        font-size: 12px; /* Giảm kích thước giá gốc */
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {

    .progress__info-container {
        margin-top: 0;
    }
}
