@font-face {
    font-family:sukhumvit_bold;
    src:url(../fonts/sukhumvit/sukhumvit-set_bold-webfont.eot);
    src:url(../fonts/sukhumvit/sukhumvit-set_bold-webfont.eot?#iefix) format("embedded-opentype"),
    url(../fonts/sukhumvit/sukhumvit-set_bold-webfont.woff2) format("woff2"),
    url(../fonts/sukhumvit/sukhumvit-set_bold-webfont.woff) format("woff"),
    url(../fonts/sukhumvit/sukhumvit-set_bold-webfont.ttf) format("truetype"),
    url(../fonts/sukhumvit/sukhumvit-set_bold-webfont.svg#sukhumvit_setbold) format("svg");
    font-weight:normal;
}
@font-face {
    font-family:sukhumvit;
    src:url(../fonts/sukhumvit/sukhumvit-set_medium-webfont.eot);
    src:url(../fonts/sukhumvit/sukhumvit-set_medium-webfont.eot?#iefix) format("embedded-opentype"),
    url(../fonts/sukhumvit/sukhumvit-set_medium-webfont.woff2) format("woff2"),
    url(../fonts/sukhumvit/sukhumvit-set_medium-webfont.woff) format("woff"),
    url(../fonts/sukhumvit/sukhumvit-set_medium-webfont.ttf) format("truetype"),
    url(../fonts/sukhumvit/sukhumvit-set_medium-webfont.svg#sukhumvit_setmedium) format("svg");
    font-style:normal;
}
@font-face {
    font-family:sukhumvit_text;
    src:url(../fonts/sukhumvit/sukhumvit-set_text-webfont.eot);
    src:url(../fonts/sukhumvit/sukhumvit-set_text-webfont.eot?#iefix) format("embedded-opentype"),
    url(../fonts/sukhumvit/sukhumvit-set_text-webfont.woff2) format("woff2"),
    url(../fonts/sukhumvit/sukhumvit-set_text-webfont.woff) format("woff"),
    url(../fonts/sukhumvit/sukhumvit-set_text-webfont.ttf) format("truetype"),
    url(../fonts/sukhumvit/sukhumvit-set_text-webfont.svg#sukhumvit_text) format("svg");
    font-style:normal;
}
html {
    scroll-behavior: smooth;
}

html, body, h1, h2, h3, h4, h5, h6, div, p, a, li, span, tr, th, td, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "sukhumvit";
    word-break: break-word;
}
body {
    background: url("../assets/images/bg_body.jpg") top left repeat;
}
b, th, .text-bold {
    font-family: "sukhumvit_bold";
    font-weight: 600;
}
h1 {
    font-size: calc(55px + 1vw);
}
a:hover {
    text-decoration: none;
}
.text-tpbs {
    color: #fa5000 !important;
}
.img-tpbs {
    height: 35px;
    width: auto;
}
a.link-tpbs {
    color: #565250;
}
a.link-tpbs:hover {
    color: #FA5000;
    transition: .2s all ease-in-out;
}
a.link-menu {
    color: rgba(255,255,255,0.8) !important;
}
a.link-menu:hover {
    color: rgba(0,0,0,.8) !important;
    transition: .2s all ease-in-out;
}
div#swal2-content {
    line-height: 1.7;
}
.navbar-light .navbar-toggler {
    color: rgba(255,255,255,1) !important;
    border-color: rgba(255,255,255,.5) !important;
}
.text-footer {
    color: rgba(255,255,255,0.5);
}

/* For Farewall Website : Start  */

#card-content {
    background: url("../assets/images/bg_main.jpg") bottom right no-repeat;
    background-size: cover;
    min-height: 100vh;
}
.pt-flower {
    padding-top: 100px;
}
.card_box_title {
    background: url("../assets/images/bg_title.png") top center no-repeat;
    background-size: 100% 100%;
    height: 70px;
    width: 100%;
    max-width: 966px;
    display: inline-grid;
}
.card_title {
    color: #FFF !important;
    line-height: 65px;
}
.card_zone {
    margin-top: -535px;
    max-width: 966px;
}

.exam_desc {
    position: absolute;
    color: #927722;
    /*background-color: #EEE;*/
    font-family: sukhumvit_text;
    font-style: italic;
    font-size: 1.7em;
    word-wrap: break-word;
    text-align: center;
    overflow-wrap: break-word;
    display: grid;
    align-items: center;
}
.exam_desc_4by3 {
    top: 45%;
    left: 50%;
    width: 600px;
    height: 265px;
    transform: translate(-50%, -50%);
}
.exam_desc_3by4 {
    top: 39%;
    left: 50%;
    width: 490px;
    height: 390px;
    transform: translate(-50%, -50%);
}
.label-name {
    font-size: 0.9em;
}

.card_img {
    position: relative;
}
.radio_tooltip {
    color: #b99336 !important;
    font-size: 0.9em;
}
.label_form {
    color: #b99336 !important;
}
.label_privacy,
.label_radio {
    color: #6c4a2c !important;
}
.btn-tpbs {
    background-color: #ff783b;
    border-color: #ff783b;
    padding: 10px 20px;
    border-radius: 50px !important;
}
.btn-tpbs:hover {
    background-color: #fe5001;
    border-color: #fe5001;
    transition: all .3s ease-in-out;
}
.scale {
    transform: scaleY(1.05);
    padding-top: 5px;
}
.img-cardtype:hover {
    cursor: pointer;
}



/* For Farewall Website : End  */

.swiper-container {
    width: 70%;
    height: 105%;
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    transform: translate(-50%);
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: block;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.swiper-pagination-bullet-active {
    background: #927722;
}
.text-count-message {
    color: #927722;
    font-size: 0.8em;
}

.bg-tpbs {
    background-color: #fa5000!important;
    /*background: url("../assets/images/bg_body.jpg") top center repeat;*/
}
.btn-outline-tpbs {
    border: 1px solid #FFF;
    font-size: 16px;
    line-height: 1;
    color: #FFFFFF;
    padding: 8px 25px;
}
.btn-outline-tpbs span.btn_menu_subtitle {
    font-size: 10px;
}
.btn-outline-tpbs:hover {
    background-color: #FFFFFF !important;
    color: #fa5000;
    transition: 0.4s all ease-in-out;
}

/*  Footer Zone  */
.footer-zone {
    background-color: #404040;
    padding: 30px 0;
}
.link-footer {
    color: #FFF;
}
.link-footer:hover {
    color: #565250;
    transition: .2s all ease-in-out;
}
.card-success {
    margin-bottom: 5px;
}
.card-success:hover {
    /*color: #FA5000 !important;*/
    /*background-color: #6c757d;*/
    -webkit-box-shadow: 0px 1px 4px 1px rgba(184,177,184,1);
    -moz-box-shadow: 0px 1px 4px 1px rgba(184,177,184,1);
    box-shadow: 0px 1px 4px 1px rgba(184,177,184,1);
    transition: .2s all ease-in-out;
}





/*Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 320px) {

    .exam_desc {
        font-size: 0.8em;
    }
    .exam_desc_4by3 {
        top: 47%;
        left: 50%;
        width: 172px;
        height: 65px;
        transform: translate(-50%, -50%);
    }
    .exam_desc_3by4 {
        top: 39%;
        left: 50%;
        width: 165px;
        height: 140px;
        transform: translate(-50%, -50%);
    }
    .card_zone {
        margin-top: -95px;
    }
    .pt-flower {
        padding-top: 30px;
    }
    .card_box_title {
        height: 57px;
        width: 100%;
    }
    .card_title {
        line-height: 50px;
        font-size: 0.9em;
    }
    div#navbarSupportedContent {
        padding-top: 15px;
    }
    li.nav-item.nav-menu {
        border-bottom: 1px solid rgba(255,255,255,.5);
        padding: 5px 0;
        font-size: 0.8em;
    }
    .main-container {
        display: block;
        height: auto;
    }
    .live-zone {
        background: #FFFFFF url(../assets/images/bg_live.png) 29% top no-repeat;
        height: auto;
    }
    .main_logo {
        position: relative;
        width: 100%;
        height: auto;
        text-align: center;
        margin-top: 30px;
        top: 0;
        left: 0;
        text-align: center;
    }
    .main_logo img {
        width: 300px;
    }
    .main_detail {
        position: relative;
        top: 30px;
        width: 100%;
        right: 0;
    }
    .embed-live {
        margin: 30px 0px 30px 0px;
    }
    .btn-outline-tpbs span.btn_menu_subtitle {
        font-size: 8px;
    }
    .btn-outline-tpbs {
        font-size: 11px;
        line-height: 1;
        padding: 6px 15px;
    }
    .img-tpbs {
        height: 20px;
    }
    .title1 {
        font-size: 1em;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    .title2 {
        font-size: 1.3em;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    .title3 {
        font-size: 1em;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    .card-zone-title {
        background: url(../assets/images/card-title-bg.png) center center no-repeat;
        font-size: 1.2em;
        padding: 5px 25px;
        background-size: 100% 100%;
    }

    .swiper-container {
        width: 75%;
        height: 110%;
    }
    .card-text-title {
        top: 43px;
        font-size: .6em;
        line-height: 1.7;
        height: 85px;
    }
    .card-text-name {
        bottom: 40px;
        height: 25px;
        font-size: 0.4em;
    }
    .card-zone {
        height: 860px;
    }
    .foundation-zone {
        background: url(../assets/images/bg_foundation.png) 0% top no-repeat;
        margin-top: -460px;
        padding-top: 490px;
    }
    .foundation-title {
        margin-bottom: 30px;
    }
    .foundation-title1 {
        font-size: 1em;
        line-height: 1.6;
    }
    .foundation-title2 {
        font-size: 0.8em;
        line-height: 2;
    }
    .success-zone {
        background: url(../assets/images/bg_success.png) 100% 12% no-repeat;
        margin-top: -870px;
        padding-top: 950px;
        padding-bottom: 60px;
        z-index: 999;
    }
    .success-title1 {
        font-size: 1.4em;
        font-weight: bold;
        line-height: 1.6;
    }
    .success-title2 {
        color: #565250;
        font-size: .8em;
    }

}


/*Extra small devices (portrait phones, less than 576px)*/
@media (min-width: 321px) and (max-width: 409.98px) {

    .card_zone {
        margin-top: -110px;
    }
    .pt-flower {
        padding-top: 30px;
    }
    .card_box_title {
        height: 57px;
        width: 100%;
    }
    .card_title {
        line-height: 50px;
        font-size: 0.9em;
    }
    .exam_desc {
        font-size: 0.8em;
    }
    .exam_desc_4by3 {
        top: 47%;
        left: 50%;
        width: 230px;
        height: 100px;
        transform: translate(-50%, -50%);
    }
    .exam_desc_3by4 {
        top: 39%;
        left: 50%;
        width: 220px;
        height: 200px;
        transform: translate(-50%, -50%);
    }



    div#navbarSupportedContent {
        padding-top: 15px;
    }
    li.nav-item.nav-menu {
        border-bottom: 1px solid rgba(255,255,255,.5);
        padding: 5px 0;
        font-size: 0.8em;
    }
    .btn-outline-tpbs {
        font-size: 11px;
        line-height: 1;
    }
    .btn-outline-tpbs span.btn_menu_subtitle {
        font-size: 8px;
    }
    .img-tpbs {
        height: 20px;
    }

    .main-container {
        display: block;
        height: auto;
    }
    .live-zone {
        background: #FFFFFF url(../assets/images/bg_live.png) 29% top no-repeat;
        height: auto;
    }
    .main_logo {
        position: relative;
        width: 100%;
        height: auto;
        text-align: center;
        margin-top: 30px;
        top: 0;
        left: 0;
        text-align: center;
    }
    .main_logo img {
        width: 300px;
    }
    .main_detail {
        position: relative;
        top: 30px;
        width: 100%;
        right: 0;
    }
    .embed-live {
        margin: 0px 0px 30px 0px;
    }
    .title1 {
        font-size: 1em;
        line-height: 1.4;
    }
    .title2 {
        font-size: 1.6em;
        line-height: 1.4;
    }
    .title3 {
        font-size: 1em;
        line-height: 1.4;
    }

    .card-zone-title {
        background: url(../assets/images/card-title-bg.png) center center no-repeat;
        font-size: 1.2em;
        padding: 5px 25px;
        background-size: 100% 100%;
    }

    .swiper-container {
        width: 75%;
        height: 110%;
    }
    .card-text-title {
        top: 55px;
        font-size: .7em;
        line-height: 1.7;
        height: 105px;
    }
    .card-text-name {
        bottom: 50px;
        height: 35px;
        font-size: 0.5em;
    }
    .card-zone {
        height: 900px;
    }
    .foundation-zone {
        background: url(../assets/images/bg_foundation.png) 0% top no-repeat;
        margin-top: -460px;
        padding-top: 500px;
    }
    .foundation-title {
        margin-bottom: 30px;
    }
    .foundation-title1 {
        font-size: 1.1em;
        line-height: 1.6;
    }
    .foundation-title2 {
        font-size: 0.8em;
        line-height: 2;
    }
    .success-zone {
        background: url(../assets/images/bg_success.png) 100% 12% no-repeat;
        margin-top: -870px;
        padding-top: 950px;
        padding-bottom: 60px;
        z-index: 999;
    }
}

@media (min-width: 410px) and (max-width: 539.98px) {
    .card_zone {
        margin-top: -110px;
    }
    .pt-flower {
        padding-top: 30px;
    }
    .card_box_title {
        height: 57px;
        width: 100%;
    }
    .card_title {
        line-height: 50px;
        font-size: 0.9em;
    }
    .exam_desc {
        font-size: 0.8em;
    }
    .exam_desc_4by3 {
        top: 47%;
        left: 50%;
        width: 270px;
        height: 100px;
        transform: translate(-50%, -50%);
    }
    .exam_desc_3by4 {
        top: 39%;
        left: 50%;
        width: 220px;
        height: 200px;
        transform: translate(-50%, -50%);
    }
}

@media (min-width: 540px) and (max-width: 575.98px) {
    .card_zone {
        margin-top: -110px;
    }
    .pt-flower {
        padding-top: 30px;
    }
    .card_box_title {
        height: 57px;
        width: 100%;
    }
    .card_title {
        line-height: 50px;
        font-size: 0.9em;
    }
    .exam_desc {
        font-size: 0.8em;
    }
    .exam_desc_4by3 {
        top: 47%;
        left: 50%;
        width: 380px;
        height: 150px;
        transform: translate(-50%, -50%);
    }
    .exam_desc_3by4 {
        top: 39%;
        left: 50%;
        width: 350px;
        height: 300px;
        transform: translate(-50%, -50%);
    }
}

/*// Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {
    .card_zone {
        margin-top: -230px;
    }
    .exam_desc {
        font-size: 0.8em;
    }
    .exam_desc_4by3 {
        top: 47%;
        left: 50%;
        width: 380px;
        height: 150px;
        transform: translate(-50%, -50%);
    }
    .exam_desc_3by4 {
        top: 39%;
        left: 50%;
        width: 350px;
        height: 300px;
        transform: translate(-50%, -50%);
    }
    div#navbarSupportedContent {
        padding-top: 15px;
    }
    li.nav-item.nav-menu {
        border-bottom: 1px solid rgba(255,255,255,.5);
        padding: 5px 0;
        font-size: 1em;
    }

    .live-zone {
        background: #FFFFFF url(../assets/images/bg_live.png) 30% top no-repeat;
        background-size: cover;
        -moz-background-size: cover;
        -webkit-background-size: cover;
        height: 1200px;
    }
    .main-container {
        display: block;
        height: 600px;
        max-width: 700px;
    }
    .main_logo {
        width: 300px;
        height: auto;
        position: absolute;
        top: 50px;
        left: 20px;
    }
    .main_detail {
        position: absolute;
        top: 190px;
        width: 450px;
        right: -50px;
    }
    .embed-live {
        margin: 3px 0px 30px 0px;
    }
    .title1 {
        font-size: 1.2em;
    }
    .title2 {
        font-size: 1.6em;
        font-weight: bold;
        line-height: 2;
        color: #FE5000;
    }
    .title3 {
        font-size: 1.3em;
    }
    .card-text-title {
        top: 100px;
        font-size: 1.1em;
        line-height: 1.7;
        height: 195px;
    }
    .card-text-name {
        bottom: 62px;
        height: 65px;
        font-size: 0.8em;
        line-height: 1.7;
    }
}

/*// Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {

    .card_zone {
        margin-top: -240px;
        max-width: 966px;
    }

    .exam_desc_4by3 {
        top: 47%;
        left: 50%;
        width: 530px;
        height: 210px;
        transform: translate(-50%, -50%);
    }
    .exam_desc_3by4 {
        top: 39%;
        left: 50%;
        width: 490px;
        height: 390px;
        transform: translate(-50%, -50%);
    }

    div#navbarSupportedContent {
        padding-top: 15px;
    }
    li.nav-item.nav-menu {
        border-bottom: 1px solid rgba(255,255,255,.5);
        padding: 5px 0;
        font-size: 1em;
    }
    ul.navbar-nav.ml-auto.mr-auto {
        margin-bottom: 10px;
    }

    .live-zone {
        background: #FFFFFE url(../assets/images/bg_live.png) 40% top no-repeat;
        height: 1200px;
        background-size: cover;
    }
    .main-container {
        display: block;
        height: 425px;
    }
    .main_logo {
        width: 245px;
        height: auto;
        position: absolute;
        top: 70px;
        left: 50px;
    }
    .main_detail {
        position: absolute;
        top: 100px;
        width: 465px;
        right: -40px;
    }
    .card-text-title {
        top: 94px;
        font-size: 1.2em;
        line-height: 1.7;
        height: 210px;
    }
    .card-text-name {
        bottom: 65px;
        height: 65px;
        font-size: 1em;
        line-height: 1.7;
    }
    .card-zone {
        height: 1200px;
    }
    .foundation-zone {
        background: url(../assets/images/bg_foundation.png) center top no-repeat;
        margin-top: -520px;
        padding-top: 530px;
    }
    .success-zone {
        background: url(../assets/images/bg_success.png) 20% 60% no-repeat;
        margin-top: -870px;
        padding-top: 950px;
    }
}

/*// Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {
    .card_zone {
        margin-top: -325px;
        max-width: 966px;
    }
    .exam_desc_4by3 {
        top: 47%;
        left: 50%;
        width: 530px;
        height: 210px;
        transform: translate(-50%, -50%);
    }
    .exam_desc_3by4 {
        top: 39%;
        left: 50%;
        width: 490px;
        height: 390px;
        transform: translate(-50%, -50%);
    }

    .live-zone {
        background: #FFFFFE url(../assets/images/bg_live.png) center top no-repeat;
        height: 1390px;
        background-size: cover;
    }
    .main-container {
        display: block;
        height: 515px;
    }
    .main_logo {
        width: 290px;
        height: auto;
        position: absolute;
        top: 70px;
        left: 70px;
    }
    .main_detail {
        position: absolute;
        top: 100px;
        width: 550px;
        right: 0px;
    }
    .foundation-zone {
        background: url(../assets/images/bg_foundation.png) center top no-repeat;
        background-size: cover;
        min-height: 1000px;
        /* margin-top: -445px; */
        /* padding-top: 490px; */
        padding-bottom: 60px;
        margin-top: -525px;
        padding-top: 500px;
    }
}

/*// Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .card_zone {
        margin-top: -440px;
    }
    .success-zone {
        background: url(../assets/images/bg_success.png) 40% 25% no-repeat;
    }
}

@media (min-width: 1400px) and (max-width: 1799.98px) {
    .foundation-zone {
        margin-top: -420px;
        padding-top: 490px;
    }
    .success-zone {
        background: url(../assets/images/bg_success.png) 40% 45% no-repeat;
    }
}
@media (min-width: 1800px) and (max-width: 2199.98px) {
    .foundation-zone {
        margin-top: -520px;
        padding-top: 560px;
    }
    .success-zone {
        background: url(../assets/images/bg_success.png) 40% 45% no-repeat;
    }
}


@media (min-width: 2200px) {
    .card-zone {
        height: 1460px;
    }

    .foundation-zone {
        background: url(../assets/images/bg_foundation.png) center top no-repeat;
        background-size: cover;
        min-height: 1000px;
        margin-top: -620px;
        padding-top: 620px;
        padding-bottom: 60px;
    }
}
