
.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;
}


  .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-purple {
    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-blue {
    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-redxx {
    background: linear-gradient(135deg, #c62828, #e53935, #ff5252);
    color: white;
    padding: 0.5em 0.75em;
    border-radius: 999px;
    font-weight: bold;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
    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 {
    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%;
  }
}


/* การ์ด */
/* .card {
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
} */


    /* .rainbow-text {
    font-weight: bold;
    background-image: linear-gradient(
      -45deg,
      red,
      orange,
      yellow,
      green,
      cyan,
      blue,
      violet
    );
    background-size: 450% 450%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 6s linear infinite;
  }

  @keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  } */