/* ==========================================================================
   Trang Gioi thieu - dua cac khoi ve chung mot he luoi.
   Ban desktop (>=1440px) dung theo Figma "Gioi Thieu" (frame 1920px):
   khung noi dung 1408px, le 256px o 1920px.
   ========================================================================== */

/* Font Figma (Inter + Proza Libre) khai bao chung trong figma-fonts.css */

html {
    font-family: Inter, sans-serif;
    --main-font-coffee: Inter, sans-serif
}

.product-banner h1,
.tamnhin__wapper h4,
.cauchuyen__wapper h4,
.kinhte article h2,
.hanhtrinh__wapper h4,
.wrapper-megamenu-animation h3 {
    font-family: "Proza Libre", iCielProza, serif;
    font-weight: 600
}

/* Tieu de banner: moi dong mot khoi */
.product-banner h1 .gt-l1,
.product-banner h1 .gt-l2 {
    display: block
}

/* Net ve hanh trinh khong tran xuong block duoi */
.hanhtrinh {
    overflow: hidden
}


:root {
    --gt-gutter: 20px;
    --gt-max: 1320px;
    --gt-edge: max(var(--gt-gutter), calc((100% - var(--gt-max)) / 2 + var(--gt-gutter)))
}

@media screen and (min-width:768px) {
    :root {
        --gt-gutter: 48px
    }
}

@media screen and (min-width:1024px) {
    :root {
        --gt-gutter: 70px
    }
}

/* Tieu de co 2 vach ngang: bo vao khung chung thay vi tran sat mep man hinh */
.tamnhin .section-heading,
.cauchuyen .section-heading,
.kinhte .section-heading {
    padding-left: var(--gt-edge);
    padding-right: var(--gt-edge)
}

.tamnhin__wapper {
    padding-left: var(--gt-edge)
}

.cauchuyen__content,
.cauchuyen__wapper h4 {
    padding-left: var(--gt-edge);
    padding-right: var(--gt-edge)
}

.kinhte__wapper {
    padding-left: var(--gt-edge);
    padding-right: var(--gt-edge)
}

.hanhtrinh__wapper {
    padding-left: var(--gt-edge);
    padding-right: var(--gt-edge)
}

/* Xuong dong theo dung Figma, chi ap dung tren desktop */
@media screen and (max-width:1023px) {
    .gt-br {
        display: none
    }
}

@media screen and (max-width:767px) {
    .tamnhin__wapper {
        padding-right: var(--gt-edge)
    }
}

/* Gia tri cot loi (.kinhte): moi gia tri la mot the nen trang */
.kinhte__wapper {
    display: block;
    grid-gap: 0;
    padding-top: 40px;
    padding-bottom: 40px
}

.kinhte article {
    display: block;
    grid-template-areas: none;
    grid-gap: 0;
    padding: 24px;
    margin-bottom: 16px;
    background: #fff
}

.kinhte article:last-child {
    margin-bottom: 0
}

.kinhte article h2 {
    grid-area: auto;
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.4;
    text-align: left;
    font-family: "Proza Libre", iCielProza, serif;
    text-transform: uppercase;
    color: var(--main-site-coffee-color, #6b3a22)
}

.kinhte article p {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    color: var(--main-text-color, #2b1f18)
}

@media screen and (min-width:768px) {
    .kinhte article {
        display: flex;
        align-items: center;
        padding: 32px
    }

    .kinhte article h2 {
        flex: 1 1 auto;
        margin: 0 60px 0 0;
        font-size: 28px
    }

    .kinhte article p {
        flex: 0 0 min(416px, 45%)
    }
}

/* Block ket trang */
@media screen and (min-width:1024px) {
    .page-outro {
        padding: 89px 20px 90.6px
    }

    .page-outro:before {
        width: 148px;
        height: 144px;
        max-height: none
    }

    .page-outro .page-outro__line {
        font-size: 32px;
        line-height: 1.3
    }
}

/* ==========================================================================
   Desktop >= 1440px: pixel-perfect theo Figma (do o 1920px)
   ========================================================================== */
@media screen and (min-width:1024px) {
    :root {
        /* 256px o 1920px: khung 1408px can giua */
        --gt-edge: max(70px, calc((100% - 1408px) / 2))
    }

    /* ---------- Tieu de section (2 vach ngang) ---------- */
    .tamnhin .section-heading,
    .cauchuyen .section-heading,
    .kinhte .section-heading {
        font-size: 16px;
        line-height: 22.4px
    }

    /* Tam nhin: vach ngang bat dau tu 370px o 1920px */
    .tamnhin .section-heading {
        padding-left: calc(var(--gt-edge) + 114px);
        padding-right: calc(var(--gt-edge) + 114px)
    }

    /* ---------- Tam nhin & su menh ---------- */
    .tamnhin__wapper {
        /* 2 cot 700px, bat dau tu 258px o 1920px */
        padding: 94.6px calc(var(--gt-edge) + 6px) 0 calc(var(--gt-edge) + 2px)
    }

    .tamnhin__wapper .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0
    }

    .tamnhin__wapper .row>div {
        width: auto;
        max-width: none;
        padding: 0;
        margin: 0
    }

    .tamnhin__wapper .row>div:nth-child(1),
    .tamnhin__wapper .row>div:nth-child(3) {
        padding-top: 70px
    }

    .tamnhin__wapper .row>div:nth-child(1) {
        padding-bottom: 109.45px
    }

    .tamnhin__wapper .row>div:nth-child(3) {
        padding-bottom: 56.44px
    }

    .tamnhin__wapper .row>div:nth-child(2),
    .tamnhin__wapper .row>div:nth-child(4) {
        margin-top: -1px
    }

    .tamnhin__wapper h4 {
        margin: 0;
        line-height: 56px
    }

    .tamnhin__wapper h5 {
        margin: 0 0 14px;
        font-size: 24px;
        line-height: 33.6px
    }

    .tamnhin__wapper p {
        margin: 0;
        font-size: 16px;
        line-height: 1.2
    }

    /* ---------- Cau chuyen ---------- */
    .cauchuyen__wapper {
        padding: 50px 0
    }

    /* Tieu de nam tren lop anh nui (Figma: chu de len anh) */
    .cauchuyen__wapper h4 {
        position: relative;
        z-index: 2;
        padding-top: 83px;
        font-size: 48px;
        line-height: 67.2px
    }

    /* Anh nui co theo be ngang man hinh -> le am tinh theo vw (-410 / -287 o 1920) */
    .cauchuyen__wapper .background_back {
        margin-top: -21.35vw
    }

    .cauchuyen__wapper .background_front {
        margin-top: -14.95vw
    }

    .cauchuyen__content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        min-height: 419px;
        margin-top: var(--gt-cc-shift, 0px)
    }

    .cauchuyen__content>p.quotation {
        width: 24.36%;
        flex: none;
        margin: 0;
        font-family: var(--main-font-coffee), iCielIdealSans, sans-serif;
        font-size: 24px;
        line-height: 1.214
    }

    .cauchuyen__content>div {
        width: 59.02%;
        flex: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: 98px auto;
        column-gap: 43px;
        row-gap: 79px;
        padding-top: 11px
    }

    .cauchuyen__content>div article {
        width: auto
    }

    .cauchuyen__content>div article:nth-child(3) {
        width: 90.86%
    }

    .cauchuyen__wapper article:before {
        margin-top: 9px
    }

    .cauchuyen__wapper article p {
        margin: 0;
        font-size: 16px;
        line-height: 1.2
    }

    /* ---------- Gia tri chung toi theo duoi ---------- */
    .kinhte__wapper {
        padding-top: 59px;
        padding-bottom: 90px
    }

    .kinhte article {
        margin-bottom: 24px
    }

    .kinhte article:first-child {
        min-height: 121px
    }

    .kinhte article:last-child {
        margin-bottom: 0
    }

    .kinhte article h2 {
        font-size: 32px;
        line-height: 44.8px
    }

    .kinhte article p {
        flex: 0 0 416px;
        font-size: 16px;
        line-height: 1.2
    }

    /* ---------- Video ---------- */
    /* Figma: video de len 66px dau cua block hanh trinh */
    .video-intro {
        margin-bottom: -66px
    }

    /* Figma: tieu de video an (chi con nut play + "Xem video") */
    .video-intro h2 {
        visibility: hidden
    }

    .video-intro .mask-text {
        width: 575px
    }

    .video-intro h2 {
        padding-top: 70px;
        margin-bottom: -35px;
        font-size: 37px;
        line-height: 56px
    }

    .video-intro .button-play img {
        width: 69px;
        margin-bottom: 40px
    }

    .video-intro .button-play span {
        font-size: 16px;
        line-height: 1.214
    }

    /* ---------- Hanh trinh ---------- */
    .hanhtrinh__wapper {
        padding-top: 120px;
        padding-bottom: 156px
    }

    .hanhtrinh__wapper h4 {
        margin: 56px 0 64px;
        font-size: 32px;
        line-height: 44.8px
    }

    .hanhtrinh__content {
        /* 1289px o 1920px, chua cho net ve ben phai */
        width: calc(100% - 119px);
        min-height: 103px;
        align-items: flex-end;
        justify-content: space-between
    }

    .hanhtrinh__description {
        width: 58.34%;
        flex: none;
        align-items: flex-end;
        justify-content: flex-start;
        column-gap: 70px
    }

    .hanhtrinh__description p {
        width: 45.35%;
        flex: none;
        margin: 0 0 20px;
        font-size: 16px;
        line-height: 1.214
    }

    .hanhtrinh__readmore {
        width: 27.77%;
        flex: none;
        padding-bottom: 1px
    }

    .hanhtrinh__wapper .readmore--link {
        margin-bottom: 0;
        line-height: 1.214
    }

    .hanhtrinh-drawing {
        right: calc(var(--gt-edge) - 18px)
    }


    /* Xuong dong dung cho nhu Figma, khong tu ngat them */
    .tamnhin__wapper p,
    .cauchuyen__content>p.quotation,
    .cauchuyen__wapper article:nth-child(3) p,
    .kinhte article p,
    .hanhtrinh__description p,
    .page-outro .page-outro__line {
        white-space: nowrap
    }

    .page-outro .page-outro__line {
        max-width: none
    }

    .product-banner h1 .gt-l1 {
        font-size: 42px
    }

    /* Moi dong h1 la mot .js-text rieng (SplitText tach tung phan tu) */
    .product-banner h1 .gt-l2 {
        font-size: 40.2px
    }


    .tamnhin__wapper .row>div:nth-child(3) h4 {
        font-size: 39.1px
    }

    .kinhte article:nth-child(1) h2 {
        font-size: 30.5px
    }

    .kinhte article:nth-child(4) h2 {
        font-size: 31px
    }

    .product-banner h1 {
        font-size: 42px;
        line-height: 58.8px
    }

    .tamnhin .section-heading {
        font-size: 14.8px;
        font-weight: 700
    }

    .cauchuyen .section-heading {
        font-size: 15.1px;
        font-weight: 700
    }

    .kinhte .section-heading {
        font-size: 14.4px;
        font-weight: 700
    }

    .tamnhin__wapper h4 {
        font-size: 40px
    }

    .tamnhin__wapper h5 {
        font-weight: 700
    }

    .cauchuyen__wapper h4 {
        font-size: 45.5px
    }

    .cauchuyen__content>p.quotation {
        font-family: Inter, sans-serif;
        font-size: 22.9px;
        line-height: 29.14px
    }

    .kinhte article h2 {
        font-size: 32px
    }

    .video-intro h2 {
        visibility: hidden;
        font-family: Inter, sans-serif;
        font-weight: 700;
        font-size: 37px
    }

    .hanhtrinh__wapper h4 {
        font-size: 31px
    }

    .hanhtrinh__description p {
        font-size: 14px;
        line-height: 19.42px
    }

    .hanhtrinh__wapper .readmore--link {
        font-size: 16px;
        font-weight: 600
    }

    .page-outro .page-outro__line {
        font-family: Inter, sans-serif;
        font-weight: 400
    }

}

/* 1024-1439: cot chu khoi Cau chuyen rong hon de chu khong bi keo doc */
@media screen and (min-width:1024px) and (max-width:1439px) {
    .cauchuyen__content>p.quotation {
        width: 30%
    }

    .cauchuyen__content>div {
        width: 64%;
        column-gap: 32px
    }

    .cauchuyen__content>div article:nth-child(3) {
        width: 100%
    }
}
