@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  font-family: "Kanit", sans-serif;
  /* font-family: 'Itim', cursive; */
  font-weight: 300;
}

body {
  min-height: 100vh;
  scroll-behavior: smooth;
  background-color: var(--bgcolor);
  overflow-x: hidden;
}
/* body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
}

body::-webkit-scrollbar {
  width: 10px;
  background-color: #f5f5f5;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--bg-color);
  border: 1px solid var(--border);
} */
select {
  border-radius: 0.2rem !important;
  background-color: var(--bg-color) !important;
  color: var(--textcolor) !important;
  border-color: var(--border) !important;
}
.card {
  border-radius: var(--border-radius) !important;
  background-color: var(--bg-color) !important;
  color: var(--textcolor) !important;
  border-color: var(--border) !important;
  z-index: 1;
}
.modal-content {
  background-color: var(--bg-color) !important;
  border-color: var(--border) !important;
  border-radius: var(--border-radius) !important;
}
.modal-header {
  border-bottom: 1px solid var(--border) !important;
}
.modal-footer {
  border-top: 1px solid var(--border) !important;
}
.btn-close {
  color: var(--textcolor) !important;
}
.bg-web {
  position: absolute;
  top: 0;
  z-index: -2;
  height: 100vh;
  width: 100vw;
  background-color: var(--bgcolor);
}
section {
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 3rem;
}
section {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}
.form-check-input {
  background-color: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--border-radius) !important;
}
.form-check-input:checked {
  background-color: #111113 !important;
  border-color: #f5f6f8 !important;
}
.nav-color {
  background-color: var(--bg-color) !important;
  color: var(--textcolor) !important;
  border-bottom: 0.5px solid var(--border) !important;
}
.nav-link {
  color: var(--textcolor) !important;
}
.link_click {
  color: #e5484d;
}
.link_click:hover {
  color: #e5484d;
}
.form-control {
  color: var(--textcolor) !important;
  background-color: var(--bgcolor) !important;
  border: 1px solid var(--border) !important;
}
/* จัดการสีตัวอักษรและสีพื้นหลังขณะ Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  /* ใช้ transition ดีเลย์สีพื้นหลังให้เป็นสีที่คุณต้องการ */
  -webkit-box-shadow: 0 0 0 1000px var(--bgcolor) inset !important;
  /* ตั้งค่าสีตัวอักษร */
  -webkit-text-fill-color: var(--textcolor) !important;
  /* ปรับเส้นขอบให้เป็นตามตัวแปรของคุณ */
  border: 1px solid var(--border) !important;
}

/* แถม: ลบพื้นหลังสีฟ้าออกถาวรสำหรับบาง Browser */
input:-internal-autofill-selected {
  background-color: var(--bgcolor) !important;
  color: var(--textcolor) !important;
}
.rounded-3 {
  border-radius: var(--border-radius) !important;
}
.footer-web {
  z-index: 1000;
}
.footer-color-main {
  background-color: var(--bg-color);
  color: var(--textcolor);
  border-top: 0.5px solid var(--border) !important;
}
.footer-color {
  border-top: 1px solid var(--border);
  background-color: var(--border);
  color: var(--textcolor);
  box-sizing: border-box;
  background-color: var(--border);
  color: var(--textcolor);
  padding: 5px;
  display: flex;
  justify-content: center;
  .footer-text {
    margin-bottom: 0;
  }
}

/* TEXT COLOR */
/* TEXT COLOR */
/* TEXT COLOR */

.text-red {
  color: #e5484d;
}
.text-white {
  color: var(--textcolor) !important;
}
/* TEXT COLOR */
/* TEXT COLOR */
/* TEXT COLOR */
.table {
  color: var(--textcolor);
  border-color: var(--border);
}
.image_thumbnail {
  border-top-left-radius: var(--border-radius) !important;
  border-top-right-radius: var(--border-radius) !important;

  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.table > :not(:last-child) > :last-child > * {
  border-bottom-color: var(--border);
}
.bg-discord {
  color: #7289da !important;
  background-color: #323955 !important;
  border: 1.5px solid #3d4768 !important;
  border-radius: var(--border-radius) !important;
}
.bg-green {
  color: #4ade80 !important;
  background-color: #1a2e1f !important;
  border: 1.5px solid #24402b !important;
  border-radius: var(--border-radius) !important;
}
.bg-red {
  color: #ff4d4d !important;
  background-color: #3d1b1b !important;
  border: 1.5px solid #5c2626 !important;
  border-radius: var(--border-radius) !important;
}

.bg-dark {
  color: var(--textcolor) !important;
  background-color: #19191b !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--border-radius) !important;
}

#main-home {
  z-index: 2;
}

.card-cyber {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cyber-bg-logo {
  position: absolute;
  right: -25%;
  top: -20%;
  width: 120%;
  height: 140%;
  opacity: 0.1;
  filter: grayscale(1) brightness(1);
  transform: rotate(-15deg);
}

.cyber-bg-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cyber-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top left,
    rgba(255, 62, 62, 0) 0%,
    transparent 70%
  );
}

.cyber-info {
  position: relative;
  z-index: 2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.category-tag {
  color: #ff3e3e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.cyber-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  line-height: 1;
}

.cyber-subtitle {
  color: #aaa;
  margin-top: 10px;
  font-size: 1rem;
}

.cyber-subtitle span {
  color: #4caf50;
}

.navbar-toggler {
  border: 1px solid var(--border);
}

li a {
  cursor: pointer;
}

.swiper-lazy-preloader {
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
}

.swiper-main .swiper-slide {
  background-color: #1a1a1a;
  position: relative;
  min-height: 400px;
}

.swiper-main img {
  transition: opacity 0.3s ease-in-out;
}

.swiper-main {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  background: #1a1a1a;
}

.swiper-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.swiper-thumbs {
  margin-top: 10px;
  box-sizing: border-box;
  padding: 5px 0;
}

.swiper-thumbs .swiper-slide {
  width: 25%;
  height: 80px;
  opacity: 0.4;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #fff;
}

.swiper-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-main .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  /* เปลี่ยนรูปเมาส์ */
}
.f-fancybox {
  --f-main-color: #fff;
  --f-bg: rgba(0, 0, 0, 0.9);
}
