:root {
  --b: 6px;
  --m: 2;
  --color-primary: #2196f3;
  --color-primary-text: #ffffff;
  --color-secondary-bg: #1a1a1a;
  --color-secondary: #dc143c;
  --text-hover: #f5d76e;
  --text-yellow: #fdf100;
  --bg-footer: #000;
  --bg-body: #102e59;
  --bg-body-main: linear-gradient(45deg, #5757575e, #5757575e);

  --stagger-delay: 0.3s;
}
@property --a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kanit", sans-serif;
}
body {
  background-color: #000;
  background-size: cover;
  background-repeat: repeat-y;
  background-position: center;
  color: var(--color-primary-text);
  word-break: break-word;
  animation: pulse 15s ease infinite;
}

strong {
  color: #c935f9;
}
em {
  color: #ff7f50;
}
p a {
  color: #dc143c;
}
p a:hover {
  color: #ffe000;
}

p {
  color: var(--color-primary-text);
}
a:hover {
  color: var(--color-secondary);
}
.txt-int {
  text-indent: 1em;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}
.news-articles-img {
  height: 300px;
  overflow: hidden;
}
.view_date > span,
.tag__info > a span {
  color: var(--color-primary-text);
}
.bg-footer {
  background: var(--bg-footer);
}
.main-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-body);
}
/* END */

/* table */
.toc-title {
  text-align: center;
  font-weight: 700;
  margin: 0;
  padding: 0;
  visibility: hidden;
  position: relative;
  justify-content: center;
}

.toc-title:after {
  visibility: visible;
  display: flex;
  justify-content: center;
  content: "สารบัญ";
  font-size: 2em;
  color: #fff126;
}

.widget-toc {
  display: table;
  border-radius: 10px;
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(to right, #c78b1d, #857c00) border-box;
  border-radius: 5px;
  border: 2px solid transparent;
  padding-right: 1rem;
  margin: 2em 0 !important;
  font-size: 95%;
  width: 50%;
}
.widget-toc a {
  color: #f1f1f1;
  text-decoration: underline !important;
  font-size: 16px;
}
.widget-toc a:hover {
  text-decoration: none;
  opacity: 0.6;
  transition: 0.3s;
}
.widget-toc ol {
  padding-right: 0px;
  counter-reset: item;
}
.widget-toc ol li {
  display: block;
  position: relative;
}
.widget-toc ol li:before {
  content: counters(item, ".");
  counter-increment: item;
  position: absolute;
  margin-right: 100%;
  right: 0.5rem;
  inline-size: max-content;
}
/* table */
.btn-custom-primary {
  position: relative;
  color: #fff;
  background-color: #8383835e;
  border-radius: 15px;
}
.btn-custom-primary:hover {
  background: #585858ab;
  color: #ffffff;
}
.footer_logo {
  background: linear-gradient(to right, #c036fb, #8119ec);
  border-radius: 2em;
  color: #fff;
}
.bg-footer-more {
  background: linear-gradient(to right, #7b2cbf, #ff4d6d);
  color: #fff;
}
.bg-footer-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/noise.webp");
  opacity: 0.2;
  pointer-events: none;
}

.mobile-slide-menu {
  position: fixed;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  top: 0;
  left: -260px;
  width: 240px;
  height: 100vh;
  background: var(--bg-body-main);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
  z-index: 1050;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 70px;
}

.mobile-slide-menu .menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  border-bottom: 0;
  transition: background 0.2s;
}

.mobile-slide-menu .menu-link:hover {
  background: var(--bg-footer);
  color: var(--bg-body-main);
}

body.mobile-menu-open .mobile-slide-menu {
  left: 0;
}
/* *** */
.form-link-login {
  display: block;
}
.form-link-login a {
  display: flex;
  justify-content: left;
  align-items: center;
  width: 100%;
  margin: 10px 0;
  text-decoration: none !important;
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 10px rgba(252, 252, 252, 0.1);
  transition: all 0.3s ease;
}
.form-link-login a:hover{
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.form-link-login a:nth-child(1) {
  background: linear-gradient(135deg, #007bff, #00d4ff);
}
.form-link-login a:nth-child(2) {
  background: linear-gradient(135deg, #8e2de2, #ff6fd8);
}
.form-link-login a:nth-child(3) {
  background: linear-gradient(135deg, #00b09b, #96c93d);
}
.form-link-login a span {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-left: 20px;
}
/* *** */
.mobile-menu-btn {
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  z-index: 1051;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
}
.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  background: #fff;
  height: 3px;
  width: 28px;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s;
  content: "";
}

.mobile-menu-open header .mobile-menu-btn {
  background: #222;
}

.mobile-menu-icon {
  position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-menu-icon::before {
  top: -9px;
}

.mobile-menu-icon::after {
  top: 9px;
}

body.mobile-menu-open .mobile-menu-icon {
  background: transparent;
}
body.mobile-menu-open .mobile-menu-icon::before {
  transform: translateY(9px) rotate(45deg);
}
body.mobile-menu-open .mobile-menu-icon::after {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-btn .mobile-menu-icon::before,
.mobile-menu-btn .mobile-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
}
body.mobile-menu-open .mobile-menu-btn .mobile-menu-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}
.nav-pills,
.bg-content {
  cursor: default;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(63, 63, 63, 0.4);
  border-radius: 2rem;

  background: linear-gradient(
    62deg,
    #7436369d 0%,
    #83838336 15%,
    #83838336 85%,
    #7a93ff85 100%
  );
  .nav-link {
    color: #fff;
  }
  .nav-link.active,
  .nav-link:hover {
    color: #fe0000 !important;
    background-color: unset;
  }
}
.navigate .nav-link {
  position: relative;
}
.navigate .nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0; /* Starts with no height */
  bottom: 3px; /* Adjust this value to control spacing */
  left: 0;
  background-color: #fe0000; /* Color of the underline */
  transition: height 0.1s ease-in-out;
}
.navigate .nav-link:hover::after {
  height: 1px; /* The underline height on hover */
}

.js-scroll-fade {
  cursor: default;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--stagger-delay, 0s);
}

.js-scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.background-section,
.background-section-third,
.background-section-second {
  position: relative;
  background-color: #000;
  overflow: hidden;
}

.container-fluid {
  position: relative;
  z-index: 2;
}
.background-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(
    circle at left center,
    rgba(255, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
  z-index: 1;
  animation: glow-pulse 3s infinite alternate ease-in-out;
}

.background-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(
    circle at right center,
    #0d82b1ad 0%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
  z-index: 1;
  animation: glow-pulse 3s infinite alternate ease-in-out;
}
.background-section-second::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(
    circle at left center,
    #0d82b1ad 0%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
  z-index: 1;
  animation: glow-pulse 3s infinite alternate ease-in-out;
}
.background-section-third::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(
    circle at right center,
    rgba(255, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 40%
  );
  pointer-events: none;
  z-index: 1;
  animation: glow-pulse 3s infinite alternate ease-in-out;
}
@keyframes glow-pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

.hover-effect .img-fluid {
  transition: box-shadow 0.3s ease-in-out;
  border-radius: 4em;
}

.hover-effect .img-fluid:hover {
  box-shadow: 0 0 20px 5px rgba(255, 149, 149, 0.7);
}

/* todo login */

.login-form-container {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  align-items: center;
  background-color: #3c3c3ca6;
  border-radius: 15px;
  margin-bottom: 20px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  flex-shrink: 0;
  overflow: hidden;
}

.icon-wrapper.red {
  background-color: #cc0000;
}

.form-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20%;
}

.text-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.text-content label,
.text-content span {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
}

.text-content label {
  margin-bottom: 5px;
}

.text-content input {
  background: none;
  border: none;
  color: #ccc;
  font-size: 14px;
  padding: 0;
  width: 100%;
  outline: none;
}

.text-content input::placeholder {
  color: #888;
}

.login-button {
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: left;
}

.login-button .text-content span:first-child {
  font-size: 18px;
}

.login-button .text-content span:last-child {
  font-size: 14px;
  color: #aaa;
}
.login-button:hover {
  background-color: #ffffff45;
}
/* todo end login */
