@charset "UTF-8";@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');/* นำเข้า Google Fonts */


/* กำหนด font-family */
body {
   font-family: 'Prompt', sans-serif; /*Itim*/
  
}
/* เปลี่ยนสีของหัวเรื่อง */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  color: #000000;
}

p, li, span {
    font-family: 'Prompt', sans-serif;
    font-weight: 300;
}

/*กำหนดให้ข้อความอยู่กึ่งกลางบรรทัดของ topbar*/
.container-topbar {
  background-color: #F7F7F7 !important;
  color: #333333 !important;
  height: 100px;
  line-height: 60px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ตั้งค่าสีพื้นหลังและรูปภาพพื้นหลัง */
.container-header {
  background-color: #019BB6;
  background-image: none;
  position: relative;
  z-index: 100;
}

/* ตั้งค่าตำแหน่งเมนูหลักให้ relative เพื่อให้ dropdown-content เป็น absolute ตาม */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list > li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

/*ตั้งค่าสีพื้นหลังของ เมนู*/
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills {
  background-color: #019BB6 !important;
  position: relative;
  z-index: 1000;
}

/* จัดเมนูหลักเป็นแถว */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
  background-color: #019BB6;
  position: relative;
  z-index: 1000;
  flex-wrap: wrap;
}

/* รายการเมนูหลัก */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li {
  position: relative;
  list-style: none;
  flex-shrink: 0;
  min-width: auto;
}

/* ลิงก์เมนูหลัก */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li > a {
  display: block !important;
  padding: 15px 12px;
  color: #ffffff !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* hover เมนูหลัก */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li:hover > a {
  background-color: transparent !important;
  color: #FFD966 !important;
  transform: translateY(-2px);
}

/* ซ่อนเมนูย่อยก่อน */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul {
  display: none !important;
  position: absolute !important;
  background-color: #fff !important;
  min-width: 200px !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  border-radius: 4px !important;
  list-style: none !important;
  z-index: 1001 !important;
  border: 1px solid #ddd !important;
}

/* แสดงเมนูย่อยเมื่อ hover */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills li:hover > ul {
  display: block !important;
}

/* เมนูย่อยระดับ 2 */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li > ul {
  top: 100% !important;
  left: 0 !important;
}

/* เมนูย่อยระดับ 3 ขึ้นไป */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul ul {
  top: 0 !important;
  left: 100% !important;
}

/* รายการในเมนูย่อย */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul li {
  padding: 0 !important;
  list-style: none !important;
}

/* ลิงก์ในเมนูย่อย */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul li a {
  color: #333 !important; 
  display: block !important;
  padding: 10px 15px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-weight: normal !important;
  border-radius: 3px !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
}

/* hover เมนูย่อย */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul li a:hover {
  background-color: #f5f5f5 !important;
  color: #019BB6 !important;
  transform: translateX(5px) !important;
}

/* ลบลูกศร dropdown */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li > a::after,
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li > a::before {
  content: none !important;
  display: none !important;
  background: none !important;
  border: none !important;
}

/* ซ่อนปุ่ม toggler และไอคอนในเมนู */
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills .mm-toggler,
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills .mm-toggler > i,
.mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills .mm-toggler > svg {
  display: none !important;
}

/* โลโก้ */
.mod-custom.custom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 70px;
  padding: 0 15px;
  flex-shrink: 0;
}

.mod-custom.custom img.site-logo {
  height: 50px;
  margin: 0;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.mod-custom.custom p {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/*กำหนด module blog000-Slideshow content 1 ให้เต็มหน้าจอ */
.grid-child.container-top-a,
.cameraContents {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.main-top.card,
.main-top.card .card-body {
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/*กำหนดตัวอักษรของ module อนุญาตใช้น้ำ*/
.cktype a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cktype a:hover {
  color: #019BB6;
  text-decoration: underline;
}

/* แก้ไขปัญหา module ลอยทับ */
.container.mb-4 {
  overflow: hidden;
}

.row > .col-md-8, 
.row > .col-md-4 {
  margin-bottom: 20px;
}

/*กำหนดความกว้างของ maintop wuls*/
.maintop-wuls {
  background-color: #F0F0F0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  padding: 15px 0;
}

#number-counter-wuls {
  text-align: left;
  text-indent: 10%;
  margin-top: 5%;
}

#number-counter-wuls #counter {
  font-family: 'Prompt', sans-serif;
  color: #019BB6;
  font-size: 4rem !important;
  font-weight: bold;
}

.maintop-numbercounter-wuls {
  margin-top: 4%;
  margin-bottom: 4%;
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
}

.inner.animate.clearfix {
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
}

.maintop-vdo-wuls img,
.maintop-vdo-wuls video {
  margin-bottom: 1rem;
  max-width: 100%;
  height: auto;
  display: block;
}

.maintop-wsss {
  background-color: #F0F0F0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  padding: 15px 0;
}

.maintop-numbercounter-wsss {
  margin-top: 4%;
  margin-bottom: 3%;
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
}

.maintop-vdo-wsss img,
.maintop-vdo-wsss video {
  margin-bottom: 1rem;
  max-width: 100%;
  height: auto;
  display: block;
}

.maintop-wscs {
  background-color: #F0F0F0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  padding: 15px 0;
}

.maintop-numbercounter-wscs {
  margin-top: 4%;
  margin-bottom: 3%;
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
}

/*ส่วนท้ายเว็บ*/
.custom-footer-wrapper {
  background-color: #017A91;
  color: #ffffff;
  padding: 20px 0;
  font-size: 0.95rem;
  text-align: center;
  border-top: 4px solid #66ccff;
}

.custom-footer-wrapper a {
  color: #ffffff;
  text-decoration: underline;
}

.custom-footer-wrapper a:hover {
  color: #66ccff;
  text-decoration: none;
}

html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.full-width-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet และหน้าจอขนาดกลาง */
@media (max-width: 1024px) {
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills {
    gap: 3px;
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li > a {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
  
  .mod-custom.custom {
    padding: 0 10px;
  }
  
  .mod-custom.custom img.site-logo {
    height: 45px;
  }
  
  #number-counter-wuls #counter {
    font-size: 3rem !important;
  }
}

/* Mobile (หน้าจอเล็ก) */
@media (max-width: 768px) {
  .container-topbar {
    height: auto;
    min-height: 50px;
    line-height: 1.2;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .container-header {
    position: relative;
    overflow: hidden;
  }
  
  /* ปรับแต่งเมนูสำหรับมือถือ */
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    position: static;
    background-color: #019BB6;
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list > li {
    height: auto;
    padding: 0;
    display: block;
    width: 100%;
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li > a {
    padding: 15px 20px;
    font-size: 1rem;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    display: block;
    width: 100%;
  }
  
  /* โลโก้บนมือถือ */
  .mod-custom.custom {
    height: 60px;
    padding: 10px 15px;
    justify-content: center;
    background-color: #019BB6;
  }
  
  .mod-custom.custom img.site-logo {
    height: 40px;
  }
  
  /* ปรับแต่งเมนูย่อยบนมือถือ */
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul {
    position: static !important;
    display: none !important;
    background-color: rgba(1, 155, 182, 0.9) !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: auto !important;
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills li:hover > ul {
    display: block !important;
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul li a {
    color: #ffffff !important;
    background-color: transparent !important;
    padding: 12px 40px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    font-size: 0.95rem !important;
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul li a:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #FFD966 !important;
    transform: none !important;
  }
  
  /* ปรับขนาดตัวเลข counter */
  #number-counter-wuls #counter {
    font-size: 2.5rem !important;
  }
  
  #number-counter-wuls {
    text-indent: 5%;
    margin-top: 3%;
  }
  
  .maintop-numbercounter-wuls,
  .maintop-numbercounter-wsss,
  .maintop-numbercounter-wscs {
    margin-top: 3%;
    margin-bottom: 3%;
  }
  
  .custom-footer-wrapper {
    padding: 15px 0;
    font-size: 0.9rem;
  }
}

/* Mobile เล็ก (หน้าจอเล็กมาก) */
@media (max-width: 480px) {
  .container-topbar {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .mod-custom.custom {
    padding: 8px 10px;
    height: 50px;
  }
  
  .mod-custom.custom img.site-logo {
    height: 35px;
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li > a {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul li a {
    padding: 10px 30px !important;
    font-size: 0.9rem !important;
  }
  
  #number-counter-wuls #counter {
    font-size: 2rem !important;
  }
  
  #number-counter-wuls {
    text-indent: 3%;
  }
}

/* ป้องกัน horizontal scroll */
.container-fluid,
.container {
  max-width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ปรับแต่งเพิ่มเติมสำหรับ touch device */
@media (hover: none) and (pointer: coarse) {
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills > li > a {
    padding: 16px 20px;
    font-size: 1.1rem;
  }
  
  .mod-menu.mod-menu_dropdown-metismenu.metismenu.mod-list.nav-pills ul li a {
    padding: 14px 40px !important;
    font-size: 1rem !important;
  }
}

/* ปรับตารางของ ประกาศ */
/* Force remove border และ box-shadow เฉพาะตาราง - ไม่ใช้ * selector */
table {
    border: none !important;
    box-shadow: none !important;
}

/* ลบ border และ box-shadow เฉพาะ elements ที่เกี่ยวกับตาราง */
.table,
.table-striped,
.table-bordered,
.table-hover,
.com-content-category__table,
.content-category,
.com-content-category {
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    background-color: transparent !important; /* ลบสีพื้นหลังเทา */
}

/* ลบสีพื้นหลังเทาของเซลล์ตาราง */
.com-content-category__table tbody tr,
.com-content-category__table tbody td,
.com-content-category__table tbody th {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.com-content-category__table tbody {
    display: grid !important;
    grid-template-columns: 1fr !important; /* เปลี่ยนเป็น 1 คอลัมน์ */
    gap: 15px !important; /* ปรับความห่างของช่องให้เหมาะสมขึ้น (จาก 5px) */
    padding: 15px !important;
}

/* การ์ด: มีพื้นหลังสีขาวนวล และกรอบสีเทาอ่อน, มีเงา */
.cat-list-row0,
.cat-list-row1 {
    border: 1px solid #e0e0e0 !important; /* กรอบสีเทาอ่อนๆ */
    border-radius: 8px !important; /* ปรับเป็น 8px เพื่อความกลมกลืน */
    background-color: #f8faff !important; /* พื้นหลังสีฟ้าอ่อนสำหรับ row0 */
    background-image: none !important; /* ลบการไล่ระดับสี */
    min-height: 100px !important; /* ปรับความสูงขั้นต่ำของการ์ด */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; /* เงาที่ชัดเจนขึ้น */
    transition: all 0.3s ease !important;
    padding: 15px !important; /* ปรับ padding ภายในการ์ด */
    position: relative !important;
    overflow: hidden !important;
    display: flex !important; /* เปลี่ยนเป็น flex เพื่อการจัดเรียงภายใน */
    flex-direction: column !important;
    justify-content: center !important; /* จัดให้อยู่กึ่งกลางแนวตั้ง */
    width: 100% !important; /* ใช้ความกว้างเต็มที่ */
    box-sizing: border-box !important; /* ให้ padding และ border รวมอยู่ในความกว้าง */
}

/* เอฟเฟกต์เมื่อ hover บนการ์ด: ยกขึ้นและเงาเข้มขึ้น */
.cat-list-row0:hover,
.cat-list-row1:hover {
    transform: translateY(-5px) !important; /* ยกการ์ดขึ้นสูงขึ้นเล็กน้อย */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important; /* เงาเข้มขึ้น */
    border-color: #c0c0c0 !important; /* สีขอบเข้มขึ้นเล็กน้อยเมื่อ hover */
}

/* การ์ด row0 (สีฟ้า) */
.cat-list-row0 {
    background-color: #f0f8ff !important; /* พื้นหลังสีฟ้าอ่อนสำหรับ row0 */
    border-color: #e1f0ff !important; /* กรอบสีฟ้าอ่อน */
}

.cat-list-row0:hover {
    background-color: #e8f4ff !important; /* พื้นหลังสีฟ้าเข้มขึ้นเมื่อ hover */
    border-color: #b3d9ff !important; /* กรอบสีฟ้าเข้มขึ้น */
}

/* การ์ด row1 (สีเขียว) */
.cat-list-row1 {
    background-color: #f0fdf4 !important; /* พื้นหลังสีเขียวอ่อน */
    border-color: #d1fae5 !important; /* กรอบสีเขียวอ่อน */
}

.cat-list-row1:hover {
    background-color: #ecfdf5 !important; /* พื้นหลังสีเขียวเข้มขึ้นเมื่อ hover */
    border-color: #a7f3d0 !important; /* กรอบสีเขียวเข้มขึ้น */
}

/* แถบสีด้านข้าง และสีพื้นหลังการ์ด */
.cat-list-row0::before,
.cat-list-row1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px; /* แถบสีด้านข้างใหญ่ขึ้น */
    height: 100%;
    background-color: #4299e1; /* สีฟ้า */
    transition: all 0.3s ease;
    z-index: 1; /* ให้แถบสีอยู่บนสุด */
}

.cat-list-row1::before {
    background-color: #68d391; /* สีเขียวสำหรับ row1 */
}

.cat-list-row0:hover::before {
    width: 8px; /* ขยายแถบสีเมื่อ hover */
    background-color: #3182ce; /* สีฟ้าเข้มขึ้น */
}

.cat-list-row1:hover::before {
    width: 8px;
    background-color: #48bb78; /* สีเขียวเข้มขึ้น */
}

/* Shimmer effect - ถ้าต้องการให้ใช้งาน */
/* คุณต้องเพิ่ม left: 100%; ใน :hover ของ cat-list-row0/1::before
   ถ้าไม่อย่างนั้นมันจะอยู่แต่ที่ left: -100% ตลอด */
/*
.cat-list-row0::before,
.cat-list-row1::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(1, 155, 182, 0.03),
        transparent);
    transition: left 0.5s ease-in-out;
    z-index: 1;
}

.cat-list-row0:hover::before,
.cat-list-row1:hover::before {
    left: 100%;
}
*/


/* ไอคอนสวยงามพร้อมเอฟเฟกต์ */
.cat-list-row0 .list-title a::before,
.cat-list-row1 .list-title a::before {
    content: "📄"; /* ไอคอนเริ่มต้น */
    display: inline-block;
    font-size: 22px;
    margin-right: 12px;
    vertical-align: middle;
    transition: transform 0.3s ease !important;
    z-index: 2; /* ให้ไอคอนอยู่บนสุด */
    position: relative;
    flex-shrink: 0; /* ไม่ย่อขนาดไอคอน */
}

/* เอฟเฟกต์ไอคอนเมื่อ hover */
.cat-list-row0:hover .list-title a::before,
.cat-list-row1:hover .list-title a::before {
    transform: scale(1.1) rotate(5deg) !important;
    content: "✅"; /* เปลี่ยนไอคอนเมื่อ hover */
}

/* ปรับข้อความและลิงก์ */
.list-title a {
    font-family: 'Prompt', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #2d3748 !important; /* สีข้อความเริ่มต้น */
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important; /* ใช้ inline-flex เพื่อจัดไอคอนและข้อความ */
    align-items: center !important; /* จัดไอคอนกับข้อความให้อยู่กลางแนวตั้ง */
    white-space: normal !important; /* อนุญาตให้ข้อความตัดบรรทัดได้ */
    word-break: break-word !important; /* ให้ตัดคำถ้าข้อความยาว */
    text-decoration: none !important; /* ซ่อนเส้นใต้ */

    /* ลบสีพื้นหลังเทาของข้อความ */
    background-color: transparent !important;
    outline: none !important; /* ลบ outline เมื่อ focus */
    box-shadow: none !important; /* ลบ box-shadow ที่อาจมากับ focus */
    padding: 0 !important; /* ลบ padding ที่อาจมาจาก User Agent Stylesheet */
    margin: 0 !important; /* ลบ margin ที่อาจมาจาก User Agent Stylesheet */
}

/* เอฟเฟกต์ข้อความเมื่อ hover */
.cat-list-row0:hover .list-title a,
.cat-list-row1:hover .list-title a {
    color: #019BB6 !important; /* สีเมื่อ hover */
    background-color: transparent !important; /* ให้พื้นหลังโปร่งใส */
}

/* กำหนดสไตล์ของ th.list-title (ถ้ายังคงเป็น th) */
th.list-title {
    background-color: transparent !important; /* ลบสีพื้นหลังเทา */
    padding: 0 !important; /* ลบ padding ของ th.list-title */
    line-height: normal !important; /* หรือ 1.5em, ปรับให้ข้อความไม่ชนกัน */
}

/* กำหนดสีข้อความลิงก์ในสถานะอื่นๆ ให้กลมกลืน */
.list-title a:link,
.list-title a:visited,
.list-title a:active,
.list-title a:focus {
    color: #2d3748 !important; /* สีข้อความปกติ */
    background-color: transparent !important; /* ลบสีพื้นหลังเทา */
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ส่วนข้อมูลเพิ่มเติม */
.list-title small {
    font-family: 'Prompt', sans-serif !important;
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #718096; /* สีที่อ่านง่ายขึ้น */
    font-weight: normal;
}

/* Responsive Design - ปรับสำหรับเลย์เอาต์ 1 คอลัมน์ */
@media (max-width: 768px) {
    .com-content-category__table tbody {
        grid-template-columns: 1fr !important; /* ยังคงเป็น 1 คอลัมน์ */
        gap: 10px !important;
        padding: 10px !important;
    }

    .cat-list-row0,
    .cat-list-row1 {
        min-height: 90px !important;
        padding: 12px !important;
    }

    .list-title a {
        font-size: 15px !important;
    }

    .cat-list-row0 .list-title a::before,
    .cat-list-row1 .list-title a::before {
        font-size: 20px;
        margin-right: 10px;
    }

    .list-title small {
        font-size: 13px;
        margin-top: 5px;
    }
}

/* --------------------------- Phoca Download Layout - Clean Modern --------------------------- */

/* ✅ วาง Layout ด้วย CSS Grid */
#phoca-dl-category-box .pd-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    padding: 30px 15px;
    background: #ffffff;/*#f8f9fa*/
    position: relative;
 }


/* ✅ กล่องแสดงเอกสาร */
.pd-category .row:not(.pd-row2-bp) {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 🟢 ปุ่มอยู่กึ่งกลางแนวตั้ง */
    align-items: center;     /* 🟢 ปุ่มอยู่กึ่งกลางแนวนอน */
    text-align: center;
    width: 100%;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%); /*#f8f9fa 100%*/
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

/* ✅ ปุ่มอยู่กึ่งกลางแนวนอน */
.pd-button-box-bt {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}


/* ✅ แถบสีด้านบนของกล่อง */
.pd-category .row:not(.pd-row2-bp)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #019BB6);
}

/* ✅ Hover effect */
.pd-category .row:not(.pd-row2-bp):hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #007cba;
}

.pd-category .row:not(.pd-row2-bp):hover::before {
    height: 6px;
}

/* ✅ ปุ่มดาวน์โหลดให้อยู่กึ่งกลาง */
.pd-button-box-bt {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 0;
}

/* ✅ ปรับปุ่มดาวน์โหลดให้ดูดี */
.pd-button-box-bt a.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    min-width: 150px;
    background: linear-gradient(135deg, #007cba 0%, #019BB6 100%);
    border: none;
    border-radius: 25px;
    color: white !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(1, 155, 182, 0.3);
}

/* ✅ ซ่อนกล่องคอลัมน์ว่าง */
.row.pd-row2-bp {
    display: none !important;
}

/* ✅ Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ Responsive Layout */
@media (max-width: 768px) {
    #phoca-dl-category-box .pd-category {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #phoca-dl-category-box .pd-category {
        grid-template-columns: 1fr;
    }
}

/* ✅ ซ่อนองค์ประกอบที่ไม่ต้องการ */
.pd-document16,
.pd-fdesc.pd-colfull,
.col-sm-6:has(.pd-filenamebox-bt),
div[style*="text-align:right;color:#ccc;display:block"] {
    display: none !important;
}

/* ✅ เพิ่มพื้นที่ด้านล่างให้ parent */
/*form[name="adminForm"] {
    margin-bottom: 20px !important;
}*/

/* ✅ แก้ไขตำแหน่งหัวเรื่องหมวดหมู่ (เช่น อนุญาตการใช้น้ำ) - ให้อยู่ด้านบน */
.ph-subheader.pd-ctitle {
    position: absolute !important;
    top: -50px !important;
    left: 0;
    right: 0;
    z-index: 1;
    background: transparent !important;
    padding: 10px 0;
   /* margin-top: 50px;*/
  
}

.pd-category {
    position: relative;
   margin-top: 50px;
    padding-bottom: 120px; /* เพิ่มพื้นที่ด้านล่างสำหรับ pagination */
}

/* ตั้งค่าพื้นฐานสำหรับ container หลัก */
#phoca-dl-category-box {
  position: relative;
  padding-bottom: 70px; /* เพิ่มพื้นที่ด้านล่างเพื่อไม่ให้เนื้อหาถูกบัง */
  min-height: calc(100vh - 70px); /* ทำให้ container สูงอย่างน้อยเต็มหน้าจอลบส่วน pagination */
}

/* ✅ จัดตำแหน่ง pagination ให้อยู่ล่างกลาง และหลุดจาก grid */
.paginationwrapper {
    display: block !important;            /* ยกเลิก grid ถ้ามี */
    position: relative !important;        /* ให้ absolute ด้านในทำงาน */
    margin-top: 20px !important;
    margin-bottom: 30px !important;
    z-index: 1 !important;
    background: white !important;
    padding: 10px !important;
    border-radius: 5px !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    clear: both !important;
    width: 100% !important;
}

/* ✅ ตำแหน่ง pagination ล่างสุด */
.pagination.pagination-centered {
    position: absolute !important;
    bottom: -80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    grid-column: 1 / -1 !important;       /* ให้ span เต็มใน grid (กันพลาด) */
    justify-self: center !important;
}

/* ✅ จัดปุ่ม pagination ให้อยู่กลาง */
.pagination.pagination-centered ul,
.pagination.pagination-centered .pagination-list {
    display: inline-block !important;
    margin: 0 auto !important;
    float: none !important;
    text-align: center !important;
}

/* ✅ จัด pagination items ให้เรียงกัน */
.pagination.pagination-centered li,
.pagination.pagination-centered .pagination-item {
    display: inline-block !important;
    float: none !important;
    margin: 0 2px !important;
}

/* ✅ ป้องกัน container parent จาก float overflow */
.pagination.pagination-centered::before,
.pagination.pagination-centered::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* ✅ เพิ่ม padding ล่างให้ container หลัก */
#phoca-dl-category-box {
    padding-bottom: 150px !important;     /* เพิ่มพื้นที่เผื่อ pagination ติดล่าง */
    overflow: hidden !important;          /* ป้องกัน float ล้น */
    display: block !important;            /* ยกเลิก grid layout ถ้ามีผลกระทบ */
}

/* ✅ บังคับให้ทุก element ใน pagination ไม่ลอย */
.pagination * {
    float: none !important;
}



/* === ผู้ได้รับใบอนุญาตการใช้น้ำ ตามลุ่มน้ำ - CSS ================================================================ */
* {
    box-sizing: border-box;
}

/* ปรับให้ container ขยายเต็มพื้นที่ */
.wad-license-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/*กว้างสุด (เต็มจอ)*/
.wad-license-wrapper {
    width: 100%;
    max-width: none;
    border-radius: 0;
    padding: 3rem;
    border-left: none;
}

/* เพิ่มเอฟเฟกต์พื้นหลัง */
.wad-license-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    z-index: -1;
}

.wad-title {
    font-size: 2.5rem;
    color: #0056a3;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/*ผลรวมทั้งหมด*/
.wad-subtext {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
}

.wad-summary {
    margin-top: 2.5rem;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 600;
    color: #004aad;
}

.wad-summary .wad-total {
    color: #d71920;
    font-size: 1.5rem;
    font-weight: bold;
}


/* ปรับ grid ให้รองรับหน้าจอใหญ่ */
.wad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.wad-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 2px solid #e1eaf0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.wad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0078d7, #00bcf2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.wad-card:hover {
    transform: translateY(-8px);
    border-color: #0078d7;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.wad-card:hover::before {
    transform: scaleX(1);
}

.wad-card img {
    height: 120px;
    width: auto;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.wad-card:hover img {
    transform: scale(1.1);
}

.wad-name {
    font-weight: 600;
    color: #004aad;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wad-number {
    font-size: 2rem;
    color: #d71920;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(215, 25, 32, 0.2);
}

/* การ์ดที่มีค่า 0 */
.wad-card[data-count="0"] {
    opacity: 0.6;
}

.wad-card[data-count="0"] .wad-number {
    color: #999;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wad-license-wrapper {
        width: 90%;
        padding: 2rem 3rem;
    }
    
    .wad-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .wad-license-wrapper {
        width: 95%;
        padding: 1.5rem 2rem;
    }
    
    .wad-title {
        font-size: 2rem;
    }
    
    .wad-subtext {
        font-size: 1.1rem;
    }
    
    .wad-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .wad-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .wad-license-wrapper {
        width: 100%;
        padding: 1rem;
        border-left-width: 5px;
    }
    
    .wad-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* 🔷 ตารางผู้ได้รับใบอนุญาตใช่้น้ำ */
/* styles.css */

/*body {
    font-family: 'Sarabun', 'Segoe UI', Tahoma, sans-serif;
    background-color: #f8f9fa;/*เปลี่ยนสีพื้นหลังทุกหน้าเป็นสีเทา*/
/*}*/

/* 🔷 ตารางผู้ได้รับใบอนุญาตใช้น้ำ */
.wad-license-section,
.wad-license-table {
    background: #fff;
    padding: 1.5rem;
    border-left: 6px solid #fff; /*#0078d7*/
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* 🔹 ชื่อหัวข้อ */
.wad-section-title {
    font-size: 1.8rem;
    color: #0056a3;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* 🔹 คำอธิบาย */
.wad-description {
    color: #444;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
}

/* 🔹 จำนวนรวม */
.wad-total-count {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #222;
    text-align: right;
}

.wad-total-count .number {
    font-size: 2rem;
    color: #c10000;
    font-weight: bold;
    margin-right: 0.25rem;
}

/* 🔹 ตาราง Responsive */
.wad-table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* 🔹 ตาราง */
.wad-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    font-size: 0.8rem;
}

.wad-table th,
.wad-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}

.wad-table thead {
    background-color: #f1f7fa;
    font-weight: bold;
}

.wad-table tbody tr:nth-child(odd) {
    background: #fafafa;
}

/* 🔹 Bootstrap Accordion Customization - รักษาสไตล์เดิม */
.accordion {
    border: none;
    margin-top: 1rem;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: #f1f7fa;
    color: #0056a3;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.accordion-button:not(.collapsed) {
    background-color: #0056a3;
    color: #fff;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: #0056a3;
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 163, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230056a3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 0;
    background-color: #fff;
}

/* 🔹 Responsive Fix */
@media (max-width: 768px) {
    .wad-section-title {
        font-size: 1.4rem;
    }
    
    .wad-total-count {
        font-size: 1.2rem;
    }
    
    .wad-table {
        font-size: 0.85rem;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .wad-license-table {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .wad-table th,
    .wad-table td {
        padding: 0.5rem 0.25rem;
    }
}



/* หรือถ้าต้องการกำหนดสำหรับทุกลิงค์ในพื้นที่ wrapper */
.wad-license-wrapper a,
.wad-license-wrapper a:hover,
.wad-license-wrapper a:focus,
.wad-license-wrapper a:active {
  text-decoration: none;
}

/* ถ้าต้องการให้ชัดเจนยิ่งขึ้น สามารถใช้ !important */
.region-card a,
.province-item a {
  text-decoration: none !important;
}

.region-card a:hover,
.province-item a:hover {
  text-decoration: none !important;
}

/* สำหรับกรณีที่ลิงค์อยู่ในส่วนต่างๆ ของ card */
.region-title a,
.region-subtitle a,
.region-card-header a,
.provinces-list a {
  text-decoration: none;
}

.region-title a:hover,
.region-subtitle a:hover,
.region-card-header a:hover,
.provinces-list a:hover {
  text-decoration: none;
}

/* ===== CSS ที่มีอยู่เดิมของคุณ ===== */
/* === Modern Minimal Thai Regions CSS === */
/* Background with animated gradient */
.wad-license-wrapper {
 /* background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 50%, #f1f5f9 100%);*/
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  /*padding: 4rem 1rem;*/
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.wad-license-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.page-header {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e3a8a 0%, #019BB6 100%);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 12px;
  display: inline-block;     /* เพื่อให้พื้นหลังพอดีกับข้อความ */
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* เงานุ่มๆ เพิ่มมิติ */
}


@keyframes titleGlow {
  from { filter: drop-shadow(0 0 0px rgba(30, 41, 59, 0.3)); }
  to { filter: drop-shadow(0 0 20px rgba(30, 41, 59, 0.1)); }
}

.page-header p {
  font-size: 1.125rem;
  color: #64748b;
  font-weight: 400;
}

/* ===== Regions Layout ===== */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Region Card with Enhanced Effects ===== */
.region-card {
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  border: 1px solid rgba(241, 243, 244, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  position: relative;
}

.region-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
  pointer-events: none;
}

.region-card:hover::before {
  left: 100%;
}

.region-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.1), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  border-color: rgba(233, 236, 239, 0.4);
  background: rgba(241, 243, 244, 0.95);
}

.region-card-header {
  padding: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.region-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Region Header Image */
.region-image {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 3;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.region-card:hover .region-image {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.region-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 3;
  position: relative;
}

.region-card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.region-card:hover .region-card-header::after {
  transform: translateX(100%);
}

.region-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  z-index: 3;
  position: relative;
}

.region-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
  margin: 0;
  z-index: 3;
  position: relative;
}

.region-icon {
  font-size: 1.5rem;
  opacity: 0.8;
  z-index: 3;
  position: relative;
  animation: iconFloat 6s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(3deg); }
}

/* Image placeholder styles for demo */
.region-image-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
  z-index: 3;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.region-card:hover .region-image-placeholder {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.25);
}

/* ===== Province List ===== */
.provinces-list {
  padding: 1.5rem;
  flex-grow: 1;
  background: rgba(241, 243, 244, 0.3);
}

.provinces-list h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.provinces-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.province-item {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.province-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.province-item:hover::before {
  transform: translateX(100%);
}

.province-item:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}

.province-item:active {
  transform: translateY(0px) scale(0.98);
}

/* === Enhanced Region Color Schemes === */

/* ภาคเหนือ - Blue Gradient */
.north .region-card-header {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #1d4ed8 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.north .provinces-list h4,
.north .provinces-list i {
  color: #2563eb;
  text-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}

.north .province-item {
  background: linear-gradient(135deg, #e8eef7 0%, #d4e4f0 100%);
  color: #1d4ed8;
  border-color: #d4e4f0;
}

.north .province-item:hover {
  background: linear-gradient(135deg, #d4e4f0 0%, #c0d8e9 100%);
  border-color: #a8cbe2;
  color: #1e40af;
}

.north:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

/* ภาคตะวันออกเฉียงเหนือ - Purple Gradient */
.northeast .region-card-header {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.northeast .provinces-list h4,
.northeast .provinces-list i {
  color: #7c3aed;
  text-shadow: 0 1px 2px rgba(124, 58, 237, 0.1);
}

.northeast .province-item {
  background: linear-gradient(135deg, #f0ebf7 0%, #e6d9f0 100%);
  color: #7c3aed;
  border-color: #e6d9f0;
}

.northeast .province-item:hover {
  background: linear-gradient(135deg, #e6d9f0 0%, #dcc8e9 100%);
  border-color: #d2b6e2;
  color: #6d28d9;
}

.northeast:hover {
  border-color: #8b5cf6;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

/* ภาคกลาง - Warm Orange Gradient */
.central .region-card-header {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.central .provinces-list h4,
.central .provinces-list i {
  color: #ea580c;
  text-shadow: 0 1px 2px rgba(234, 88, 12, 0.1);
}

.central .province-item {
  background: linear-gradient(135deg, #fef3e7 0%, #fed7aa 100%);
  color: #ea580c;
  border-color: #fed7aa;
}

.central .province-item:hover {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  border-color: #fb923c;
  color: #dc2626;
}

.central:hover {
  border-color: #f97316;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.15);
}

/* ภาคตะวันออก - Cyan Gradient */
.east .region-card-header {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.east .provinces-list h4,
.east .provinces-list i {
  color: #0891b2;
  text-shadow: 0 1px 2px rgba(8, 145, 178, 0.1);
}

.east .province-item {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  color: #0891b2;
  border-color: #cffafe;
}

.east .province-item:hover {
  background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
  border-color: #67e8f9;
  color: #0e7490;
}

.east:hover {
  border-color: #06b6d4;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

/* ภาคตะวันตก - Emerald Green Gradient */
.west .region-card-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.west .provinces-list h4,
.west .provinces-list i {
  color: #059669;
  text-shadow: 0 1px 2px rgba(5, 150, 105, 0.1);
}

.west .province-item {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #059669;
  border-color: #d1fae5;
}

.west .province-item:hover {
  background: linear-gradient(135deg, #d1fae5 0%, #bbf7d0 100%);
  border-color: #86efac;
  color: #047857;
}

.west:hover {
  border-color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

/* ภาคใต้ - Indigo Gradient */
.south .region-card-header {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.south .provinces-list h4,
.south .provinces-list i {
  color: #4f46e5;
  text-shadow: 0 1px 2px rgba(79, 70, 229, 0.1);
}

.south .province-item {
  background: linear-gradient(135deg, #edeef7 0%, #dddff0 100%);
  color: #4f46e5;
  border-color: #dddff0;
}

.south .province-item:hover {
  background: linear-gradient(135deg, #dddff0 0%, #cdcfe9 100%);
  border-color: #bdbfe2;
  color: #4338ca;
}

.south:hover {
  border-color: #6366f1;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .wad-license-wrapper {
    padding: 2rem 1rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .regions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .region-card-header {
    padding: 1.25rem;
    min-height: 100px;
  }
  
  .region-image,
  .region-image-placeholder {
    width: 60px;
    height: 60px;
  }
  
  .region-title {
    font-size: 1.25rem;
  }
  
  .provinces-list {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .region-image,
  .region-image-placeholder {
    width: 50px;
    height: 50px;
  }
  
  .region-title {
    font-size: 1.125rem;
  }
  
  .region-subtitle {
    font-size: 0.8rem;
  }
  
  .province-item {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
}


/*รายชื่อผู้ได้รับสัมปทานประกอบกิจการประปา*/
/* Reset และ Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}*/

/* === Scoped Styles for .water-contracts-page === */
.water-contracts-page {
  /*  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;*/
    padding: 30px;
}

.water-contracts-page .container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.water-contracts-page .header {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.water-contracts-page .header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.water-contracts-page .header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.water-contracts-page .search-container {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.water-contracts-page .search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.water-contracts-page .search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.water-contracts-page .search-input:focus {
    border-color: #2196F3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

.water-contracts-page .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

.water-contracts-page .stats {
    padding: 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-align: center; 
}

.water-contracts-page .stats-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.water-contracts-page .stat-item {
    text-align: center;
}

.water-contracts-page .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.water-contracts-page .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.water-contracts-page .table-container {
    padding: 30px;
    overflow-x: auto;
}

.water-contracts-page .contracts-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.water-contracts-page .contract-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.water-contracts-page .contract-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2196F3, #21CBF3, #4CAF50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.water-contracts-page .contract-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.water-contracts-page .contract-card:hover::before {
    transform: scaleX(1);
}

.water-contracts-page .contract-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
}

.water-contracts-page .contract-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.water-contracts-page .contract-company {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.water-contracts-page .contract-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.water-contracts-page .contract-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    text-decoration: none;
    color: white;
}

.water-contracts-page .download-icon {
    font-size: 16px;
}

.water-contracts-page .hidden {
    display: none;
}

.water-contracts-page .highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.water-contracts-page .fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .water-contracts-page .contracts-grid {
        grid-template-columns: 1fr;
    }

    .water-contracts-page .header h1 {
        font-size: 1.8rem;
    }

    .water-contracts-page .contract-card {
        padding: 20px;
    }

    .water-contracts-page {
        padding: 10px;
    }
}


