@import url("https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins: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');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Sarabun", sans-serif;
}

:root {
  --primary-color: #2A4FC0;
  --secondary-color: #1D958A;
  --accent: #AEE0F0;
  --black: #000;
  --white: #fff;
  --primary-dark: #182d6d;
  --secondary-dark: #0d5a53;
  --primary-soft: #e6ecff;
  --secondary-soft: #c7f9f5;
  --text: #1C2340;
  --muted: #65758d;
  --line: #e4e9f3;
  --bg: #f8faff;
  --shadow: 0 14px 40px rgba(22, 52, 91, .08);
}

a {
  text-decoration: none;
  color: inherit;
}

::selection {
  background: var(--primary-color);
  color: var(--white);
}

body {
  font-family: "Sarabun", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--black);
  background: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

/* top nav */




/* menu  */

.custom-navbar {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  /* margin-bottom: -110px; */
}

.custom-navbar .container {
  /* background: var(--white); */
  border-radius: 0 0 20px 20px;
}

@media (max-width: 991px) {
  .custom-navbar .container {
    padding: 0;
  }

  .custom-navbar .container {
    border-radius: 0;
  }
}

.logo img {
  border-radius: 6px;
  margin: 0;
}

.nav-toggle {
  display: none;
  text-align: right;

  button {
    font-size: 24px;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
  }
}

ul.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

ul.nav-links li {
  position: relative;
}

ul.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 17px;
  text-transform: capitalize;
  padding: 30px 16px;
  display: block;
  position: relative;
}

ul.nav-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 1px;
  height: 30px;
  transform: translateY(-50%);
  background: #ddd;
  transition: width 0.3s ease;
}


ul.nav-links>li>a::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 40px;
  height: 3px;
  opacity: 0;
  border-radius: 10px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

ul.nav-links a.active img {
  background: var(--primary-soft);
  padding: 8px;
  border-radius: 10px;

}

ul.nav-links a:hover {
  color: var(--primary-color);
}

ul.nav-links a:hover::after,
ul.nav-links a.active::after {
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: 95%;
  left: 0;
  background: var(--primary-dark);
  border: 1px solid var(--primary-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: none;
  overflow: hidden;
  padding: 0;
  flex-direction: column;
  min-width: 230px;
  width: max-content;
  z-index: 999;
}

.dropdown-menu a {
  padding: 8px 12px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-transform: capitalize !important;
  color: var(--white) !important;
  border-bottom: 1px solid var(--white) !important;
}

.dropdown-menu li:last-child>a {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--white) !important;
  color: var(--primary-color) !important;
}

/* Subdropdown */
.has-subdropdown {
  position: relative;
}

.subdropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  border: 1px solid var(--primary-color);
  background: var(--white);
  display: none;
  padding: 0;
  flex-direction: column;
  min-width: 200px;
  width: max-content;
  list-style: none;
}

.subdropdown-menu a {
  padding: 5px 10px !important;
  border-bottom: 1px solid var(--primary-color);
  color: var(--black);
}

.subdropdown-menu a:hover {
  background: var(--primary-color) !important;
  color: var(--white);
}

/* === DESKTOP ONLY: Show dropdown on hover === */
@media (min-width: 992px) {
  .has-dropdown:hover .dropdown-menu {
    display: flex;
  }

  .has-subdropdown:hover>.subdropdown-menu {
    display: flex;
  }

}

/* === MOBILE STYLES === */
@media (max-width: 991px) {
  .nav-toggle {
    display: block;
  }

  ul.nav-links {
    flex-direction: column;
    display: none;
    width: 100%;
    margin-top: 10px;
    gap: 0;
    max-height: 100vh;
    overflow-y: auto;
  }

  ul.nav-links.show {
    display: flex;
  }

  ul.nav-links li {
    width: 100%;
  }

  ul.nav-links a {
    padding: 12px 10px;
    border-bottom: 1px solid #ccc;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    border: none;
  }

  .dropdown-menu a {
    padding: 8px 8px 8px 23px !important;
    font-size: 16px !important;
  }

  .has-dropdown .dropdown-menu {
    display: none;
  }

  .has-dropdown.show .dropdown-menu {
    display: flex;
  }


  .subdropdown-menu {
    position: static;
    display: none;
    background: var(--primary-color);
    border: none;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
  }

  .subdropdown-menu.show {
    display: flex;
  }

  .subdropdown-menu a {
    padding: 10px 20px !important;
    border-bottom: 1px solid #333;
    color: #fff !important;
  }

  .sub-subdropdown-menu {
    position: static;
    display: none;
    background: #fff;
    border: none;

    border-radius: 0;
    width: 100%;
  }
}