@font-face {
    font-family: 't';
    src: url('../font/prompt/Prompt-ExtraLight.woff') format('woff'), url('font/prompt/Prompt-ExtraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'r';
    src: url('../font/prompt/Prompt-Light.woff') format('woff'), url('font/prompt/Prompt-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'ri';
    src: url('../font/prompt/Prompt-LightItalic.woff') format('woff'), url('font/prompt/Prompt-LightItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'b';
    src: url('../font/prompt/Prompt-SemiBold.woff') format('woff'), url('font/prompt/Prompt-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'bi';
    src: url('../font/prompt/Prompt-SemiBoldItalic.woff') format('woff'), url('font/prompt/Prompt-SemiBoldItalic.ttf') format('truetype');
}


/*
*reset
**/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	/*vertical-align: baseline;*/
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

html,body{
	height: 100%;
	min-height: 100%;
    color: #6f6b7d;
}

body{
   	font-family: r;
    font-size: 16px;
    line-height: 1.3em;
	min-height:100%;
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;
	background: #fff;
}

b,strong,h1,h2,h3,h4,h5,h6{
	font-family: b;
}

h1, h2, p{
	width: 100%;
}

ul, ul li, ul li ul {
	list-style: none;
	margin: 0;
}

a{
	text-decoration: none;
    color: #254ef6;
    /*all: unset;*/
}

input,textarea, select{
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;
	font-family: r;
	padding: 0;
	margin: 0;
	color: #6f6b7d;
	border: 1px solid #dbdade;
	border-radius: 4px;
    font-size: 16px;
}

input[type='text'],
input[type='password'],
input[type='email'],
textarea{
	height: 42px;
	padding: 4px 8px;
}

select{
    height: 42px;
    padding: 4px 8px;
}

::placeholder {
  color: #ccc;
  opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Edge 12 -18 */
  color: #ccc;
}

img{
	display: inline-block;
	width: 100%;
	height: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

.form label,
input[type='text'],
input[type='password'],
input[type='email'],
textarea,
.form select{
	display: block;
	width: 100%;
}

.form p{
    display: block;
    margin-bottom: 22px;
}

.form label{
    margin-bottom: 4px;
    font-family: b;
}

.blue_button{
    display: inline-block;
    color: #fff;
    background-color: #2a4ff6;
    padding: 10px 20px;
    border-radius: 20px;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.5s ease;
    text-align: center;
    border: 0;
}

.blue_button:hover{
    transition: background-color 0.5s ease;
    background-color: #1037e8;
    
}

.blue_button:active{
    position: relative;
    top: 1px;
}

.white_button{
    display: inline-block;
    color: #2a4ff6;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.5s ease;
    text-align: center;
    border: 0;
}

.white_button:hover{
    transition: background-color 0.5s ease;
    background-color: #f9f9f9;
    
}

.white_button:active{
    position: relative;
    top: 1px;
}

/* =========================================
   loading
   ========================================= */
.vanilla-loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.8); z-index: 9999; display: flex; justify-content: center; align-items: center; }
.vanilla-spinner { width: 50px; height: 50px; border: 5px solid #f3f3f3; border-top: 5px solid #2a4ff6; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   1. CSS สำหรับ Custom Slider (แทน Swiffy)
   ========================================= */
.custom-slider {
    position: relative;
    width: 100%;
}

/* บังคับให้ container ซ่อนส่วนที่เกินและอนุญาตให้ Scroll */
.custom-slider .slider-container {
    display: flex;
    overflow-x: auto; /* ต้องมี */
    scroll-snap-type: x mandatory; /* ทำให้เลื่อนแล้วหยุดกึ๊กที่หน้าถัดไป */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.custom-slider .slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.custom-slider .slide-visible, 
.custom-slider .our_news_li {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* บังคับให้แต่ละหน้ากว้าง 100% ของพื้นที่ */
#our_feedbacks_slider .slide-visible {
    flex: 0 0 100%; /* ต้องเป็น 100% เพื่อให้เห็นทีละหน้า */
    width: 100%;
    scroll-snap-align: start;
}

/* ตั้งค่าขนาดสำหรับ News Slider (โชว์ 3 อันบนจอใหญ่, 1 อันบนจอเล็ก) */
#our_news_slider .our_news_li {
    flex: 0 0 calc(33.333% - 10px);
}
@media (max-width: 768px) {
    #our_news_slider .our_news_li {
        flex: 0 0 100%;
    }
}

/* ปุ่มเลื่อนซ้ายขวา */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #000; /* บังคับสีดำ เผื่ออยู่ใน section พื้นหลังสีเข้ม */
}
.slider-nav::after { content: '<'; font-weight: bold; font-size: 18px; }
.slider-nav-next::after { content: '>'; }
.slider-nav:not(.slider-nav-next) { left: -20px; }
.slider-nav-next { right: -20px; }

/* จุด Indicator ทั่วไป */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 20px;
}
.slider-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}
.slider-indicators button.active { background: #2a4ff6; }



/*
** Burger Style: @see: https://codepen.io/CreativeJuiz/full/oMZNXy
*/
/* Main menu positionning */
header .mnav {
    position: absolute;
    width: 100%;
    height: auto;
    background: #FFF;
    right: 0;
    top: 0;
    z-index: -1;
}

.main-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    text-align: center;
    background: #FFF;
    opacity: 0;
    z-index: 99;
    visibility: hidden;
    transition: all .375s;
}

.main-nav.is-open {
    opacity: 1;
    z-index: 100;
    visibility: visible;
}

/* Yellow band effect */
.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -15px;
    background: #2a4ff6;
    transform-origin: 0 0;
    transform: skew(-14deg) translateX(-120%);
    transition: all .275s .1s;
}

.main-nav.is-open::before {
    transform: skew(-14deg) translateX(0);
}

/* Skewing effect on menu links */
.main-nav ul {
    display: inline-flex;
    flex-direction: column;
    height: 93%; /* Should be 100%, but we have a notice message :D */
    align-items: flex-end;
    justify-content: center;
    transform: translateX(-18%) skew(-16deg);
}

.main-nav li {
    display: block;
    margin: .5rem 0;
    text-align: right;
    transform: skew(16deg);
}

/* Apparition effect on links */
.main-nav a {
    opacity: 0;
    transform: translateY(-10px);
}

.main-nav.is-open a {
    opacity: 1;
    transform: translateY(0);
}
.main-nav li:nth-child(1) a {
    transition: all 275ms 175ms
}
.main-nav li:nth-child(2) a {
    transition: all 275ms 225ms
}
.main-nav li:nth-child(3) a {
    transition: all 275ms 275ms
}
.main-nav li:nth-child(4) a {
    transition: all 275ms 325ms
}
.main-nav li:nth-child(5) a {
    transition: all 275ms 375ms
}


/* Decoration */
.main-nav ul,
.main-nav li {
    list-style: none;
    padding: 0;
}
.main-nav a {
    display: block;
    padding: 12px 0;
    color: #fff;
    font-size: 1.4em;
    text-decoration: none;
    font-weight: bold;
}

/* Burger Style: @see: https://codepen.io/CreativeJuiz/full/oMZNXy */
.open-main-nav {
    z-index: 9999;
    position: absolute;
    top: 18px;
    padding-top: 20px;
    right: 10px;
    z-index: 1000;
    background: none;
    border: 0;
    cursor: pointer;
}
.open-main-nav:focus {
    outline: none;
}

.burger_button {
    position: relative;
    display: block;
    width: 28px;
    height: 4px;
    margin: 0 auto;
    background: #2a4ff6;
    transform: skew(5deg);
    transition: all .275s;
}

.burger_button:after,
.burger_button:before {
    content: '';
    display: block;
    height: 100%;
    background: #2a4ff6;
    transition: all .275s;
}

.burger_button:after {
    transform: translateY(-12px) translateX(-2px) skew(-20deg);
}

.burger_button:before {
    transform: translateY(-16px) skew(-10deg);
}

/* Toggle State part */


.is-open .burger_button {
    transform: skew(5deg) translateY(-8px) rotate(-45deg);
    background: #fff;
}

.is-open .burger_button:before {
    transform: translateY(0px) skew(-10deg) rotate(75deg);
    background: #fff;
}

.is-open .burger_button:after {
    transform: translateY(-12px) translateX(10px) skew(-20deg);
    opacity: 0;
    background: #fff;
}

/* MENU Text part */

.burger_button-text {
    display: block;
    font-size: .675rem;
    letter-spacing: .05em;
    margin-top: .5em;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
    color: #fff;
    color: #fff;
}

/*
* .lnav
*/
.lnav{
    display: none;
}


/*
** template
*/
h2{
    font-size: 1.5em;
    line-height: 1.2em;
}

.wrapper{
	display: block;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;

	/*padding: 0 22px;
	margin-top: 20px;
	padding-bottom: 20px;*/
}

.wrapper:after{
	content: "";
	display: table;
	clear: both;
}

header{
    z-index: 99;
    display: block;
    position: fixed;
    top: 0;
    background: #fff;
    width: 100%;
    height: 60px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;   
}

header .logo{
    height: 1px;
}

header .logo a{
    position: relative;
    display: block;
    top: 20px;
}

header .logo{
    width: 110px;
}

header .logo img{
    width: 100%;
    height: auto;
}

section.container{
    margin-top: 80px;
}

footer{
    padding: 30px 0;
    padding-bottom: 15px;
    background: #2a4ff6;
    color: #fff;
    text-align: center;
}

footer a{
    color: #fff;
}

footer .company{
    border-bottom: 1px solid #fff;
    padding-bottom: 14px;
}

footer .logo{
    margin-bottom: 12px;
}

footer .logo img{
    width: 120px;
    height: auto;
}

footer .address strong{
    font-weight: bold;
    line-height: 2em;
}

footer .social{
    margin-top: 12px;
}

footer .social li{
    color: #fff;
    display: inline-block;
    margin: 5px;
}

footer .social a{
    display: block;
}

footer .social img{
    height: 24px;
    width: auto;
}

footer .bottom_nav{
    display: none;
}

footer .copyright{
    font-size: 0.8em;
    padding-top: 15px;
}

@media only screen and (min-width:768px){

}

@media only screen and (min-width:998px){
    h2{
        font-size: 1.9em;
        line-height: 1.2em;
    }

    header .mnav {
        display: none;
    }

    header{
        height: 70px;
    }

    header > .wrapper{
        display: flex;
    }

    header .logo a{
        top: 24px;
    }

    header .logo{
        width: 120px;
    }


    header .navs{
        margin-left: auto;
    }

    header .lnav{
        display: block;
    }

    header .lnav ul{
        margin-top: 18px;
        display: flex;
        align-items: center;
        gap: 0 28px;
    }

    header .lnav li a{
        cursor: pointer;
        color: #6f6b7d;
    }

    header .lnav li.active a{
        cursor: auto;
        color: #000;
        font-family: b;
    }

    header .lnav li.buttons{
        width: 250px;
        text-align: right;
    }

    header .lnav li.buttons a{
        color: #fff;
    }

    section.container{
        margin-top: 100px;
    }

    header .lnav li.buttons a:nth-child(2){
        margin-left: 8px;
    }

    footer .company{
        text-align: left;
    }

    footer .company > .wrapper{
        display: flex;
    }

    footer .company .contact{
        width: 300px;
    }

    footer .bottom_nav{
        justify-content: flex-end;
        margin-left: auto;
        width: calc(100% - 380px);
        display: flex;
    }

    footer .bottom_nav .c{
        width: calc(100% / 4);
    }

    footer .bottom_nav h5{
        font-size: 1.1em;
        margin-bottom: 12px;
    }

    footer .bottom_nav li{
        margin-bottom: 4px;
    }

    footer .copyright .wrapper{
        display: flex;
    }

    footer .copyright .wrapper span{
        width: 50%;
        text-align: left;
    }

    footer .copyright .wrapper ul{
        display: flex;
        justify-content: right;
        width: 50%;
        gap: 0 30px;
    }
}