#main-navbar.nav-link {
  color: #ffffff !important;
}
.navbar-nav .nav-link a {
  padding-right: 0;
  padding-left: 25px;
  color: #ffffff !important;
  font-size: 1rem !important;
  /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); */
}

/* =========================================
   0. Navbar เฉพาะหน้า Index (home-navbar-mode)
   Target: <nav id="main-navbar" class="home-navbar-mode">
   ========================================= */
.bg-success {
  background-color: #367858 !important;
}

#main-navbar.home-navbar-mode {
  /* เปลี่ยนจาก absolute เป็น fixed */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050; /* ให้ค่าสูงกว่า Hero Section */

  /* Transition เพื่อให้การเปลี่ยนสีนุ่มนวล */
  transition:
    background-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

/* --- ตอนอยู่บนสุด (ใส) --- */
#main-navbar.home-navbar-mode.bg-transparent {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* ตอนอยู่บนสุด ให้ตัวหนังสือสีขาวและมีเงา */
#main-navbar.home-navbar-mode.bg-transparent .nav-link,
#main-navbar.home-navbar-mode.bg-transparent .navbar-brand {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* --- ตอนเลื่อนลงมา (สีเขียว) --- */
/* หมายเหตุ: JS จะเป็นคนเปลี่ยน class จาก bg-transparent เป็น bg-scroll */
#main-navbar.home-navbar-mode.bg-scroll {
  background-color: #1cc88a !important; /* สีเขียว */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* เพิ่มเงาตอนเลื่อนลง */
}

/* 4. [สำคัญ] แก้สีตัวหนังสือในเมนูมือถือ เฉพาะหน้า Home */
@media (max-width: 769px) {
  /* ----------------------------------------------------------------
         1. ตัวแม่ (Parent)
         ---------------------------------------------------------------- */
  #main-navbar.home-navbar-mode.bg-transparent #main-navbar-collapse .nav-link {
    position: relative;
    background-color: transparent !important;
    color: #fff !important;

    border: none !important;
    border-radius: 0px !important;
    margin-bottom: 0px !important;

    padding: 10px 25px;
    z-index: 1;
    transition: color 0.3s ease;
  }

  /* ----------------------------------------------------------------
         2. Layer ล่างสุด (::before) - สีเขียว
         ---------------------------------------------------------------- */
  #main-navbar.home-navbar-mode.bg-transparent
    #main-navbar-collapse
    .nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: #3b7b5b;
    z-index: -2;
    border-radius: 0px !important;
  }

  /* ----------------------------------------------------------------
         3. Layer ตรงกลาง (::after) - สีส้ม
         ---------------------------------------------------------------- */
  #main-navbar.home-navbar-mode.bg-transparent
    #main-navbar-collapse
    .nav-link-orange-hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: #f26522;
    z-index: -1;

    opacity: 0;
    border-radius: 0px;

    transition:
      opacity 0.3s ease,
      border-radius 0.3s ease;
  }

  /* ----------------------------------------------------------------
         4. จังหวะ Hover
         ---------------------------------------------------------------- */
  #main-navbar.home-navbar-mode.bg-transparent
    #main-navbar-collapse
    .nav-link-orange-hover:hover::after {
    opacity: 1;
    border-radius: 20px;
  }

  #main-navbar.home-navbar-mode.bg-transparent
    #main-navbar-collapse
    .nav-link-orange-hover:hover {
    border-radius: 0px !important;
  }
}

/* =========================================
   1. Global & Utilities
   ========================================= */
.icon-gold {
  color: #d4af37;
  font-size: 3rem;
}

.custom-hr {
  border-top: 1px solid #000000;
  margin: 3rem 0;
}

/* ปุ่มโค้งมน (Outline) */
.btn-rounded-outline {
  border-radius: 50px;
  padding: 0 25px;
  font-weight: 500;
  border: 1px solid #f26522;
  color: #f26522;
  display: inline-flex;
  align-items: center;
  height: 45px;
  transition: all 0.3s ease;
}

.btn-rounded-outline:hover {
  background-color: #f26522;
  border-color: #f26522;
  color: #fff;
  text-decoration: none;
}

/* =========================================
     2. Hero Section (ส่วนหัวใหม่)
     ========================================= */
.hero-section {
  position: relative;
  /* หมายเหตุ: URL รูปภาพจะถูก override ในไฟล์ View เพื่อใช้ PHP Url helper */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Padding เพื่อดัน content ลงมา (หลบ Navbar) */
  padding-top: 140px;
  padding-bottom: 80px;

  color: #fff;
  min-height: 500px;
  display: flex;
  align-items: center;

  /* Break Container (Full Width) */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

/* Layer สีดำจางๆ ทับรูปพื้นหลัง */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  /* clamp(ขนาดเล็กสุด, ขนาดที่ยืดหยุ่นตามจอ, ขนาดใหญ่สุด) */
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* =========================================
     3. Stats Cards (การ์ดสถิติใน Hero)
     ========================================= */
.stat-card-custom {
  background: #fff;
  color: #333;
  border-radius: 20px;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  min-width: 280px;
  transition: transform 0.3s;
}

.stat-card-custom:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

/* สีไอคอนเฉพาะ */
.icon-co2 {
  background-color: #e3f2fd;
  color: #1565c0;
}
.icon-money {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* =========================================
     4. Element Swiper (ไอคอนหมุนๆ สีๆ)
     ========================================= */
.element-swiper-fade {
  width: 100%;
  height: 200px;
}

.element-swiper-fade .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Class สำหรับเปลี่ยนรูป SVG ให้เป็นสี (Masking) */
.svg-mask-icon {
  width: 100%;
  height: 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* =========================================
     5. SweetAlert Popup Customization
     ========================================= */
.swal2-popup.popup-large {
  width: 50vw !important;
  max-width: 600px;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-front-popup {
  display: block;
  width: 100%;
  padding: 10px 20px;
  margin: 5px 0;
  border-radius: 50px;
  border: 2px solid #f26522;
  background: transparent;
  color: #f26522;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-front-popup:hover {
  background: #f26522;
  color: white;
}

@media (max-width: 1360px) {
  .swal2-popup.popup-large {
    width: 60vw !important;
    max-width: none;
  }
}
@media (max-width: 768px) {
  .swal2-popup.popup-large {
    width: 90vw !important;
  }
}

/* =========================================
     6. Info Slider (Banner)
     ========================================= */
.info-slider-section {
  background-color: #f8f9fa;
  padding: 40px 0;
}

.swiper-container-info {
  width: 100%;
  padding-bottom: 50px;
}

.slider-image {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* =========================================
   ปรับแต่งปุ่มลูกศรเลื่อน (Navigation)
   ========================================= */
.swiper-container-info .swiper-button-next,
.swiper-container-info .swiper-button-prev {
  color: #1e4d3b; /* สีเขียวทางการ */
  background-color: rgba(255, 255, 255, 0.95); /* พื้นหลังปุ่มสีขาวขุ่น */
  width: 50px;
  height: 50px;
  border-radius: 50%; /* ปุ่มกลม */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* ลูกเล่นตอนนำเมาส์ไปชี้ปุ่ม */
.swiper-container-info .swiper-button-next:hover,
.swiper-container-info .swiper-button-prev:hover {
  background-color: #f26522; /* เปลี่ยนปุ่มเป็นสีส้ม */
  color: #ffffff; /* ลูกศรสีขาว */
  transform: scale(1.05); /* ปุ่มขยายใหญ่ขึ้นนิดนึง */
}

/* ลดขนาดไอคอนลูกศรด้านในปุ่มให้ดูมินิมอล */
.swiper-container-info .swiper-button-next::after,
.swiper-container-info .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 800;
}

/* =========================================
   ปรับแต่งจุดไข่ปลา (Pagination) ด้านล่าง
   ========================================= */
.swiper-container-info .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #cccccc; /* จุดที่ไม่ได้เลือกสีเทา */
  opacity: 0.6;
  transition: all 0.3s ease;
}

/* จุดที่กำลังแสดงอยู่ (Active) */
.swiper-container-info .swiper-pagination-bullet-active {
  background-color: #f26522; /* สีส้ม */
  width: 25px; /* ขยายให้เป็นทรงแคปซูลยาวๆ */
  border-radius: 5px;
  opacity: 1;
}

/* =========================================
     7. Project Cards Slider
     ========================================= */
.project-slider-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.myCardSwiper .swiper-slide {
  height: auto;
  align-self: stretch;
}

.custom-bs-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.custom-bs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

/* Custom Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ############################# */
/* ############################# */
/* ############################# */
/* =========================================
BG Header
   1. ส่วนข้อความหลัก (ให้อ่านง่าย เด้งจากพื้นหลัง)
   ========================================= */
.hero-title {
  color: #3b7b5b; /* สีน้ำเงินเข้มให้ดูน่าเชื่อถือ */
  font-weight: 800;
  line-height: 1.4;
  /* เทคนิคขอบขาว + เงาขาวฟุ้งๆ เพื่อดันตัวหนังสือให้ลอยออกมาจากภาพ */
  text-shadow:
    -2px -2px 0 rgba(255, 255, 255, 0.9),
    2px -2px 0 rgba(255, 255, 255, 0.9),
    -2px 2px 0 rgba(255, 255, 255, 0.9),
    2px 2px 0 rgba(255, 255, 255, 0.9),
    0 4px 20px rgba(255, 255, 255, 1);
  margin-bottom: 15px;
}

.hero-subtitle {
  color: #222; /* สีเข้มขึ้น */
  font-size: 1.1rem;
  font-weight: 700;
  /* เงาสีขาวฟุ้งๆ ดันข้อความรองให้อ่านง่ายขึ้น */
  text-shadow:
    0 0 10px rgba(255, 255, 255, 1),
    0 0 15px rgba(255, 255, 255, 1);
  margin-bottom: 30px;
}

.cute-badge {
  display: inline-block;
  background-color: #ffe3e3;
  color: #f26522;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.15);
}

/* =========================================
   2. ส่วนกล่องสถิติ (ปรับให้เป็นกระจกสวยๆ)
   ========================================= */
.glass-effect {
  background: rgba(255, 255, 255, 0.75); /* ปรับให้ใสขึ้นนิดนึง */
  backdrop-filter: blur(12px); /* เบลอฉากหลังให้ดูเป็นกระจกฝ้า */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 1); /* ขอบสีขาวชัดๆ ให้มีมิติ */
  border-radius: 24px; /* มุมโค้งมนดูซอฟต์ขึ้น */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* เงาใต้กล่องนุ่มๆ */
}

.stat-card-modern {
  display: flex;
  align-items: center;
  padding: 20px 24px; /* เพิ่มพื้นที่ว่างในกล่องให้ดูไม่อึดอัด */
  gap: 18px;
  flex: 1;
  transition: all 0.3s ease;
}

/* ลูกเล่นตอนเมาส์ชี้ */
.stat-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9); /* ให้กล่องสว่างขึ้นตอนชี้ */
}

/* =========================================
   3. ส่วนไอคอนและตัวเลข
   ========================================= */
.stat-icon-wrapper {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0; /* ป้องกันไอคอนเบี้ยวเวลาจอบีบ */
}

.icon-blue {
  background-color: #eaf4ff;
  color: #0066cc;
}

.icon-purple {
  background-color: #f6eaff;
  color: #8a2be2;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
  margin-bottom: 4px; /* ดันให้ห่างจากตัวเลขมานิดนึง */
}

.stat-value {
  margin: 0;
  font-size: 1.6rem; /* ตัวเลขใหญ่สะใจ */
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.stat-value span {
  font-size: 1rem;
  font-weight: 500;
  color: #777;
  margin-left: 4px;
}

/* ############################# */
/* ############################# */
/* ############################# */
/* กล่องทรงแคปซูล (Pill Shape) */
.pet-stats-pill {
  display: inline-flex;
  align-items: center;
  background-color: #f7fbff; /* สีพื้นหลังขาวอมฟ้าอ่อนๆ ตามภาพ */
  border-radius: 60px; /* ทำให้ขอบมนเป็นทรงแคปซูล */
  padding: 8px 30px 8px 8px; /* เว้นระยะด้านซ้ายน้อยหน่อยเพื่อใส่รูป */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #ffffff;
  transition: transform 0.3s ease;
}

.pet-stats-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* กลุ่มรูปภาพให้ซ้อนกัน */
.avatar-group {
  display: flex;
  align-items: center;
}

/* ตั้งค่ารูปภาพแต่ละรูป */
.pet-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%; /* ทำให้เป็นวงกลม */
  object-fit: cover; /* ตัดรูปให้พอดีกรอบ ไม่เบี้ยว */
  border: 3px solid #ffffff; /* ขอบสีขาวหนาๆ เพื่อตัดกับรูปอื่น */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    z-index 0.3s,
    transform 0.3s;
}

/* ทำให้รูปซ้อนทับกัน (รูปที่ 2 และ 3 จะขยับไปทางซ้ายทับรูปก่อนหน้า) */
.pet-avatar:not(:first-child) {
  margin-left: -20px;
}

/* ลูกเล่นตอนเอาเมาส์ชี้ที่รูป (รูปจะเด้งขึ้นมา) */
.pet-avatar:hover {
  transform: scale(1.1);
  z-index: 10;
}

/* ส่วนตัวหนังสือ */
.stats-info-compact {
  display: flex;
  flex-direction: column;
  margin-left: 20px; /* ห่างจากกลุ่มรูปภาพนิดหน่อย */
  justify-content: center;
  gap: 4px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px; /* ระยะห่างระหว่างตัวเลขกับข้อความ */
}

/* จัดรูปแบบตัวเลข */
.stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: #333333;
  line-height: 1.2;
}

/* ตัวเลขสีเขียวบรรทัดบน */
.number-green {
  color: #3b7b5b; /* สีเขียวอมเทาดูสบายตาแบบในภาพ */
}

/* จัดรูปแบบข้อความอธิบาย */
.stat-desc {
  font-size: 0.95rem;
  color: #666666;
  font-weight: 500;
}

/* ปรับขนาดสำหรับการดูบนมือถือ (Responsive) */
@media (max-width: 576px) {
  .pet-stats-pill {
    flex-direction: column;
    border-radius: 20px;
    padding: 20px;
    gap: 15px;
  }

  .stats-info-compact {
    margin-left: 0;
    align-items: center;
  }

  .pet-avatar {
    width: 55px;
    height: 55px;
  }
}

/* ############################# */
/* ############################# */
/* ############################# */
/* =========================================
   สไตล์ Modern Minimal (คุมโทน เขียว-ส้ม)
   ========================================= */

/* เปลี่ยนสีพื้นหลัง Section ให้เป็นสีเทาอ่อนมาก เพื่อดันการ์ดขาวให้เด้งขึ้นมา */
.bg-section-gray {
  background-color: #dadada;
  padding: 60px 0;
  border-radius: 20px;
}

/* หัวข้อ Section พร้อมขีดส้มด้านหน้า */
.section-title-formal {
  color: #3b7b5b; /* #1e4d3b สีเขียวทางการ */
  font-weight: 800;
  position: relative;
  padding-left: 18px;
  font-size: 1.8rem;
  margin-bottom: 25px;
}
.section-title-formal::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 6px;
  background-color: #f26522; /* สีส้ม */
  border-radius: 4px;
}

/* =========================================
   2. สไตล์การ์ดหลัก (Minimal Modern Card)
   ========================================= */
.minimal-modern-card {
  background: #ffffff; /* พื้นสีขาวสะอาดตา */
  border-radius: 18px; /* มุมโค้งมนกำลังดี */
  padding: 35px 28px; /* ระยะห่างภายในกว้างขึ้น */
  border: 1px solid #f0f3f1;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* แอนิเมชั่นนุ่มๆ */
  position: relative;
  overflow: hidden; /* จำเป็นสำหรับเส้นขอบวิ่งบน */
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ✅ ลูกเล่นที่ 1: การ์ดลอยขึ้นเล็กน้อยตอนนำเมาส์มาวาง */
.minimal-modern-card:hover {
  box-shadow: 0 15px 35px rgba(20, 50, 35, 0.1);
  transform: translateY(-8px);
  border-color: transparent;
}

/* ✅ ลูกเล่นที่ 2: เส้นขอบสีเขียววิ่งด้านบนตอน Hover */
.minimal-modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #3b7b5b; /* สีเขียวทางการ */
  transform: scaleX(0); /* เริ่มต้นขนาด 0 */
  transition: transform 0.4s ease;
  transform-origin: left; /* วิ่งจากซ้ายไปขวา */
}
.minimal-modern-card:hover::before {
  transform: scaleX(1); /* วิ่งมาจนเต็ม */
}

/* =========================================
   3. องค์ประกอบภายใน
   ========================================= */
/* ส่วนไอคอน */
.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  transition: all 0.4s ease;

  /* สไตล์เริ่มต้น: พื้นหลังเขียวอ่อนมาก ไอคอนสีเขียวเข้ม */
  background-color: #f2f7f4;
  color: #3b7b5b;
}

/* ✅ ลูกเล่นที่ 3: ไอคอนเปลี่ยนเป็นสีส้มตอน Hover */
.minimal-modern-card:hover .card-icon-wrapper {
  background-color: #fff1eb; /* พื้นส้มอ่อนมาก */
  color: #f26522; /* ไอคอนส้มเน้นย้ำ */
}

/* หัวข้อการ์ด (สีเทาเข้ม) */
.minimal-modern-card .card-title {
  color: #2c3e50; /* สีเทาเข้มทางการ */
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* ข้อความอธิบาย (สีเทาอ่อนลงมา) */
.minimal-modern-card .card-desc {
  color: #666666;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ส่วนท้ายลิงก์ (ปุ่มแบบ Minimal) */
.btn-minimal-link {
  display: inline-flex;
  align-items: center;
  color: #f26522; /* ลิงก์สีส้ม */
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.3s ease;
}

/* ลูกศร FontAwesome */
.btn-minimal-link i {
  margin-left: 10px;
  transition: transform 0.3s ease; /* แอนิเมชั่นลูกศร */
}

/* ✅ ลูกเล่นที่ 4: ลูกศรขยับได้ตอนHover */
.btn-minimal-link:hover {
  color: #d15015; /* สีส้มเข้มขึ้น */
  text-decoration: none;
}
.btn-minimal-link:hover i {
  transform: translateX(8px); /* ลูกศรขยับไปทางขวา */
}

/* =========================================
   4. ปรับแต่ง Swiper Navigation
   ========================================= */
.custom-swiper-nav {
  color: #3b7b5b !important; /* ลูกศรสีเขียว */
  background: #ffffff;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.custom-swiper-nav:hover {
  background-color: #f26522; /* เปลี่ยนปุ่มเป็นสีส้ม */
  color: #ffffff !important; /* ลูกศรสีขาว */
  transform: scale(1.05); /* ปุ่มขยายใหญ่ขึ้นนิดนึง */
}
.custom-swiper-nav::after {
  font-size: 1.2rem !important;
  font-weight: bold;
}
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #cccccc; /* จุดที่ไม่ได้เลือกสีเทา */
  opacity: 0.6;
  transition: all 0.3s ease;
}

/* จุดที่กำลังแสดงอยู่ (Active) */
.swiper-pagination-bullet-active {
  background-color: #f26522; /* สีส้ม */
  width: 25px; /* ขยายให้เป็นทรงแคปซูลยาวๆ */
  border-radius: 5px;
  opacity: 1;
}

/* ############################# */
/* ############################# */
/* ############################# */
/* =========================================
   สไตล์ส่วน "การจัดการสิ่งแวดล้อม" (Modern)
   ========================================= */

/* คุมระยะห่างรอบๆ Section */
.environment-section {
  padding: 40px 0 60px 0;
  /* border-bottom: 1px solid #edf2f0; */ /* เส้นคั่นบางๆ ด้านล่างก่อนถึงส่วนถัดไป */
}

/* 1. สไตล์รูปภาพฝั่งซ้าย */
.image-wrapper-modern {
  position: relative;
  border-radius: 20px;
  overflow: hidden; /* ตัดขอบรูปให้โค้งตามกรอบ */
}

/* ลูกเล่นกรอบสีส้มบางๆ ด้านหลังรูป (offset border) เพื่อเพิ่มเลเยอร์ให้ดูมีมิติ */
.image-wrapper-modern::after {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100px;
  height: 100px;
  border-top: 4px solid #f26522;
  border-left: 4px solid #f26522;
  border-top-left-radius: 24px;
  z-index: -1;
  opacity: 0.5;
}

.rounded-image {
  border-radius: 20px;
  width: 100%;
  height: 400px; /* บังคับความสูงให้พอดีกัน */
  object-fit: cover; /* ตัดรูปให้สวย ไม่เบี้ยว */
  transition: transform 0.5s ease;
}

/* เอฟเฟกต์ซูมรูปนิดๆ ตอนนำเมาส์ไปวาง */
.image-wrapper-modern:hover .rounded-image {
  transform: scale(1.03);
}

/* 2. สไตล์หัวข้อและข้อความฝั่งขวา */
/* (คลาส .section-title-formal ใช้ตัวเดียวกับของการ์ดด้านล่างได้เลยครับ ถ้าใส่ไว้แล้ว) */

.desc-text-modern {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #555555; /* สีเทากลางๆ อ่านสบายตา */
  font-weight: 300;
}

/* 3. สไตล์ปุ่ม Outline สีส้ม */
.btn-modern-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 700;
  color: #f26522; /* ตัวอักษรสีส้ม */
  background-color: transparent;
  border: 2px solid #f26522; /* ขอบสีส้ม */
  border-radius: 30px; /* ปุ่มมน */
  text-decoration: none;
  transition: all 0.3s ease;
}

/* เอฟเฟกต์ตอนนำเมาส์ชี้ปุ่ม */
.btn-modern-outline:hover {
  background-color: #f26522; /* พื้นสีส้ม */
  color: #ffffff; /* ตัวอักษรสีขาว */
  box-shadow: 0 8px 20px rgba(242, 101, 34, 0.2);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-modern-outline i {
  transition: transform 0.3s ease;
}

.btn-modern-outline:hover i {
  transform: translateX(5px); /* ลูกศรขยับขวา */
}

/* ############################# */
/* ############################# */
/* ############################# */
/* =========================================

   สไตล์ Footer (เขียวเข้ม - ขาว - ส้ม)

   ========================================= */
.formal-footer {
  background-color: #3b7b5b; /* สีเขียวเข้มมาก */
  color: #ffffff;
  font-size: 0.95rem;
  position: relative;
  border-top: 5px solid #f26522; /* เส้นขอบสีส้ม */
}

/* หัวข้อแต่ละคอลัมน์ */
.footer-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 3px;
  background-color: #f26522;
  border-radius: 2px;
}

/* รีเซ็ต List */
.footer-contact-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ข้อมูลติดต่อ */
.footer-contact-list li {
  margin-bottom: 15px;
  color: #cde0d7;
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}

.footer-contact-list li i {
  margin-top: 5px;
  margin-right: 12px;
  color: #f26522;
  font-size: 1.1rem;
}

.footer-contact-list a {
  color: #cde0d7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-list a:hover {
  color: #f26522;
}

/* ลิงก์นโยบาย/เอกสาร */
.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cde0d7;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: flex-start; /* เผื่อข้อความยาวตกบรรทัด */
  line-height: 1.5;
}

.footer-links a i {
  font-size: 0.8rem;
  margin-right: 8px;
  margin-top: 6px; /* ดันลูกศรลงมานิดนึงให้เสมอกับตัวหนังสือ */
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover i {
  color: #f26522;
  transform: translateX(5px);
}

/* ปุ่มโทรศัพท์ (Hotline) */
.btn-footer-call {
  background-color: #f26522;
  color: #ffffff;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
}

.btn-footer-call:hover {
  background-color: #d15015;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 101, 34, 0.4);
}

/* ปุ่มสำหรับเจ้าหน้าที่ */
.btn-staff {
  border-radius: 30px;
  padding: 8px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-staff:hover {
  background-color: #ffffff;
  color: #3b7b5b !important;
}

/* ไอคอน Dashboard รูปกราฟ */
.btn-dashboard-icon {
  color: #8faea1;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-dashboard-icon:hover {
  color: #f26522;
  transform: scale(1.1);
}

/* เส้นคั่นส่วนลิขสิทธิ์ */
.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-copyright {
  color: #8faea1;
  font-size: 0.85rem;
}

.footer-copyright a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-copyright a:hover {
  color: #f26522;
}

/* ############################# */
/* ############################# */
/* ############################# */
/* =========================================
   Responsive Video Wrapper
   ========================================= */
/* คลาสสำหรับครอบวิดีโอให้ Responsive และดูพรีเมียม */
.video-container-modern {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* บังคับสัดส่วน 16:9 */
  background-color: #000;
  border-radius: 20px; /* ขอบโค้งมนตามธีม */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* เงาฟุ้งๆ ให้ดูมีมิติ */
  margin-bottom: 2rem;
}

/* บังคับให้ iframe ขยายเต็มตัวครอบ */
.video-container-modern iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ปรับขนาดเมื่อดูบนมือถือ */
@media (max-width: 768px) {
  .video-container-modern {
    border-radius: 12px; /* ลดความโค้งลงนิดนึงบนมือถือ */
  }
}

/* =========================================
   สไตล์สำหรับ Video Wall (คลังวิดีโอ 3 อัน)
   ========================================= */

/* คลาสการ์ดวิดีโอ */
.video-wall-card {
  background-color: #ffffff;
  border: none;
  border-radius: 16px; /* มุมโค้งมนแบบ Modern */
  overflow: hidden; /* ตัดขอบรูปภาพให้โค้งตามกรอบ */
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 !important; /* ป้องกันกรณีมี padding จากคลาสอื่นมาแทรก */
  overflow: hidden;
}

/* เอฟเฟกต์ตอนนำเมาส์ไปชี้ */
.video-wall-card:hover {
  box-shadow: 0 15px 35px rgba(30, 77, 59, 0.1) !important; /* เงาอมเขียวอ่อนๆ */
  transform: translateY(-8px); /* การ์ดขยับขึ้น */
}

/* ส่วนภาพหน้าปกวิดีโอ */
.card-video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9; /* บังคับสัดส่วน 16:9 */
}

.card-video-thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.card-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ตัดรูปให้สวย ไม่เบี้ยว */
  transition: transform 0.5s ease;
}

/* เอฟเฟกต์ซูมรูปนิดๆ ตอน hover */
.video-wall-card:hover .card-video-thumb img {
  transform: scale(1.05);
}

/* ส่วน Play Button ที่ลอยอยู่บนรูป */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* พื้นหลังดำขุ่นบางๆ */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.play-overlay i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9); /* ไอคอนเพลย์สีขาว */
  transition: all 0.3s ease;
  background-color: rgba(242, 101, 34, 0.85); /* พื้นหลังปุ่มเพลย์สีส้ม */
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(242, 101, 34, 0.4); /* เงาปุ่มสีส้มเรืองแสง */
}

/* เอฟเฟกต์ปุ่มเพลย์ตอน hover */
.video-wall-card:hover .play-overlay i {
  background-color: #f26522; /* เปลี่ยนสีเป็นส้มเข้ม */
  color: #ffffff;
  transform: scale(1.1); /* ปุ่มขยายใหญ่ขึ้น */
}

/* ส่วนเนื้อหาการ์ด */
.video-wall-card .card-body {
  padding: 20px;
}

.video-wall-card .card-title {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.video-wall-card:hover .card-title {
  color: #f26522 !important; /* เปลี่ยนหัวข้อเป็นสีส้ม */
}

/* ปรับ Responsive สำหรับมือถือ */
@media (max-width: 991.98px) {
  .video-wall-card {
    margin-bottom: 20px;
  }
}

/* สีพื้นหลังและความโค้งมน */
.custom-card {
  background-color: #ffffff; /* แทน bg-surface-container-lowest */
  border-radius: 1.5rem; /* แทน rounded-3xl */
}

/* สีของวงกลมพื้นหลัง */
.bg-circle {
  background-color: rgba(25, 95, 65, 0.05); /* สีเขียวโปร่งใส 5% */
}

/* เอฟเฟกต์ Hover:
  ตั้งค่าเริ่มต้นให้วงกลมมี transition เพื่อให้สมูททั้งตอนชี้และเอาเมาส์ออก 
*/
.group-hover-effect {
  transition: transform 0.5s ease;
}

/* เมื่อเอาเมาส์ชี้ที่การ์ด (.custom-group) ให้ขยายวงกลม (.group-hover-effect) */
.custom-group:hover .group-hover-effect {
  transform: scale(1.15); /* ขยายขึ้น 15% */
}
