* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* remove tap highlight on mobile */
}

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

html {
    font-size: 62.5%;
}

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

/* Common */
.word-break-all {
    word-break: break-all;
}

.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;
}

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

.btn {
    display: inline-block;
    min-width: 118px;
    padding: 0 16px;
    line-height: 50px;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    color: #ffffff;
    background: #171100;
    border-radius: 24.5px;
}

.btn:hover {
    opacity: 0.9;
}

a {
    text-decoration: none;
}

button {
    outline: none;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

a, label, img, button, input, textarea, select {
    outline: none;
    padding: 0;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit; /* remove default styling of tag a when displayed on mobile */
}

input, textarea {
    background: transparent;
}

.main-content {
    width: 1170px;
    margin: 0 auto;
    /* 
        Thông thường trên máy tính sẽ để bên trái bên phải dư ra 24px
        Nên tổng sẽ là 48px
     */
    max-width: calc(100% - 48px);
}

/* Header */
.header {
    background: #fffcf4;
}

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

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

.nav {
    margin-left: auto;
}

.nav ul {
    display: flex;
}

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

.nav a:hover,
.nav li.active a {
    text-shadow: 1px 0 0 currentColor;
    color: #171100;
}

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

.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 .media-block {
    width: 48%;
    position: relative;
}

.hero .media-block .img {
    width: 470px;
    height: 685px;
    object-fit: cover;
    border-radius: 20px;
    vertical-align: bottom;
}

.hero .content-block {
    width: 52%;
    padding: 64px 0 0 130px;
}

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

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

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

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

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

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

.hero-summary .info {
    margin-left: 16px;
}

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

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

.hero .heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 5.8rem;
    line-height: 1.17;
    letter-spacing: -0.02em;
    color: #171100;
}

.hero .desc {
    font-size: 1.8rem;
    line-height: 1.6;
    color: #5f5b53;
    margin-top: 22px;
}

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

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

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

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

.hero .watch-video span {
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #171100;
    margin-left: 14px;
}

.hero .stats strong {
    padding: 0 8px 0 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 4.4rem;
    line-height: 1.23;
    color: #171100;
}

.hero .stats strong:first-child {
    padding-left: 0;
}

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

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

.popular .heading {
    color: #171100;
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.02em;
}

.popular .desc {
    color: #5F5B53;
    font-size: 1.8rem;
    line-height: 1.6;
    margin-top: 16px;
}

.popular .popular-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

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

.popular .course-item {
    flex: 1;
    background: #FFF;
    border: 1px solid #e2dfda;
    border-radius: 12px;
}

.popular .course-item .thumb {
    width: calc(100% + 2px);
    height: 278px;
    object-fit: cover;
    margin: -1px;
    border-radius: 12px 12px 0px 0px;
}

.popular .head {
    display: flex;
    padding: 16px 22px 0px;
}

.popular .head .title a {
    color: #171100;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.6;
}

.popular .course-item .star {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.popular .course-item .value {
    color: #FEA31B;
    font-size: 1.6rem;
}

.popular .course-item .rating {
    display: flex;
    margin-left: auto;
    align-items: center;
}

.popular .course-item .desc {
    margin-top: 6px;
    color: #5F5B53;
    font-size: 1.4rem;
    line-height: 1.85;
    padding: 0 22px 0;
}

.popular .foot {
    margin-top: 12px;
    margin-bottom: 22px;
    padding: 0 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popular .course-item .price {
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #171100;
}

.popular .course-item .book-btn {
    border: none;
}

.popular .course-item .book-btn:hover {
    color: #fff;
    background: var(--primary-color);
    cursor: pointer;
}

.popular .course-item:hover {
    border-color: transparent;
    box-shadow: 0px 18px 36px rgba(0, 0, 0, 0.05);
}

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

.feedback-list {
    display: flex;
    overflow: hidden;
}

.feedback-item {
    display: flex;
    flex-shrink: 0;
    width: 100%;
}

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

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

.feedback-item .info .desc {
    margin-top: 4px;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #bfbcb3;
}

.feedback-item .dots {
    display: flex;
    margin-top: 28px;
}

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

.feedback-item .dot.active {
    background: #FFB900;
    cursor: default;
}

.feedback-item .content {
    width: 66%;
    margin-left: auto;
}

.feedback-item blockquote {
    margin-left: 30px;
    font-style: italic;
    font-size: 2.6rem;
    line-height: 1.53;
    color: #ffffff;
}

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

.features .heading {
    color: #171100;
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.02em;
}

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

.features .images {
    display: flex;
    gap: 0 30px;
}

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

.features .images .lower {
    margin-top: 34px;
}

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

.features .desc {
    margin-top: 16px;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #5f5b53;
}

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

.features-2nd {
    margin-top: 70px;
}

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

.features-2nd .content {
    width: 49%;
}

.features-2nd .images img {
    width: 470px;
    height: 440px;
}

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

.blog .heading {
    color: #171100;
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.02em;
}

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

.blog .blog-top .desc {
    margin: 16px auto auto;
    color: #696262;
    font-size: 1.6rem;
    line-height: 1.75;
    width: 448px;
}

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

.blog .item {
    /* 
        gap 30px 2 bên là 60px chia cho 3 là 20px
    */
    width: calc(33.33% - 20px);
    background: #fff;
    border-radius: 16px;
    flex-shrink: 0;
}

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

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

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

.blog .item .date {
    font-size: 1.4rem;
    line-height: 1.86;
    color: #5f5b53;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-bottom: 12px;
}

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

.blog .item .date::after {
    content: "";
    display: inline-block;
    height: 1px;
    border-radius: 0.5px;
    background: #E2DFDA;
    position: absolute;
    left: 0;
    right: -27px;
    bottom: 0;
}

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

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

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

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

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

.blog .dot.active {
    background: var(--primary-color);
    cursor: default;
}

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

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

.footer .row .column:nth-child(1) {
    width: 35%;
}

.footer .row .column:nth-child(2) {
    width: 21.6%;
}

.footer .row .column:nth-child(3) {
    width: 21.6%;
}

.footer .row .column:nth-child(4) {
    width: 21.6%;
}

.footer .row .column .desc {
    margin-top: 18px;
    color: #BFBCB2;
    font-size: 14px;
    line-height: 1.85; /* 185.714% */
    max-width: 267px;;
}

.footer .row .column .socials {
    display: flex;
    margin-top: 18px;
    gap: 18px;
}

.footer .row .column .heading {
    color: #FFF;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.75;
    border-bottom: 1px solid #59554B;
    padding: 0 48px 14px 0;
    display: inline-block;
}

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

.footer .list a {
    font-size: 1.4rem;
    line-height: 1.86;
    color: #bfbcb2;
    margin-bottom: 12px;
    display: inline-block
}

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

.footer .list strong {
    font-weight: 600;
    color: #fff;
}

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

.footer .copyright p {
    color: #807D74;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.85;
}