
.niramit-extralight {
  font-family: "Niramit", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.niramit-light {
  font-family: "Niramit", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.niramit-regular {
  font-family: "Niramit", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.niramit-medium {
  font-family: "Niramit", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.niramit-semibold {
  font-family: "Niramit", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.niramit-bold {
  font-family: "Niramit", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.niramit-extralight-italic {
  font-family: "Niramit", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.niramit-light-italic {
  font-family: "Niramit", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.niramit-regular-italic {
  font-family: "Niramit", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.niramit-medium-italic {
  font-family: "Niramit", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.niramit-semibold-italic {
  font-family: "Niramit", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.niramit-bold-italic {
  font-family: "Niramit", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.social-icon-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffc107;
  color: #fff;
  border: 2px solid #e0a800;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  font-size: 20px; /* ขนาดไอคอนเท่ากันทุกตัว */
  vertical-align: middle;
}

.brand-text {
  height: 40px;
  line-height: 0.2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.brand-text div {
  width: 100%;
  height: 100%;
  font-size: clamp(0.2rem, 1.2vw, 1.05rem); /* ขนาดปรับตามพื้นที่ */
}

.social-icon-yellow i {
  display: flex;          /* ทำให้ flex */
  align-items: center;    /* จัดกลางแนวตั้ง */
  justify-content: center;/* จัดกลางแนวนอน */
  line-height: 1;         /* ลดช่องว่าง baseline ของ font */
}

.smaller-text {
  font-size: 0.75rem;
  color: rgb(65, 2, 182);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: visible; /* ชั่วคราว */
  padding-right: 1ch; /* เว้นที่ขวานิดหน่อย */
  padding-left: 1ch;  /* เว้นที่ซ้ายนิดหน่อย */
  min-width: max-content;
}
.smaller-text-2 {
  font-size: 0.75rem;
  color: #8c8b8b;
  display: inline-flex;
  align-items: center;
}
.ms-2.border-start {
  display: inline-flex;   /* หรือ inline-block */
  align-items: center;   /* ให้ข้อความแนวตั้งตรงกลาง */
  height: auto;          /* หรือกำหนดความสูงตามต้องการ */
}
@keyframes typing {
  from { width: 0; }
  to { width: 20ch; } /* กว้างพอดีกับข้อความและสระ */
}


  .bg-nav-gradient-red {
    background: linear-gradient(90deg, rgb(102, 0, 204) 0%, rgb(0, 51, 153) 100%);
    color: white;
    padding: 0.2rem;
  }

  .bg-nav-gradient-blue {
    background: linear-gradient(90deg,rgb(58, 183, 251) 0%, rgba(63, 94, 251, 1) 100%);
    color: white;
    padding: 0.5rem;
  }

    .bg-foot-gradient-blue {
    background: linear-gradient(90deg, rgba(63, 94, 251, 1) 0%,  rgb(58, 183, 251) 100%);
    color: white;
    padding: 0.5rem;
  }

  .bg-gradient-blue {
    background: linear-gradient(90deg,rgba(63, 94, 251, 1) 0%, rgb(58, 183, 251) 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
  }

    .bg-gradient-blues {
    background: linear-gradient(90deg,rgb(58, 183, 251) 0%, rgba(63, 94, 251, 1) 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
  }

      .bg-gradient-red {
    background: linear-gradient(90deg,rgb(146, 1, 23) 0%, rgb(245, 107, 114) 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
  }

      .bg-gradient-reds {
    background: linear-gradient(90deg, rgb(245, 107, 114) 0%,  rgb(146, 1, 23) 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
  }

        .bg-gradient-purple {
    background: linear-gradient(90deg, rgb(150, 12, 237) 0%,  rgb(92, 105, 250) 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
  }



.bg-gradient-redxx {
  background: linear-gradient(135deg, #c62828, #e53935, #ff5252);
  color: white;
  padding: 0.2em 0.5em;   /* ลดระยะ padding */
  border-radius: 999px;
  font-weight: 300;        /* ลดน้ำหนัก font เล็กน้อย */
  font-size: 0.4rem;       /* ลดขนาดตัวอักษร */
  box-shadow: 0 0 4px rgba(255, 0, 0, 0.3); /* ลดเงา */
  display: inline-block;
}

  .bounce-effect {
    animation: bounce 1.5s infinite;
  }

  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    30% {
      transform: translateY(-8px);
    }
    50% {
      transform: translateY(0);
    }
    70% {
      transform: translateY(-4px);
    }
  }

    .navbar-bordered {
    border-bottom: 5px solid #ffffff66; /* สีขาวโปร่งบาง */
  }
  

.hover-highlight {
  position: relative;
  color: #333;
  background-color: transparent;
  padding: 5px 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
  overflow: hidden; 
}

.hover-highlight:hover {
  color: #fbfabb;
  background-color: #f5c238;
  box-shadow: 0 0 10px rgba(245, 194, 56, 0.6);
  transform: scale(1.01);
}

/* ::before สำหรับสร้างแสงวิงวับ */
.hover-highlight:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: skewX(-20deg);
  animation: shine 1.2s ease-in-out forwards;
}



/* Keyframe สำหรับแสงวิงวับ */
@keyframes shine {
  to {
    left: 125%;
  }
}
  

  @keyframes slideBounce {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { transform: translateY(-10px); opacity: 1; }
  60%  { transform: translateY(5px); }
  100% { transform: translateY(0); }
}

.hover-highlight.active {
  color: #fbfabb; /* สีเดียวกับ hover */
  background-color: #f5c238;
  padding: 5px 8px;
  border-radius: 5px;
  transition: 0.3s ease;
    /* ขอบดำรอบตัวอักษร */
  text-shadow: 0.5px 0.5px 1px #696969;
}

.animate-bounce-once {
  animation: slideBounce 1.2s ease-out;
  animation-fill-mode: forwards;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease-out forwards;
}

.glow-border {
  padding: 5px;
  border-radius: 10px;
  animation: glow 2s linear infinite;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px 2px yellow;
  }
  25% {
    box-shadow: 0 0 10px 4px gold;
  }
  50% {
    box-shadow: 0 0 15px 6px orange;
  }
  75% {
    box-shadow: 0 0 10px 4px gold;
  }
  100% {
    box-shadow: 0 0 5px 2px yellow;
  }
}

.glow-frame {
  position: relative;
  display: inline-block;
}

.glow-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
  background: none;
}

.glow-frame::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 12px;
  border: 2px solid transparent;
  background: linear-gradient(90deg, yellow, orange, yellow) border-box;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0) border-box;
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  animation: border-glow 3s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes border-glow {
  0% {
    mask-position: 0% 0%;
  }
  100% {
    mask-position: 400% 0%;
  }
}

.glow-framexx {
  position: relative;
  display: inline-block;
  padding: 20px; /* เพิ่มพื้นที่รอบเนื้อหา */
}

.glow-framexx::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
  background: none;
}

.glow-framexx::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 12px;
  border: 5px solid transparent;
  background: linear-gradient(90deg, yellow, orange, yellow) border-box;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0) border-box;
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  animation: border-glow 3s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes border-glow {
  0% {
    mask-position: 0% 0%;
  }
  100% {
    mask-position: 400% 0%;
  }
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* แถบแสง */
.shimmer-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  z-index: 2;
}

/* ทำให้แสงวิ่งตอน hover */
.shimmer-btn:hover::before {
  animation: shimmer 1s linear forwards;
}

@keyframes shimmer {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.00);
}

/* ขอบแสงวิ่ง */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  padding: 3px; /* ความหนาขอบ */
  background: linear-gradient(
    130deg,
    #f5c238,
    #ffffff,
    #f5c238,
    #f06292,
    #64b5f6,
    #f5c238
  );
  background-size: 300% 300%;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: borderShine 4s linear infinite;
}

.card:hover::before {
  opacity: 1;
}

/* ให้เนื้อหาการ์ดอยู่ด้านบน */
.card > * {
  position: relative;
  z-index: 2;
}

/* แอนิเมชันแสงวิ่ง */
@keyframes borderShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

  .social-icon {
    transition: transform 0.4s ease;
    display: inline-block;
  }

  .social-icon:hover {
    transform: rotate(360deg);
  }

    .card-header.gradient-border-bottom {
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, #f9d423 , #bb171a) 1; /* ไล่เฉดแดง-เหลือง */
  }

  .no-underline {
  text-decoration: none;
}

.boxed-heading-red {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #800000;
  border-radius: 10px;
  background-color: #f9dada;
  color: #800000;
  font-weight: bold;
}

    .navbar-top {
      background-color: #343a40;
      color: white;
      padding: 1rem;
    }

    /* เริ่มต้น navbar-bottom อยู่ใน flow ปกติ */
    .navbar-bottom {
      position: static; /* ปกติ */
      background-color: #6c757d;
      color: white;
      padding: 1rem;
      width: 100%;
      transition: top 0.4s ease, position 0.4s ease;
      /* top: 0; */
      z-index: 1030;
    }

    /* เมื่อ scroll เกิน 100px ให้เป็น fixed และเลื่อนจากบนลงมานุ่มนวล */
.navbar-bottom.fixed {
  position: fixed;
  top: -70px;
  left: 0;
  animation: slideDown 0.5s forwards;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: none; /* ปิด transition top เพราะ animation คุมอยู่แล้ว */
}

    @keyframes slideDown {
      from {
        top: -70px;
      }
      to {
        top: 0px;
      }
    }

.navbar-nav.border-end {
  border-right: 1px solid rgb(1, 5, 201); /* เปลี่ยนสีและความหนา */
  padding-right: 12px;         /* เพิ่มระยะห่างด้านใน */
}

/* Dropdown menu */
#dropdownMenuList {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
  pointer-events: none;
}

#dropdown-menu-wrapper.show #dropdownMenuList {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#dropdownMenuList .dropdown-item:hover {
  background-color: #ffd54f;
  color: #000;
  transition: background-color 0.3s ease;
}

#dropdownMenuList .dropdown-item.selected {
  background-color: #ffca28;
  color: #000;
  font-weight: 600;
  position: relative;
}

/* #dropdownMenuList .dropdown-item.selected::after {
  content: "✓";
  position: absolute;
  right: 12px;
  font-weight: bold;
  color: green;
} */

/* ปรับ dropdown ให้เต็มจอ */
.custom-dropdown {
  left: 0 !important;
  right: 0 !important;
  width: 100%;
  max-width: none;
  padding: 50rem 2rem;
  border: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.custom-dropdown .full-bg {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(191, 190, 190, 0.7); /* สีเทาโปร่งใส */
  z-index: 0;
  border-radius: 0.5rem; /* ถ้าต้องการขอบมน */
}


.custom-dropdown .container {
  position: relative;
  z-index: 1; /* ให้อยู่เหนือพื้นหลัง */
}


.eservice-btn {
  transition: 0.3s;
  border-radius: 4rem;
  justify-content: center; /* ทำให้ไอคอนอยู่กลางแนวตั้ง */
  
  padding: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.eservice-btn:hover .eservice-icon {
  animation: bounceOnce 0.6s ease;
}

@keyframes bounceOnce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-15px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

.eservice-btn .eservice-icon {
  font-size: 2rem;
  width: 70px;
  height: 70px;
  color: #a30a21;
  background-color: #ffd700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

    .eservice-btn:hover .switch-text-th {
  transform: translateY(-3rem);
}

.eservice-btn:hover .switch-text-en {
  transform: translateY(-3rem);
}


.text-switcher {
  height: 3.5em;
}
.switch-text-th,
.switch-text-en {
  line-height: 1.42;
}

    .my-divider {
      border: none;
      height: 5px;
      background: linear-gradient(90deg, rgb(246, 189, 3), rgb(236, 3, 3), rgb(246, 154, 154));
      margin: 30px 0;
      border-radius: 15px;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

/* ===============================
   nav-link ปกติ (ไม่ใช่ dropdown) underline effect
   =============================== */
.nav-link {
  position: relative;
  color: #000;
  text-decoration: none;
  padding-bottom: 15px;
}

/* underline เฉพาะ nav-link ปกติ (ไม่ใช่ dropdown-toggle) */
.nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #f79605;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:not(.dropdown-toggle):hover::after {
  width: 85%;
}

.nav-link:not(.dropdown-toggle).active::after {
  width: 95%;
}



/* underline สำหรับ dropdown-toggle active */
.nav-link.dropdown-toggle.active {
  position: relative; /* ต้องมี relative สำหรับ ::after */
}

/* .nav-link .underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 95%;
  height: 2px;
  background-color: #f79605;
  transform: translateX(-50%);
} */
/* underline element */
.nav-link .underline,
.dropdown-toggle .underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #f79605;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

/* hover ให้เส้นขยาย */
.nav-link:hover .underline,
.nav-link.active .underline,
.dropdown-toggle:hover .underline,
.dropdown-toggle.active .underline {
  width: 95%;
}

/* ===============================
   ปรับ dropdown menu หลักและ submenu
   =============================== */
.navbar .dropdown-menu {
  padding: 0px;
  border: 0px;
  border-top: 5px solid  #f9ad07; /* ขอบด้านบนสีแดง */
  background: #fff;
  border-radius: 0px;
  min-width: 180px;
}

/* dropdown-item ปกติ */
.navbar .dropdown-item {
  padding: 10px 20px;
  color: #555;
  transition: background-color 0.3s ease, color 0.3s ease;
}


/* ===============================
   dropdown-submenu position
   =============================== */
.dropdown-submenu {
  position: relative;
}

/* ซ่อน submenu โดย default */
.dropdown-submenu > .dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
}

/* แสดง submenu เมื่อ hover (desktop) */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}


/* หมุนลูกศร dropdown-toggle ของ submenu ให้ชี้ซ้าย */ 
.dropdown-submenu > .dropdown-toggle i { 
  float: right; transition: transform 0.3s ease; 
} 
/* กรณี hover คงลูกศรชี้ซ้าย */ 
.dropdown-submenu:hover > .dropdown-toggle::after { 
  transform: rotate(-90deg); 
}

/* dropdown-item ทั้งหมด hover */
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: linear-gradient(90deg, #e0e8ff, #e4a7fc); /* ส้มอ่อน ไล่เฉด */
  color: #c504b5 !important;
}



.cta-section {
  position: relative;
  /* background-color: white; */
  color: rgb(73, 72, 72);
    width: 100%;         /* กว้างเต็ม */
  min-width: 100vw;    /* บังคับเต็ม viewport */
  padding: 35px 0px;     /* padding ซ้ายขวาเป็น 0 เพื่อให้สุดจอ */
min-height: 100px; /* หรือปรับค่าที่ต้องการ */
  overflow: hidden;
}

/* ซ้าย: ชั้นซ้อนสามเหลี่ยม */
.cta-left-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%; /* จะยืดเต็มตาม section */
  background: linear-gradient(to right, #fcb213, #fdc306);
  clip-path: polygon(0 0, 71% 0, 86% 100%, 0% 100%);
  z-index: 2;
  display: flex;
  align-items: center;
  color: white;
}

/* ไอคอนโทรศัพท์กลาง */
.icon-wrapper {
  position: absolute;
  top: 56%;
  left: 47.5%;
  transform: translate(-50%, -50%);
  background: rgb(1, 18, 75);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: #b42852;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  animation: pulse-shadow 2s infinite ease-in-out;
}

/* วงแสงหลัก */
.icon-wrapper::before,
.icon-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4); /* ส้ม */
  animation: pulse-shadow 3s infinite ease-in-out;
  z-index: -1;
}

/* วงแสงที่สองเป็นเหลือง และมี delay */
.icon-wrapper::after {
  box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); /* เหลือง */
  animation-delay: 1.5s; /* ครึ่งหนึ่งของ 3s */
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  50% {
    box-shadow: 0 0 0 20px rgba(255, 215, 0, 0); /* ปลายโปร่งใส */
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}


/* From Uiverse.io by mobinkakei */ 
.cta {
  display: flex;
  padding: 11px 33px;
  text-decoration: none;
  font-size: 25px;
  color: white;
  background: #6225e6;
  transition: 1s;
  box-shadow: 6px 6px 0 black;
  transform: skewX(-15deg);
  border: none;
  cursor: pointer;
}

.cta:focus {
  outline: none;
}

.cta:hover {
  transition: 0.5s;
  box-shadow: 10px 10px 0 #fbc638;
}

.cta .second {
  transition: 0.5s;
  margin-right: 0px;
}

.cta:hover .second {
  transition: 0.5s;
  margin-right: 45px;
}

.span {
  transform: skewX(15deg);
}

.second {
  width: 20px;
  margin-left: 30px;
  position: relative;
  top: 12%;
}

.one {
  transition: 0.4s;
  transform: translateX(-60%);
}

.two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.cta:hover .three {
  animation: color_anim 1s infinite 0.2s;
}

.cta:hover .one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.cta:hover .two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

@keyframes color_anim {
  0% {
    fill: white;
  }

  50% {
    fill: #fbc638;
  }

  100% {
    fill: white;
  }
}




/* ขวา: ชั้นพื้นหลัง */
.cta-right {
  margin: 0 auto;
  text-align: right;
  position: relative;
  z-index: 1;
}

.cta-right .heading {
  color: #0326c2;
  font-size: 22px;
  font-weight: bold;
}

/* มือถือ */
/* แท็บเล็ต */
@media (min-width: 577px) and (max-width: 991px) {
  .cta-left-overlay .container {
    padding: 0px 20px;
  }
}

/* โน้ตบุ๊กจอเล็ก (14-15 นิ้ว) */
@media (min-width: 992px) and (max-width: 1369px) {
  .cta-left-overlay .container {
  padding: 0px 180px 0px 20px;
  }
}

/* โน้ตบุ๊ก/จอ 17-18 นิ้ว */
@media (min-width: 1370px) and (max-width: 1919px) {
  .cta-left-overlay .container {
  padding: 0px 230px 0px 200px;
  }
}

/* จอ 19 นิ้วขึ้นไป */
@media (min-width: 1920px) {
  .cta-left-overlay .container {
  padding: 0px 220px 0px 240px;
    max-width: 1000px;
    margin: auto;
  }
}



/* Responsive: ปรับสำหรับหน้าจอเล็ก (มือถือ) */
@media (max-width: 768px) {
  .cta-left-overlay {
    position: static;       /* ไม่ลอยซ้อนบนมือถือ */
    width: 100%;
    height: auto;
    clip-path: none;        /* เอา clip-path ออก */
    background: #fcb213;    /* สีพื้นแบบเดียวกัน */
    display: block;
    text-align: center;
    padding: 20px;
    justify-content: center;
  }

  .icon-wrapper {
    display: none;          /* ซ่อนไอคอนบนมือถือ */
  }
}


.btn-cta {
  background: linear-gradient(45deg, #024dce, #8A2BE2); /* น้ำเงิน > ม่วง */
  border: none;
  position: relative;
  overflow: hidden;

}

.btn-cta:hover {
  background: linear-gradient(45deg, #013be9, #CC00FF); /* น้ำเงินเข้ม > ม่วงไฟฟ้า */
}

.btn-cta .icon-slide {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.3s ease;
  padding: 5px 10px;
  /* border-radius: 6px; */
  opacity: 0.65; /* ทำให้โปร่งใสแบบง่าย */
}

/* เอฟเฟกต์เมื่อ hover ที่ปุ่ม */
.btn-cta:hover .icon-slide {
  transform: translateX(8px); /* ขยับมาทางขวาเล็กน้อย */
}


.compact-block {
  gap: 8px;
  padding: 8px 0;
}

.icon-box {
  font-size: 3rem;
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.text-box1,
.text-box2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.text-box1 p,
.text-box2 p {
  margin-bottom: 2px;
  line-height: 1.3;
  font-size: 13px;
  color: #333;
}


#carouselExampleControls .carousel-control-prev,
#carouselExampleControls .carousel-control-next {
  opacity: 0;
  transform: translateX(0);
  transition: all 0.3s ease;
}

#carouselExampleControls .carousel-control-prev {
  transform: translateX(-50px); /* ขยับซ้าย */
}

#carouselExampleControls .carousel-control-next {
  transform: translateX(50px);  /* ขยับขวา */
}

#carouselExampleControls:hover .carousel-control-prev,
#carouselExampleControls:hover .carousel-control-next {
  opacity: 0.65;
  transform: translateX(0);
}


.footer-with-wave {
  position: relative;
  overflow: hidden; /* ซ่อนส่วนล่างตรงของ wave */
background: linear-gradient(90deg, rgb(0, 51, 153) 0%, rgb(89, 1, 177) 100%);
  /* background: url('image/hero-bg2.jpg') no-repeat center top fixed; */
  background-size: cover;
  color: white;
  padding-top: 50px;
  padding-bottom: 25px;
}

.footer-with-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background-color: rgba(38, 42, 124, 0.65); */
  z-index: 0;
}

.wave {
  position: absolute;
  width: 100%;
  height: 150px;
  bottom: -35px;
  left: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%23003f7f' fill-opacity='0.7' d='M0,75 C300,150 900,0 1200,75 L1200,150 L0,150 Z'></path></svg>") repeat-x;
  background-size: 1200px 150px;
  opacity: 0.6;
  animation: waveFlow 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 1;
}

.wave:nth-child(2) {
  opacity: 0.8;
  animation-duration: 25s;
  bottom: -45px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%2300264d' fill-opacity='0.8' d='M0,75 C300,150 900,0 1200,75 L1200,150 L0,150 Z'></path></svg>") repeat-x;
  background-size: 1200px 150px;
}

.wave:nth-child(3) {
  opacity: 0.3;
  animation-duration: 40s;
  bottom: -75px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'><path fill='%2399ddff' fill-opacity='0.5' d='M0,75 C300,150 900,0 1200,75 L1200,150 L0,150 Z'></path></svg>") repeat-x;

  background-size: 1200px 150px;
}

@keyframes waveFlow {
  0%   { background-position: 0 0; }
  25%  { background-position: -300px 0; }
  50%  { background-position: -600px 0; }
  75%  { background-position: -900px 0; }
  100% { background-position: -1200px 0; }
}

.footer-content {
  position: relative;
  z-index: 2;
}

    /* ปุ่ม */
.btn-loader {
  position: relative;
  width: 40px; /* กำหนดความกว้าง */
  height: 40px; /* ให้เท่ากับความสูง */
  font-size: 15px; /* ขนาดตัวอักษร/ไอคอน */
  font-weight: bold;
  border-radius: 50%;
  background-color: #f5f4f3;
  color: #0f0f0f;
  border: 2px solid #6b6b6b;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  font-size: 20px; /* ขนาดไอคอนเท่ากันทุกตัว */
  vertical-align: middle;
  display: flex; /* จัดให้อยู่กลาง */
  align-items: center;
  justify-content: center;
}
.btn-loader i {
  display: flex;          /* ทำให้ flex */
  align-items: center;    /* จัดกลางแนวตั้ง */
  justify-content: center;/* จัดกลางแนวนอน */
  line-height: 1;         /* ลดช่องว่าง baseline ของ font */
}

.btn-loader:hover {
  background-color: #fcfbfb; /* สีเข้มขึ้นเวลา hover */
  transform: scale(1.05); /* ขยายเล็กน้อย */
  color: #e2030e;
}

/* Loader particle */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: block;
}

/* Particle 5 แฉก สำหรับปุ่ม 40px */
.particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8em;       /* ขนาดเริ่มต้นของ particle */
  height: 0.8em;
  border-radius: 50%;
  pointer-events: none;
  background: transparent;
  transform: translate(-50%, -50%);
  animation: explode-5 0.3s forwards; /* 1s คือความเร็ว/ระยะเวลา */
}
.loader:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* ลบ animation ออกตรงนี้ */
}


@keyframes explode-5 {
  0% {
    box-shadow: 
      0 0 #ff1a1a, 
      0 0 #ff1a1a, 
      0 0 #ff1a1a,
      0 0 #ff1a1a, 
      0 0 #ff1a1a;
    width: 0.8em;
    height: 0.8em;
    opacity: 1;
  }
  80% {
    /* หมุนวงกลม 90° เพื่อให้แฉกบนสุดอยู่ตรงกลาง */
    box-shadow: 
      0 -1.2em #ff1a1a,           /* top */
      1.14em -0.35em #ff1a1a,     /* top-right */
      0.7em 1.0em #ff1a1a,        /* bottom-right */
      -0.7em 1.0em #ff1a1a,       /* bottom-left */
      -1.14em -0.35em #ff1a1a;    /* top-left */
    width: 0.2em;
    height: 0.2em;
    opacity: 1;
  }
  100% {
    box-shadow: 
      0 -1.2em #ff1a1a,
      1.14em -0.35em #ff1a1a,
      0.7em 1.0em #ff1a1a,
      -0.7em 1.0em #ff1a1a,
      -1.14em -0.35em #ff1a1a;
    width: 0;
    height: 0;
    opacity: 0;
  }
}


.wave-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5em;
  height: 0.5em;
  border: 1px solid rgba(255,0,0,0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 1;
  pointer-events: none;
}

.btn-loader.active .wave-btn {
  animation: wave 1.2s ease-out forwards;
}

/* keyframes คลื่นแสง */
@keyframes wave {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(3); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(6); opacity: 0; }
}

.social-buttons {
  display: flex;
  gap: 10px; /* ระยะห่างระหว่างปุ่ม */
}


@media (max-width:768px){

    .social-buttons{

        justify-content:center;

    }

}
.striped-divider {
  display: flex;
  height: 17px;
}

.striped-divider span {
  padding: 0px;
  z-index: 1; /* ให้ข้อความอยู่ด้านบน */
}

.divider-right {
  height: 22px; /* ความหนาของเส้น */
  background: repeating-linear-gradient(
    45deg,
    #facc02,
    #facc02 3px,
    transparent 2px,
    transparent 8px
  );
  margin-left: 10px;       /* เว้นระยะจากข้อความ */
  align-self: flex-end;    /* เลื่อนลงด้านล่าง */
  transform: translateY(5px); /* ปรับละเอียดอีกเล็กน้อย */
}


.features > *{
  position: relative;
  top: -70px;
  z-index: 10;
}

.feature-item{

    position:relative;

    flex:1;

    margin:0 10px;

    padding:40px 30px;

    border-radius:15px;

    background:linear-gradient(
        180deg,
        #ffffff,
        #f4eeff
    );

    box-shadow:0 0 30px rgba(0,42,106,.10);

    height:450px;

    overflow:hidden;

    transition:
        height .7s ease,
        transform .35s ease,
        box-shadow .35s ease;
}

.feature-item:hover{
    transform:translateY(-10px);
    z-index:100;
}

.feature-item:hover::before{
    opacity:0.12;
    transform: scale(1.05);
}

.feature-item:nth-child(1):hover{
    height:1000px;
}

.feature-item:nth-child(2):hover{
    height:1000px;
}

.feature-item:nth-child(3):hover{
    height:450px;
}


.service-group h6{
  margin: 0;
    cursor:pointer;
padding: 3px 0 2px 15px;
    font-weight:450;
}

.service-group ul{
    max-height:0;
    overflow:hidden;
    transition:.45s;
}

.feature-item:hover .service-group ul{
    max-height:450px;
    opacity:1;
}


.service-group li{
    padding:2px 0;
}

@media (max-width: 991px){
    .feature-item{
        height:auto;
        overflow:hidden;   /* ไม่ใช่ visible */
    }
}

.feature-item::before{
    content:'';
    position:absolute;

    width:400px;
    height:380px;

    right: -12px;
    bottom:-45px;

    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;

    opacity:0.08;

    pointer-events:none;
    z-index:0;

    /* ⭐ เพิ่มให้เนียนขึ้น */
    filter: grayscale(10%) contrast(110%);
    transform: scale(1);
    transition: transform .4s ease, opacity .4s ease;
}

.feature-item:nth-child(1)::before{
    background-image: url('image/card_std3.png');
}

.feature-item:nth-child(2)::before{
    background-image: url('image/card_dady2.png');
}

.feature-item:nth-child(3)::before{
    background-image: url('image/card_emp1.png');
}

.feature-item::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;

    background:linear-gradient(90deg,#0d6efd,#7c13cc,#4dabf7);

    z-index:1;
}

.feature-item .feature-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border: 2px solid color-mix(in srgb, rgb(65, 2, 182), transparent 60%);
  transition: all 0.3s ease-in-out;
  /* จัดให้วงกลมอยู่กลาง */
  margin: 0 auto 20px;  
}

.feature-item .feature-icon i {
  font-size: 32px;
  color: rgb(65, 2, 182);
  transition: transform 0.3s ease-in-out;

}

.feature-item h4 {
  color: #223a66;
}
.feature-item p {
  font-size: 14px;
}

.feature-section.border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* เมื่อ hover ที่กล่อง feature-item ให้ icon เด้ง */
.feature-item:hover .feature-icon {
  animation: jello-vertical 1s both;
}

/* ใช้ keyframes เดิมที่คุณมีอยู่แล้วได้เลย */
@keyframes jello-vertical {
  0%   { transform: scale3d(1, 1, 1); }
  30%  { transform: scale3d(0.75, 1.25, 1); }
  40%  { transform: scale3d(1.25, 0.75, 1); }
  50%  { transform: scale3d(0.85, 1.15, 1); }
  65%  { transform: scale3d(1.05, 0.95, 1); }
  75%  { transform: scale3d(0.95, 1.05, 1); }
  100% { transform: scale3d(1, 1, 1); }
}



.feature-itemxx {
   height:100%;
  flex-basis: 33.33%;
  margin: 0px 10px;
  padding: 10px 30px;
  background-color: #fff;
  border-radius: 15px 15px 15px 15px;
  box-shadow: 0px 0px 30px 0px rgba(0, 42, 106, 0.1);

}


.feature-itemxx i {
  font-size: 30px;
  color: rgb(53, 2, 149);
  transition: transform 0.3s ease-in-out;
}

.feature-itemxx h5 {
  color: rgb(53, 2, 149);
}
.feature-itemxx p {
  font-size: 15px;
}
.feature-itemxx ul {
  font-size: 15px;
}


/* From Uiverse.io by Galahhad */ 
.switch {
  /* switch */
  --switch-width: 46px;
  --switch-height: 24px;
  --switch-bg: rgb(131, 131, 131);
  --switch-checked-bg: rgb(247, 182, 3);
  --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2);
  --switch-transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  /* circle */
  --circle-diameter: 18px;
  --circle-bg: #fff;
  --circle-shadow: 1px 1px 2px rgba(146, 146, 146, 0.45);
  --circle-checked-shadow: -1px 1px 2px rgba(163, 163, 163, 0.45);
  --circle-transition: var(--switch-transition);
  /* icon */
  --icon-transition: all .2s cubic-bezier(0.27, 0.2, 0.25, 1.51);
  --icon-cross-color: var(--switch-bg);
  --icon-cross-size: 6px;
  --icon-checkmark-color: var(--switch-checked-bg);
  --icon-checkmark-size: 15px;
  /* effect line */
  --effect-width: calc(var(--circle-diameter) / 2);
  --effect-height: calc(var(--effect-width) / 2 - 1px);
  --effect-bg: var(--circle-bg);
  --effect-border-radius: 1px;
  --effect-transition: all .2s ease-in-out;
}

.switch input {
  display: none;
}

.switch {
  display: inline-block;
}

.switch svg {
  -webkit-transition: var(--icon-transition);
  -o-transition: var(--icon-transition);
  transition: var(--icon-transition);
  position: absolute;
  height: auto;
}

.switch .checkmark {
  width: var(--icon-checkmark-size);
  color: var(--icon-checkmark-color);
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

.switch .cross {
  width: var(--icon-cross-size);
  color: var(--icon-cross-color);
}

.slider {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  -webkit-transition: var(--switch-transition);
  -o-transition: var(--switch-transition);
  transition: var(--switch-transition);
  cursor: pointer;
}

.circle {
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  background: var(--circle-bg);
  border-radius: inherit;
  -webkit-box-shadow: var(--circle-shadow);
  box-shadow: var(--circle-shadow);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  z-index: 1;
  position: absolute;
  left: var(--switch-offset);
}

.slider::before {
  content: "";
  position: absolute;
  width: var(--effect-width);
  height: var(--effect-height);
  left: calc(var(--switch-offset) + (var(--effect-width) / 2));
  background: var(--effect-bg);
  border-radius: var(--effect-border-radius);
  -webkit-transition: var(--effect-transition);
  -o-transition: var(--effect-transition);
  transition: var(--effect-transition);
}

/* actions */

.switch input:checked+.slider {
  background: var(--switch-checked-bg);
}

.switch input:checked+.slider .checkmark {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.switch input:checked+.slider .cross {
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

.switch input:checked+.slider::before {
  left: calc(100% - var(--effect-width) - (var(--effect-width) / 2) - var(--switch-offset));
}

.switch input:checked+.slider .circle {
  left: calc(100% - var(--circle-diameter) - var(--switch-offset));
  -webkit-box-shadow: var(--circle-checked-shadow);
  box-shadow: var(--circle-checked-shadow);
}


.menu-link {
  display: block;
  padding: 5px 8px;
  transition: 0.3s;
  color: #333;
  background-color: transparent;
  border-radius: 5px;
  overflow: hidden; 
}

.menu-link:hover {
  color: #8a011f;
  background-color: #f5c238;
  box-shadow: 0 0 5px rgba(245, 194, 56, 0.6);
  transform: scale(1.01);
}

/* From Uiverse.io by kyle1dev */ 
.checkbox-container {
  display: flex;
  gap: 20px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 16px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.ios-checkbox {
  --checkbox-size: 22px;
  --checkbox-color: #3b82f6;
  --checkbox-bg: #dbeafe;
  --checkbox-border: #93c5fd;

  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ios-checkbox input {
  display: none;
}

.checkbox-wrapper {
  position: relative;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.checkbox-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid var(--checkbox-border);
  background: white;
  transition: all 0.2s ease;
}

.checkbox-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: 80%;
  color: white;
  transform: scale(0);
  transition: all 0.2s ease;
}

.check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.3s ease 0.1s;
}

/* Checked State */
.ios-checkbox input:checked + .checkbox-wrapper .checkbox-bg {
  background: var(--checkbox-color);
  border-color: var(--checkbox-color);
}

.ios-checkbox input:checked + .checkbox-wrapper .checkbox-icon {
  transform: scale(1);
}

.ios-checkbox input:checked + .checkbox-wrapper .check-path {
  stroke-dashoffset: 0;
}

/* Hover Effects */
.ios-checkbox:hover .checkbox-wrapper {
  transform: scale(1.05);
}

/* Active Animation */
.ios-checkbox:active .checkbox-wrapper {
  transform: scale(0.95);
}

/* Focus Styles */
.ios-checkbox input:focus + .checkbox-wrapper .checkbox-bg {
  box-shadow: 0 0 0 4px var(--checkbox-bg);
}

/* Color Themes */
.ios-checkbox.blue {
  --checkbox-color: #3b82f6;
  --checkbox-bg: #dbeafe;
  --checkbox-border: #93c5fd;
}

.ios-checkbox.purple {
  --checkbox-color: #8b5cf6;
  --checkbox-bg: #ede9fe;
  --checkbox-border: #c4b5fd;
}

/* Animation */
@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.ios-checkbox input:checked + .checkbox-wrapper {
  animation: bounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ปรับ style ของ select */
#monthFilter.form-select {
  max-width: 300px;             /* กำหนดความกว้างสูงสุด */
  border: 1.7px solid #bb020b;    /* เส้นกรอบน้ำเงิน Bootstrap */
  border-radius: 12px;          /* มุมโค้งมน */
  padding: 10px 40px 10px 15px; /* เพิ่มพื้นที่ด้านใน */
  font-size: 1rem;              /* ขนาดฟอนต์ */
  font-weight: 500;             /* ทำให้ตัวหนังสือชัดขึ้น */
   /* background-color: #fdb169;      */
  color: #0a0a0a;               /* สีตัวอักษร */
  appearance: none;             /* ซ่อน dropdown เดิม */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23800020' class='bi bi-chevron-down' viewBox='0 0 16 16'%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");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  transition: all 0.3s ease;
}

/* hover & focus effect */
#monthFilter.form-select:hover {
  /* background-color: #fcf8f8; */
  border-color: #92020e;
}

#monthFilter.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(59, 59, 59, 0.25);
  border-color: #8b023b;
}


.messenger-button {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #f9fbfc;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: messengerBounce 2s infinite; /* เปลี่ยนตรงนี้ */
  z-index: 9999;
  text-decoration: none;
}

@keyframes messengerBounce {
  0%,100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.modal-xxl{
    max-width:90%;
}

.download-card{
    border:0;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 .25rem .75rem rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
}

.download-card:hover{
    transform:translateY(-5px);
    box-shadow:0 .6rem 1.3rem rgba(0,0,0,.15);
}

.download-card .card-header{
    font-weight:600;
    font-size:1rem;
}

.download-card .list-group-item{
    border:0;
    padding:.55rem .9rem;
}

.download-card .list-group-item a{
    color:#444;
    display:block;
}

.download-card .list-group-item a:hover{
    color:#0d6efd;
    padding-left:6px;
    transition:.2s;
}


      .carousel-img{
          width:100%;
          max-height:690px;
          height:auto;
      }

      @media (max-width:992px){
          .carousel-img{
              height:450px;
          }
      }

      @media (max-width:576px){
          .carousel-img{
              height:250px;
          }
      }

.member-img{ position:relative; }

      .img-count{
          position:absolute;
          left:10px;
          bottom:10px;
          background:rgba(0,0,0,.7);
          color:#fff;
          padding:4px 10px;
          border-radius:20px;
          font-size:.85rem;
          font-weight:600;
          display:flex;
          align-items:center;
          gap:5px;
      }

      .badge-new-img{
          position:absolute;
          top:10px;
          left:10px;
          background:#ff6809;
          color:#fff;
          padding:4px 9px;
          border-radius:20px;
          font-size:.7rem;
          font-weight:700;
          box-shadow:0 3px 8px rgba(0,0,0,.25);
          animation:pulse 1.2s infinite;
      }
      .badge-hot-img{
          position:absolute;
          top:40px;
          left:10px;
          background:#ff0303;
          color:#fff;
          padding:4px 10px;
          border-radius:20px;
          font-size:.7rem;
          font-weight:bold;
          z-index:10;
      }

    @keyframes pulse{
        0%{
            transform:scale(1);
        }
        50%{
            transform:scale(1.12);
        }
        100%{
            transform:scale(1);
        }
    }
