/* HEADER */
header {
  position: fixed;
  z-index: var(--header-zIndex, 10);

  height: var(--header-height, 66px);
  width: 100vw;
  padding: 0 var(--padding-horizontal, 161px);

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 64px;

  background-color: var(--body-background);
  transition: all 0.15s ease-out;
}
@media (min-width: 768px) {
  header {
    background-color: var(--surface-color, #eceff1);
  }
}
@media (min-width: 1024px) {
  header {
    padding: 0 var(--padding-horizontal, 161px);
  }
}

/* HAMBUGER STYLE */
.hamburger {
  width: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;

  background-color: var(--hamburger-color, #1e1e1e);
  opacity: 0.8;
}

.header__logo {
  position: static;
}

/* Fix logo that is not vertically centered */
.header__logo img {
  transform: translateY(8px);
}

.language {
  display: none;
}

.language.home-page {
  display: block;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .header__logo {
    position: static;
  }

  .language {
    display: block;
  }
}

@media (min-width: 1024px) {
  .header__logo {
    position: absolute;
    left: 50px;
  }
}

.navigation {
  flex: 1;
  display: none;
}

@media (min-width: 768px) {
  .navigation {
    display: block;
    height: 100%;
  }
}

.navigation__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  transition: 0.5s ease-in;
  height: 100%;

  font-size: 1.25rem;
}
.navigation__list li {
  height: 100%;
  display: flex;
  align-items: center;
}
.navigation__list li.active {
  position: relative;
}

.navigation__list li a {
  font-weight: 800;
}

.navigation__list li.active a {
  font-weight: 900;
}
.navigation__list li.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 110%;
  background-color: var(--red);
  transition: all 0.25s ease-in;
}

@media (min-width: 1024px) {
  .navigation__list {
    font-size: 1.5rem;
    gap: 64px;
  }
}

a {
  font-weight: bold;
  text-decoration: none;
  text-align: center;

  color: var(--text-color, #111111cc);
}

button {
  padding: 16px 16px;

  cursor: pointer;
  font-size: large;
}

/* HEADER MOBILE */
.navigation__wrapper--mobile {
  position: fixed;
  top: 0;
  left: 0;
  z-index: calc(var(--header-zIndex, 10) + 1);

  height: 100vh;
  width: 100vw;

  display: block;
  transform: scale(0);

  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
}

.navigation--mobile {
  width: 280px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 11px;
  border-bottom-left-radius: 11px;
  padding: 16px 0 16px 32px;

  float: right;

  transform: translateX(100%);
  transition: 0.5s ease-in-out;

  opacity: 1;
  background-color: var(--body-background, #fff);
}

.navigation__wrapper--mobile.active {
  transform: scale(1);
  opacity: 1;
}

.navigation__wrapper--mobile.active .navigation--mobile {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .navigation__wrapper--mobile {
    display: none;
  }
}

.navigation__logo--mobile {
  margin-bottom: 16px;
  border-bottom: solid 1px var(--border-color);
  padding: 0;
}

.navigation__list--mobile {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.navigation__list--mobile li > a {
  font-size: 18px;
}
.navigation__list--mobile li.active > a {
  font-weight: 900;
  color: var(--red);
}

.navigation__submenu--mobile {
  margin-top: 12px;
  padding-left: 12px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}
.navigation__submenu--mobile li a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 15px;
}

/* #region Style Switch THEME*/
#switch-theme-desktop {
  display: none;
}
@media (min-width: 768px) {
  #switch-theme-desktop {
    display: inline-block;
  }
}
#switch-theme-mobile {
  display: inline-block;
}
@media (min-width: 768px) {
  #switch-theme-mobile {
    display: none;
  }
}

.switch-theme {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 32px;
}
.switch-theme input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 36px;

  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  /* background-color: white; */
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
  background-color: var(--black1);
}

.switch-theme input:checked + .switch-slider {
  background-color: var(--body-background);
}
#switch-theme-mobile.switch-theme input:checked + .switch-slider {
  background-color: var(--black1);
}

.switch-theme input:focus + .switch-slider {
  box-shadow: 0 0 1px var(--black1);
}

.switch-theme input:checked + .switch-slider:before {
  -webkit-transform: translateX(32px);
  -ms-transform: translateX(32px);
  transform: translateX(32px);
  background-color: var(--white);
}
/* ICON */
.switch-slider .icon {
  font-size: 18px;
  padding-top: 2px;
}
.switch-slider .icon .fa-moon {
  color: var(--white);
}
.switch-slider .icon .fa-sun {
  color: var(--black1);
}
/* #endregion */
