/*========== GOOGLE FONTS ==========*/
/* @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;900&family=Sarabun:wght@300;400&display=swap");

/*========== VARIABLES CSS ==========*/
:root {
  --header-height: 5.5rem;
  --nav-width: 230px;

  /*========== Colors ==========*/
  --first-color: #f36303;
  --first-color-light: #f4f0fa;
  --title-color: #19181b;
  --text-color: #58555e;
  --text-color-light: #a5a1aa;
  --body-color: #cfced16e;
  --container-color: #ffffff;

  /*========== Font and typography ==========*/
  --font-style: "Roboto", sans-serif;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.75rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*========== BASE ==========*/
/* *, ::before, ::after {
  box-sizing: border-box;
} */

* {
  font-family: "Roboto", sans-serif;
}

section {
  border-radius: 0px;
}

.body-std {
  margin: var(--header-height) 0 0 0;
  padding: 1rem 1rem 0;
  font-family: var(--font-style);
  font-size: var(--normal-font-size);
  /* background-color: var(--body-color); */
  color: var(--text-color);
}

.h3-std {
  margin: 0;
}

.text__name {
  color: #ffffff;
}

.text__name:hover {
  color: #ffffff;
}

.a-std {
  text-decoration: none;
}

.img-std {
  max-width: 100%;
  height: auto;
}
.logo__nav {
  max-width: 150px;
  max-height: 150px;
  padding-left: 15px;
}
/* header {
  background: linear-gradient(
    90deg,
    rgba(255, 135, 49, 1) 0%,
    rgba(255, 207, 92, 1) 38%,
    rgba(252, 176, 69, 1) 80%
  );
} */
/*========== HEADER ==========*/
.header__std {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgb(255, 135, 49);
  background: linear-gradient(
    90deg,
    rgba(255, 135, 49, 1) 0%,
    rgba(255, 207, 92, 1) 60%,
    rgb(253, 159, 28) 86%
  );
  box-shadow: 0 1px 0 rgba(22, 8, 43, 0.1);
  padding: 0 1rem;
  z-index: var(--z-fixed);
}

.header__container {
  /* display: flex; */
  align-items: center;
  height: var(--header-height);

  /* justify-content: space-between; */
}
.text_name span {
  text-decoration: none;
  color: white;
}

.header__img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.header__logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
  /* display: none; */
}

.header__icon,
.header__toggle {
  font-size: 1.2rem;
}

.header__toggle {
  /* color: var(--title-color); */
  cursor: pointer;
}

/*========== NAV ==========*/
.nav__std {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  padding: 1rem 1rem 0;
  background-color: var(--container-color);
  box-shadow: 1px 0 0 rgba(22, 8, 43, 0.1);
  z-index: var(--z-fixed);
  transition: 0.4s;
}

.nav__container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 3rem;
  overflow: auto;
  scrollbar-width: none; /* For mozilla */
}

/* For Google Chrome and others */
.nav__container::-webkit-scrollbar {
  display: none;
}

.nav__logo {
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}

.nav__list,
.nav__items {
  display: grid;
}

.nav__list {
  row-gap: 2.5rem;
}

.nav__items {
  row-gap: 1.5rem;
}

.nav__subtitle {
  font-size: var(--normal-font-size);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--text-color-light);
}

.nav__link {
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__icon {
  font-size: 1.4rem;
  margin-right: 0.5rem;
}

.nav__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

.nav__logout {
  margin-top: 5rem;
}

/* Dropdown */
.nav__dropdown {
  overflow: hidden;
  max-height: 21px;
  transition: 0.9s ease-in-out;
}

.nav__dropdown-collapse {
  background-color: var(--first-color-light);
  border-radius: 0.25rem;
  margin-top: 1rem;
}

.nav__dropdown-content {
  display: grid;
  row-gap: 0.5rem;
  padding: 0.75rem 2.5rem 0.75rem 1.8rem;
}

.nav__dropdown-item {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.nav__dropdown-item:hover {
  color: var(--first-color);
}

.nav__dropdown-icon {
  margin-left: auto;
  transition: 3.4s;
}

/* Show dropdown collapse */
.nav__dropdown:hover {
  max-height: 100rem;
}

/* Rotate icon arrow */
.nav__dropdown:hover .nav__dropdown-icon {
  transform: rotate(180deg);
}

/*===== Show menu =====*/
.show-menu {
  left: 0;
}

/*===== Active link =====*/
.active {
  color: var(--first-color);
}

/* ========== MEDIA QUERIES ==========*/

@media screen and (min-width: 768px) {
  .body-std {
    padding: 1rem 3rem 0 6rem;
  }
  .header__std {
    padding: 0rem 3rem 0 6rem;
  }
  .header__container {
    height: calc(var(--header-height) + 0.5rem);
  }

  .header__toggle {
    display: none;
    float: right;
  }
  .header__logo {
    display: block;
  }
  .header__img {
    width: 40px;
    height: 40px;
    order: 1;
  }
  .nav__std {
    left: 0;
    padding: 1.2rem 1.5rem 0;
    width: 68px; /* Reduced navbar */
  }
  .nav__items {
    row-gap: 1.7rem;
  }
  .nav__icon {
    font-size: 1.3rem;
  }

  /* Element opacity */
  .nav__logo-name,
  .nav__name,
  .nav__subtitle,
  .nav__dropdown-icon {
    opacity: 0;
    transition: 0.3s;
  }

  /* Navbar expanded */
  .nav__std:hover {
    width: var(--nav-width);
  }

  /* Visible elements */
  .nav__std:hover .nav__logo-name {
    opacity: 1;
  }
  .nav__std:hover .nav__subtitle {
    opacity: 1;
  }
  .nav__std:hover .nav__name {
    opacity: 1;
  }
  .nav__std:hover .nav__dropdown-icon {
    opacity: 1;
  }
}
