@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@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");

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

:root {
  --primary-color: #33c89e;
  --secondary-color: #212d45;
}

a {
  text-decoration: none;
}

.border-btm {
  border-bottom: 1px solid #ccc;
}

header {
  /* padding: 10px 0; */
  background-color: #fff;
  position: relative;
  top: 0;
  left: 0;
  z-index: 1000;
}

@media (min-width: 992px) {
  .main-navbar {
    position: sticky;
    background-color: #fff;
    top: 0;
    left: 0;
    z-index: 1000;
  }
}

.theme-btn {
  display: inline-block;
  padding: 8px 12px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 5px;
  font-weight: 500;
  font-size: 16px;
  transition: background-color 0.3s;

  &:hover {
    background-color: var(--primary-color);
    color: #fff;
  }
}

/* top nav bar  */

.top-navbar {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  align-items: center;
  background-color: var(--secondary-color);
}

.contact {
  font-size: 15px;

  display: flex;
  align-items: center;
}

.contact a {
  border: 2px solid var(--primary-color);
  color: #fff;
  font-weight: 500;
  padding: 4px 15px 5px;
  border-radius: 100px;
  transition: background-color 0.3s, color 0.3s;
  &:hover {
    background-color: var(--primary-color);
    color: #fff;
  }
}

@media (max-width: 992px) {
  .contact {
    font-size: 14px;
    a {
      padding: 4px 7px 5px;
    }
  }
}

.follow-head {
  font-size: 17px;
  color: #fff;
  font-weight: 500;
  margin: 0;
  margin-right: 10px;
}

.social-icon i {
  border: 2px solid #fff;
  border-radius: 100px;
  font-size: 18px;
  padding: 4px;
  color: #fff;
}

/* bottom nav menu */

.main-navbar {
  border-top: 1px solid #ccc;
  padding: 10px 0;
}

.logo img {
  width: 45px;
}

@media (max-width: 992px) {
  .logo img {
    width: 50px;
  }

  header {
    padding: 0;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}

.navbar-brand h5 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.navbar-brand p {
  font-size: 13px;
  line-height: 15px;
  color: #000;
  font-weight: 400;
}

@media (max-width: 992px) {
  .navbar-brand {
    gap: 5px;
  }
  .navbar-brand h5 {
    font-size: 18px;
  }

  .navbar-brand p {
    font-size: 12px;
    line-height: 15px;
  }
}

.header-add {
  text-align: end;
  max-width: 450px;

  p {
    line-height: 22px;
    margin: 0;
    a {
      color: var(--primary-color);
      font-weight: 500;
    }
  }
}

.contact-head {
  display: flex;
  align-items: center;
  justify-content: end;
  margin-bottom: 5px;
  p {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    span {
      margin-right: 5px;
    }

    a {
      color: var(--primary-color);
    }
  }

  i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 25px;
  }
}

.main__menu {
  display: flex;
  justify-content: center;
}

.nav-menu {
  /* margin: 0 auto; */
}

.main__menu li {
  line-height: 60px;
  font-weight: 600;
  /* padding: 10px 0; */
  font-size: 16px;
  white-space: nowrap;
  color: #000;
  cursor: pointer;
  i.fa-home {
    color: var(--primary-color);
    font-size: 20px;
  }
}

.main__menu li {
  a {
    color: #000;
    padding: 0 12px;
    border-right: 1px solid #ccc;

    &:hover {
      color: var(--primary-color);
    }
  }
  a.active-link {
    border-right: none;
  }
}

.drop {
  position: relative;
}

.dropdown {
  background-color: #ffffff;
  position: absolute;
  border-top: 4px solid var(--primary-color);
  left: 0;
  z-index: 100;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 15px #00000014;
  transition: opacity 0.4s, top 0.4s, visibility 0.5s;
}

.main__menu li:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown li {
  line-height: 25px;
  position: relative;
}

.dropdown li a {
  font-size: 15px;
  color: #000;
  font-weight: 400;
  padding: 4px 10px;
  display: block;
  letter-spacing: 0.6px;
  line-height: 30px;
  transition: all 0.3s;
  &:hover {
    color: #fff;
    background-color: var(--primary-color);
  }
}

.submenu {
  background-color: #fff;
  position: absolute;
  top: 50px;
  left: 100%;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 15px #00000014;
  width: 330px;
}

.dropdown li:hover .submenu {
  opacity: 1;
  top: 0;
  visibility: visible;
  transition: opacity 0.5s, top 0.4s, visibility 0.5s;
}

/* mobile navbar  */

.side-menu-btn {
  height: 45px;
  width: 45px;
  padding: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  margin: 5px 0;
  border-radius: 10px;
  cursor: pointer;
}

.close-menu-btn {
  height: 50px;
  width: 50px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  border-radius: 100px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

.mobile__navber {
  background-color: #fff;
}

.mobile-navbar {
  background-color: #fff;
  position: absolute;
  left: 0;
  top: 2.5rem;
  z-index: 200;
  width: 100%;
  /* height: 80vh; */
  overflow: auto;
  /* padding-block: 2.5rem 4rem; */
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 2px 4px 0 #ccc;
  transition: top 0.4s, opacity 0.3s;
}

.mobile-navbar::-webkit-scrollbar {
  width: 0.3rem;
  height: scroll;
}

.mobile-navbar::-webkit-scrollbar-thumb {
  background-color: #000;
  border-radius: 100px;
}

.show-menu {
  opacity: 1;
  top: 4rem;
  pointer-events: initial;
}

.main-menu li {
  line-height: 35px;
  font-weight: 500;
  font-size: 16px;
  color: #000;
  cursor: pointer;
}

.main-menu li a {
  color: #000;
  display: block;
  padding: 10px;

  &:hover {
    color: var(--primary-color);
  }
}

.dropdown__container {
  background-color: #ffffff;
  height: 0;
  overflow: hidden;
  transition: height 0.4s;
}

.mobile-dropdown {
  width: 100%;
  padding: 0;
}

.mobile-dropdown li {
  line-height: 25px;
  /* padding: 12px 0 10px; */
  font-size: 18px;
  position: relative;
}

.mobile-dropdown li a {
  font-size: 14px;
  padding: 10px 20px;
  color: #000;
  font-weight: 500;
  letter-spacing: 0.6px;
}

.mobile-dropdown li p {
  font-size: 17px;
  color: #000;
  font-weight: 500;
  letter-spacing: 0.6px;
}

.mobile-submenu {
  padding: 0;
}

.sub__dropdown {
  background-color: #fff;
  height: 0;
  overflow: hidden;
  transition: height 0.4s;

  li {
    padding: 0;
    a {
      padding: 10px 30px;
    }
  }
}
