* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    /* background: url('images/bg.png') no-repeat center center fixed; */
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.navbar {
position: sticky;
top: 0;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #042c57;
padding: 20px 20px;
height: 70px;
color: white;
}

.navbar-left {
flex: 1;
margin-left: 20px;
}

.navbar-text {
font-size: 18px;
font-weight: bold;
}

.navbar-right {
display: flex;
align-items: center;
}

.navbar-menu {
list-style: none;
display: flex;
gap: 20px;
}

.navbar-menu li {
display: flex; /* ใช้ flex เพื่อให้เมนูแต่ละตัวจัดตำแหน่งให้ตรงกัน */
position: relative; /* ทำให้ dropdown content แสดงอยู่ในตำแหน่งที่ถูกต้อง */
}

.navbar-menu li a {
text-decoration: none;
color: white;
font-size: 18px;
transition: color 0.3s;
}

.navbar-menu li a:hover {
color: #f1f1f1;
}

/* Dropdown */
.dropdown-content {
display: none;
position: absolute;
top: 100%; /* ให้แสดงด้านล่างเมนูหลัก */
left: 0;
background-color: #f9f9f9;
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
min-width: 160px;
border-radius: 5px;
z-index: 9999;
}

.dropdown-content li {
padding: 12px 16px;
}

.dropdown-content li a {
text-decoration: none;
color: black;
}

.dropdown-content li a:hover {
background-color: #ddd;
}

/* เมื่อเมาส์ชี้ไปที่เมนูหลักให้แสดงรายการย่อย */
.dropdown:hover .dropdown-content {
display: block;
}
.hamburger {
display: none; /* ซ่อนในทุกขนาด */
cursor: pointer;
font-size: 30px;
color: white;
}


/* Media Query สำหรับโทรศัพท์ */
@media (max-width: 768px) {
.navbar-menu {
display: none;
position: absolute;
top: 60px;
right: 0;
background-color: #58a3f3;
width: 100%;
text-align: left;
padding: 20px 0;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease-out;
transform: translateY(-20px);
}

.navbar-menu li {
display: block;
width: 100%;
text-align: center;
}

.navbar-menu li a {
font-size: 20px;
color: rgb(0, 0, 0);
padding: 10px;
display: block;
border-radius: 5px;
transition: background-color 0.3s ease;
}

.navbar-menu li a:hover {
background-color: #58a3f3;
}

/* แสดง Hamburger Icon บนอุปกรณ์มือถือ */
.hamburger {
display: block; /* แสดงเมื่อหน้าจอเล็ก */
}

.navbar-menu.active {
display: block;
transform: translateY(0);
}
}

.container {
    width: 100%;
    margin: auto;
    /* padding: 20px; */
    background: rgba(255, 255, 255, 0.8);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    /* max-width: 1200px; */
    margin-top: 20px;
}

h1 {
    font-size: 50px;
    color: #007bff;
    /* text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6); */
    font-weight: bold;
    margin-top: 20px;
}

h2 {
    font-size: 30px;
    color: #007bff;
    margin-top: 10px;
    /* text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); */
}

.service-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.service-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    width: 80%;
    max-width: 600px;
    gap: 15px;
}

.service-box i {
    font-size: 30px;
    color: #007bff;
}

.contact {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  
}

.contact p {
    font-size: 30px;
    color: #333;
}


.image-gallery1 {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px; /* ลด gap ให้เล็กลง */
max-width: 1200px;
margin: auto;
}

@media (max-width: 768px) {
.image-gallery1 {
grid-template-columns: repeat(2, 1fr);
}
}

/* ปรับ .image-box ให้เต็มความกว้างของ grid cell และคงสัดส่วนเป็นสี่เหลี่ยม */
.image-box1 {
width: 100%;
aspect-ratio: 1 / 1;
border: 3px solid #007bff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease-in-out;
}

.image-box1:hover {
transform: scale(1.05);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.image-box1 img {
width: 100%;
height: 100%;
object-fit: cover;
}
.gallery-heading {
font-size: 26px;
color: #3f71f8;
text-align: center;
font-weight: bold;
padding: 10px 20px;
background-color: #e6f2ff; /* สีพื้นหลังอ่อนๆ ให้ความรู้สึกสดใส */
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: inline-block;
margin-bottom: 20px;
}

.gallery-heading i {
margin-right: 8px;
color: #3f71f8;
}


@media (max-width: 768px) {
.image-gallery {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.contact p {
font-size: 18px; /* ลดขนาดฟอนต์เมื่อหน้าจอเล็ก */
}
}

.contact i {
    color: #007bff;
    margin-right: 10px;
}

.image-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 0px; 
    flex-wrap: wrap; 
    grid-template-columns: repeat(2, 1fr);
}

.image-box {
    width: 150px;
    height: 150px;
    border: 3px solid #007bff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.image-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.image-box img {
    width: 100%; /* ให้ภาพเต็ม container */
    height: 100%; /* ให้ภาพเต็ม container */
    object-fit: cover; /* ให้ภาพไม่ผิดสัดส่วน */
}

.extra-box {
background-color: rgba(255, 255, 255, 0.9);
padding: 10px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin-top: 0px;
text-align: center;
}

/* ตั้งค่าให้ภาพแสดงเต็มพื้นที่บนหน้าจอคอมพิวเตอร์ */
.img-map {
width: 100%;
height: auto;
}

/* ปรับขนาดภาพสำหรับหน้าจอมือถือ */
@media only screen and (max-width: 768px) {
.img-map {
/* ตัวอย่างนี้จำกัดความกว้างสูงสุดของภาพในมือถือ */
max-width: 300px; /* ปรับค่าให้เหมาะสมกับการออกแบบของคุณ */
width: 100%;
margin: 0 auto;
}
}


.extra-box h3 {
    font-size: 26px;
    color: #007bff;
    margin-bottom: 15px;
}

.extra-box h4 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.extra-box p {
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
}

.btn i {
    margin-right: 8px;
}

.btn-call {
    background-color: #f18f33;
}
.btn-call:hover {
    background-color: #f37907;
}
.btn-facebook {
    background-color: #0043fc;
}
.btn-facebook:hover {
    background-color: #2f00ff;
}




.btn-line {
    background-color: #00c300;
}

.btn-line:hover {
    background-color: #009900;
}
.recommendations {
padding: 50px;
display: grid;
grid-template-columns: repeat(2, 1fr); /* Two columns on larger screens */
gap: 20px; /* Adjust the gap between the boxes */
margin-bottom: 20px;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
align-items: stretch; /* ทำให้แต่ละกล่องมีความสูงเท่ากัน */
}

.recommendation-box {
background-color: #f8f9fa;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0.5, 0.5, 0.5, 0.5);
display: flex;
flex-direction: column;
justify-content: space-between; /* ทำให้เนื้อหาภายในกล่องกระจายตัว */
height: 100%; /* ทำให้กล่องมีความสูงเท่ากัน */
}




.recommendation-box h4 {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 10px;
}


.recommendation-box p {
    font-size: 16px;
    color: #444;
}
@media (max-width: 768px) { 
.recommendations {
grid-template-columns: 1fr; /* One column on small screens like mobile */
}



.img-map {
width: 100%;
height: auto;
max-width: 100%;

}

/* Container style for Service Info */
.service-info {
background-color: #f9f9f9;
padding: 20px 30px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 800px;
margin: 20px auto;
}

/* Headings */
.service-info h3 {
font-size: 28px;
color: #042c57;
margin-bottom: 10px;
}

.service-info h4 {
font-size: 22px;
color: #007bff;
margin-bottom: 15px;
}

/* Paragraphs */
.service-info p {
font-size: 16px;
color: #333;
line-height: 1.5;
margin: 10px 0;
}

/* Grouping for contact and social buttons */
.contact-buttons,
.social-buttons {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 0px;
margin: 0px 0;
}

/* Button styles */
.btn {
text-decoration: none;
padding: 10px 15px;
border-radius: 5px;
font-size: 16px;
display: inline-flex;
align-items: center;
gap: 5px;
transition: background-color 0.3s;
}

/* Specific button colors */
.btn-call {
background-color: #f18f33;
color: #fff;
}

.btn-call:hover {
background-color: #f37907;
}

.btn-line {
background-color: #00c300;
color: #fff;
}

.btn-line:hover {
background-color: #009900;
}

.btn-facebook {
background-color: #0043fc;
color: #fff;
}

.btn-facebook:hover {
background-color: #2f00ff;
}

/* Feature list styles */
.features p {
font-size: 16px;
color: #555;
margin: 5px 0;
}

.features i {
color: #007bff;
margin-right: 8px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
.service-info {
padding: 15px 20px;
}

.service-info h3 {
font-size: 24px;
}

.service-info h4 {
font-size: 20px;
}

.service-info p,
.features p {
font-size: 14px;
}

.btn {
padding: 12px 20px; /* ปรับ padding ให้ปุ่มใหญ่ขึ้น */
font-size: 18px;    /* ปรับขนาดฟอนต์ */
border-radius: 5px;
}
}



.google-map {
width: 100%;
height: 450px; /* ความสูงของแผนที่ */
max-width: 100%; 
position: relative;
overflow: hidden;
border-radius: 10px; /* เพิ่มความโค้งให้กับมุม */

}
.google-map iframe {
width: 100%;
height: 100%;
border: none;
}

.scroll-to-top {
position: fixed;
bottom: 30px; /* ระยะห่างจากด้านล่าง */
right: 10px;  /* ระยะห่างจากด้านขวา */
background-color: #007bff;
color: white;
padding: 15px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
font-size: 24px;
display: block !important; /* ใช้ !important เพื่อบังคับให้แสดง */
text-decoration: none;
z-index: 9999; /* ให้ปุ่มอยู่บนสุด */
}

.scroll-to-top:hover {
background-color: #0056b3;
transform: scale(1.1);
}

.scroll-to-top i {
font-size: 18px;
}

.scroll-to-line {
position: fixed;
bottom: 95px; /* ระยะห่างจากด้านล่าง */
right: 10px;  /* ระยะห่างจากด้านขวา */
background-color: #00c300;
color: white;
padding: 15px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
font-size: 24px;
display: block !important; /* ใช้ !important เพื่อบังคับให้แสดง */
text-decoration: none;
z-index: 9999; /* ให้ปุ่มอยู่บนสุด */


}

.scroll-to-line:hover {
background-color: #009900;
transform: scale(1.1); /* ขยายขนาดปุ่มตอน hover */
}

.scroll-to-line i {
font-size: 18px;
}



.scroll-to-tel {
position: fixed;
bottom: 160px; /* ระยะห่างจากด้านล่าง */
right: 10px;  /* ระยะห่างจากด้านขวา */
background-color: #f18f33;
color: white;
padding: 15px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
font-size: 24px;
display: block !important; /* ใช้ !important เพื่อบังคับให้แสดง */
text-decoration: none;
z-index: 9999; /* ให้ปุ่มอยู่บนสุด */


}

.scroll-to-tel:hover {
background-color: #f5a802ab;
transform: scale(1.1); /* ขยายขนาดปุ่มตอน hover */
}

.scroll-to-tel i {
font-size: 18px;
}






}
