/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3rem;
  --black-color: #fff;
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  --body-font: "Montserrat", sans-serif;
  --normal-font-size: 0.938rem;

  --font-regular: 400;
  --font-semi-bold: 600;

  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1500px;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 43px;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, 0.3);
  z-index: var(--z-fixed);
}


span.logo-text {
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary-color);
  transition: color 0.3s;
}

/*=============== NAV ===============*/

.nav {
  height: calc(var(--header-height) + 2rem);
}

.nav__logo,
.nav__burger,
.nav__close {
  color: var(--primary-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger,
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0;
  }

  .nav__list {
    background-color: var(--black-color);
    padding-top: 1rem;
    max-height: calc(100vh - 100px);
    overflow: auto;
  }
}

.nav__link {
  color: var(--primary-color);
  /* background-color: var(--black-color); */
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.nav__link:hover {
  background-color: var(--accent-color);
  color: var(--accent-color);
}

.nav__link a {
  color: inherit;
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform 0.4s;
}

.dropdown__link,
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  color: var(--primary-color);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 0.5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color 0.3s;
  margin-left: 1.25rem;
}

.dropdown__link i,
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover,
.dropdown__sublink:hover {
  opacity: 1;
  /* color: var(--accent-color); */
}

.dropdown__menu li {
  opacity: 1;
}

.dropdown__menu,
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.dropdown__menu {
  margin-top: 2px;
}

.dropdown__item input {
  display: none;
}

.dropdown__link a {
  color: inherit;
}

/* Show dropdown menu & submenu */
@media screen and (min-width: 990px) {

  .dropdown__item:hover .dropdown__menu,
  .dropdown__subitem:hover>.dropdown__submenu {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
  }

  /* Rotate dropdown icon */
  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }
}


/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: #fff;
  margin-left: 2rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {

  .nav__link {
    padding-inline: 1rem;
  }
}

.nav.nav-desktop {
  display: none;
}

/* For large devices */
@media screen and (min-width: 990px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav.nav-mobile {
    display: none;
  }

  .nav.nav-desktop {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 1rem;
  }

  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: 0.25rem;
  }

  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item,
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu,
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, top 0.3s;
    width: 300px;
  }

  .dropdown__link,
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: 0.5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 100%;
    pointer-events: initial;
    transition: top 0.3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover>.dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top 0.3s;
  }
}

.button {
  position: relative;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  padding-block: 0.5rem;
  padding-inline: 1.25rem;
  background-color: rgb(0 107 179);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffff;
  gap: 10px;
  font-weight: bold;
  border: 3px solid #ffffff4d;
  outline: none;
  overflow: hidden;
  font-size: 15px;
  cursor: pointer;
}

.icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease-in-out;
}

.button:hover {
  transform: scale(1.05);
  border-color: #fff9;
}

.button:hover .icon {
  transform: translate(4px);
}

.button:hover::before {
  animation: shine 1.5s ease-out infinite;
}

.button::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0) 70%);
  top: 0;
  left: -100px;
  opacity: 0.6;
}

@keyframes shine {
  0% {
    left: -100px;
  }

  60% {
    left: 100%;
  }

  to {
    left: 100%;
  }
}


@media screen and (max-width: 990px) {
  span.logo-text {
    font-size: 1.1rem;
  }
.mobile-navbar-view {
  display: block;
}
  .nav {
    height: auto;
    padding-block: 16px;
  }

  .header {
    top: 0;
  }

  .nav__menu {
    position: relative;
    display: none;
  }

  .show-menu {
    top: 20px;
    border-top: 1px solid #e9e9e9;
    display: block;
  }

  .nav__link,
  .dropdown__link,
  .dropdown__sublink {
    padding-top: 15px;
  }

  .dropdown__menu,
  .dropdown__submenu {
    max-height: 0;
    transition: max-height 0.4s ease-out;
  }

  .dropdown__menu {
    margin-left: 20px;
  }

  .dropdown__item input:checked~.dropdown__menu,
  .dropdown__submenu.show-menu {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
    border: none;
  }

 

  .dropdown__link:has(+.dropdown__submenu.show-menu) .dropdown__arrow {
    transform: rotate(180deg);
  }

  .dropdown__item input:checked+label .dropdown__arrow {
    transform: rotate(180deg);
  }

  .dropdown__item input:checked~.dropdown__menu {
    opacity: 1;
    top: 100%;
    pointer-events: initial;
  }

  .nav__link:hover {
    color: var(--primary-color);
    background-color: transparent;
  }

  .dropdown__item input:checked+label .dropdown__arrow {
    transform: rotate(180deg);
  }

  .dropdown__item input+label,
  .dropdown__link {
    padding-inline: 0px;
    padding-bottom: 10px;
    margin-inline: 20px;
    border-bottom: 0px;
    border-bottom: 0px solid var(--primary-color);
  }

  .dropdown__item input:checked+label {
    border-bottom: 2px solid var(--primary-color);
  }
}

@media screen and (min-width: 990px) {
  .nav_menu-childs {
    display: none;
  }

  .nav_menu-item.has-child:hover .nav_menu-childs {
    display: block;
  }

  .nav_menu-item.has-child:hover .dropdown__arrow {
    transform: rotate(-180deg);
  }

  .nav_menu-childs {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 100%;
    padding-block: 20px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.25);
    background-color: white;
    border-top: 1px solid #ccc;
  }

  .nav__menu,
  .nav_menu-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }


  .nav_menu-item.has-child:hover>.nav__link {
    color: var(--accent-color);
  }

  .nav_menu-childs-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }

  .nav_menu-childs-inner * {
    margin: 0px !important;
  }

  .nav_menu-childs-inner a {
    width: min-content;
  }

  .nav_menu-childs-inner .nav-submenu-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 9px !important;
  }

  .nav_menu-childs-inner li,
  .nav_menu-childs-inner .nav-submenu {
    margin-block: 10px !important;
  }

  .nav_menu-childs-inner ul {
    margin-top: 10px !important;
  }

  .nav-menu-col .nav-submenu p {
    margin-top: 30px !important;
  }

  .nav-menu-col .nav-submenu:first-child p {
    margin-top: 0px !important;
  }
}

