/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */

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, font, 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 {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
	background-color: #FFFFFF;
}






blockquote, q {
	quotes: none;
}
@font-face {
    font-family: 'serithairegular';
    src: url('serithai_regular-webfont.eot');
    src: url('serithai_regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('serithai_regular-webfont.woff2') format('woff2'),
         url('serithai_regular-webfont.woff') format('woff'),
         url('serithai_regular-webfont.ttf') format('truetype'),
         url('serithai_regular-webfont.svg#serithairegular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Noto Sans Thai';
    src: url('NotoSansThai-Regular.eot');
    src: url('NotoSansThai-Regular.eot?#iefix') format('embedded-opentype'),
         url('NotoSansThai-Regular.woff2') format('woff2'),
         url('NotoSansThai-Regular.woff') format('woff'),
         url('NotoSansThai-Regular.ttf')  format('truetype'),
         url('NotoSansThai-Regular.svg#Noto Sans Thai') format('svg');
}

@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('glyphicons-halflings-regular.ttf') format('truetype'),
         
    }
}
ol, ul {
	list-style: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* remember to define focus styles! */
:focus {
	outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}






#backToTopBtn {
  display: none; /* ซ่อนปุ่มเริ่มต้นไว้ก่อน */
  position: fixed; /* ทำให้ปุ่มอยู่กับที่เมื่อเลื่อนจอ */
  bottom: 20px; /* เว้นระยะจากด้านล่าง 20px */
  right: 30px; /* เว้นระยะจากด้านขวา 30px */
  z-index: 99; /* มั่นใจว่าปุ่มอยู่เหนือองค์ประกอบอื่น */
  border: none; /* ไม่มีขอบ */
  outline: none; /* ไม่มีเส้นขอบตอนเลือก */
  background-color: #f7941d; /* สีส้มที่คุณกำหนด */
  color: white; /* สีของลูกศรเป็นสีขาว */
  cursor: pointer; /* แสดงรูปมือเมื่อชี้เมาส์ */
  padding: 15px; /* ขนาดของปุ่ม */
  border-radius: 10px; /* ความโค้งของมุมปุ่ม */
  font-size: 24px; /* ขนาดลูกศร */
  opacity: 0.8; /* เริ่มต้นให้จางลงเล็กน้อย */
  transition: background-color 0.3s, opacity 0.3s; /* เพิ่มความนุ่มนวลเวลาเปลี่ยนสีและแสดงผล */
}

/* เมื่อเอาเมาส์วาง (Hover) - เปลี่ยนสีเข้มขึ้น และทึบขึ้น */
#backToTopBtn:hover {
  background-color: #d17a15; /* ตัวอย่างสีส้มที่เข้มขึ้น */
  opacity: 1; /* แสดงผลทึบ 100% */
}


@media screen and (max-width: 670px){
	.box-main {
	height: auto;
	width: 85%;
	margin-right: 0%;
	margin-left: 7%;
	float: left;
}


}
@media screen and (min-width: 900px) and (max-width: 1023px){

	.box-main {
	height: auto;
	width: 80%;
	margin-right: auto;
	margin-left: 10%;
}



}
@media screen and (min-width: 1024px){
	.box-main {
	height: auto;
	width: 80%;
	margin-right: auto;
	margin-left: 10%;
	float: left;
}


}
html {
  scroll-behavior: smooth;
}
/* แถบหลักด้านล่าง */
.custom-privacy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #363636;
    color: #f7941d;
    padding: 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
    z-index: 99999; /* มั่นใจว่าอยู่หน้าสุด */
    display: none; 
    font-family: "Noto Sans Thai", sans-serif;
    box-sizing: border-box;
}

.custom-privacy-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.custom-privacy-text {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    flex: 1;
}

/* ส่วนของปุ่ม */
.custom-privacy-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.custom-privacy-actions button {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-family: "Noto Sans Thai", sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.privacy-btn-main {
    background-color: #f7941d;
    color: #ffffff;
}

.privacy-btn-main:hover {
    background-color: #d67e1a; /* ส้มเข้ม */
    transform: translateY(-2px);
}

.privacy-btn-sub {
    background-color: #ffffff;
    color: #363636;
}

.privacy-btn-sub:hover {
    background-color: #e0e0e0; /* ขาวเข้ม (เทาอ่อน) */
    transform: translateY(-2px);
}

/* --- Responsive สำหรับ Tablet และ Mobile --- */
@media (max-width: 850px) {
    .custom-privacy-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .custom-privacy-text {
        font-size: 1rem;
    }

    .custom-privacy-actions {
        width: 100%;
        flex-direction: row; /* Tablet ยังวางปุ่มคู่กันได้ */
    }

    .custom-privacy-actions button {
        flex: 1; /* ให้ปุ่มกว้างเท่ากัน */
    }
}

@media (max-width: 480px) {
    .custom-privacy-actions {
        flex-direction: column; /* มือถือจอแคบ ให้ปุ่มซ้อนกัน */
    }
}