
.blog-container {
  display: flex;
  /* ใช้ Grid Layout */
  grid-template-columns: repeat(4, 1fr);
  /* แบ่งเป็น 4 คอลัมน์ขนาดเท่ากัน */
  gap: 20px;
  /* ระยะห่างระหว่างการ์ด */
  margin: 0 auto;
  /* จัด Container ให้อยู่กึ่งกลาง */
  max-width: 1200px;
  /* กำหนดความกว้างสูงสุด */
  padding: 20px;
  /* เพิ่มระยะห่างขอบ Container */
  box-sizing: border-box;
}

.blog-card {

  background-color: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card img.photo1 {
  width: 100%;
  height: 200px;
  /* ความสูงของรูปภาพ */
  object-fit: cover;
  /* จัดให้รูปภาพพอดีกับพื้นที่ */
  border-radius: 8px 8px 0 0;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #343a40;
}

.blog-card p {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0 10px 10px;
}

.blog-card a.btn-read-more {
  display: inline-block;
  margin: 10px auto;
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.blog-card a.btn-read-more:hover {
  background-color: #0056b3;
}


#Blog {

  background-image: url('../images/facade2.jpg');
  /* ระบุที่อยู่รูปภาพ */
  background-size: cover;
  /* ปรับขนาดรูปให้เต็มพื้นที่ */
  background-position: center;
  /* ตำแหน่งรูปให้อยู่ตรงกลาง */
  background-repeat: no-repeat;
  /* ไม่ให้รูปซ้ำ */
  background-color: rgba(255, 255, 255, 0.7);
  /* เพิ่มเลเยอร์สีขาวโปร่งแสงด้านบน */
  background-blend-mode: overlay;
  /* ผสมพื้นหลังกับเลเยอร์สี */
  padding: 20px;
  /* เพิ่มพื้นที่ด้านใน */
  text-align: center;
  /* จัดตำแหน่งข้อความให้อยู่ตรงกลาง */
}

.อ่านเพิ่มเติม {
  text-align: right;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  /* กำหนดความสูงสูงสุด */
  overflow-y: auto;
  /* เปิดใช้งานการเลื่อนในแนวตั้ง */
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* การจัดการ layout */
.container-topic {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 20px;
}

.left-content {
  width: 45%;
  text-align: left;
}

.left-content h3 {
  font-size: 24px;
  color: #333;
}

.left-content .topic {
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: #f9f9f9;
}

.left-content h4 {
  font-size: 20px;
  color: #444;
  margin-bottom: 10px;
}

.left-content .topic-content {
  position: relative;
}

.left-content .topic-content p {
  margin-bottom: 10px;
}

.read-more {
  padding: 10px 20px;
  background-color: #f1c40f;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.read-more:hover {
  background-color: #e67e22;
}

.more-content {
  display: none;
  margin-top: 10px;
}

.right-image {
  width: 45%;
}

.right-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.phoneandidline {
  background-color: #e0e0e0;
}

.phoneandidline {
  padding: 20px;
  text-align: center;
}


.btn {
  padding: 6px;
  font-size: 20px;
  color: white;
  cursor: pointer;
  width: 150px;
  height: 50px;
}


/* ปุ่มสีดำ */
.black-btn {
  background-color: black;
}

/* ปุ่มสีเหมือน LINE */
.line-btn {
  background-color: #00b900;
  /* สีเขียวเหมือน LINE */
}

/* แสดงข้อความ */
#contactInfo {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

/* ซ่อนข้อความเริ่มต้น */
.hidden {
  display: none;
}


.btntt {
  padding: 10px 10px;
  font-size: 16px;
  color: white;
  cursor: pointer;
  margin: 10px;
}



.row1 {
  background-color: rgba(35, 47, 76, 0.5);
  /* สี #232F4C จางลง 50% */
}

.row1 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

#notification-icon {
  position: fixed;
  bottom: 20px;
  /* ระยะจากขอบล่าง */
  right: 20px;
  /* ระยะจากขอบขวา */
  width: 60px;
  /* ขนาดของกรอบวงกลม */
  height: 60px;
  /* ขนาดของกรอบวงกลม */
  border-radius: 50%;
  /* ทำให้กรอบเป็นวงกลม */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: bounce 1s infinite;
  /* แอนิเมชันขยับ */
  z-index: 9999;
  transition: background-color 0.3s, transform 0.3s;
}

#notification-icon img {
  width: 120%;
  /* ทำให้รูปภาพเต็มขนาดของกรอบ */
  height: 100%;
  /* ทำให้รูปภาพเต็มขนาดของกรอบ */
}

#notification-icon:hover {
  transform: scale(1.1);
  /* ขยายขนาดเล็กน้อยเมื่อเมาส์วาง */
  animation: none;
  /* หยุดแอนิเมชันเมื่อเมาส์วาง */
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

#notification-icon.notify {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}


header {
  display: flex;
  flex-direction: row;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  /* ความสูงของ slider */
  overflow: hidden;
}

/* Style สำหรับการเลื่อนรูปภาพในแนวนอน */
.slider {
  display: flex;
  flex-direction: row;
  /* เรียงรูปในแนวนอน */
  transition: transform 1s ease-in-out;
}

/* ให้รูปภาพเต็มความสูงของ container */
.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ปรับขนาดให้เต็มพื้นที่ */
}

/* Style สำหรับปุ่ม Prev และ Next */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* จัดระยะห่างระหว่างแต่ละ blog-card */
.blog-card {
  margin-bottom: 30px;
  /* เพิ่มช่องว่างด้านล่าง */
  padding: 15px;
  /* เพิ่มช่องว่างด้านในของการ์ด */
  border: 1px solid #ddd;
  /* เพิ่มเส้นขอบบางๆ */
  border-radius: 8px;
  /* มุมโค้งมน */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* เพิ่มเงาให้การ์ดดูสวยงาม */
  background-color: #fff;
  /* พื้นหลังสีขาว */
}

/* หากต้องการจัด blog-card ให้อยู่กึ่งกลาง */
.blog-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* เพิ่มช่องว่างระหว่างการ์ดแต่ละใบ */
}

/* จัดรูปภาพภายในการ์ด */
.blog-card img.photo1 {
  max-width: 100%;
  /* ทำให้รูปภาพไม่เกินขอบการ์ด */
  height: auto;
  border-radius: 8px 8px 0 0;
  /* มุมบนโค้งมน */
}

/* ปุ่มอ่านเพิ่ม */
.btn-read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #f97316;
  /* สีส้ม */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s;
}

.btn-read-more:hover {
  background-color: #ea580c;
  /* สีส้มเข้มเมื่อโฮเวอร์ */
}

/* จัดการขนาดรูปภาพใน blog-card */
.blog-card img.photo1 {
  width: 100%;
  /* ความกว้างเต็มขอบการ์ด */
  height: 200px;
  /* ความสูงที่ต้องการ (สามารถปรับได้) */
  object-fit: cover;
  /* ตัดรูปให้พอดีกับขนาด โดยไม่ผิดสัดส่วน */
  border-radius: 8px 8px 0 0;
  /* มุมโค้งมนเฉพาะด้านบน */
}

.allblog {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
}

#bannerImage {
  width: 100%;
  /* ขยายให้เต็มพื้นที่กว้าง */
  height: 100%;
  /* ขยายให้เต็มพื้นที่สูง */
  object-fit: cover;
  /* ปรับภาพให้ครอบคลุมพื้นที่โดยไม่บิดเบี้ยว */
}

.banner-container {
  overflow: hidden;
  /* ซ่อนส่วนเกิน */
  position: relative;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#Home {
  display: flex 1;
  flex-direction: column;

}


.custom-headerbanner {
  text-align: center;
  margin: 1rem 0;
}

.custom-position-relative {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
}

.custom-position-absolute {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: rgba(200, 200, 200, 0.5);
}

.custom-button-container button {
  width: 100%;
  font-size: 16px;
  padding: 50px 20px;
  border: 2px solid transparent; /* กำหนดขอบเริ่มต้นให้เป็นโปร่งใส */
  text-transform: uppercase;
  background-color: transparent; /* ไม่มีพื้นหลัง */
  color: #000;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease; /* เพิ่ม transition */
}

.custom-button-container button:hover {
  border-color: rgb(255 255 255 / 66%); /* เปลี่ยนสีขอบเป็นสีดำจาง */
  background-color: transparent; /* ไม่มีพื้นหลัง */
  color: #ffffff; /* ข้อความยังคงเป็นสีดำ */
}

.custom-button-container button:active {
  background-color: rgba(200, 200, 200, 0.3); /* สีเทาอ่อนจางๆ เมื่อกด */
  color: #000; /* ข้อความยังคงเป็นสีดำ */
  border-color: transparent; /* ไม่มีขอบ */
}



#scrollToTop {
  position: fixed;
  bottom: 20px; /* ระยะห่างจากด้านล่าง */
  left: 20px;   /* ระยะห่างจากด้านซ้าย */
  background-color: #f39c12; /* สีพื้นหลัง */
  color: white; /* สีตัวอักษร */
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* เงา */
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(20px); /* ซ่อนปุ่มในตอนแรก */
  z-index: 9999; /* อยู่ด้านหน้าสุด */
}

#scrollToTop.show {
  opacity: 1;
  transform: translateY(0); /* แสดงปุ่มเมื่อเลื่อนลง */
}

#scrollToTop:hover {
  background-color: #e67e22; /* สีเมื่อ hover */
}
/* ตกแต่ง h1 */
.container h1 {
  font-size: 2rem;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}


/* ตกแต่งข้อความ */
.container p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  text-align: justify;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Layout Styling */
body {
  font-family: 'Sarabun', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}
header {
  background-color: #ffcc00;
  padding: 20px;
  text-align: center;
  color: #333;
}

h1, h2 {
  margin: 0;
  font-weight: normal;
}
/* Content Section */
.content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;
}

.content .section {
  flex: 1 1 calc(50% - 20px);
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.content .section img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.content .section h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #ff8800;
}

.content .section p {
  margin: 0;
  font-size: 14px;
  color: #333;
  text-align: justify;
}



/* Scroll to Top Button */
#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffcc00;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#scrollToTop.show {
  display: flex;
}

/* Image and Text Section Specific */
.content .section img {
  max-height: 250px;
  object-fit: cover;
}

.content .section h3 {
  color: #ff6600;
  margin-bottom: 10px;
}

.content .section p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}
.left{
  display: flex;
  flex-direction: row;
  margin-bottom: 30px;
}
@media (max-width: 768px){
  .left{
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    align-items: center;
  }
  .left p{
    font-size: 16px;
    line-height: 1.6;
    text-align: justify; /* จัดข้อความชิดขอบทั้งสองด้าน */
    margin-left: 20px;

  }
  .left img{
    width: 100%; 
    max-height: 500px; /* กำหนดความสูงที่คุณต้องการ */
    object-fit: cover; /* ทำให้รูปครอบคลุมโดยไม่บิดเบี้ยว */
    align-items: center;
  }
}

@media (min-width: 820px) and (max-width: 1025px){
  .right{
    display: flex;
    margin-bottom: 30px;
    flex-direction: row-reverse;
    margin-left: 20px;
    margin-right: 20px;

  }
  .left{
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    margin-left: 20px;
    margin-right: 20px;

  }
  .right img{
    max-width: 300px;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
  }
  .left p{
    letter-spacing: 0.6px;
    margin-right: 20px;
    margin-left: 20px;
    font-size: 18px;
    text-align: justify; /* จัดข้อความชิดขอบทั้งสองด้าน */
  }
  .right p{
    letter-spacing: 0.6px;
    margin-right: 20px;
    font-size: 18px;
    text-align: justify; /* จัดข้อความชิดขอบทั้งสองด้าน */
  }
}
.right{
  display: flex;
  margin-bottom: 30px;
  flex-direction: row-reverse;
}
@media (max-width: 768px){
  .right {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
  }
  .right p{
    font-size: 15px;
    line-height: 1.6;
    text-align: justify; /* จัดข้อความชิดขอบทั้งสองด้าน */
    margin-left: 20px;
    margin-top: 20px;
    margin-right: 20px;

  }
  .right p{
    margin-left: 20px;
    letter-spacing: 0.6px;
  }
}
.left p{
  letter-spacing: 0.6px;
  margin-right: 20px;
  text-align: justify; /* จัดข้อความชิดขอบทั้งสองด้าน */
  margin-left: 20px;
}
.right p{
  margin-left: 20px;
  letter-spacing: 0.6px;
  margin-right: 20px;
  text-align: justify; /* จัดข้อความชิดขอบทั้งสองด้าน */
}
.content{
  margin-top: 200px;
}
.left img{
  width: 100%; /* หรือกำหนดเป็น px เช่น width: 300px; */
  max-height: 500px; /* กำหนดความสูงที่คุณต้องการ */
  object-fit: cover; /* ทำให้รูปครอบคลุมโดยไม่บิดเบี้ยว */
}
.right img{
  max-width: 300px;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}
.content p{
  align-items: center;
}
h1, h2, h3, h4, h5, h6, p, span, div {
  font-family: 'Noto Sans Thai Looped', 'Work Sans';
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
}
