* {
    box-sizing: border-box;
}

:root {
    --primary-color: #ffb900;
    --font-heading: Sen, sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Poppins", sans-serif;
    /* font-family: "Sen", sans-serif; */
}

/* ======== Common ========= */
.main-content {
    width: 1170px;
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block; /* Thẻ a mặc định là Inline --> Inline-block để thêm padding top * bottom */
    min-width: 118px;
    padding: 0 16px; /* Sau này nội dung có dài thì nó không bị dính vào mép trái và phải */
    font-weight: 600;
    font-size: 1.6;
    line-height: 50px;
    text-align: center;
    color: #fff;
    background: #171100;
    border-radius: 999px;
}

.btn:hover {
    opacity: 0.9;
    cursor: pointer;
}

a {
    text-decoration: none;
}

.heading {
    color: #171100;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.heading.lv1 {
    font-size: 5.8rem;
    line-height: 1.172; /* 117.241% */
}

.heading.lv2 {
    font-size: 3.8rem;
    line-height: 1.263; /* 126.316% */
}

.heading.lv3 {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.75;
}

.desc {
    margin: 22px 0;
    font-size: 1.8rem;
    line-height: 1.667; /* 166.667% */
    color: #5f5b53;
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: var(--line-clamp, 1);
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp.line-2 {
    --line-clamp: 2;
}

.break-all {
    word-break: break-all;
}

/* ======== HEADER ========= */

.header {
    background: #fffcf4;
}

.header.fixed {
    position: sticky;
    top: -28px;
    z-index: 1;
}

.header .body-header {
    display: flex;
    align-items: center;
    padding: 36px 0 8px;
}

.header .nav {
    margin-left: auto;
}

.nav ul {
    display: flex;
}

.nav a {
    position: relative;
    padding: 8px 21px;
    font-size: 1.6rem;
    color: #5f5b53;
}

.nav a:hover,
.nav li.active a {
    /* font-weight: 600; */ /* Dùng font-weight chữ dầy lên XÔ lỆCH bố cục thay thế = text-shadow */
    text-shadow: 1px 0 0 currentColor; /* Độ dày bóng đỏ -- Hướng bóng đổ -- Độ nhòe -- Màu sắc */
    color: #171100;
}

.nav li.active a::after {
    position: absolute;
    left: 21px;
    bottom: 6px;
    content: "";
    display: inline-block;
    width: 12px;
    height: 2px;
    background: #171100;
    border-radius: 1px;
}

.header .sign-up-btn {
    min-width: 144px;
}

.header .action {
    margin-left: 49px;
}

/* ======== Hero ========= */
.hero {
    padding: 56px 0 65px;
    background: #fffcf4;
}

.hero .body {
    display: flex;
}

/* Hero Left ---- */
.hero .media {
    width: 48%;
    position: relative;
    display: flex;
}

.hero .media .hero-picture {
    width: 470px;
    height: 685px;
    object-fit: cover; /* Chỉnh ảnh sao cho ảnh không bị méo 
                       cho dù kích thước ảnh nó không khớp với khung */
    border-radius: 20px;
}

.hero-summary {
    width: 270px;
    padding: 24px;
    position: absolute;
    bottom: 48px;
    left: 291px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.05);
}

.hero-summary .item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-summary .item + .item {
    margin-top: 22px;
}

.hero-summary .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-summary .item:first-child .icon {
    background: #fff9e8;
}

.hero-summary .item:nth-child(2) .icon {
    background: #fcefff;
}

.hero-summary .item:last-child .icon {
    background: #ebeaff;
}

.hero-summary .label {
    font-size: 1.4rem;
    line-height: 1.86;
    color: #5f5b53;
}

.hero-summary .title {
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.67;
    color: #171100;
}

/* Hero-Right- ---*/
.hero .contnet-block {
    width: 52%;
    padding: 64px 0 0 130px;
}

.hero .cta-group {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 38px 0 48px;
}

.hero-cta {
    min-width: 180px;
    line-height: 64px;
    background: var(--primary-color);
}

.hero .watch-video {
    border: none;
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    cursor: pointer;
}

.hero .watch-video .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.07);
}

.hero .watch-video span {
    color: #171100;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.67; /* 166.667% */
}

.hero .desc.stats {
    margin-top: 8px;
}

.desc:nth-of-type(2) {
    margin-bottom: auto;
}

strong + strong {
    margin-left: 28px;
}

.hero .contnet-block .stats strong {
    color: #171100;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4.4rem;
    line-height: 1.2272; /* 122.727% */
    margin-right: 8px;
}

/* ======== Popular ========= */
.popular {
    margin: 135px 0;
    padding: 65px 0;
}

/* ======== Popular ========= */
/*           Top          */
.popular-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popular-top .info {
    width: 39%;
}

.popular-top .heading.lv2 {
    letter-spacing: -0.76px;
}

.popular-top .info .desc {
    margin: 16px 0 0 0;
}

.popular-top .controls {
    display: flex;
    gap: 18px;
}

.popular-top .control-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: transparent;
}

.popular-top .control-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
}

/* ======== Popular ========= */
/*           Bottom           */

.popular .courses-list {
    margin-top: 55px;
    display: flex;
    gap: 30px;
}

.popular .course-item {
    flex: 1;
    border: 1px solid #e2dfda;
    border-radius: 12px;
}
.popular .course-item:hover {
    border: 1px solid transparent;
    box-shadow: 0px 18px 36px 0px rgba(0, 0, 0, 0.05);
}

.popular .course-item .thumb {
    width: calc(100% + 2px); /* 37.6-10:15 Thêm chiều rộng khi margin âm */
    object-fit: cover;
    margin: -1px; /* Margin chỉ làm phần tử thay đổi vị trí 
                      Chứ không làm thay đổi kích thước 
                      Ở đây thẻ img,thum này ưu tiên là 
                      Dịch sang phải và lên trên để đè phần border */
    height: 278px;
    border-radius: 12px 12px 0 0;
}

.popular .course-item .info {
    margin: 16px 22px 22px;
}

.popular .course-item .title a {
    padding-right: 8px;
    color: #171100;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.667; /* 166.667% */
}

.popular .course-item .rating {
    color: #fea31b;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.75; /* 175% */
    gap: 6px;
}

.popular .course-item .lv3 {
    margin-top: 6px;
    font-size: 1.4rem;
    line-height: 1.86;
}

.popular .course-item .head,
.popular .course-item .head .rating,
.popular .course-item .price-oder {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popular .course-item .price {
    color: #171100;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.667; /* 166.667% */
}

.popular .course-item .btn-oder {
    font-weight: 600;
    font-size: 1.6rem;
    border: none;
}

.popular .course-item .btn-oder:hover {
    background: var(--primary-color);
    border: #fff;
}

/* ======== Feedback ========= */
.feedback {
    margin-top: 135px 0 65px;
    padding: 96px 0;
    background: #2e2100;
}

.feedback-list {
    display: flex;
    flex-shrink: 1;
    width: 100%;
    overflow: hidden;
}

.feedback .feedback-item {
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
    transform: translateX(-100%);
    transition: all ease 0.3s;
}

.feedback .feedback-item .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.feedback-item .info .title {
    margin-top: 18px;
    color: #f7f7f7;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.4167; /* 141.667% */
}

.feedback-item .info .desc {
    margin-top: 4px;
    color: #bfbcb2;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.857; /* 185.714% */
}

.feedback-item .list-dot {
    display: flex;
    margin-top: 28px;
    gap: 6px;
}

.feedback-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #634700;
    cursor: pointer;
}

.feedback-item .dot.active {
    background: #ffb900;
    cursor: auto;
}

.feedback-item .content-feedback {
    width: 66%;
    margin-left: auto; /* Cách này có tác dụng 
                          đẩy cái này sang phải
                          Tác dụng tương tự khi cho
                          Justify-content: space-between;
                          Vào thẻ cha feedback-item */
}

.feedback-item blockquote {
    margin-left: 30px;
    color: #fff;
    font-style: italic;
    font-size: 2.6rem;
    line-height: 1.538; /* 153.846% */
}

/* ======== Features 1 ========= */
.features {
    margin-top: 135px;
    padding: 65px 0;
}

.features .body {
    display: flex;
    justify-content: space-between;
}

.features-img {
    /* width: 32.2%; */
    display: flex;
    gap: 30px;
}

.features-img img {
    width: 270px;
    height: 404px;
    border-radius: 16px;
    object-fit: cover;
}

.features-img img.low {
    margin-top: 34px;
}

.features .info {
    width: 41%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.features .info .heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.8rem;
    line-height: 1.26; /* 126.316% */
    letter-spacing: -0.76px;
    color: #171100;
}

.features .info .desc {
    width: 95.5%;
    line-height: 1.75;
    font-size: 1.6rem;
    margin: 16px 0 0;
}

.features .info .features-btn {
    margin-top: 32px;
    width: 137px;
    background: var(--primary-color);
    color: #fff;
}

/* ======== Features 2 ========= */
.features-2 {
    margin-top: 70px;
}

.features-2 .body {
    flex-direction: row-reverse;
}

.features-2 .info {
    width: 49%;
}

.features-2 .info .desc {
    width: 100%;
}
.features-2 .features-3-img {
    width: 470px;
    height: 440px;
    border-radius: 20px;
}

/* ======== Blog 2 ========= */
.blog {
    margin-top: 135px;
    padding: 96px 0;
    background: #fffcf4;
}

.blog .blog-top {
    text-align: center;
}

.blog-top .desc {
    margin: 16px auto 0; /* display: inline-block; Hoặc dùng cái này để căn giữa */
    width: 448px;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #696262;
}

.blog .blog-list {
    margin-top: 55px;
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.blog .item {
    flex-shrink: 0;
    width: calc(33.33% - 20px);
    background: #fff;
}

.blog .item:hover {
    box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.05);
}

.blog .thum {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.blog .info {
    padding: 20px 20px 28px;
}

.blog .info .date {
    position: relative;
    color: #5f5b53;
    padding: 12px 0;
    font-size: 1.4rem;
    line-height: 1.85; /* 185.714% */
    display: inline-flex;
    align-items: center;
}

.blog .info .date::before {
    content: "";
    display: inline-block;
    height: 6px;
    width: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--primary-color);
}

.blog .info .date::after {
    position: absolute;
    content: "";
    display: inline;
    left: 12px;
    right: -27px;
    bottom: 0;
    min-width: 160px;
    height: 1px;
    border-radius: 0.5px;
    background: #e2dfda;
}

.blog .info .title a {
    display: inline-block;
    margin: 12px 0;
    color: #171100;
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.75; /* 175% */
}

.blog .blog-btn {
    font-size: 1.4rem;
}

.blog .blog-btn:hover {
    background: var(--primary-color);
}

.blog .list-dots {
    margin-top: 38px;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.blog .list-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5f5b53;
}

.blog .list-dots .dot.active {
    background-color: var(--primary-color);
}

/* ======== Footer ========= */
.footer {
    background: #2e2100;
    padding: 96px 135px 0;
}

.footer .row {
    display: flex;
    padding-bottom: 38px;
    border-bottom: 1px solid #59554b;
}

.footer .row .column {
    width: 21.6%;
}

.footer .row .column:first-child {
    width: 35%;
}

.footer .row .column:first-child .desc {
    margin: 18px 0;
    max-width: 267px;
    color: #bfbcb2;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.85; /* 185.714% */
}

.footer .row .column:first-child .social-media {
    display: flex;
    gap: 18px;
}

.footer .heading.lv3 {
    display: inline-block;
    font-family: "Poppins";
    color: #fff;
    padding: 0 48px 14px 0;
    border-bottom: 1px solid #59554b;
}

.footer .column .list {
    margin-top: 28px;
}

.footer .column .list a {
    margin-bottom: 12px;
    display: inline-block;
    color: #bfbcb2;
    font-size: 1.4rem;
    line-height: 1.85; /* 185.714% */
}

.footer .column .list li:last-child a {
    margin-bottom: 0;
}

.footer .copyright {
    padding: 28px 0;
}

.footer .copyright .desc {
    margin: auto;
    display: block;
    color: #807d74;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.85; /* 185.714% */
}
