/*
*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: Prompt;
    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: Prompt;
}

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: Prompt;
	padding: 0;
	margin: 0;
	color: #6f6b7d;
	border: 1px solid #dbdade;
	border-radius: 2px;
    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: Prompt;
    font-weight: bold;
}

.blue_button{
    display: inline-block;
    color: #fff;
    background-color: #2a4ff6;
    padding: 10px 20px;
    border-radius: 2px;
    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: 2px;
    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; }


/*
** template — header / footer อยู่ใน /css/site.css
*/
h2{
    font-size: 1.5em;
    line-height: 1.2em;
}

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

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

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