@charset "utf-8";
@media screen and (max-width: 670px){
.header {
	float: left;
	height: auto;
	width: 100%;
}
.header-top {
	float: left;
	height: auto;
	width: 100%;
	background: linear-gradient(280deg,rgba(255, 255, 255, 1) 0%, rgba(240, 240, 240, 1) 100%);
}
.box-header-top-01 {
	float: left;
	height: auto;
	width: 43%;
	margin-left: 3%;
}
.logo {
	float: left;
	height: auto;
	width: 100%;
}
.logo img {
	height: auto;
	width: 98%;
}
.location-top {
	background-image: url(../images/icon-top-location.png);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 20px;
	float: left;
	height: auto;
	width: 90%;
	font-family: "Noto Sans Thai";
	font-size: 0.9rem;
	color: #666;
	margin-top: 2%;
	margin-bottom: 2%;
	padding-left: 20px;
	padding-top: 1.8%;
	padding-bottom: 1.8%;
}
.top-tel a {
	background-image: url(../images/icon-top-tel.png);
	background-repeat: no-repeat;
	background-position: left center; /* หรือเปลี่ยนเป็น right center ถ้าอยากให้ไอคอนอยู่หลังเลข */
	background-size: 15px;
	float: right;
	height: auto;
	width: auto;          /* เปลี่ยนเป็น auto เพื่อให้กว้างตามเนื้อหาจริง */
	margin-right: 3%;      /* ปรับเป็น 0 เพื่อให้ชิดขอบขวาที่สุด */
	text-align: right;
	padding-left: 18px;   /* เพิ่ม padding เพื่อไม่ให้ตัวเลขทับกับ background icon */
	font-family: "Noto Sans Thai";
	font-size: 1rem;
	color: #333;
	text-decoration: none;
	margin-left: 0%;
	margin-top: 5%;
	margin-bottom: 1%;
}
.box-menu {
	float: right;
	height: auto;
	width: 40%;
	margin-top: 8%;
	margin-right: 3%;
}

.menu {
	float: right;
	height: auto;
	width: 75%;
	background-color: #f7941d;
	padding-top: 3%;
	padding-bottom: 2%;
	border-top-left-radius: 30px;
	border-bottom-left-radius: 30px;
	padding-left: 5%;
	position: sticky; /* แนะนำ: ใส่เพื่อให้เมนูเลื่อนตามลงมา */
	top: 0;
	z-index: 1000;
	display: none;
}
.menu-m {
	display: inline;

}
.menu ul {
    margin: 0;
    padding: 0;
}

.menu ul li {
    font-family: serithairegular, sans-serif;
    font-size: 1.1rem;
    color: #FFF;
    float: left;
    width: auto;
    margin-right: 3%;
    margin-left: 3%;
    list-style-type: none;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.menu ul li a {
    color: #FFF;
    text-decoration: none;
    display: block; /* เพิ่มเพื่อให้คลิกง่ายขึ้น */
}

.menu ul li:hover {
    transform: translateY(-5px); 
    border-bottom-color: #333; 
}

.menu ul li:hover a {
    color: #333333; 
}

/* ล้างค่า float */
.menu::after {
    content: "";
    display: table;
    clear: both;
}
.banner {
	float: left;
	height: auto;
	width: 100%;
	display: none;
}
.banner-m {
	display: inline;
	float: left;
	height: auto;
	width: 100%;
}
.content-overlay {
	position: absolute;
	z-index: 9999;
	left: 30px;
	top: 100px;
}
/* 1. กำหนดการเคลื่อนที่จากซ้ายมาขวา */
@keyframes slideInLeftToRight {
  0% {
    opacity: 0;
    transform: translateX(-100px); /* เริ่มจากทางซ้าย 100px */
  }
  100% {
    opacity: 1;
    transform: translateX(0); /* กลับมาตำแหน่งปกติ */
  }
}

/* 2. ซ่อนองค์ประกอบไว้ก่อน (Pre-state) */
.splide__slide .text-a,
.splide__slide .text-b,
.splide__slide .btn-yellow {
  opacity: 0;
}

/* 3. สั่งทำงานเมื่อสไลด์นั้น Active (.is-active คือคลาสมาตรฐานของ Splide) */

/* ข้อความที่ 1: AAAAA */
.splide__slide.is-active .text-a {
	animation: slideInLeftToRight 0.7s ease-out forwards;
	animation-delay: 0.3s; /* มาก่อนเพื่อน */
	font-family: serithairegular;
	font-size: 2.5rem;
	color: #FFF;
	text-shadow: 2px 2px #666666;
}

/* ข้อความที่ 2: BBBBB */
.splide__slide.is-active .text-b {
	animation: slideInLeftToRight 0.7s ease-out forwards;
	animation-delay: 0.8s; /* ตามมาอันดับสอง */
	font-family: serithairegular;
	font-size: 1.5rem;
	color: #FFF;
	text-shadow: 2px 2px #666666;

}.header .banner #slide1 .splide__track .splide__list .splide__slide img {
	height: auto;
	width: 100%;
}
.header .banner-m #slide2 .splide__track .splide__list .splide__slide img {
	height: auto;
	width: 100%;
}
.text-b{
	margin-top: 8px;
}
.box-slogan {
	float: left;
	height: auto;
	width: 89%;
	background: linear-gradient(to right, #999999,#ebebeb, #e1e1e1,#ebebeb, #e1e1e1);
	border-radius: 25px;
	margin-top: -20px;
	z-index: 9999;
	position: relative;
	margin-left: 5%;
	border: 2px solid #FFF;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
	padding-bottom: 5%;
}
.box-slgan-text {
	font-family: "Noto Sans Thai";
	font-size: 3rem;
	color: #FFF;
	float: left;
	height: auto;
	width: 20%;
	padding-top: 2%;
	padding-bottom: 2%;
	margin-top: 5%;
	margin-right: 2%;
	margin-bottom: 2%;
	margin-left: 10%;
}

.box-slogan-list {
	float: left;
	height: auto;
	width: 90%;
	margin-left: 5%;
	padding-top: 1%;
	padding-bottom: 2%;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #999;
	margin-bottom: 2%;
}
/* 1. กำหนดรูปแบบการขยับ (Keyframes) */
@keyframes pulse {
    0% {
        transform: scale(1); /* ขนาดปกติ */
    }
    50% {
        transform: scale(1.2); /* ขยายใหญ่ขึ้น 10% (ปรับค่าได้ เช่น 1.2 คือ 20%) */
    }
    100% {
        transform: scale(1); /* กลับมาขนาดปกติ */
    }
}

.icon-slogan {
	text-align: center;
	float: left;
	height: auto;
	width: 25%;
	margin-top: 2%;
	margin-left: 5%;
}

.icon-slogan img {
	height: auto;
	width: 55%; /* ขนาดปกติของคุณ */
	/* 2. เรียกใช้อนิเมชั่น */
	animation-name: pulse;            /* ชื่อ keyframes ที่เราตั้งไว้ */
	animation-duration: 2s;           /* ความเร็วต่อ 1 รอบ (ปรับให้ช้าลงเพิ่มวินาที) */
	animation-timing-function: ease-in-out; /* ทำให้จังหวะขยับดูลื่นไหล */
	animation-iteration-count: infinite; /* สั่งให้ทำงานวนไปเรื่อยๆ ไม่มีที่สิ้นสุด */
	/* เพื่อความปลอดภัยบน Browser เก่า */
	-webkit-animation: pulse 2s ease-in-out infinite;
}

.text-slogan {
	font-family: serithairegular;
	font-size: 1.2rem;
	color: #666;
	float: left;
	height: auto;
	width: 70%;
	margin-top: 2%;
	margin-bottom: 2%;
	text-align: center;
}
.num-slogan {
	font-family: "Noto Sans Thai";
	font-size: 2rem;
	color: #F7941D;
	float: left;
	height: auto;
	width: 30%;
	font-weight: bold;
	text-align: right;
}
.text-last-slogan {
	font-family: "Noto Sans Thai";
	font-size: 1.2rem;
	color: #C00;
	text-align: left;
	float: left;
	width: 25%;
	margin-top: 4%;
	margin-left: 5%;
}
}
