:root {
  --primary: #1d466e;
  --secondary: #ffb632;
  --tersier: #303942;
  --text: #222222;
}

nav.navbar {
  height: 80px;
  width: 100%;
  padding: 10px 70px;
  position: fixed;
  z-index: 3;
  transition: 0.3s ease;
}

nav.navbar.active {
  background-color: white;
}

nav .container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

nav .container div {
  width: max-content;
  gap: 30px;
  display: flex;
}

nav .container div .button {
  display: flex;
  gap: 10px;
  position: relative;
}

nav .container #logo {
  height: 60px;
}

nav .container #ham {
  display: none;
  cursor: pointer;
}

nav .container ul {
  position: relative;
  width: max-content;
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  gap: 20px;
}

nav .container ul li {
  width: max-content;
  text-decoration: none;
  position: relative;
  color: var(--text);
  font-family: "poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

nav .container ul li img {
  height: 20px;
}

nav .container ul li a {
  text-decoration: none;
  position: relative;
  color: var(--text);
  font-family: "poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
}

nav .container ul li a:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  background-color: var(--text);
  height: 0px;
  border-radius: 2px;
  width: 100%;
  transition: 0.1s ease-in-out;
}

nav .container ul li a:hover::before {
  height: 2px;
}

nav .container ul .kurikulum {
  position: absolute;
  top: 100%;
  left: 28%;
  width: 260px;
  height: 0px;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 0 5px rgb(231, 231, 231);
  transition: height 0.3s;
  overflow: hidden;
}

nav .container ul .kurikulum.active {
  height: 120px;
}

nav .container ul .kurikulum ul {
  width: 100%;
  height: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}

nav .container ul .kurikulum ul li {
  height: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #dedede;
}

nav .container ul .kurikulum ul li a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}
nav .container ul ul li a:hover::before {
  height: 0px;
}

.container #btn {
  width: 140px;
  height: 40px;
  font-size: 16px;
  text-transform: uppercase;
  font-family: "poppins", sans-serif;
  background-color: var(--primary);
  text-decoration: none;
  color: #fff;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
  gap: 5px;
  cursor: pointer;
}

.container #btn img {
  height: 20px;
}

nav .container .bergabung {
  width: 200px;
  height: 0px;
  position: absolute;
  top: 60px;
  left: -30px;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 5px rgb(231, 231, 231);
  transition: height 0.3s;
}

nav .container .bergabung.active {
  height: 120px;
}

nav .container .bergabung ul {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: max-content;
  gap: 0;
}

nav .container .bergabung ul li {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #dedede;
}

nav .container .bergabung ul a {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav .container .bergabung ul a:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--text);
  height: 0px;
  border-radius: 2px;
  width: 100%;
}

nav .container .bergabung ul a:hover:before {
  height: 0;
}

.container #login {
  width: 130px;
  height: 40px;
  font-size: 16px;
  display: flex;
  gap: 5px;
  text-transform: uppercase;
  font-family: "poppins", sans-serif;
  background-color: var(--primary);
  text-decoration: none;
  color: #fff;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}

.container #login:hover {
  transform: scale(1.05);
}

nav .dropdown {
  display: none;
}

/* Responsive */

@media (max-width: 1200px) {
  nav.navbar {
    padding: 10px 40px;
  }

  nav .container #logo {
    height: 40px;
  }
}

@media (max-width: 1024px) {
  nav.navbar {
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 0 10px rgb(171, 171, 171);
  }

  nav .container div {
    display: none;
  }

  nav .container #logo {
    height: 50px;
  }

  nav .container #ham {
    display: block;
    height: 40px;
  }

  nav .container #ham.active {
    display: none;
  }

  nav .container #close {
    display: none;
    height: 40px;
  }

  nav .container #close.active {
    display: block;
  }

  nav .dropdown {
    display: block;
    position: absolute;
    top: 80px;
    right: 0;
    background-color: white;
    width: 60%;
    height: 0px;
    /* box-shadow: 0 0 10px rgb(231, 231, 231); */
    border-radius: 10px 0 10px 10px;
    overflow: hidden;
    transition: height 0.3s;
  }

  nav .dropdown.active {
    height: 345px;
  }

  nav .dropdown.ber {
    height: 460px;
  }

  nav .dropdown.kur {
    height: 460px;
  }

  nav .dropdown ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    width: 100%;
    height: auto;
  }

  nav .dropdown ul li {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    font-family: "poppins", sans-serif;
    color: #222222;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #dedede;
    cursor: pointer;
  }

  nav .dropdown ul li a {
    font-family: "poppins", sans-serif;
    color: #222222;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
  }

  nav .dropdown .button {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    padding-bottom: 5px;
    gap: 5px;
  }

  nav .dropdown .button a {
    position: relative;
    width: 100%;
    height: 35px;
    font-size: 14px;
    text-transform: uppercase;
    font-family: "poppins", sans-serif;
    background-color: var(--primary);
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
    gap: 5px;
  }

  nav .dropdown .bergabung {
    width: 90%;
    height: 0px;
    position: absolute;
    top: 100%;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 5px rgb(209, 209, 209);
    transition: height 0.3s;
  }

  nav .dropdown .bergabung.active {
    height: 105px;
  }

  nav .dropdown .bergabung ul {
    display: flex;
    flex-direction: column;
    height: max-content;
  }

  nav .dropdown .bergabung ul li {
    width: 100%;
    height: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #dedede;
  }

  nav .dropdown .bergabung ul li a {
    height: 35px;
    border-radius: 0;
    text-transform: none;
    background-color: white;
    color: #222222;
  }

  nav .dropdown .button a img {
    position: absolute;
    right: 10px;
    height: 20px;
  }

  nav .dropdown .button .kurikulum {
    position: absolute;
    top: 90px;
    width: 90%;
    height: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 0 5px rgb(209, 209, 209);
    transition: height 0.3s;
    overflow: hidden;
  }

  nav .dropdown .button .kurikulum.active {
    height: 105px;
  }

  nav .dropdown .button .kurikulum ul {
    width: 100%;
    height: max-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  nav .dropdown .button .kurikulum ul li {
    width: 100%;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #dedede;
  }

  nav .dropdown .button .kurikulum ul li a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 0;
    color: var(--text);
    text-transform: none;
  }
}
