* {
  margin: 0px;
  padding: 0px;
}

body {
  transition: background-color 1s ease-in-out;
  height: auto;
  width: 100%;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
  display: none;
}

/* navbar */

nav {
  display: flex;
  background-color: #ffff;
  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 ========== */

main {
  position: relative;
  z-index: -1;
  font-family: 'Times New Roman', Times, serif;
}

/* Judul */
.judul {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  padding: 0px 50px;
  background-image: url(../img/foto\ bersama.JPG);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  color: white;
  font-size: 40px;
  height: 600px;
}

.judul h2 {
  margin-top: 10%;
}

/* BEM Section */
.bem {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 250px;
  padding-bottom: 10px;
}

.bem img {
  position: absolute;
  width: 20%;
  background-color: black;
  border: 8px solid white;
  border-radius: 5%;
  padding: 13px;
  left: 90px;
}

.bem article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 50%;
  height: 230px;
  margin-right: 150px;
}

/* Pijar Section */
.pijar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 350px;
  background-color: #ffe0e0;
}

.pijar img {
  position: absolute;
  width: 20%;
  background-color: black;
  border: 8px solid white;
  border-radius: 5%;
  padding: 13px;
  right: 90px;
  top: 900px;
}

.pijar article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 50%;
  height: 230px;
  margin-left: 150px;
}

/* Visi & Program Section */
.visi,
.program {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 350px;
  width: 100%;
  background-color: #ffe0e0;
  flex-direction: row;
  box-sizing: border-box;
}

.foto {
  width: 530px;
  height: 370px;
  overflow: hidden;
  box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.308);
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visi article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 30%;
  margin-right: 150px;
}

.program article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: 50%;
}

.program ol {
  padding: 5px;
  margin: auto;
  width: 90%;
}

.program ol li {
  padding: 5px;
  font-size: 18px;
  text-align: justify;
}

.program ol li span {
  display: flex;
  flex-direction: column;
}

/* Misi Section */
.misi {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 350px;
  background-color: #ffe0e0;
}

.misi article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 40%;
  height: 230px;
}

.misi ol li {
  padding: 5px;
  font-size: 18px;
}

/* Text Elements in Main */
h3 {
  font-size: 30px;
  padding-bottom: 10px;
}

p {
  font-size: 20px;
  text-align: justify;
}

hr {
  height: 90px;
  background: white;
  width: 100%;
  border: none;
}

.dinas {
  text-align: center;
  font-size: 23px;
  margin-top: 2rem;
}

.container-tiga {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow-x: auto;
}

.card {
  margin: 10px;
  border: 2px solid #a31d1d;
  border-radius: 15px;
  width: 230px;
  height: 290px;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;
}

.card .header {
  height: 230px;
  margin-top: 10px;
  overflow: hidden;
}

.card .header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:hover {
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.5);
}

.card .content {
  padding: 10px;
  text-align: center;
}

.card .content h3 {
  font-size: 18px;
  color: black;
}

/* 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;
}

/* responsive */
/* ukuran tablet */
@media screen and (min-width: 577px) and (max-width: 991px) {
  nav ul {
    width: 60%;
  }

  .logo {
    width: 40%;
  }

  main {
    overflow-x: hidden;
  }

  .judul {
    height: 450px;
    font-size: 30px;
  }

  .judul h2 {
    margin-top: 17%;
  }

  .bem,
  .pijar,
  .visi,
  .misi,
  .program {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 30px 30px;
    gap: 20px;
    position: relative;
  }

  .misi {
    flex-direction: column-reverse;
  }

  .bem img,
  .pijar img {
    position: static;
    width: 55%;
    margin-bottom: 20px;
  }

  .visi img,
  .misi img,
  .program img {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }

  .bem article,
  .pijar article,
  .visi article,
  .misi article,
  .program article {
    width: 90%;
    margin: 0;
    height: inherit;
  }

  .program ol,
  .misi ol {
    padding-left: 15px;
  }

  .program ol li,
  .misi ol li {
    font-size: 21px;
    text-align: justify;
  }

  h3 {
    font-size: 30px;
    text-align: center;
  }

  p {
    font-size: 23px;
  }

  .kontak h3 {
    text-align: left;
  }
}

/* ukuran mobile */
@media (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;
  }

  /* footer */
  .kabinet img {
    width: 8%;
  }

  .kontak p {
    padding: 20px;
  }

  /* main */
  main {
    overflow-x: hidden;
  }

  .judul {
    height: 230px;
    padding: 10px 5px;
    font-size: 22px;
    text-align: center;
  }

  .judul h2 {
    margin-top: 25%;
    font-size: 20px;
  }
  .bem,
  .pijar,
  .visi,
  .misi,
  .program {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 20px 15px;
    text-align: center;
    position: relative;
  }

  .misi {
    flex-direction: column-reverse;
  }

  .bem img,
  .pijar img {
    position: static;
    width: 60%;
    margin-bottom: 20px;
  }

  .foto {
    width: 100%;
  }

  .visi .foto img,
  .misi .foto img,
  .program .foto img {
    position: static;
    width: 100%;
    margin-bottom: 20px;
  }

  .bem article,
  .pijar article,
  .visi article,
  .misi article,
  .program article {
    width: 100%;
    height: inherit;
    margin: 0;
    padding: 0;
  }

  .visi article,
  .misi article,
  .program article {
    margin-top: 10px;
  }

  .program ol,
  .misi ol {
    padding: 0 15px;
  }

  .program ol li,
  .misi ol li {
    font-size: 16px;
    text-align: left;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 17px;
  }
}
