/*

TemplateMo 564 Plot Listing

https://templatemo.com/tm-564-plot-listing

*/

/* ---------------------------------------------
Table of contents
------------------------------------------------
01. font & reset css
02. reset
03. global styles
04. header
05. banner
06. features
07. testimonials
08. contact
09. footer
10. preloader
11. search
12. portfolio

--------------------------------------------- */
/* 
---------------------------------------------
font & reset css
--------------------------------------------- 
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
/* 
---------------------------------------------
reset
--------------------------------------------- 
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, div
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q,
s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
figure, header, nav, section, article, aside, footer, figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .grid-item ---- */

.grid-sizer,
.grid-item {
  width: 50%;
}

.grid-item {
  float: left;
}

.grid-item img {
  display: block;
  max-width: 100%;
}

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}

html[xmlns] .clearfix {
  display: block;
}

* html .clearfix {
  height: 1%;
}

ul, li {
  padding: 0;
  margin: 0;
  list-style: none;
}

header, nav, section, article, aside, footer, hgroup {
  display: block;
}

* {
  box-sizing: border-box;
}

html, body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  background-color: #fff;
    color: #2a2a2a;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none !important;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0px;
  margin-bottom: 0px;
}

ul {
  margin-bottom: 0px;
}

p {
  font-size: 16px;
  line-height: 30px;
  color: #2a2a2a;
}

img {
  margin-bottom: -3px;
  width: 100%;
  overflow: hidden;
}

/* 
---------------------------------------------
global styles
--------------------------------------------- 
*/
html,
body {
  background: #fff;
  font-family: 'Montserrat', sans-serif;
}

::selection {
  background: #03a4ed;
  color: #fff;
}

::-moz-selection {
  background: #03a4ed;
  color: #fff;
}

@media (max-width: 991px) {
  html, body {
    overflow-x: hidden;
  }
  .mobile-top-fix {
    margin-top: 30px;
    margin-bottom: 0px;
  }
  .mobile-bottom-fix {
    margin-bottom: 30px;
  }
  .mobile-bottom-fix-big {
    margin-bottom: 60px;
  }
}

.page-section {
  margin-top: 120px;
}

.section-heading h2 {
  font-size: 30px;
  margin-bottom: 25px;
  text-transform: capitalize;
  color: #2a2a2a;
  font-weight: 700;
  position: relative;
  z-index: 2;
  line-height: 44px;
}

.section-heading h6 {
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 500;
  color: #8d99af;
}

.main-white-button a {
  display: inline-block;
  background-color: #fff;
  font-size: 15px;
  font-weight: 400;
  color: #2a2a2a;
  text-transform: capitalize;
  padding: 12px 25px;
  border-radius: 7px;
  letter-spacing: 0.25px;
  transition: all .3s;
}

.main-white-button a i {
  margin-right: 10px;
  width: 22px;
  height: 22px;
  background-color: #28a745;
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  line-height: 22px;
}

.main-white-button a:hover {
  background-color: #28a745;
  color: #fff;
}

/* 
---------------------------------------------
header
--------------------------------------------- 

HEADER (Desktop + Mobile)
ใช้กับ <header class="header-area">
เมื่อ scroll ให้เพิ่ม class "background-header" ที่ header
--------------------------------------------- 
*/

/* ========== สถานะปกติของ Header ========== */
.header-area {
  background-color: #39634b; /* เขียวกรมของเว็บหน่วยงาน */
  border-bottom: 1px solid rgba(250, 250, 250, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 100px;
  -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}

/* ========== Header เมื่อ SCROLL ลง (Sticky) ========== */
.header-area.background-header {
  background-color: #e9e9e9 !important;       /* พื้นหลังสว่างเวลาเลื่อน */
  height: 80px !important;                    /* header เตี้ยลงนิดหน่อย */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15) !important;
}

/* ========== โครงสร้างหลักของเมนู ========== */
.header-area .main-nav {
  min-height: 80px;
  background: transparent;
}

/* เมนูหลัก (รายการ nav) – Desktop */
.header-area .main-nav .nav {
  float: right;
  margin-top: 30px;
  margin-right: 0;
  background-color: transparent;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  position: relative;
  z-index: 999;
}

/* ตอน scroll ให้เมนูเลื่อนขึ้นเล็กน้อย */
.header-area.background-header .main-nav .nav {
  margin-top: 20px !important;
}

/* ========== LOGO ========== */
.header-area .main-nav a.logo {
  background-image: url(../images/LAWDOCSLOGOWHITE.png);  /* โลโก้สีขาว */
  width: 219px;
  height: 60px;
  display: inline-block;
  margin-top: 20px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

/* โลโก้เมื่อ header เปลี่ยนเป็นพื้นอ่อนตอน scroll */
.header-area.background-header .main-nav a.logo {
  background-image: url(../images/LAWDOCSLOGODARKBLUE.png); /* โลโก้สีน้ำเงินเข้ม */
  margin-top: 10px;
}

/* ========== รายการเมนูหลัก (li) ========== */
.header-area .main-nav .nav li {
  padding-left: 30px;
  padding-right: 30px;
}

.header-area .main-nav .nav li:last-child {
  padding-right: 0;
  padding-left: 40px;
}

/* ปุ่มเมนูตัวสุดท้าย (เช่น ปุ่มพิเศษ) */
.header-area .main-nav .nav li:last-child a,
.header-area.background-header .main-nav .nav li:last-child a {
  color: #2a2a2a !important;
  text-transform: capitalize;
  padding: 0 20px;
  font-weight: 400;
}

.header-area .main-nav .nav li:last-child a i,
.header-area.background-header .main-nav .nav li:last-child a i {
  font-size: 12px !important;
  font-weight: 400 !important;
}

/* ถ้ามี .main-white-button อยู่ใน li สุดท้าย */
.header-area.background-header .main-nav .nav li:last-child .main-white-button a {
  background-color: #8d99af;
  color: #fff !important;
}

.header-area.background-header .main-nav .nav li:last-child .main-white-button a i {
  background-color: #fff;
  color: #8d99af;
}

/* hover ปุ่มสุดท้าย */
.header-area .main-nav .nav li:last-child a:hover,
.header-area .main-nav .nav li:last-child a.active,
.header-area.background-header .main-nav .nav li:last-child a:hover {
  color: #fff !important;
}

/* ========== ลิงก์เมนูหลัก (a) ========== */
.header-area .main-nav .nav li a {
  display: block;
  font-weight: 500;
  font-size: 18px;      /* ขนาดตัวอักษร main menu */
  color: #fff;          /* สีตัวอักษรตอน header เขียว */
  text-transform: uppercase;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  height: 40px;
  line-height: 40px;
  border: transparent;
  letter-spacing: 1px;
}

/* เมื่อ header เปลี่ยนเป็นพื้นอ่อน ให้ตัวอักษรเมนูเป็นสีเข้ม */
.header-area.background-header .main-nav .nav li a {
  color: #1e1e1e !important;
}

/* Hover + active (ทั้งตอนปกติและตอน scroll) */
.header-area .main-nav .nav li:hover a,
.header-area .main-nav .nav li a.active,
.header-area.background-header .main-nav .nav li:hover a,
.header-area.background-header .main-nav .nav li a.active {
  color: #8d99af !important;
  opacity: 1;
}

/* ถ้ามีคลาส header-sticky เพิ่มมา */
.header-area.header-sticky .nav li a.active {
  color: #8d99af;
}

/* ========== เมนูย่อย (Dropdown .has-sub) ========== */
.header-area .main-nav .nav li.has-sub {
  position: relative;
  padding-right: 15px;
}

/* ลูกศรบอกว่ามีเมนูย่อย */
.header-area .main-nav .nav li.has-sub:after {
  font-family: FontAwesome;
  content: "\f107";
  font-size: 12px;
  color: #fff;
  position: absolute;
  right: 2px;
  top: 12px;
}

/* ตอน scroll ให้ลูกศรเป็นสีเข้ม */
.header-area.background-header .main-nav .nav li.has-sub:after {
  color: #1e1e1e;
}

/* กล่องเมนูย่อย */
.header-area .main-nav .nav li.has-sub ul.sub-menu {
  position: absolute;
  width: 200px;
  box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
  top: 40px;
  opacity: 0;
  transition: all .3s;
  transform: translateY(+2em);
  visibility: hidden;
  z-index: -1;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li {
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li a {
  opacity: 1;
  display: block;
  background: #325341;                   /* พื้นหลัง dropdown */
  color: #ffffff !important;
  padding-left: 20px;
  height: 40px;
  line-height: 40px;
  -webkit-transition: all 0.3s ease 0s;
  -moz-transition: all 0.3s ease 0s;
  -o-transition: all 0.3s ease 0s;
  transition: all 0.3s ease 0s;
  position: relative;
  font-size: 16px;
  font-weight: 400;
  border-bottom: 1px solid #cfcfcf;
}

/* hover เมนูย่อย */
.header-area .main-nav .nav li.has-sub ul li a:hover {
  background: #fff;
  color: #ff9d00 !important;
  padding-left: 25px;
}

.header-area .main-nav .nav li.has-sub ul li a:hover:before {
  width: 3px;
}

/* แสดงเมนูย่อยเมื่อ hover */
.header-area .main-nav .nav li.has-sub:hover ul.sub-menu {
  visibility: visible;
  opacity: 1;
  z-index: 1;
  transform: translateY(0%);
  transition-delay: 0s, 0s, 0.3s;
}

/* ========== ปุ่มเมนู (Hamburger) ========== */
.header-area .main-nav .menu-trigger {
  cursor: pointer;
  position: absolute;
  top: 33px;
  right: 40px;
  width: 32px;
  height: 40px;
  text-indent: -9999em;
  z-index: 99;
  display: none; /* แสดงเฉพาะตอน mobile */
}

.header-area.background-header .main-nav .menu-trigger {
  top: 23px;
}

/* เส้น hamburger */
.header-area .main-nav .menu-trigger span,
.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  -moz-transition: all 0.4s;
  -o-transition: all 0.4s;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  background-color: #1e1e1e;
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  left: 0;
}

.header-area .main-nav .menu-trigger span:before,
.header-area .main-nav .menu-trigger span:after {
  content: "";
  width: 75%;
}

.header-area .main-nav .menu-trigger span {
  top: 16px;
}

.header-area .main-nav .menu-trigger span:before {
  -moz-transform-origin: 33% 100%;
  -ms-transform-origin: 33% 100%;
  -webkit-transform-origin: 33% 100%;
  transform-origin: 33% 100%;
  top: -10px;
  z-index: 10;
}

.header-area .main-nav .menu-trigger span:after {
  -moz-transform-origin: 33% 0;
  -ms-transform-origin: 33% 0;
  -webkit-transform-origin: 33% 0;
  transform-origin: 33% 0;
  top: 10px;
}

/* ขณะเมนู active (เปลี่ยนเป็นรูป X) */
.header-area .main-nav .menu-trigger.active span,
.header-area .main-nav .menu-trigger.active span:before,
.header-area .main-nav .menu-trigger.active span:after {
  background-color: transparent;
  width: 100%;
}

.header-area .main-nav .menu-trigger.active span:before {
  -moz-transform: translateY(6px) translateX(1px) rotate(45deg);
  -ms-transform: translateY(6px) translateX(1px) rotate(45deg);
  -webkit-transform: translateY(6px) translateX(1px) rotate(45deg);
  transform: translateY(6px) translateX(1px) rotate(45deg);
  background-color: #1e1e1e;
}

.header-area .main-nav .menu-trigger.active span:after {
  -moz-transform: translateY(-6px) translateX(1px) rotate(-45deg);
  -ms-transform: translateY(-6px) translateX(1px) rotate(-45deg);
  -webkit-transform: translateY(-6px) translateX(1px) rotate(-45deg);
  transform: translateY(-6px) translateX(1px) rotate(-45deg);
  background-color: #1e1e1e;
}

/* ========== Responsive ========== */

/* จอไม่เกิน 1200px – ลดระยะห่างเมนู */
@media (max-width: 1200px) {
  .header-area .main-nav .nav li {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-area .main-nav:before {
    display: none;
  }
}

/* จอไม่เกิน 992px – ซ่อนเมนูปุ่มสุดท้าย (เช่น ปุ่มพิเศษ) */
@media (max-width: 992px) {
  .header-area .main-nav .nav li:last-child,
  .header-area.background-header .main-nav .nav li:last-child {
    display: none;
  }
  .header-area .main-nav .nav li:nth-child(6),
  .header-area.background-header .main-nav .nav li:nth-child(6) {
    padding-right: 0;
  }
}

/* จอมือถือ ≤ 767px */
@media (max-width: 767px) {

  .header-area {
    background-color: #f7f7f7;
    padding: 0 15px;
    height: 100px;
    box-shadow: none;
    text-align: center;
  }

  .header-area .container {
    background-color: #f7f7f7;
    padding: 0;
  }

  .header-area .logo {
    margin-left: 30px;
  }

  /* แสดงปุ่ม hamburger */
  .header-area .menu-trigger {
    display: block !important;
  }

  .header-area .main-nav {
    overflow: hidden;
  }

  /* เมนูหลักบนมือถือ – ซ่อนไว้ก่อน ให้ JS toggle เอา */
  .header-area .main-nav .nav {
    float: none;
    width: 100%;
    display: none;
    -webkit-transition: all 0s ease 0s;
    -moz-transition: all 0s ease 0s;
    -o-transition: all 0s ease 0s;
    transition: all 0s ease 0s;
    margin-left: 0;
  }

  /* เผื่อกรณีมี background-header ตอน mobile */
  .header-area.background-header .main-nav .nav {
    margin-top: 80px !important;
  }

  .header-area .main-nav .nav li:first-child {
    border-top: 1px solid #eee;
  }

  .header-area.header-sticky .nav {
    margin-top: 100px;
  }

  .header-area .main-nav .nav li {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .header-area .main-nav .nav li a {
    height: 50px !important;
    line-height: 50px !important;
    padding: 0 !important;
    border: none !important;
    background: #e7e7e7 !important;
    color: #191a20 !important;
  }

  .header-area .main-nav .nav li a:hover {
    background: #eee !important;
    color: #8d99af !important;
  }


/* เมนูย่อยบนมือถือให้แสดงแบบเต็มกว้าง */
.header-area .main-nav .nav li.has-sub ul.sub-menu {
  background: #8d99af;   /* สีพื้นหลัง list */
  width: 100%;
  height: auto;
  position: relative;
  visibility: inherit;
  opacity: 1;
  transform: translateY(0%);
  box-shadow: none;
  transition: all 0s;
}

/* ลิงก์แต่ละรายการในเมนูย่อยบนมือถือ */
.header-area .main-nav .nav li.has-sub ul.sub-menu li a {
  background: #8d99af !important;   /* ใส่ !important เพื่อทับค่าเดิม */
  color: #ffffff !important;
  padding-left: 20px;
  height: 45px;
  line-height: 45px;
  border-bottom: 1px solid #8d99af; /* ขอบเข้มขึ้นเล็กน้อย */
}

/* Hover บนมือถือ */
.header-area .main-nav .nav li.has-sub ul.sub-menu li a:hover {
  background: #8d99af !important;  /* โทนเขียวเข้มขึ้น */
  color: #ffce6b !important;       /* โทนทองราชการ */
}

/* ไอคอนลูกศร */
.header-area .main-nav .nav li.has-sub:after {
  color: #fff;   /* ให้ตรงกับเมนูสีเข้ม */
  right: 30px;
  font-size: 14px;
  top: 15px;
}

}





/* 
---------------------------------------------
Banner Style
--------------------------------------------- 
*/

.main-banner {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-image: url(../images/banner-bg.jpg);
  padding: 180px 0px 100px 0px; 
  position: relative;
  overflow: hidden;
}

.main-banner .top-text {
  text-align: center;
}

.main-banner .top-text h6 {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

.main-banner .top-text h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  text-transform: capitalize;
  margin-top: 15px;
  margin-bottom: 45px;
}

.main-banner ul.categories {
  width: 100%;
  margin-top: 60px;
  text-align: center;
}

.main-banner ul.categories li {
  display: inline-block;
  text-align: center;
  width: 18%;
}

.main-banner ul.categories li a {
  color: #fff;
  text-align: center;
  font-size: 15px;
  margin-top: 15px;
}

.main-banner ul.categories li .icon {
  display: block;
  margin: 0 auto 12px auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  text-align: center;
  line-height: 62px;
  color: #8d99af;
  background-color: #fff;
  transition: all .5s;
}

.main-banner ul.categories li a:hover .icon {
  background-color: #2b2d42;
}

.main-banner ul.categories li .icon img {
  max-width: 27px;
}
/* 
---------------------------------------------
การตั้งค่า พื้นที่ 
--------------------------------------------- 
*/
.main-section {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #ffffff;
  padding: 60px 0px 60px 0px;
  position: relative;
  overflow: hidden;
}

.main-section .top-text {
  text-align: center;
  color: #414141;
}

.main-section .top-text h6 {
  color: #414141;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.main-section .top-text h5 {
  color: #414141;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.main-section .top-text h2 {
  color: #414141;
  font-size: 36px;
  font-weight: 600;
  text-transform: capitalize;
  margin-top: 15px;
  margin-bottom: 45px;
}

.main-section ul.categories {
  width: 100%;
  margin-top: 60px;
  text-align: center;
}

.main-section ul.categories li {
  display: inline-block;
  text-align: center;
  width: 18%;
}

.main-section ul.categories li a {
  color: #414141;
  text-align: center;
  font-size: 15px;
  margin-top: 15px;
}

.main-section ul.categories li .icon {
  display: block;
  margin: 0 auto 12px auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  text-align: center;
  line-height: 62px;
  color: #8d99af;
  background-color: #fff;
  transition: all .5s;
}

.main-section ul.categories li a:hover .icon {
  background-color: #2b2d42;
}

.main-section ul.categories li .icon img {
  max-width: 27px;
}

.frame-section {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #eef6fc;
  padding: 50px 0px 50px 0px;
  position: relative;
  overflow: hidden;
}

form#search-form {
  background-color: #ffffff;
  padding: 20px 30px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* เงาเล็กน้อย */
}

form#search-form select,
form#search-form input {
  width: 100%;                  /* ให้เต็มความกว้างของ container */
  height: 60px;                 /* ความสูงของ input และ select คือ 60px */
  border-radius: 10px;
  background-color: transparent;/* พื้นหลังโปร่งใส */
  border: none;                 /* ไม่มีเส้นขอบ */
  color: #2a2a2a;               /* สีตัวอักษรเทาเข้ม */
  font-size: 18px;              /* ขนาดตัวอักษร 18px */
  outline: none;                /* ไม่มีเส้นขอบเวลาโฟกัส */
}


.form-select:focus {
  box-shadow: none;
}

form#search-form input.searchText {
  border-top: 3px solid #b5c2d8;
  border-left: 3px solid #b5c2d8;
  border-right: 3px solid #b5c2d8;
  border-bottom: 3px solid #b5c2d8;
  padding: 0px 30px;

  background-color: #f5f5f5; /* เพิ่มสีพื้นหลังที่นี่ */
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;  
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

form#search-form input::placeholder {
  color: #2a2a2a;
  font-size: 18px;
}

form#search-form button {

  display: flex;
  flex-direction: column;       /* เรียงแนวตั้ง */
  align-items: center;          /* จัดลูกให้อยู่ตรงกลางแนวนอน */
  justify-content: center;      /* จัดให้อยู่ตรงกลางแนวตั้ง */
  gap: 10px;                    /* ช่องว่างระหว่างไอคอนกับข้อความ */

  width: 100%;                    /* ปุ่มกินพื้นที่กว้างเต็มบรรทัด */
  height: 100%;                   /* ความสูงเต็มตาม container */
  background-color: #374151;      /* สีพื้นของปุ่ม (น้ำเงินเข้ม) */
  color: white;     /* สีตัวอักษรขาว */
  border: none;     /* ไม่มีเส้นขอบ */

  font-size: 16px;   /* ขนาดตัวอักษร */
  padding: 10px;  /* มีพื้นที่ด้านใน */
  cursor: pointer;
  text-align: center;

  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;

}

form#search-form button:hover {
  background-color: #5da17a; /* สีเมื่อ hover */
}

form#search-form button i {

  width: 40px;
  height: 40px;
  background-color: white;      /* พื้นหลังขาว */
  color: #5da17a;               /* สีไอคอน */
  border-radius: 50%;        /* ให้เป็นวงกลม */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;

}


.button {
  display: flex;
  align-items: center;         /* ให้ไอคอนและข้อความอยู่กลางแนวตั้ง */
  justify-content: center;     /* ให้ทุกอย่างอยู่กลางแนวนอน */
  gap: 10px;                   /* ระยะห่างระหว่างไอคอนกับข้อความ */
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #294c8d;   /* สีพื้นหลัง */
  border: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
  transition: background-color 0.3s ease;
  
  border-radius: 10px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;

}

.button:hover {
  background-color: #6179a3; /* สีเมื่อ hover */
}

.button i {
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: #8d99af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}




/*
---------------------------------------
Popular Categories
---------------------------------------
*/

.popular-categories {
  margin-top: 120px;
}

.popular-categories .section-heading {
  text-align: center;
  margin-bottom: 80px;
}

.popular-categories .naccs {
  position: relative;
  background-color: #2b2d42;
  border-radius: 7px;
}

.popular-categories .icon {
  display: inline-block;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  text-align: center;
  line-height: 62px;
  color: #8d99af;
  background-color: #fff;
  margin-right: 15px;
}

.popular-categories .icon img {
  max-width: 27px;
}

.popular-categories .naccs .menu div.first-thumb {
  border-top-left-radius: 7px;
}

.popular-categories .naccs .menu div.last-thumb {
  margin-bottom: 0px;
  border-bottom-left-radius: 7px;
}

.popular-categories .naccs .menu div {
  color: #fff;
  font-size: 15px;
  background-color: #8d99af;
  margin-bottom: 1px;
  height: 126px;
  text-align: left;
  padding: 0px 15px;
  line-height: 126px;
  cursor: pointer;
  position: relative;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.popular-categories .naccs .menu div.active,
.popular-categories .naccs .menu div.active .thumb {
  background-color: #2b2d42;
}

.popular-categories ul.nacc {
  position: relative;
  min-height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.popular-categories ul.nacc li {
  opacity: 0;
  transform: translateX(-50px);
  position: absolute;
  list-style: none;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.popular-categories ul.nacc li.active {
  transition-delay: 0.3s;
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateX(0px);
}

.popular-categories ul.nacc li {
  width: 100%;
}

.popular-categories .nacc .thumb .left-text {
  margin-left: 30px;
}

.popular-categories .nacc .thumb .left-text h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  margin-bottom: 30px;
}

.popular-categories .nacc .thumb .left-text p {
  color: #fff;
  margin-bottom: 30px;
}

.popular-categories .nacc .thumb .right-image {
  padding: 60px;
  display: inline-flex;
} 

.popular-categories .nacc .thumb img {
  border-radius: 7px;
}

.popular-categories .nacc .thumb .left-text .main-white-button a{
  width: 100%;
  text-align: center;
}

.iframe-full {
  width: 100%;
  height: 100vh; /* สูงเท่ากับหน้าจอ */
  overflow: hidden;
}

.iframe-full iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 70%; /* ปรับอัตราส่วนตามต้องการ (70% = 10:7) */
  overflow: hidden;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/*
---------------------------------------------
Recent Listing 
---------------------------------------------
*/

.recent-listing {
  margin-top: 120px;
  padding-top: 120px;
  margin-bottom: 120px;
  border-top: 1px solid #eee;
}

.recent-listing .section-heading {
  text-align: center;
  margin-bottom: 80px;
}

.recent-listing .item .listing-item {
  display: inline-flex;
  background-color: #f7f7f7;
  border-radius: 7px;
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.recent-listing .item .left-image {
  float: left;
  overflow: hidden;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.recent-listing .item .left-image img {
  overflow: hidden;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.recent-listing .item .right-content {
  display: inline-block;
  padding: 60px;
}

.recent-listing .item .right-content ul.rate {
  position: absolute;
  right: 60px;
  top: 60px;
}

.recent-listing .item .right-content ul.rate li {
  display: inline-block;
}

.recent-listing .item .right-content ul.rate li:last-child {
  margin-left: 10px;
}

.recent-listing .item .right-content h4 {
  font-size: 20px;
  color: #2a2a2a;
  font-weight: 700;
  margin-bottom: 20px;
}

.recent-listing .item .right-content h6 {
  font-size: 15px;
  font-weight: 500;
  color: #8d99af;
}

.recent-listing .item .right-content span.price {
  color: #2a2a2a;
  font-size: 15px;
  margin-top: 30px;
  display: block;
  margin-bottom: 15px;
}

.recent-listing .item .right-content span.price .icon {
  width: 30px;
  height: 30px;
  background-color: #8d99af;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  display: inline-block;
  margin-right: 10px;
}

.recent-listing .item .right-content span.price .icon img {
  max-width: 16px;
  text-align: center;
  display: inline-block;
}

.recent-listing .item .right-content span.details {
  display: block;
  margin-bottom: 30px;
  font-size: 15px;
  color: #8d99af;
}

.recent-listing .item .right-content span.details em {
  font-style: normal;
  color: #2a2a2a;
}

.recent-listing .item .right-content ul.info li {
  display: inline-block;
  margin-bottom: 15px;
  margin-right: 30px;
  width: 100%;
}

.recent-listing .item .right-content ul.info li:last-child {
  margin-bottom: 0px;
}

.recent-listing .item .right-content ul.info li img {
  max-width: 30px;
  margin-right: 15px;
  display: inline;
}

.recent-listing .item .right-content .main-white-button {
  position: absolute;
  right: 60px;
  bottom: 60px;
}

.recent-listing .owl-dots {
  margin-top: 15px;
  text-align: center;
}

.recent-listing .owl-dots .owl-dot {
  width: 10px;
  height: 10px;
  background-color: #8d99af;
  border-radius: 50%;
  margin: 0px 5px;
  transition: all .3s;
}

.recent-listing .owl-dots .active {
  width: 14px;
  height: 14px;
}



/*
---------------------------------------------
Footer
---------------------------------------------
*/

footer {
  border-top: 1px solid #eee;
  padding-top: 80px;
}

footer h4 {
  font-size: 20px;
  font-weight: 700;
  color: #8d99af;
  margin-bottom: 30px;
}

footer p,
footer a {
  color: #2a2a2a;
}

footer .logo img {
  max-width: 219px;
  margin-bottom: 30px;
}

footer .helpful-links {
  margin: 0px 45px;
}

footer .helpful-links ul li {
  display: block;
  margin-bottom: 15px;
}

footer .helpful-links ul li a {
  font-size: 15px;
  transition: all .3s;
}

footer .helpful-links ul li a:hover {
  color: #8d99af;
  border-bottom: 1px solid #8d99af;
}

footer .contact-us p {
  margin-bottom: 25px;
}

footer .contact-us a {
  transition: all .3s;
}

footer .contact-us a:hover {
  color: #8d99af;
  border-bottom: 1px solid #8d99af;
}

footer .sub-footer {
  text-align: center;
  margin-top: 40px;
  padding: 40px 0px;
  border-top: 1px solid #eee;
}



/* 
---------------------------------------------
contact
--------------------------------------------- 
*/

.contact-page {
  margin: 120px 0px;
}

.contact-page .inner-content {
  background-color: #f7f7f7;
  border-radius: 7px;
  overflow: hidden;
}

.contact-page .inner-content #map {
  margin-bottom: -8px;
  overflow: hidden;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

form#contact {
  position: relative;
  margin: 0px 60px 0px 45px;
}

form#contact input {
  width: 100%;
  height: 46px;
  border-radius: 7px;
  background-color: transparent;
  border: 1px solid #8d99af;
  outline: none;
  font-size: 15px;
  font-weight: 300;
  color: #8d99af;
  padding: 0px 15px;
  margin-bottom: 30px;
}

form#contact ul li {
  display: inline-block;
  margin-right: 30px;
}

form#contact ul li:last-child {
  margin-right: 0px;
}

form#contact input[type=checkbox] {
  display: inline-block;
  width: 15px;
  min-width: 15px;
  height: 15px;
  background-color: transparent;
  border: 1px solid #8d99af;
  outline: none;
  cursor: pointer;
}

form#contact span {
  color: #8d99af;
  font-size: 14px;
  font-weight: 500;
  margin-left: 8px;
}

form#contact input::placeholder {
  color: #8d99af;
  font-weight: 500;
}

form#contact textarea {
  margin-top: 10px;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  max-height: 180px;
  min-height: 140px;
  height: 140px;
  border-radius: 7px;
  background-color: transparent;
  border: 1px solid #8d99af;
  outline: none;
  font-size: 15px;
  font-weight: 300;
  color: #8d99af;
  padding: 15px;
  margin-bottom: 30px;
}

form#contact textarea::placeholder {
  color: #8d99af;
  font-weight: 500;
}

form#contact button {
  margin-bottom: -15px;
  display: inline-block;
  background-color: #8d99af;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  text-transform: capitalize;
  padding: 12px 25px;
  border-radius: 7px;
  letter-spacing: 0.25px;
  border: none;
  outline: none;
  transition: all .3s;
}

form#contact button i {
  margin-right: 10px;
  width: 24px;
  height: 24px;
  background-color: #2b2d42;
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  line-height: 24px;
}

form#contact button:hover {
  background-color: #2b2d42;
  color: #fff;
}


/* 
---------------------------------------------
Page Heading
--------------------------------------------- 
*/

.page-heading {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-image: url();
  padding: 0px 0px 0px 0px;
  position: relative;
  overflow: hidden;
}

.page-heading .top-text {
  text-align: left;
}

.page-heading .top-text h6 {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
}

.page-heading .top-text h2 {
  color: #fff;
  line-height: 70px;
  font-size: 45px;
  font-weight: 800;
  text-transform: capitalize;
  margin-top: 15px;
}



/*
---------------------------------------
Category Post
---------------------------------------
*/

.category-post {
  overflow: hidden;
  margin-top: 0px;
  margin-bottom: 120px;
}

.category-post .naccs {
  position: relative;
  border-radius: 7px;
}

.category-post .icon {
  display: inline-block;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  text-align: center;
  line-height: 62px;
  color: #8d99af;
  background-color: #fff;
  margin-right: 15px;
  float: none;
}

.category-post .naccs .menu div h4 {
  position: absolute;
  left: 81px;
  top: 50%;
  color: #fff;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 400;
  width: 100%;
  display: inline;
}

.category-post .icon img {
  max-width: 27px;
}

.category-post .naccs .menu div.first-thumb  {
  border-bottom-left-radius: 7px;
}

.category-post .naccs .menu div.last-thumb {
  margin-bottom: 0px;
  border-bottom-right-radius: 7px;
}

.category-post .naccs .menu div {
  color: #fff;
  margin: 0px;
  width: 20%;
  font-size: 10px;
  background-color: #8d99af;
  height: 132px;
  line-height: 132px;
  display: inline-block;
  float: none;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.category-post .naccs .menu div .thumb {
  padding: 30px 0px;
  margin-left: 25px;
  margin-right: 25px;
}

.category-post .naccs .menu div.active,
.category-post .naccs .menu div.active .thumb {
  background-color: #2b2d42;
}

.category-post ul.nacc {
  position: relative;
  min-height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.category-post ul.nacc li {
  opacity: 0;
  transform: translateX(-50px);
  position: absolute;
  list-style: none;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.category-post ul.nacc li.active {
  transition-delay: 0.3s;
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateX(0px);
}

.category-post ul.nacc li {
  width: 100%;
}

.category-post .nacc .thumb h4 {
  color: #2a2a2a;
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  margin-bottom: 25px;
}

.category-post .nacc .thumb .main-white-button {
  text-align: right;
  margin-top: 40px;
}

.category-post .nacc .thumb .main-white-button a {
  background-color: #8d99af;
  color: #fff;
}

.category-post .nacc .thumb .main-white-button a i {
  background-color: #fff;
  color: #8d99af;
}

.category-post .top-content {
  margin-top: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid #eee;
  margin-bottom: 60px;
}

.category-post .description {
  padding-bottom: 60px;
  border-bottom: 1px solid #eee;
  margin-bottom: 60px;
}

.category-post .general-info p {
  margin-bottom: 30px;
}

.category-post .top-content .top-icon {
  background-color: #2b2d42;
  width: 250px;
  height: 132px;
  border-radius: 7px;
  position: relative;
  padding: 30px;
  display: inline-block;
}

.category-post .top-content .top-icon h4 {
  position: absolute;
  left: 30px;
  top: 50%;
  color: #fff;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 400;
  width: 100%;
  display: inline;
}

.category-post .top-content .top-icon .icon {
  display: inline-block;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  text-align: center;
  line-height: 62px;
  color: #8d99af;
  background-color: #fff;
  margin-right: 15px;
  float: none;
  left: 0;
}

.category-post .nacc .thumb .text-icon img {
  max-width: 30px;
  margin-right: 10px;
}

.category-post .nacc .thumb span.list-item {
  font-size: 15px;
  color: #8d99af;
  font-weight: 500;
  line-height: 30px;
}



/* 
---------------------------------------------
Listing Page
--------------------------------------------- 
*/


.listing-page {
  margin-top: 120px;
  margin-bottom: 120px;
}

.listing-page .section-heading {
  text-align: center;
  margin-bottom: 80px;
}

.listing-page .naccs {
  position: relative;
}

.listing-page .icon {
  display: inline-block;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  text-align: center;
  line-height: 62px;
  color: #8d99af;
  background-color: #fff;
  margin-right: 15px;
}

.listing-page .icon img {
  max-width: 27px;
}

.listing-page .naccs .menu div.first-thumb {
  border-radius: 7px;
}

.listing-page .naccs .menu div.last-thumb {
  margin-bottom: 0px;
  border-radius: 7px;
}

.listing-page .naccs .menu div {
  color: #fff;
  font-size: 15px;
  border-radius: 7px;
  background-color: #8d99af;
  margin-bottom: 30px;
  height: 126px;
  text-align: left;
  padding: 0px 15px;
  line-height: 126px;
  cursor: pointer;
  position: relative;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.listing-page .naccs .menu div.active,
.listing-page .naccs .menu div.active .thumb {
  background-color: #2b2d42;
}

.listing-page ul.nacc {
  height: auto !important;
  position: relative;
  min-height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.listing-page ul.nacc li {
  display: none;
  opacity: 0;
  transform: translateY(-50px);
  position: absolute;
  list-style: none;
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.listing-page ul.nacc li.active {
  display: block;
  transition-delay: 0s;
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateY(0px);
}

.listing-page ul.nacc li {
  width: 100%;
}

.listing-page .item .listing-item {
  display: inline-flex;
  background-color: #f7f7f7;
  border-radius: 7px;
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.listing-page .item .left-image {
  float: left;
  overflow: hidden;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  position: relative;
  z-index: 1;
}

.listing-page .item .left-image .hover-content .main-white-button a i {
  font-size: 12px;
  width: 23px;
  height: 23px;
  line-height: 23px;
}

.listing-page .item .left-image .hover-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 11;
  transition: all .5s;
  opacity: 0;
  visibility: hidden;
}

.listing-page .item .listing-item:hover .left-image .hover-content {
  opacity: 1;
  visibility: visible;
}

.listing-page .item .left-image img {
  overflow: hidden;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.listing-page .item .right-content {
  display: inline-block;
  padding: 45px;
}

.listing-page .item .right-content h4 {
  font-size: 20px;
  color: #2a2a2a;
  font-weight: 700;
  margin-bottom: 20px;
}

.listing-page .item .right-content h6 {
  font-size: 15px;
  font-weight: 500;
  color: #8d99af;
}

.listing-page .item .right-content span.price {
  color: #2a2a2a;
  font-size: 15px;
  margin-top: 30px;
  display: block;
  margin-bottom: 15px;
}

.listing-page .item .right-content span.price .icon {
  width: 30px;
  height: 30px;
  background-color: #8d99af;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  display: inline-block;
  margin-right: 10px;
}

.listing-page .item .right-content span.price .icon img {
  max-width: 16px;
  text-align: center;
  display: inline-block;
}

.listing-page .item .right-content span.details {
  display: block;
  margin-bottom: 30px;
  font-size: 15px;
  color: #8d99af;
}

.listing-page .item .right-content span.details em {
  font-style: normal;
  color: #2a2a2a;
}

.listing-page .item .right-content span.info {
  line-height: 30px;
}

.listing-page .item .right-content span.info img {
  max-width: 30px;
  margin-right: 15px;
  display: inline;
}

.listing-page .owl-dots {
  margin-top: 15px;
  text-align: center;
}

.listing-page .owl-dots .owl-dot {
  width: 10px;
  height: 10px;
  background-color: #8d99af;
  border-radius: 50%;
  margin: 0px 5px;
  transition: all .3s;
}

.listing-page .owl-dots .active {
  width: 14px;
  height: 14px;
}



/* 
---------------------------------------------
Pre Loader
--------------------------------------------- 
*/

.js-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    z-index: 9999;
    -webkit-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
}

.js-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@-webkit-keyframes dot {
    50% {
        -webkit-transform: translateX(96px);
        transform: translateX(96px);
    }
}

@keyframes dot {
    50% {
        -webkit-transform: translateX(96px);
        transform: translateX(96px);
    }
}

@-webkit-keyframes dots {
    50% {
        -webkit-transform: translateX(-31px);
        transform: translateX(-31px);
    }
}

@keyframes dots {
    50% {
        -webkit-transform: translateX(-31px);
        transform: translateX(-31px);
    }
}

.preloader-inner {
    position: relative;
    width: 142px;
    height: 40px;
    background: #fff;
}

.preloader-inner .dot {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 12px;
    left: 15px;
    background: #8d99af;
    border-radius: 50%;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    -webkit-animation: dot 2.8s infinite;
    animation: dot 2.8s infinite;
}

.preloader-inner .dots {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    margin-top: 12px;
    margin-left: 31px;
    -webkit-animation: dots 2.8s infinite;
    animation: dots 2.8s infinite;
}

.preloader-inner .dots span {
    display: block;
    float: left;
    width: 16px;
    height: 16px;
    margin-left: 16px;
    background: #8d99af;
    border-radius: 50%;
}


/* 
---------------------------------------------
responsive
--------------------------------------------- 
*/

@media (max-width: 1200px) {
  .popular-categories .icon {
    margin-left: 50%;
    transform: translateX(-33px);
    text-align: center;
    display: inline-block;
  }
  .category-post .naccs .menu div.active .thumb {
    position: relative;
  }
  .category-post .icon {
    position: absolute;
    left: 50%;
    transform: translateX(15px);
  }
  .category-post .top-content .top-icon h4 { 
    left: 86px;
  }
  form#search-form {
    padding: 30px;
  }
  .popular-categories .naccs .menu .thumb,
  .category-post .naccs .menu div h4 {
    color: transparent;
  }
  .recent-listing .item .right-content,
  .listing-page .item .right-content {
    padding: 30px;
    position: relative;
  }
  .recent-listing .item .right-content h4,
  .listing-page .item .right-content h4 {
    margin-bottom: 10px;
  }
  .recent-listing .item .right-content .main-white-button,
  .listing-page .item .right-content .main-white-button {
    left: 30px;
    bottom: -30px;
  }
  .recent-listing .item .right-content span.price,
  .listing-page .item .right-content span.price {
    margin-top: 15px;
  }
  .recent-listing .item .right-content ul.rate,
  .listing-page .item .right-content ul.rate {
    left: 30px;
    top: -5px;
  }
  .recent-listing .item .right-content span.details,
  .listing-page .item .right-content span.details {
    margin-bottom: 15px;
  }
}

@media (max-width: 992px) {
  form#search-form select,
  form#search-form input {
    border: 1px solid #8d99af;
    border-radius: 7px;
    margin-bottom: 15px;
  }
  form#search-form button {
    border-radius: 7px;
  }
  .listing-page .naccs .menu {
    margin-bottom: 30px;
  }
  .popular-categories .nacc .thumb .left-text {
    margin: 30px;
  }
  .popular-categories .nacc .thumb .right-image {
    padding: 0px;
    margin: 0px 30px 30px 30px;
    display: block;
  }
  .popular-categories .naccs .menu div.first-thumb {
    border-top-right-radius: 7px;
  }
  .popular-categories .naccs .menu div.last-thumb {
    border-bottom-left-radius: 0px;
  }
  .recent-listing .item .left-image,
  .listing-page .item .left-image {
    float: none;
    width: 100%;
  }
  .category-post .top-content .top-icon .icon {
    left: 45%;
  }
  .recent-listing .item .left-image,
  .listing-page .item .left-image {
    border-bottom-left-radius: 0px;
    border-top-right-radius: 7px;
  }
  .recent-listing .item .listing-item,
  .listing-page .item .listing-item {
    display: inline-block;
  }
  .recent-listing .item .right-content ul.rate,
  .listing-page .item .right-content ul.rate {
    top: 20px;
  }
  .recent-listing .item .right-content .main-white-button,
  .listing-page .item .right-content .main-white-button {
    position: relative;
    left: 0px;
    bottom: 0px;
    margin-top: 30px;
  }
  .recent-listing .item .right-content h4 {
    margin-top: 20px;
  }
  footer {
    text-align: center;
  }
  footer .about,
  footer .helpful-links {
    margin-bottom: 45px;
  }
  .category-post .icon {
    transform: translateX(0px);
  }
  .category-post .top-content .top-icon,
  .category-post .nacc .thumb .main-white-button a {
    text-align: center;
    width: 100%;
  }
  .category-post .nacc .thumb .main-white-button  {
    margin-top: 30px;
  }
  .category-post .top-content .top-icon .icon {
    margin-left: -60px;
  }
  .category-post .top-content .top-icon h4 {
    left: 86px;
  }
  .description .text-icon {
    margin-top: 30px;
  }
  form#contact {
    margin-top: 45px;
    margin-bottom: 55px;
  }
}

@media (max-width: 767px) {
  .main-banner ul.categories li a {
    color: transparent;
  }
  .header-area .main-nav a.logo {
    background-image: url(../images/LAWDOCSLOGODARKBLUE.png);
    float: left;
  }
  .header-area .logo {
    margin-left: 0px;
  }
  .header-area .main-nav .menu-trigger {
    right: 15px;
  }
  .category-post .icon {
    transform: translateX(-22px);
  }
}

/* มือถือเล็ก: เว้นระยะ chip ดีขึ้น */
@media (max-width:576px){
  #laws-summary .summary-chip{ padding:.3rem .55rem }
}


/* ===== Summary Card – Themed ===== */
.summary-card{
  position: relative;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16,24,40,.06);
  overflow: hidden;
}
.summary-card::before{
  content:"";
  position:absolute;left:0;top:0;right:0;height:4px;
  background: var(--summary-grad, linear-gradient(90deg,#e9ecef,#f8f9fa));
}
.summary-card h5{
  margin:0 0 .25rem;
  font-weight:700;
  color: var(--summary-color, #0d6efd);
}
.summary-card small{ color:#64748b !important; }

/* chips ภายในการ์ด จะรับโทนสีจากตัวแปรของธีม */
.summary-card .summary-chip{
  border:1px solid var(--chip-border, #e5e7eb);
  background: var(--chip-bg, #fff);
  color: var(--chip-color, #111827);
  transition: transform .15s ease, box-shadow .15s ease;
}
.summary-card .summary-chip:hover{
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16,24,40,.08);
}
.summary-card .summary-chip .count{
  background: var(--count-bg, #eef2f7) !important;
  color: var(--chip-color, #111827);
}

/* ===== Palette ธีม (เลือกใช้ได้ตามชอบ) ===== */
/* ฟ้า (Primary) */
.theme-sky{
  --summary-color:#0d6efd;
  --summary-grad:linear-gradient(90deg,#0d6efd,#6ea8fe);
  --chip-bg:rgba(13,110,253,.06);
  --chip-border:rgba(13,110,253,.25);
  --chip-color:#0d6efd;
  --count-bg:rgba(13,110,253,.15);
}
/* ม่วง */
.theme-violet{
  --summary-color:#6f42c1;
  --summary-grad:linear-gradient(90deg,#6f42c1,#b197fc);
  --chip-bg:rgba(111,66,193,.06);
  --chip-border:rgba(111,66,193,.25);
  --chip-color:#6f42c1;
  --count-bg:rgba(111,66,193,.15);
}
/* เขียว/เทียล */
.theme-teal{
  --summary-color:#198754;
  --summary-grad:linear-gradient(90deg,#198754,#63e6be);
  --chip-bg:rgba(25,135,84,.07);
  --chip-border:rgba(25,135,84,.28);
  --chip-color:#198754;
  --count-bg:rgba(25,135,84,.16);
}





/* ===== Footer base (ใช้ตัวแปรเป็นหลัก) ===== */
.site-footer{
  --footer-bg:#eef6fc;           /* พื้นหลัง */
  --footer-fg:#dbe2f1;           /* สีตัวอักษร */
  --footer-link:#cfe0ff;         /* สีลิงก์ */
  --footer-link-hover:#ffffff;   /* สีลิงก์ hover */
  --footer-h:#ffffff;            /* สี heading */
  --accent-display:none;         /* แถบเส้นด้านบน: none|block */
  --accent-height:0;             /* ความสูงแถบ */
  --accent-bg:transparent;       /* สี/ไล่สีแถบ */
  --btt-bg:linear-gradient(135deg,#0d6efd,#6f42c1); /* ปุ่ม Back-to-top */

  background:var(--footer-bg);
  color:var(--footer-fg);
}
.site-footer a{ color:var(--footer-link); text-decoration:none; }
.site-footer a:hover{ color:var(--footer-link-hover); text-decoration:underline; }
.site-footer h5{ color:var(--footer-h); }

/* accent bar ด้านบน (เปิด/ปิดได้ด้วยตัวแปร) */
.site-footer .footer-accent{
  display:var(--accent-display);
  height:var(--accent-height);
  background:var(--accent-bg);
  width:100%;
}

/* ปุ่ม Back-to-top ให้ตามธีม */
.back-to-top{
  position:fixed; right:24px; bottom:24px; width:44px; height:44px; border:0; border-radius:9999px;
  display:grid; place-items:center; color:#fff; cursor:pointer; z-index:1050;
  background:var(--btt-bg);
  box-shadow:0 10px 24px rgba(0,0,0,.2);
  opacity:0; visibility:hidden; transform:translateY(8px); pointer-events:none;
  transition:opacity .2s, transform .2s, box-shadow .2s, background .2s;
}
.back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; }
.back-to-top:hover{ box-shadow:0 12px 28px rgba(0,0,0,.28); }
@media (max-width:576px){ .back-to-top{ right:16px; bottom:16px; width:40px; height:40px; } }

/* ===== Preset Themes ===== */

/* Navy (ดีฟบลู – ค่าเริ่มต้น) */
.footer-theme-navy{
  --footer-bg:#0b1426; --footer-fg:#dbe2f1; --footer-link:#cfe0ff; --footer-link-hover:#fff; --footer-h:#fff;
  --accent-display:none; --accent-height:0; --accent-bg:transparent;
  --btt-bg:linear-gradient(135deg,#0d6efd,#6f42c1);
}

/* Indigo (กรมท่าอมม่วง) */
.footer-theme-indigo{
  --footer-bg:#0f1230; --footer-fg:#e6e9ff; --footer-link:#b9c4ff; --footer-link-hover:#fff; --footer-h:#ffffff;
  --accent-display:block; --accent-height:4px; --accent-bg:linear-gradient(90deg,#4f46e5,#a78bfa);
  --btt-bg:linear-gradient(135deg,#4f46e5,#a78bfa);
}

/* Teal (เขียวมะกอก/เทียล) */
.footer-theme-teal{
  --footer-bg:#0d3327; --footer-fg:#dff5ec; --footer-link:#a6edd5; --footer-link-hover:#ffffff; --footer-h:#ffffff;
  --accent-display:block; --accent-height:4px; --accent-bg:linear-gradient(90deg,#198754,#63e6be);
  --btt-bg:linear-gradient(135deg,#198754,#63e6be);
}

/* Crimson (แดงเข้ม) */
.footer-theme-crimson{
  --footer-bg:#2a0b13; --footer-fg:#fde2e4; --footer-link:#ffb3c1; --footer-link-hover:#ffffff; --footer-h:#ffffff;
  --accent-display:block; --accent-height:4px; --accent-bg:linear-gradient(90deg,#dc3545,#ff6b6b);
  --btt-bg:linear-gradient(135deg,#dc3545,#ff6b6b);
}

/* Royal (น้ำเงินสด + เหลืองทอง) */
.footer-theme-royal{
  --footer-bg:#0b193f; --footer-fg:#e7eefc; --footer-link:#ffd166; --footer-link-hover:#ffffff; --footer-h:#ffffff;
  --accent-display:block; --accent-height:4px; --accent-bg:linear-gradient(90deg,#1d4ed8,#f59e0b);
  --btt-bg:linear-gradient(135deg,#1d4ed8,#f59e0b);
}
