/* ============================================ */
/*     Section header , vedio      */
/* ============================================ */

/* ============================================ */
/* Section header, video                 */
/* ============================================ */

/* เลือก div หลักที่มีทั้ง ID และ Class */
#hero_section_home {
    position: relative;
    /* box-shadow: linear-gradient(-45deg, #f8a5a8, #D00000, #D00000, #f77979); */
    background: linear-gradient(-45deg, #f8a5a8, #D00000, #f77979);
    width: 100%;
    overflow: hidden;
}

#hero_section_home .video-wrapper {
    position: relative;
    height: 0;
    overflow: hidden;
    /* box-shadow: linear-gradient(-45deg, #f8a5a8, #D00000, #D00000, #f77979); */
    background: linear-gradient(-45deg, #f8a5a8, #D00000, #f77979);
    background: url('/assets/img/building/csh_02.jpg') no-repeat center center/cover;
    padding-bottom: 56.25%;
    width: 100%;
    flex-shrink: 0;
    flex-grow: 1;
}

#hero_section_home .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* เดิมใช้ 1.5 (ผิด syntax) */
    pointer-events: auto;
}

/* เนื้อหา Hero */
#hero_section_home .hero_section_content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    background: transparent;
    z-index: 2;
    animation: hideOverlay 0.5s ease-in-out forwards;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    animation-delay: 15s;
}

@keyframes hideOverlay {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

/* Optional: Basic styling for content inside the overlay */
#hero_section_home .hero_section_content-overlay h1 {
    font-size: 5em;
    margin-bottom: 10px;
    color: rgba(248, 9, 9, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero_section_home .hero_section_content-overlay p {
    font-size: 3em;
    margin-bottom: 20px;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: white;
}

#hero_section_home .hero_section_content-overlay button {
    background-color: #D00000;
    color: white;
    padding: 8px 18px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#hero_section_home .hero_section_content-overlay button:hover {
    background-color: #f77979;
}

/* สำหรับหน้าจอขนาดเล็ก (ไม่เกิน 1200px) */
@media (max-width: 768px) {
    #hero_section_home .video-wrapper {
        padding-bottom: 56.25%;
    }
}

@media (max-width: 1200px) {
    #hero_section_home {
        padding-top: 80px;
    }

    #hero_section_home .video-wrapper {
        padding-bottom: 56.25%;
    }
}

@media (max-width: 1000px) {
    #hero_section_home .hero_section_content-overlay h1 {
        font-size: 1.25em;
        margin-bottom: 10px;
    }

    #hero_section_home .hero_section_content-overlay p {
        display: none !important;
    }

    #hero_section_home .hero_section_content-overlay button {
        display: none !important;
    }
}

#hero_section_home .video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

#hero_section_home .video-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

#hero_section_home .video-controls button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ซ่อน controls ตอน fullscreen */
#hero_section_home video::-webkit-media-controls {
    display: none !important;
}

#hero_section_home video::-moz-media-controls {
    display: none !important;
}

#hero_section_home video::-ms-media-controls {
    display: none !important;
}

/* Section background */
#space-available {
  /* background: linear-gradient(to bottom, #f8f9fa, #e9ecef); */
  /* Lighter, subtle gradient for a clean look */
  padding-top: 50px; 
  padding-bottom: 6px;
  /* Increased padding for more breathing room */
}

/* Container for responsiveness */
#space-available .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px; /* Slightly more padding for inner content */
}

/* Grid layout */
#space-available .spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Slightly wider cards for better content display */
  gap: 50px; /* Increased gap between cards for better visual separation */
  margin-bottom: 10px; /* Add margin below grid if there's content after it */
  padding-top: 10px; 
}

/* Card container */
#space-available .space-item {
  background: #ffffff;
  border-radius: 18px; /* Slightly more rounded corners */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09); /* Stronger, more defined shadow */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother, more elegant transition */
  padding-bottom: 35px; /* More padding at the bottom for content balance */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; /* Center align content within the card */
  text-align: center; /* Center align text within the card */
}

#space-available .space-item:hover {
  transform: translateY(-10px); /* More pronounced lift on hover */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

/* Image */
#space-available .space-item img {
  height: 260px; /* Slightly taller image */
  object-fit: cover;
  width: 100%;
  transition: 0.3s ease;
  border-bottom: 1px solid #dee2e6; /* Lighter, more subtle border */
}

#space-available .space-item:hover img {
  filter: brightness(0.9) contrast(1.05) saturate(1.1); /* Enhanced hover effect with slight saturation */
}

/* Title */
#space-available .space-item h3 {
  font-size: 1.9em; /* Larger, more impactful title font */
  margin: 28px 0 15px; /* Adjusted margins */
  color: #212529; /* Darker, more prominent color for titles */
  font-weight: 700;
  padding: 0 30px; /* Increased padding to match other content */
}

/* Description */
#space-available .space-item p {
  padding: 0 30px;
  margin-bottom: 25px;
  font-size: 1.05rem; /* Slightly larger text for readability */
  line-height: 1.7; /* Improved line height */
  color: #495057; /* Softer dark grey for body text */
}

/* List */
#space-available .space-item ul {
  list-style: none;
  padding: 0 30px;
  text-align: left; /* Keep list items left-aligned */
  margin-bottom: 30px; /* More margin below list */
  width: 100%; /* Ensure list takes full width for padding */
  box-sizing: border-box; /* Include padding in width calculation */
}

#space-available .space-item ul li {
  margin-bottom: 12px; /* Increased margin for list items */
  font-size: 1em; /* Clearer list item font size */
  color: #343a40; /* Darker text for list items */
  position: relative;
  padding-left: 35px; /* More padding for checkmark to stand out */
}

#space-available .space-item ul li::before {
  content: '✅'; /* Clear and universally recognized checkmark */
  color: #28a745; /* Standard green for success/checkmark */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0px; /* Adjusted vertical alignment */
  font-size: 1.1em; /* Slightly larger checkmark */
}

/* Section main title */
#space-available h2 {
  text-align: center;
  margin-bottom: 20px;
  font-family: 'DB Ozone X', sans-serif;
  font-weight: 800;
  color: #343a40;
  position: relative;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

#space-available h2::after {
  content: '';
  display: block;
  width: 90px; /* Slightly wider underline */
  height: 5px; /* Thicker underline */
  background-color: #f0504bff; /* Changed to match button color for consistency */
  margin: 20px auto 0;
  border-radius: 3px;
}

#space-available h4 {
  padding-top: 15px;
}

/* Sub description */
#space-available .section-description {
  text-align: center;
  font-size: 2px; /* Larger, more inviting description */
  color: #6c757d; /* Softer grey for sub-description */
  margin-bottom: 4px; /* More space below description */
  max-width: 90%; /* Wider description area */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Button style */
#space-available .btn-small {
  background-color: #f0504bff; /* Vibrant red-orange */
  color: #fff;
  padding: 15px 32px; /* Larger button for better clickability */
  font-size: 1.05rem; /* Clearer font size */
  font-weight: 600; /* Bolder text */
  border: none;
  border-radius: 50px; /* Pill-like shape */
  transition: all 0.3s ease-in-out; /* Smooth transition */
  text-decoration: none;
  display: inline-flex; /* Use flex for internal alignment */
  align-items: center; /* Vertically align content */
  justify-content: center; /* Horizontally align content */
  margin-top: 20px; /* More space above button */
  box-shadow: 0 6px 20px rgba(236, 141, 134, 0.4); /* Subtle shadow for button */
  cursor: pointer; /* Indicate it's clickable */
}

#space-available .btn-small::after {
  content: " →";
  font-weight: bold;
  margin-left: 8px; /* More space for the arrow */
  font-size: 1.2em; /* Larger arrow */
}

#space-available .btn-small:hover {
  background-color: #fd2f0bff; /* Slightly darker red-orange on hover */
  transform: translateY(-3px); /* More noticeable lift on hover */
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 25px rgba(253, 20, 20, 0.6); /* More prominent shadow on hover */
}

#space-available .spaces-grid p {
  font-size: 25px;
  line-height: 1.2;
}

#space-available .spaces-grid ul li {
  font-size: 24px;
  line-height: 1.2;
}
/* ============================================ */
/*      Smart Building Scetion      */
/* ============================================ */
.btn-red {
  background-color: #D00000;
  color: white;
  border: 2px solid #D00000;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all .4s cubic-bezier(.25, .8, .25, 1)
}

.btn-red:hover {
  background-color: #9D0208;
  border-color: #9D0208;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 16, 46, .3)
}

.btn-outline-danger {
  background-color: transparent;
  border: 2px solid #D00000;
  color: #D00000;
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: all .4s cubic-bezier(.25, .8, .25, 1)
}

.btn-outline-danger:hover {
  background-color: #D00000;
  color: white;
  transform: translateY(-2px)
}

/* ============================================ */
/*      3. SECTION 1: "SMART BUILDING"          */
/* ============================================ */
.smart-building-bg {
  background-color: #f7f7f7;
  padding: 80px 0;
}

.smart-icon-box.v2 {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.smart-icon-box.v2:hover {
  transform: translateY(-8px);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.1),
    0 5px 10px rgba(0, 0, 0, 0.04);
  border-color: #D00000;
}

.smart-icon-box.v2 img {
  max-height: 150px;
  margin-bottom: 1.5rem;
  align-self: center;
}

.smart-icon-box.v2 h5 {
  color: #1a1a1a;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
  min-height: 48px;
}

.smart-icon-box.v2 p {
  color: #555;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.smart-icon-box.v2 .btn-outline-danger {
  margin-top: auto;
}

/* ============================================ */
/*   4. SECTION 2: "FUTURISTIC SMART BUILDING"  */
/* ============================================ */
.futuristic-smart-building {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* === [UPGRADE] BACKGROUND IMAGE SLIDER FOR ICON-STYLE IMAGES === */
.background-image-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation-name: subtle-fade-in-out;
  animation-duration: 24s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at center, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 70% at center, black 40%, transparent 80%);
}

.image-slide:nth-child(2) {
  animation-delay: 8s;
}

.image-slide:nth-child(3) {
  animation-delay: 16s;
}

@keyframes subtle-fade-in-out {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  4% {
    opacity: 0.7;
  }

  30% {
    opacity: 0.7;
    transform: scale(1);
  }

  34% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.futuristic-smart-building::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(-45deg, #9D0208, #D00000, #D00000, #D00000);
  /* background: linear-gradient(-45deg, #9D0208, #D00000, #1a0406, #000); */
  /* background-size: 400% 400%; animation: gradientBG 20s ease infinite; */
  opacity: 0.85;
  z-index: 1;
}

.futuristic-smart-building::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 80%, rgba(255, 77, 77, 0.4) 0%, transparent 60%);
  opacity: 0.4;
  z-index: 1;
}

.futuristic-smart-building .container {
  position: relative;
  z-index: 2;

}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.futuristic-smart-building .section-title h1 {
  color: white;
  animation: fadeInDown 1s ease-out;
}

.futuristic-smart-building .section-title p {
  color: rgba(255, 255, 255, 0.7);
  animation: fadeInUp 1s ease-out 0.3s;
  animation-fill-mode: backwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Image and Tab Styles --- */
.image-container {
  position: relative;
  border-radius: 1rem;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
  box-shadow: 0 0 35px 25px #D00000;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 480px;
  /* background-color: #fa0b0b; */
  /* === การปรับปรุงเพื่อจัดกลางภาพภายในคอนเทนเนอร์ === */
  display: flex;
  /* ใช้ Flexbox เพื่อจัดตำแหน่ง */
  justify-content: center;
  /* จัดกลางในแนวนอน */
  align-items: center;
  /* จัดกลางในแนวตั้ง */
  /* ============================================== */
}

.smart-building-image {
  display: block;
  /* สำคัญสำหรับ img-fluid และการจัดตำแหน่ง */
  /* max-width: 100%;
      width: 100%; */
  height: 98%;
  min-height: 80%;
  object-fit: cover;
  /* หรือ 'contain' ขึ้นอยู่กับว่าต้องการให้รูปภาพครอบคลุมหรือถูกจำกัดขนาด */
  position: absolute;
  /* ยังคงเป็น absolute เพื่อซ้อนกัน */
  opacity: 0;
  transform: scale(1);
  /* เพื่อไม่ให้ซูม */
  transition: opacity 0.6s ease;
  /* === การปรับปรุงเพื่อจัดกลางภาพภายในคอนเทนเนอร์ === */
  display: flex;
  /* ใช้ Flexbox เพื่อจัดตำแหน่ง */
  justify-content: center;
  /* จัดกลางในแนวนอน */
  align-items: center;
  /* จัดกลางในแนวตั้ง */
  text-align: center;
  /* ============================================== */
}

.smart-building-image.active {
  opacity: 1;
  transform: scale(1);
  /* เพื่อไม่ให้ซูม */
}

.content-tabs-wrapper {
  background: rgba(10, 10, 10, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.smart-building-tab {

  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  margin-bottom: 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.smart-building-tab::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #D00000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.smart-building-tab a {
  font-size: 5rem;
  font-weight: 500;
}

.smart-building-tab i {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, transform 0.3s ease;
}

.smart-building-tab .tab-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.smart-building-tab:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.smart-building-tab:not(.active):hover::before {
  transform: scaleX(1);
}

.smart-building-tab:not(.active):hover i {
  transform: scale(1.1);
}

.smart-building-tab.active {
  background-color: rgba(208, 0, 0, 0.1);
  border-color: rgba(208, 0, 0, 0.5);
  box-shadow: inset 0 0 10px rgba(208, 0, 0, 0.2);
}

.smart-building-tab.active i,
.smart-building-tab.active .tab-title {
  color: #fff;
  font-weight: 600;
}

.content-panes {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-grow: 1;
}

.content-pane {
  color: rgba(255, 255, 255, 0.9);
  display: none;
}

.content-pane.active {
  display: block;
  animation: fadeInContent 0.5s ease forwards;
}

/* --- Animation Keyframes --- */
@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(208, 0, 0, 0.5);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(208, 0, 0, 0.8);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(208, 0, 0, 0.5);
  }
}

/* --- Read More Button --- */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 12px 28px;
  background-color: #D00000;
  border: 2px solid #D00000;
  color: #fff;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: pulse-glow 2.5s infinite ease-in-out;
  transition: all 0.3s ease;
}

.read-more-btn:hover,
.read-more-btn:focus {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.08);
  background-color: #fff;
  color: #D00000;
  box-shadow: 0 4px 25px rgba(255, 77, 77, 0.4);
}

.read-more-btn .arrow {
  transition: transform 0.3s ease;
}

.read-more-btn:hover .arrow {
  transform: translateX(5px);
}

/* ============================================ */
/*    6. MODAL STYLES (Side Panel - REFINED)    */
/* ============================================ */
.smart-building-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
  z-index: 100000;


}

.smart-building-modal.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.smart-building-modal-content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  padding: 3rem;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  border-left: 1px solid #f80707ff;
  /* เส้นขอบสีเทาอ่อน */
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  box-shadow: -8px 0 12px -4px rgba(240, 8, 8, 0.9);

}

@media (max-width: 576px) {
  .smart-building-modal-content {
    max-width: 90%;
    padding: 2rem;
  }
}

.smart-building-modal.is-visible .smart-building-modal-content {
  transform: translateX(0);
}

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: #f1f1f1;
  border: none;
  border-radius: 50%;
  color: #888;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 40px;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-modal-btn:hover {
  background: var(--primary-red);
  color: white;
  transform: rotate(90deg);
}

#smart-building-modal-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  margin: 2rem auto 2rem auto;
}

#smart-building-modal-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

#smart-building-modal-description {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  flex-grow: 1;
}

/* ===================================================================
    section wrap image
   =================================================================== */

/* --- 1. Global & Root Styles --- */
.container {
  max-width: 100% !important;
  width: 100%;
}

/* --- 2. Main Layout & Section Wrappers --- */
.content-section-wrap {
  margin-top: 50px;
  width: 100%;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.content-section-wrap:last-of-type {
  margin-bottom: 0;
}

.content-section-wrap h2,
.content-section-wrap h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #d61b03;
}

.content-section-wrap p {
  text-align: center;
  max-width: 90%;
  margin: 0 auto 30px auto;
  color: #555;
  line-height: 1.7;
}

#main-home-wrap {
  width: 100%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-picture-source-srcset {
  display: flex;
  width: 100%;
  min-height: 100%;
}

.wrap-picture-source-srcset {
  display: flex;
  flex-grow: 1;
  height: 100%;
}

/* --- 3. Core Image Item Component --- */
.item-images {
  position: relative;
  flex: 1;
  overflow: hidden;
  transition: flex 0.7s ease-in-out, transform 0.7s ease-in-out;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  min-height: 500px;
}

.item-images.active {
  flex: 2;
}

.item-images .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s ease-in-out;
  z-index: 1;
}

.item-images:hover .image {
  transform: scale(1.05);
}

.item-images.active .image {
  transform: scale(1);
}

/* --- 4. Description & Hover Content --- */
.wrap-desc {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #fff;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.box-desc {
  width: 100%;
  max-width: 80%;
  box-sizing: border-box;
  text-align: left;
  /* height: 100%;  เปลี่ยน height: 100% → min-height: auto*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hover-desc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  min-height: fit-content;
  /* ✅ รองรับเนื้อหายาว */
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  background-color: rgba(27, 27, 27, 0.5);
  padding: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.item-images:hover .hover-desc,
.item-images.active .hover-desc {
  opacity: 1;
  visibility: visible;
}

/* --- 5. Text & Font Styles --- */
.head-nomal {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  z-index: 3;
  font-size: clamp(1.25rem, 4vw, 3rem);
  font-weight: bold;
  line-height: 1.2;
  white-space: normal;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.item-images.active .head-nomal {
  opacity: 0;
  visibility: hidden;
}

.txt-head {
  font-size: clamp(1rem, 4vw, 2.5rem);
  font-weight: bold;
  color: white;
  text-align: center;
  white-space: normal;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin: 0;
  display: inline-block;
  line-height: 1.2;
}

.head-hover {
  color: #ffffff !important;
  /* color: #fa0808ff !important; */
}

.txt-short {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  /* รองรับตั้งแต่มือถือถึงจอใหญ่ */
  line-height: 1.6;
  /* อ่านง่ายขึ้น */
  padding: 12px 16px;
  /* padding กว้างขึ้นเล็กน้อย */
  color: white !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  display: block;
  /* display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical; */
  overflow: hidden;
  text-overflow: ellipsis;
  /* max-height: calc(1.6em * 6);  */
  white-space: normal;
  transition: max-height 0.4s ease-in-out;
  flex-grow: 1;

  /* Layout */
  text-align: center;
  margin: 0 auto;
  max-width: 90%;
  width: 100%;
  cursor: pointer;
  text-decoration: none;

  /* ปรับเพื่อให้รองรับอุปกรณ์เล็ก */
  box-sizing: border-box;
}

/* เมื่อต้องการขยาย */
.txt-short.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}


/* --- 6. Buttons & UI Elements --- */
.button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  /* ดันปุ่มไปล่างสุด */
}

.see-more-btn {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(179, 178, 177, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  display: none;
  text-decoration: none;
}

.see-more-btn:hover {
  background-color: rgba(245, 6, 6, 0.8);
  border: 1px solid rgba(243, 127, 127, 0.7);
  color: white;
  text-decoration: underline;
}

.item-images.active .see-more-btn {
  opacity: 1;
  visibility: visible;
  display: inline-block;
}

.lang-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.lang-switcher button {
  padding: 8px 15px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}

.lang-switcher button:hover {
  background-color: #e0e0e0;
}

.lang-switcher button.active-lang {
  background-color: #d61b03;
  color: white;
  border-color: #d61b03;
}

/* --- 7. Responsive Styles (Media Queries) --- */

/* ปิด hover บน Desktop */
@media (hover: none) and (pointer: coarse) {
  .item-images:hover .image {
    transform: scale(1);
  }

  .item-images:hover .hover-desc {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* จอ Tablet (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    font-size: 15px;
  }

  .txt-head {
    font-size: clamp(1.3rem, 3.5vw, 2.5rem);
  }

  .txt-short {
    font-size: clamp(0.75rem, 1.3vw, 1rem);
  }
}

@media (max-width: 768px) {

  /* ปรับขนาด font พื้นฐาน */
  :root {
    font-size: 14px;
  }

  /* ปรับ layout ให้เป็น column สำหรับภาพหรือเนื้อหาหลายบล็อก */
  .section-picture-source-srcset,
  .wrap-picture-source-srcset {
    flex-direction: column;
    height: auto;
  }

  /* รูปภาพหรือกล่อง item ทั่วไป */
  .item-images {
    flex: 1 1 auto;
    min-height: 250px;
    height: auto;
    max-height: none;
    margin-bottom: 10px;
    transition: min-height 0.7s ease-in-out;
  }

  .item-images:last-child {
    margin-bottom: 0;
  }

  .item-images.active {
    min-height: 400px;
  }

  /* การจัดวางคำบรรยายหรือกล่องข้อความ */
  .wrap-desc,
  .box-desc {
    max-width: 90%;
    height: auto;
    /* ✅ ปรับให้สูงตามเนื้อหา */
    align-items: center;
    text-align: center;
    padding: 1rem;
    margin: 0 auto;
  }

  /* หัวข้อธรรมดา */
  .head-nomal {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    opacity: 1;
    visibility: visible;
  }

  /* ซ่อนหัวข้อเมื่อ active */
  .item-images.active .head-nomal {
    display: none;
  }

  /* กล่อง hover เมื่อคลิกหรือ active */
  .hover-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
  }

  .item-images.active .hover-desc {
    opacity: 1;
    visibility: visible;
  }

  /* ข้อความที่สั้น/ตัดบรรทัด */
  .txt-short {
    font-size: clamp(0.8rem, 3.5vw, 1rem);
    padding: 10px 12px;
    line-height: 1.5;
    max-width: 95%;
  }

  /* ปุ่ม */
  .button-group {
    margin-top: 15px;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .see-more-btn {
    margin-top: 0;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

}

.content-section-wrap h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
  color: #343a40;
  position: relative;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.content-section-wrap h2::after {
  content: '';
  display: block;
  width: 90px;
  /* Slightly wider underline */
  height: 5px;
  /* Thicker underline */
  background-color: #f0504bff;
  /* Changed to match button color for consistency */
  margin: 20px auto 0;
  border-radius: 3px;
}

#section_wrap_content p {
  line-height: 1.2;
}

#restaurantDetailModal .modal-backdrop.fade.show {
  background-color: rgba(0, 0, 0, 0.7);
}

#restaurantDetailModal .modal-dialog {
  /* ใช้ modal-fullscreen ตามที่คุณต้องการ */
  max-width: 900px;
  /* กำหนดความกว้างสูงสุดของ Modal (ปรับได้ตามต้องการ) */
  margin: 1.75rem auto;
  /* ให้ Bootstrap จัด margin อัตโนมัติ (ค่า default) */
}

#restaurantDetailModal .modal-content {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background-color: #f8f9fa;
}

/* Header Section */
#restaurantDetailModal .modal-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e9ecef;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#restaurantDetailModal .modal-header .modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  letter-spacing: -0.5px;
}

#restaurantDetailModal .modal-header .btn-close {
  font-size: 1.25rem;
  opacity: 0.7;
  transition: all 0.2s ease-in-out;
}

#restaurantDetailModal .modal-header .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Body Section */
#restaurantDetailModal .modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #f8f9fa;
}

/* Specific styles for the content loaded into modalContentArea */
#restaurantDetailModal #modalContentArea {
  padding: 2.5rem;
}

#restaurantDetailModal #modalContentArea .container {
  max-width: 960px;
  margin: 0 auto;
}

#restaurantDetailModal #modalContentArea h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* --- ส่วนสำคัญ: การปรับรูปภาพให้เต็ม 100% --- */
#restaurantDetailModal #modalContentArea img {
  width: 100%;
  /* ทำให้รูปภาพกว้างเต็มพื้นที่ 100% */
  max-width: 100%;
  /* ให้แน่ใจว่าไม่เกิน 100% */
  height: auto;
  /* รักษาสัดส่วน */
  max-height: 80vh;
  /* จำกัดความสูงสูงสุดไว้ */
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  /* ครอปรูปให้เต็มพื้นที่โดยไม่บิดเบี้ยว */
}

/* ------------------------------------------------ */

#restaurantDetailModal #modalContentArea p.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #575757;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#restaurantDetailModal #modalContentArea h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #343a40;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 5px;
}

#restaurantDetailModal #modalContentArea h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: #fd0d0dff;
  border-radius: 2px;
}

#restaurantDetailModal #modalContentArea ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

#restaurantDetailModal #modalContentArea ul li {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

#restaurantDetailModal #modalContentArea ul li::before {
  content: "\2022";
  color: #fd0d0dff;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  padding-right: 0.5em;
}

#restaurantDetailModal #modalContentArea a {
  color: #fd0d0dff;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

#restaurantDetailModal #modalContentArea a:hover {
  color: #fd0d0dff;
  text-decoration: underline;
}

/* Spinner Styles */
#restaurantDetailModal #modalContentArea .spinner-border {
  width: 3.5rem;
  height: 3.5rem;
  border-width: 0.35em;
  color: #fd0d0dff;
}

/* section slider chartered loung */
* {
  font-family: 'DBOzoneX', sans-serif;
}

.section-title {
  font-family: 'DBOzoneX', sans-serif;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
}

.chartered-square-showcase h2,
.chartered-square-showcase h3,
.chartered-square-showcase h4 {
  font-family: 'DBOzoneX', sans-serif;
  font-weight: 800;
  color: #222;
}

.gallery-section {
  padding: 60px 0;
  font-family: 'DBOzoneX', sans-serif;
}

.swiper-container {
  width: 100%;
  min-width: 90%;
  padding-top: 20px;
  padding-bottom: 50px;
  font-family: 'DBOzoneX', sans-serif;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: #eee;
  /* CHANGED: Adjusted height for 2-row layout */
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: white;
  padding: 40px 20px 20px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 1;
  transform: translateY(0);
}

.caption h4 {
  color: white;
  font-size: 1.1rem;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.caption p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  font-weight: 300;
  color: white;
}

/* === CAROUSEL & LIGHTBOX STYLES === */
.gallery-section {
  padding: 10px 0;
  width: 100%;
}

.swiper-container {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 50px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: #eee;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
  opacity: 1;
}

.view-more-container {
  text-align: right;
  margin-top: 5px;
  background: back;
}

@media (max-width: 576px) {

  .view-more-btn,
  .see-more-btn {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }

  .view-more-container {
    text-align: center;
  }
}

.view-more-btn {
  display: inline-block;
  padding: 10px 25px;
  border: 2px solid #b30000;
  color: #b30000;
  background-color: transparent;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background-color: #b30000;
  color: white;
  transform: translateY(-3px);
}

.view-more-btn .fas {
  margin-left: 8px;
}

/* Swiper Controls Customization */
.swiper-pagination {
  /* background-color: #fcfcfcff !important; */

}

.swiper-pagination-bullet-active {
  background-color: #b30000 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #b30000 !important;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: 900;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
}

.fade-in-up.visible {
  animation: fadeInUp 1s ease-out forwards;
}

.swiper-lounge-container {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 50px;
}

/* floo-plan */
.container {
  /*max-width: 1200px;*/
  max-width: 100%;
}

/* --- Header Section --- */
.section-header {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
  /* Increased margin */
  padding-bottom: 25px;
  /* Increased padding */
  border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
  /*color:  #d61b03;*/
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 2.5rem;
  /* Slightly larger heading */
}

.section-header p {
  color: #6c757d;
  font-size: 1.15rem;
  /* Slightly larger text */
  max-width: 850px;
  /* Wider description */
  margin: 0 auto;
}

/* --- Navigation Tabs --- */
.nav-tabs {
  border-bottom: 3px solid #d61b03;
  /* Thicker active line */
  justify-content: center;
  margin-bottom: 40px;
  /* Increased margin */
  background-color: #ffffff;
  /* Add background to tabs */
  border-radius: 8px;
  /* Rounded corners for tab container */
  padding: 10px;
  /* Padding around tabs */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* Shadow for the tab container */
}

.nav-tabs .nav-item {
  margin: 0 5px;
  /* Spacing between tabs */
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 6px;
  /* More rounded corners for tab buttons */
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 28px;
  /* Adjusted padding */
  transition: all 0.3s ease;
  background-color: transparent;
  /* Ensure default is transparent */
}

.nav-tabs .nav-link:hover:not(.active) {
  color: #d61b03;
  background-color: rgba(#d61b03, 0.08);
  /* Lighter hover background */
}

.nav-tabs .nav-link.active {
  background-color: #d61b03;
  color: white;
  position: relative;
  /* No top: 1px needed now that border is on parent */
  box-shadow: 0 2px 8px rgba(#d61b03, 0.3);
  /* Stronger shadow for active tab */
  transform: translateY(-2px);
  /* Slight lift for active tab */
  text-decoration: underline;
}

/* --- Tab Pane / Section Styling --- */
.tab-pane {
  background-color: #ffffff;
  border-radius: 12px;
  /* More rounded corners */
  /* box-shadow: 0 8px 25px var(--shadow-medium);*/
  /* Stronger shadow */
  padding: 40px;
  /* Increased padding */
  margin-bottom: 40px;
  /* Increased margin */
}

.floor-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  /* More space between components */
}

.floor-section h2 {
  font-family: 'DBOzoneX', sans-serif;
  /* font-weight: 700; */
}

.floor-heading {
  font-size: 2.2rem;
  /* Larger heading */
  font-weight: 700;
  color: #d61b03;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.floor-heading::after {
  /* Underline effect */
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #d61b03;
  border-radius: 1px;
}

/* --- Floor Plan Image Container --- */
.floor-plan-visual {
  position: relative;
  width: 100%;
  max-width: 900px;
  /* Increased max width for floor plan image */
  margin: 0 auto;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  /* More rounded corners */
  overflow: hidden;
  /*box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);*/
  /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);*/
  /* Shadow for image container */
}

.floor-plan-visual img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease-out;
  /* Slower, smoother transition */
}

.floor-plan-visual img:hover {
  transform: scale(1.03);
  /* Slight zoom on hover for main image */
}

/* --- Eye Icons Positioning --- */
.floor-plan-visual .view-icon {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  width: 55px;
  /* Larger icon container */
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Slightly less transparent */
  /*border-radius: 50%;*/
  /*border: 3px solid #d61b03;*/
  /* Thicker border */
  /* box-shadow: 0 3px 8px rgba(0,0,0,0.3); /* Stronger shadow */
  transition: all 0.25s ease-in-out;
}

.floor-plan-visual .view-icon img {
  width: 65%;
  /* Size of the actual eye image inside the circle */
  height: auto;
  filter: brightness(0.7);
}

/* --- Specific Positions (Adjust these % values precisely for your images!) --- */
/* Low Zone */
.lz .view-n {
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lz .view-e {
  top: 50%;
  right: 3%;
  transform: translateY(-50%);
}

.lz .view-s {
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, 50%);
}

.lz .view-w {
  top: 50%;
  left: 3%;
  transform: translateY(-50%);
}

/* High Zone */
.hz .view-n {
  top: 12%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hz .view-e {
  top: 52%;
  right: 5%;
  transform: translateY(-50%);
}

.hz .view-s {
  bottom: 12%;
  left: 50%;
  transform: translate(-50%, 50%);
}

.hz .view-w {
  top: 52%;
  left: 5%;
  transform: translateY(-50%);
}

/* --- Detail Section --- */
.detail-section {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  /* Similar shadow to tab-pane */
  padding: 40px;
  margin-top: 40px;
  /* More spacing */
  align-items: center;
  max-width: 80%;
}

.detail-section h3 {
  color: #d61b03;
  font-weight: 700;
  margin-bottom: 30px;
  /* More spacing */
  text-align: center;
  font-size: 2rem;
  /* Larger heading */
  position: relative;
  padding-bottom: 10px;
}

.detail-section h3::after {
  /* Underline effect */
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #d61b03;
  border-radius: 2px;
}

.detail-item {
  margin-bottom: 20px;
  /* More spacing between items */
  display: flex;
  align-items: flex-start;
  /* Align icon to top of text */
}

.detail-item strong {
  color: var(--text-dark);
  font-size: 1.05rem;
  /* Slightly larger font for strong text */
  margin-bottom: 3px;
  line-height: 1.4;
}

.detail-item p {
  color: #6c757d;
  font-size: 0.95rem;
  /* Standard text size for details */
  margin-bottom: 0;
  flex-grow: 1;
  /* Allow text to take remaining space */
}

.detail-icon {
  color: #d61b03;
  margin-right: 15px;
  /* More spacing for icon */
  font-size: 1.5rem;
  /* Larger icons */
  line-height: 1.4;
  /* Align icon with text line height */
  flex-shrink: 0;
  /* Prevent icon from shrinking */
}

a:active {
  text-decoration: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {

  /* Adjust for larger tablets/small laptops */
  .floor-heading {
    font-size: 2rem;
  }

  .detail-section h3 {
    font-size: 1.7rem;
    max-width: 100%;
  }

  .floor-plan-visual {
    max-width: 700px;
  }

  .floor-plan-visual .view-icon {
    width: 50px;
    height: 50px;
  }

  .floor-plan-visual .view-icon img {
    width: 60%;
  }

  .nav-tabs .nav-link {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .section-header p {
    font-size: 1rem;
    max-width: 100%;
  }

  .nav-tabs {
    margin-bottom: 25px;
    padding: 5px;
  }

  .nav-tabs .nav-link {
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  .tab-pane {
    padding: 25px;
    margin-bottom: 25px;
  }

  .floor-section {
    gap: 30px;
  }

  .floor-heading {
    font-size: 1.8rem;
  }

  .floor-plan-visual {
    max-width: 100%;
  }

  /* Allow full width on smaller screens */
  .floor-plan-visual .view-icon {
    width: 45px;
    height: 45px;
  }

  .floor-plan-visual .view-icon img {
    width: 55%;
  }

  .detail-section {
    padding: 25px;
    margin-top: 25px;
    max-width: 100%;
  }

  .detail-section h3 {
    font-size: 1.5rem;
  }

  .detail-item {
    margin-bottom: 15px;
  }

  .detail-item strong {
    font-size: 1rem;
  }

  .detail-item p {
    font-size: 0.9rem;
  }

  .detail-icon {
    font-size: 1.3rem;
    margin-right: 10px;
  }

  /* More precise icon position adjustments for smaller screens */
  .lz .view-n,
  .hz .view-n {
    top: 8%;
  }

  .lz .view-e,
  .hz .view-e {
    right: 2%;
  }

  .lz .view-s,
  .hz .view-s {
    bottom: 8%;
  }

  .lz .view-w,
  .hz .view-w {
    left: 2%;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 1.8rem;
  }

  .nav-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-tabs .nav-item {
    width: 100%;
    margin: 5px 0;
  }

  .nav-tabs .nav-link {
    text-align: center;
  }

  .tab-pane {
    padding: 15px;
  }

  .floor-heading {
    font-size: 1.5rem;
  }

  .floor-plan-visual .view-icon {
    width: 38px;
    height: 38px;
  }

  .floor-plan-visual .view-icon img {
    width: 50%;
  }

  .detail-section {
    padding: 15px;
    max-width: 100%;
  }

  .detail-section h3 {
    font-size: 1.3rem;
  }

  .detail-item p {
    font-size: 0.85rem;
  }
}

.top-center {
  vertical-align: top;
  /* ชิดด้านบน */
  text-align: center;
  /* จัดข้อความกลางแนวนอน */
}

.bottom-center {
  vertical-align: bottom;
  /* ชิดด้านล่าง */
  text-align: center;
  /* จัดข้อความกลางแนวนอน */
}

/* logo award */
#section-awards {
  background-color: #ffffff;
  /*padding-top: 20px;*/
  padding: 20px;
  margin-top: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-radius: 5px;
  ;
}

.section_awards-title {
  font-weight: 700;
  margin-bottom: 3rem;
  /*color: #212529;*/
  color: white;
  text-align: center;
  --text-shadow-dark: 1px 1px 5px rgba(0, 0, 0, 0.5);
  /* สำหรับข้อความบนพื้นหลังมืด */

}

.section_awards-title-sub {
  font-weight: 700;
  margin-bottom: 1rem;
  /*color: #212529;*/
  color: white;
  --text-shadow-dark: 1px 1px 5px rgba(0, 0, 0, 0.5);
  /* สำหรับข้อความบนพื้นหลังมืด */
}

.section_awards-subtitle-narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  /*color:  #6c757d;*/
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  /* สำหรับข้อความบนพื้นหลังมืด */
}

/* ===================================
        Enhanced Awards Section Styles - ปรับปรุงใหม่
        =================================== */
.awards-section-enhanced {
  background-color: #c8102e;
  padding: 80px 0;
}

.section_awards-title-wrapper {
  margin-bottom: 2rem;
  /* เพิ่มระยะห่างด้านล่าง */
  position: relative;
  /* ใช้สำหรับจัดตำแหน่ง icon */
  display: inline-block;
  /* ทำให้ div มีขนาดเท่าเนื้อหา */
  padding-bottom: 10px;
  /* เว้นที่ให้เส้นใต้ */
}

.section_awards-icon {
  display: block;
  /* ทำให้ไอคอนขึ้นบรรทัดใหม่ */
  width: 70px;
  height: 70px;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 50%;
  display: flex;
  /* ใช้ flexbox จัดกึ่งกลางไอคอน */
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  /* จัดกึ่งกลางและเพิ่มระยะห่างด้านล่าง */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.section_awards-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(247, 13, 13, 1);
}

.section_awards-icon .fas.fa-trophy {
  font-size: 32px;
  /* ขนาดไอคอนใหญ่ขึ้น */
  color: #ff0000ff;
  /* สีทอง */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.section_awards-title {
  font-size: 2.8rem;
  /* ขนาดใหญ่ขึ้น */
  font-weight: 700;
  color: #212529;
  margin-bottom: 0;
  /* ลบ margin เดิมออก */
  position: relative;
  padding-bottom: 10px;
  /* เว้นที่ให้เส้นใต้ */
}

.section_awards-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  /* ความยาวของเส้นใต้ */
  height: 4px;
  background-color: #c8102e;
  border-radius: 2px;
}

.section_awards-subtitle-narrow {
  font-size: 1.15rem;
  /* ขนาดใหญ่ขึ้นเล็กน้อย */
  line-height: 1.7;
}

/* Award Card Styles */
.award-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  /* ใช้ตัวแปรเพื่อความสอดคล้อง */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* จัดกึ่งกลางเนื้อหาในแนวตั้ง */
  text-align: center;
  padding: 1.5rem;
  /* ปรับ padding */

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-right: none;
  /* ไม่ให้มี border ด้านขวา ถ้าอยู่ติดกับแผนที่ */
}

.award-card:hover {
  transform: translateY(-12px);
  /* ยกสูงขึ้นเล็กน้อย */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  /* เงาเข้มขึ้น */

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  /* เงาเข้มขึ้นเมื่อโฮเวอร์ */
}

.award-logo {
  max-height: 80px;
  /* ขนาดโลโก้ใหญ่ขึ้น */
  object-fit: contain;
  margin-bottom: 1.25rem;
  /* เพิ่มระยะห่างด้านล่าง */
  transition: transform 0.3s ease-in-out;
  filter: grayscale(0%);
  /* โลโก้สีจางลงเล็กน้อยเมื่อไม่ได้โฮเวอร์ */
  opacity: 0.85;
}

.award-card:hover .award-logo {
  transform: scale(1.1);
  /* ขยายใหญ่ขึ้นเมื่อโฮเวอร์ */
  filter: grayscale(0%);
  /* กลับมามีสีเมื่อโฮเวอร์ */
  opacity: 1;
}

.award-name {
  font-weight: 600;
  color: #212529;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
  /* ขนาดชื่อรางวัลใหญ่ขึ้น */
}

.award-year {
  font-size: 1rem;
  /* ขนาดปีใหญ่ขึ้น */
  color: #6c757d;
}

.text-shadow {
  color: rgba(63, 62, 62);
  /*text-shadow: 5px 5px 5px rgba(253, 253, 251, 0.8); /* สำหรับข้อความบนพื้นหลังมืด */
  /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */

}

/* testimonials_section */
#testimonials_section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  font-family: 'DBOzoneX', sans-serif;
}

#testimonials_section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}

#testimonials_section .testimonial-card {
  background-color: #fff;
  padding: 30px 20px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #b30000;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  min-height: 380px;
  transition: transform 0.3s ease;
}

#testimonials_section .testimonial-card:hover {
  transform: translateY(-1px);
}

#testimonials_section .testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: #e0e0e0;
  margin-bottom: 15px;
  text-align: left;
  width: 100%;
}

#testimonials_section .testimonial-image-wrapper {
  width: 100%;
  padding-left: 25%;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  margin-top: -150px;
  /* ✅ เพิ่มบรรทัดนี้ */
}

#testimonials_section .testimonial-image-wrapper .img-company-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
  margin-top: 10px;
}

#testimonials_section .testimonial-image-wrapper .img-avatar-user {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f7f7f7;
  border: 1px solid #f5f3f3ff;
  display: inline-block;
  margin-top: 40px
}

#testimonials_section .testimonial-image-wrapper .img-company-user {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #f7c5c5;
  padding: 2px;
  object-fit: cover;
  background-color: #faf7f7ff;
  margin-top: 40px;
}

#testimonials_section .author-info {
  text-align: right;
  font-weight: bold;
  font-size: 14px;
  color: #1a202c;
}

#testimonials_section .author-info span {
  font-weight: normal;
  font-size: 12px;
  color: #777;
}

#testimonials_section .testimonial-card p {
  font-style: italic;
  color: #444;
  margin-bottom: 10px;
}


#testimonials_section .testimonial-content p {
  font-size: 0.95rem;
  font-style: italic;
  color: #333;
  margin-bottom: 15px;
}

#testimonials_section .testimonial-content h5 {
  font-weight: 600;
  color: #b30000;
}

/* Swiper overrides */
#testimonials_section .swiper-button-next,
#testimonials_section .swiper-button-prev {
  color: #b30000;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

#testimonials_section .swiper-button-next:hover #testimonials_section .swiper-button-prev:hover {
  background-color: #fdefefff;
  color: #b30000;
}

#testimonials_section .swiper-pagination-bullet {
  background: #ccc;
}

#testimonials_section .swiper-pagination-bullet-active {
  background: #b30000;
}

/* Fade-in animation */
#testimonials_section .fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

#testimonials_section .fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.limit-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 16;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.limit-3-lines-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Our Customers */
.clients-section {
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  /*box-shadow: 0 1px 1px rgba(236, 235, 235, 0.1);*/
  padding: 20px 0;
  /* Adjust padding for inner content */
  text-align: center;
  position: relative;
  /* For navigation buttons */
  overflow: hidden;
  /* Hide overflowing content for carousel effect */
}

.clients-section h2 {
  /* font-size: 1.5em; */
  color: #474747;
  margin-bottom: 30px;
  font-weight: 800;
}

.clients-carousel-container {
  position: relative;
  padding: 0 50px;
  /* Space for navigation buttons */
}

.clients-carousel-track {
  display: flex;
  gap: 20px;
  /* Space between images */
  overflow-x: auto;
  /* Enable horizontal scrolling for overflow */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
  scrollbar-width: none;
  /* Hide scrollbar for Firefox */
  -ms-overflow-style: none;
  /* Hide scrollbar for IE/Edge */
  padding-bottom: 20px;
  /* Space below images if scrollbar appears (hidden) */
  justify-content: flex-start;
  /* Align items to start */
  padding-left: 15px;
  /* Adjust for first item alignment */
  padding-right: 15px;
  /* Adjust for last item alignment */
}

#clientsCarouselTrack {
  display: flex;
  justify-content: center;
  align-items: center;
  /* optional: สำหรับจัดแนวตั้ง */
  flex-wrap: wrap;
  /* เผื่อ responsive */
  gap: 1rem;
  /* ระยะห่างระหว่างโลโก้ */
}

.clients-carousel-track::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Chrome, Safari, Opera */
}

.client-logo {
  flex: 0 0 auto;
  /* Do not grow, do not shrink, base size auto */
  width: 230px;
  /* Fixed width for each logo */
  height: 100px;
  /* Fixed height for each logo */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9fafa;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 4px 10px rgba(#f4f4f5, 0.05);
  /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);*/
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.client-logo {
  height: 60px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-height: 100%;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.carousel-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* background-color: rgba(196, 195, 195, 0.2); */
  background-color: #ffff;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 10;

}

.carousel-nav-button:hover {
  background-color: rgba(219, 213, 213, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-button.left {
  left: 10px;
  opacity: 0.85;
}

.carousel-nav-button.right {
  right: 10px;
  opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .clients-section {
    width: 100%;
    max-width: 100%;
    padding: 20px 0;
  }

  .clients-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .clients-carousel-container {
    padding: 0 30px;
  }

  .client-logo {
    width: 100px;
    height: 70px;
  }

  .carousel-nav-button {
    padding: 8px 12px;
    font-size: 1.2em;
  }

  .carousel-nav-button.left {
    left: 5px;
  }

  .carousel-nav-button.right {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .clients-carousel-container {
    padding: 0 20px;
  }

  .client-logo {
    width: 80px;
    height: 60px;
    padding: 8px;
  }

  .clients-carousel-track {
    gap: 15px;
  }

  .clients-section h2 {
    font-size: 1.8em;
  }
}