* {
  margin: 0px;
  padding: 0px;
}

body {
  /* transition: background-color 1s ease-in-out; */
  /*background-color: #e5d0ac;*/
  width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
  background-color: #fef9e1;
  /* position: fixed; */
  display: none;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #e5d0ac;
}

/* navbar */

nav {
  display: flex;
  background-color: #ffffff;
  justify-content: space-between;
  padding: 20px 0px;
  letter-spacing: 1px;
  height: 10px;
  width: 100%;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 999;
}

.logo {
  display: flex;
  width: 50%;
  height: 45px;
  align-items: center;
  position: relative;
  left: 10px;
}

.logo img {
  width: 30px;
  padding: 0px 18px;
}

.logo .nama {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0px 5px;
  font-weight: 600;
  font-size: 16px;
  color: #a31d1d;
  font-family: Helvetica, sans-serif;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: space-evenly;
  width: 50%;
  box-sizing: border-box;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #a31d1d;
  font-weight: 600;
  font-family: Arial;
  font-size: 13px;
  padding: 10px;
  display: inline-block;
}

nav ul li span {
  width: 100%;
  height: 3px;
  position: absolute;
  bottom: 4px;
  left: 0;
  opacity: 0;
  background-color: #6d2323;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  pointer-events: none;
}

nav ul li a:hover span,
nav ul li.active a span {
  transform: scaleX(1);
  opacity: 1;
}

/* ikon menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  height: 20px;
  justify-content: space-between;
  position: relative;
  right: 10px;
}

.menu-toggle input {
  position: absolute;
  width: 40px;
  height: 28px;
  left: -6px;
  top: -4px;
  opacity: 0;
  cursor: pointer;
  z-index: 15;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: black;
  border-radius: 3px;
  transition: all 0.5s;
}

/* humberger menu animation */

/* humberger pertama berputar 45 derajat */

/*input dihitung sebagai anak pertama,sehingga span pertama menjadi anak kedua*/
.menu-toggle span:nth-child(2) {
  transform-origin: 0 100%;
}

.menu-toggle span:nth-child(4) {
  transform-origin: 0 100%;
}

/* ketika input diceklis maka ia akan mencari span pertama yang merupakan anak kedua */
.menu-toggle input:checked ~ span:nth-child(2) {
  transform: rotate(50deg) translate(-1px, -3px);
}

.menu-toggle input:checked ~ span:nth-child(3) {
  transform: scale(0);
  opacity: 0;
}

.menu-toggle input:checked ~ span:nth-child(4) {
  transform: rotate(-50deg) translate(0px, 4px);
}

/* main */
main {
  background-color: #e5d0ac;
  width: 100%;
  height: 20px;
  margin-top: 90px;
  margin-bottom: 50px;
  text-align: center;
  padding: 30px 0;
  font-family: Helvetica, sans-serif;
  font-weight: 600;
  font-size: 25px;
  color: black;
}

/* section */
section {
  width: 100%;
  background-color: #fef9e1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  box-sizing: border-box;
  gap: 1rem;
  padding: 4rem 1.7rem;
  padding-bottom: 0.5rem;
  align-items: center;
  justify-content: center;
}

section a {
  width: 23%;
  height: 500px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-decoration: none;
}

section a .cover:hover img {
  transform: scale(1.2);
}

section a .cover {
  overflow: hidden;
}

section a .cover img {
  transition: transform 0.3s ease;
  width: 100%;
}

section a .subjudul h3,
section a .subjudul h4,
section a .subjudul p {
  padding: 0.4rem;
  align-items: justify;
  color: black;
}

section a .subjudul h4 {
  color: #a31d1d;
}

.tombol {
  width: 100%;
  /* gap: 50px; */
  text-align: center;
  background-color: #ffffff;
  padding-bottom: 0.8rem;
}

.tombol a {
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  color: #a31d1d;
  border: none;
  padding: 5px;
  text-decoration: none;
}

.tombol .on {
  text-decoration: underline;
  color: blue;
}

.tombol button:hover {
  background-color: #e5d0ac;
}

.tombol button:nth-child(2) {
  text-decoration: underline;
}

/* footer */
.kontak {
  display: flex;
  background-color: #ffffff;
  flex-direction: column;
  height: auto;
  position: relative;
  /* z-index: -1; */
}

.kabinet {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: Helvetica, sans-serif;
}

.kabinet img {
  width: 3%;
  padding: 10px;
}

.kontak h3 {
  font-size: 18px;
  padding: 10px;
}

.kontak ul {
  padding-left: 10px;
  list-style: none;
}

.kontak ul li {
  padding-bottom: 5px;
}

.kontak ul li a {
  text-decoration: none;
  color: red;
}

.kontak p {
  width: inherit;
  height: 20px;
  margin: auto;
  font-size: 16px;
  padding: 20px;
}

@media screen and (min-width: 577px) and (max-width: 991px) {
  nav ul {
    width: 60%;
  }

  .logo {
    width: 40%;
  }
  main {
    font-size: 20px;
    padding: 25px 0;
  }

  section {
    flex-direction: row;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 1rem;
  }

  section a {
    width: 45%; /* dua kolom */
    height: auto; /* biar fleksibel tingginya */
  }

  section a .subjudul h3,
  section a .subjudul h4,
  section a .subjudul p {
    font-size: 0.9rem;
  }

  .tombol {
    padding-bottom: 1rem;
  }

  .tombol a {
    font-size: 1.1rem;
    padding: 8px;
  }
}

@media screen and (max-width: 576px) {
  .logo {
    width: 100%;
  }

  nav ul {
    position: absolute;
    flex-direction: column;
    top: 20px;
    left: 0px;
    width: 100%;
    height: 220px;
    background-color: #ffff;
    z-index: 10;
    transform: translateY(-300px);
    transition: all 0.5s;
  }

  nav ul li {
    padding: 10.5px;
    text-align: center;
  }

  body .blur {
    transition: background-color 0.5s ease-in-out;
    opacity: 0.8;
  }

  nav ul.slide {
    transform: translateY(29px);
    background-color: #ffff;
    z-index: 10;
  }

  .menu-toggle {
    display: flex;
    z-index: 5;
  }

  /* main */
  main {
    font-size: 18px;
    padding: 20px 0;
    margin-top: 60px;
    margin-bottom: 30px;
    height: auto;
  }

  section {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.2rem;
  }

  section a {
    width: 90%;
    height: auto;
  }

  section a .cover img {
    height: auto;
  }

  section a .subjudul h3,
  section a .subjudul h4,
  section a .subjudul p {
    font-size: 16px;
    padding: 0.3rem;
  }

  .tombol {
    padding: 1rem 0;
  }

  .tombol a {
    font-size: 1.1rem;
    width: 35px;
    height: 35px;
  }

  /* FOOTER - KONTAK */
  .kabinet img {
    width: 8%;
  }

  .kontak {
    height: auto;
  }

  .kontak p {
    padding: 20px;
  }
}
