body {
    font-family: "poppins", sans-serif;
}

header {
    width: 100%;
    background-color: #fff;
}

.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.title {
    font-size: 42px;
    font-weight: 700;
    color: #141e32;
}

.description {
    font-weight: 400;
    font-size: 18px;
    color: #969696;
}

/*-------------------------header--------------------*/
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

/*------------ logo */
.header-logo {
    flex: 1 1 25%;
}

.header-logo img {
    width: 100px;
    height: 100px;
}

/*-------Nav */
.header-nav {
    width: 100%;
}

.header-nav .header-nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav-list li a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 400;
    color: black;
}

.header-nav-list li a.active {
    color: #6358dc;
    font-weight: 800;
}

/*-------------Authentication*/
.header-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 45%;
    /* flex: 1 1 45%
        flex-grow: 1; – Cho phép phần tử mở rộng chiếm thêm không gian nếu còn trống.

        flex-shrink: 1; – Cho phép phần tử thu hẹp lại nếu không đủ chỗ.

        flex-basis: 45%; – Giá trị cơ sở ban đầu là 45% chiều rộng cha (45% chiều rộng header.*/
}

.header-auth .btn-login {
    cursor: pointer;
    padding: 10px 20px;
    outline: none;
    border: none;

    background-color: transparent;
    color: #6358dc;
    font-size: 24px;
    font-weight: 400;
}

.header-auth .btn-register,
.btn-explore {
    cursor: pointer;
    padding: 10px 20px;
    outline: none;
    border: none;
    border-radius: 10px;

    background-color: #6358dc;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
}

/*-----------------------------------main-------------------------------*/
/*----------------------intro*/
.intro-wraper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 100px 0px;
}

.intro-left {
    flex: 1 1 50%;
}

.intro-title {
    font-size: 96px;
    font-weight: 700;
    color: #141e32;
    line-height: 1.2;
}

.intro-description {
    font-size: 24px;
    font-weight: 400;
    color: #969696;
    margin: 40px 0px;
}

.intro-title span {
    color: #6358dc;
}

.btn-register {
    transition: all 0.3 ease;
    cursor: pointer;
    padding: 15px 35px;
    outline: none;
    border: none;
    border-radius: 10px;

    font-size: 24px;
    font-weight: 400;
    color: #fff;
    background: #6358dc;

}

.btn-register:hover {
    transform: scale(1.05);
}

.intro-right {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-right .intro-thumb {
    width: 70%;
    max-width: 70%;
    object-fit: contain;
    margin: 0 auto;
}

/* -----------------------counter*/
.count {
    display: flex;
    align-items: center;
}

.intro-count-item p h4 {
    text-align: center;
}

.intro-count-item h4 {
    font-size: 48px;
    font-weight: 700;
    color: #141e32;
}

.intro-count-item p {
    font-size: 24px;
    font-weight: 400;
    color: #969696;
}

.line {
    width: 1px;
    height: 50px;
    background-color: #d9d9d9;
    margin: 0 15px;
}

/* ---------------------about-*/
#about {
    width: 100%;
    margin: 80px 0;
}

.about-wraper {
    display: flex;
    align-items: center;
}

/*left của about*/
.about-left {
    flex: 1 1 30%;
}

.about-left .about-title {
    font-size: 42px;
    color: #141E32;
    font-weight: 700;
    line-height: 100%;
}

.about-left .about-description {
    font-size: 18px;
    font-weight: 400;
    color: #969696;
    margin-top: 20px;
}

/* right của about*/
.about-right {
    flex: 1 1 70%;
    display: flex;
}

.about-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* flex: 1;
     gap:20px; */
}

/* item*/
.about-item {
    background-color: #CCE7FA;
    border-radius: 10px;
    border: none;
    width: 23%;

    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;

}

/* avatar */
.about-item .about-avatar {
    border-radius: 100%;
    background-color: #FFFFFF;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.about-item .about-thumb {

    /* cách 1 */
    /* width: 29px;
    height: 29px;
    color: #6358dc; */

    /* display: flex;
    align-items: center;
    justify-content: center; */

    /* cách 2 */
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.about-item .about-item-title {

    font-weight: 700;
    font-size: 18px;
    color: #6358dc;
}

.about-item .about-item-description {
    font-weight: 400;
    font-size: 14px;
    color: #000000;
}

/* --------------------------courses */
#courses {
    margin: 80px 0px;
    width: 100%;
}

.courses-wraper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.courses-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.courses-list .courses-item {
    width: 31%;
    border-radius: 10px;
    overflow: hidden;
    /*ẩn phần nội dung vượt ra ngoài phần tử cha  */
    cursor: pointer;

}

/* hover effect img */
.courses-thumb {
    transition: all 0.3 ease;
    width: 100%;
    overflow: hidden;
    /*ẩn phần nội dung vượt ra ngoài phần tử cha  */
}

.courses-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* bao phủ */
    /* làm cho hình ảnh bao phủ toàn bộ khung chứa
     (ở đây là .courses-thumb) mà vẫn giữ đúng tỷ lệ gốc.
 */
}

.courses-thumb:hover {
    transform: scale(1.06);
}

.courses-title {
    font-size: 24px;
    font-weight: 700;
    color: #6358dc;
    text-align: center;

    margin-top: 15px;
}

/* --------------     POPULAR COURSES */

#popular-courses {
    width: 100%;
    margin: 80px 0;

}

.popular-courses-wraper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.p-courses-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* tự động xuống hàng khi không đủ dòng*/
    width: 100%;
}

.p-courses-list .p-courses-item {
    overflow: hidden;
    /* ẩn phần nội dung vượt ngoài phần tử cha*/
    width: calc(25% - 30px);
    /* các ptu con chứa 25% diện tích, và trừ ra 30px dành cho các khoảng cách giữa chúng*/
    height: 400px;
    border-radius: 10px;
    background-color: #f5f5f5;
    margin-bottom: 30px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;/*kích hoạt 3d*/
}

.p-courses-item .p-courses-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 20px 50px 20px;
}

/* effect item of popular courses */
.p-courses-list .p-courses-item :hover{
    transform: scale3d(1.02, 1.02, 1.02);/* zoom 3d item*/
}
.p-courses-list .p-courses-item .p-courses-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
     /* làm cho hình ảnh bao phủ toàn bộ khung chứa mà vẫn giữ đúng tỷ lệ gốc.*/
}

.p-courses-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.p-courses-price .price {
    font-size: 24px;
    font-weight: 600;
    color: #6358dc;
}

.p-courses-price .price-old {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    text-decoration: line-through;/* gạch ngang giá cũ*/
}

.p-courses-title {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
}


/* nút exflore */
.p-courses-btn {
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
}

/*effect explore button */
.p-courses-btn .btn-explore:hover {
    background-color: rgb(149, 0, 255);
    transform: scale(1.07);
}