﻿/*region CB-002*/

.cb002 {
    overflow: hidden;
}

    .cb002 .container--banner.banner-text .block-banner .cover-content-wrapper .banner-content .description {
        color: #222;
        font-family: Thongterm-Bold;
        font-size: 24px;
        line-height: 12px;
    }

@media (max-width: 767px) {
    .cb002 .container--banner.banner-height-360px .block-banner .banner-content .h1 {
        color: #fff;
        font-size: 24px;
        line-height: 42px;
        margin-bottom: 4px !important;
    }

    .cb002 .container--banner.banner-height-360px .block-banner .banner-content .description {
        color: #fff;
        font-size: 18px !important;
        line-height: 36px !important;
    }

    .cb002 .css-description-banner {
        /*        margin-top: 30px;*/
    }
}

/*.cb002 .text-top {
    height: 0px;
}*/

/*.cb002 .text-centermb {
    margin-top: 132px;
}*/

.cb002 .text-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 300px;
}

.cb022 .cb002 .text-bottom {
    margin-bottom: 33px !important;
}

.cb022 .cb002 .hb-text-bottom {
    margin-bottom: 40px !important;
}

.cb022 .cb002 .btn-yellow {
    height: 44px;
    width: 175px;
    border-radius: 5px;
    background-color: #ffd400;
    border: unset;
    color: #554242;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 1%;
    margin-top: 27px;
}

.cb022 .cb002 .btn-brown {
    height: 44px;
    width: 175px !important;
    border-radius: 5px;
    background-color: #6F5F5E;
    border: unset;
    color: #ffd400;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 0.5%;
    margin-top: 27px;
}

cb002 .page-title {
    color: #222222;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 40px;
    letter-spacing: 0;
    line-height: 48px;
    margin-bottom: 0;
}

.cb002 .hb-text-top {
    margin-bottom: 90px !important;
}


@media (max-width: 767px) {
    .cb002 .text-moongry-all {
        color: #554242;
    }
}

@media (max-width: 767px) {
    .cb002 .btn-yellow {
        background-color: #ffd400;
        font-family: Krungsri-Condensed-Bold;
        font-size: 16px;
        line-height: 27px;
        text-shadow: none;
        height: 44px !important;
        padding: 7px !important;
        width: 170px;
        margin-top: 27px;
        text-align: center;
        border-radius: 5px;
    }
}

.cb002 .text-moongry-all {
    color: #554242;
}

.cb002 .btn-yellow {
    background-color: #ffd400;
    font-family: Krungsri-Condensed-Bold;
    font-size: 16px;
    line-height: 27px;
    text-shadow: none;
    height: 44px !important;
    padding: 7px !important;
    width: 194px !important;
    margin-top: 27px;
    text-align: center;
}

@media (max-width: 767px) {
    .cb002 .cb .container--banner .swiper-pagination {
        bottom: 40px !important;
    }
}

.cb002 .cb .swiper-pagination {
    position: absolute;
    width: 100%;
    bottom: 40px !important;
}

.cb002 .cb .hb-text-bottom {
    margin-top: 33% !important;
}

@media screen and (max-width: 767px) {
    .cb002 .cover-content-wrapper {
        height: unset !important;
    }

    .cb002 .banner-content {
        top: auto !important;
    }
}
/*endregion CB-002*/


/*<!-- CB-002 -->*/
@media (max-width: 768px) {
    .cb002 .btn-brown {
        height: 44px;
        width: 270px !important;
        border-radius: 5px;
        background-color: #554242;
        border: unset;
        color: #ffd400;
        font-family: "Krungsri-Condensed-Bold";
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 0;
        padding-top: 1% !important;
    }

    .cb002 .btn-yellow {
        height: 44px;
        width: 170px !important;
        border-radius: 5px;
        background-color: #ffd400;
        border: unset;
        color: #554242;
        font-family: "Krungsri-Condensed-Bold";
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 0;
        padding-top: 1%;
        /*        padding-top: 2.5% !important;*/
    }
}

@media (max-width: 320px) {
    .cb002 .btn-brown {
        height: 44px;
        width: 270px !important;
        border-radius: 5px;
        background-color: #554242;
        border: unset;
        color: #ffd400;
        font-family: "Krungsri-Condensed-Bold";
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 0;
        padding-top: 2.5% !important;
    }
}

.cb002 .swiper {
    width: 100%;
    height: 100%;
    max-height: 360px;
}

.cb002 .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .cb002 .swiper-slide img {
        display: block;
        width: 100%;
        height: 360px;
        object-fit: cover;
    }

.cb002 .swiper-pagination-bullet {
    background-color: transparent;
    /*    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.3));*/
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 2px solid #fff;
    width: 13px;
    height: 13px;
    margin: 5px 7px !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
}

.cb002 .swiper-pagination-bullet-active {
    background-color: #FDD400;
    /*    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.3));*/
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 2px solid #FDD400;
}

.cb002 .swiper-pagination.has-border .swiper-pagination-bullet-active {
    background-color: #FDD400;
    border: 2px solid #6f5f5e !important;
}

.cb002 .swiper-pagination-bullet:hover {
    background: #FDD400;
}

.cb002 .text-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 300px;
}

.cb002 .text-middle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.cb002.cb360 .text-centermb {
    margin-bottom: 75px !important;
}

.cb002 .text-btn-top {
    height: 0px;
}

.cb002 .text-btn-centermb {
    margin-top: 70px;
}

.cb002 .text-btn-bottom {
    margin-top: 116px;
}

.cb002 .btn-brown {
    height: 44px;
    min-width: 175px !important;
    width: auto !important;
    border-radius: 5px;
    background-color: #6F5F5E;
    border: unset;
    color: #ffd400;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 0.5%;
    margin-top: 32px;
}

.cb002 .btn-yellow {
    height: 44px;
    min-width: 175px;
    width: auto;
    border-radius: 5px;
    background-color: #ffd400;
    border: unset;
    color: #554242;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 1%;
    margin-top: 32px;
}

.cb002 .btn-primary {
    height: 44px;
    min-width: 175px;
    width: auto;
    border-radius: 3px;
    background-color: #ffd400;
    border: unset;
    color: #554242;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 1%;
    margin-top: 32px;
}

.cb002 .btn-MaroonGrey {
    height: 44px;
    min-width: 175px;
    width: auto;
    border-radius: 3px;
    background-color: #554242;
    border: unset;
    color: #ffd400;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 1%;
    margin-top: 32px;
}

.cb002 .description {
    line-height: 36px !important;
}

.cb002 .description {
    font-family: Thongterm-Roman;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0;
    /*    text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.2);*/
}

/*.cb002 .hb-text-centermb {
    top: -15px;
    position: relative;
}*/
.cb022 .cb002 .hb-text-centermb {
    margin-bottom: 56px !important;
}

.cb002.cb360 .hb-text-centermb {
    top: -20px;
    position: relative;
}

.cb002 .hb-text-bottom {
    padding-top: 50%;
}

.cb002 .container--cover {
    margin: 0 auto;
    margin-bottom: unset;
    position: relative;
    width: 100%;
    max-width: 100% !important;
}

.cb022 .swiper-horizontal > .swiper-pagination-bullets,
.cb022 .swiper-pagination-bullets.swiper-pagination-horizontal,
.cb022 .swiper-pagination-custom,
.cb022 .swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom, 8px);
    top: var(--swiper-pagination-top, auto);
    left: 0;
    width: 100%;
    position: absolute;
    width: 100%;
    bottom: 44px !important;
}

/*.cb022 .swiper-pagination-bullet-active {
    background-color: #FDD400;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.3));
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 1px solid #000000 !important;
}

.cb022 .swiper-pagination-bullet {
    color: inherit !important;
    border: none !important;
    padding: 0 !important;
    font: inherit !important;
    width: 15px !important;
    height: 15px !important;
    border: 1px solid #ffffff !important;
}*/

/*<!-- CB-002 -->*/

@media(max-width: 768px) {
    .cb002 .description {
        line-height: 9px !important;
    }
}

@media screen and (max-width: 576px) {
    .cb_002 .mb-4px-xs-i {
        margin-bottom: 13px !important;
    }
}

.cb002 .h1 {
    color: #222;
    font-family: Krungsri-Condensed-Bold;
    font-size: 40px;
    line-height: 60px;
    text-shadow: 1px 2px 0 rgba(0, 0, 0, .2);
    margin-bottom: 16px;
}

@media screen and (max-width: 320px) {

    .cb022 .swiper-horizontal > .swiper-pagination-bullets, .cb022 .swiper-pagination-bullets.swiper-pagination-horizontal, .cb022 .swiper-pagination-custom, .cb022 .swiper-pagination-fraction {
        bottom: var(--swiper-pagination-bottom, 8px);
        top: var(--swiper-pagination-top, auto);
        left: 0;
        width: 100%;
        position: absolute;
        width: 100%;
        /*        bottom: 0px !important;*/
    }
}

.cb002 .block-banner .text-align-top,
.cb002 .block-banner .text-align-centermb,
.cb002 .block-banner .text-align-bottom {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    flex-direction: column;
}

@media only screen and (max-width: 767px) {
    .cb002 .block-banner .text-align-top,
    .cb002 .block-banner .text-align-centermb,
    .cb002 .block-banner .text-align-bottom {
        margin: 0;
        padding: 24px 0; /* กำหนดระยะขอบด้านบนและล่าง */
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center; /* จัดข้อความให้ตรงกลาง */
    }

    .cb002 .block-banner .text-align-top {
        justify-content: flex-start; /* จัดข้อความให้ชิดด้านบน */
    }

    .cb002 .block-banner .text-align-centermb {
        justify-content: center; /* จัดข้อความให้อยู่ตรงกลาง */
    }

    .cb002 .block-banner .text-align-bottom {
        justify-content: flex-end; /* จัดข้อความให้ชิดด้านล่าง */
    }

        /* กำหนดขนาดของข้อความใน mobile */
        .cb002 .block-banner .text-align-top div,
        .cb002 .block-banner .text-align-centermb div,
        .cb002 .block-banner .text-align-bottom div {
            font-size: 14px; /* กำหนดขนาดข้อความใน mobile */
        }
}



.cb022 .cb002 .text-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 340px;
    padding-top: 24px;
}

.ib005 .text-bottom {
    position: absolute !important;
    bottom: 24px;
    top: unset !important;
}

.cb022 .cb002 .text-middle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    padding-bottom: 56px;
}

.cb022 .cb002 .text-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 300px;
    padding-bottom: 24px;
}
/* Swiper 10 ใช้ class root ว่า .swiper แต่ view ยังใช้ .swiper-container แบบ Swiper 6 ของ K13
   K13 ชดเชยด้วย swiper.custom.css ซึ่งหน้า XbyK ไม่ได้โหลด ถ้าไม่มีกฎนี้ .swiper-pagination จะหลุดออกนอกกรอบ */
.cb002 .swiper-container {
    position: relative;
    overflow: hidden;
}
