@import url('https://fonts.googleapis.com/css2?family=Fasthand&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
}

body {
  background: white;
}

nav {
  background: linear-gradient(to right, #60bdf3, #c32adf);
  display: flex;
  justify-content: space-between;
  border-bottom: 3px solid white;
  position: sticky;
  top: 0;
  z-index: 2;
}

nav .logo {
  padding-left: 2em;
  margin-top: 0.6em;
}

nav ul {
  display: flex;
  list-style: none;
  margin-right: 40px;
  position: relative;
}

nav ul li {
  margin: 0 5px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  line-height: 70px;
  font-size: 18px;
  padding: 8px 15px;
}

nav ul li a:hover {
  color: cyan;
  border-radius: 6px;
  box-shadow: 0 0 5px #33ffff, 0 0 5px #66ffff;
}

nav ul ul {
  margin-top: 0.3em;
  position: absolute;
  display: flex;
  flex-direction: column;
  border-bottom-right-radius: 9px;
  background: rgba(0, 0, 0, 0.596);
  color: white;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.26);
  opacity: 0;
  visibility: hidden;
  top: 90px;
  transition: top .3s;
}

nav ul li:hover>ul {
  z-index: 2;
  top: 70px;
  opacity: 1;
  visibility: visible;
}

nav ul ul li {
  position: relative;
}

/* nav ul ul li a {
  color: black;
} */

/* --------- CSS Mobile ---------------- */
nav .fas {
  display: none;
}

@media all and (max-width: 968px) {
  nav ul {
    margin-right: 0px;
    flex-wrap: wrap;
    justify-content: left;
  }
}

@media only screen and (max-width: 600px) {
  nav .fas {
    display: block;
    line-height: 70px;
    margin-right: 2em;
    font-size: 25px;
  }

  nav ul {
    background: linear-gradient(to bottom, #c42adf, #60bdf3);
    position: fixed;
    flex-direction: column;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    margin-right: 0;
    padding-top: 50px;
    z-index: 2;
    transition: right 0.5s;
  }

  nav ul ul,
  nav ul li .fa-solid {
    display: none;
  }

  nav ul .fas {
    position: absolute;
    top: 5px;
    left: 25px;
    cursor: pointer;
  }
}

/* WAVE */
.header {
  position: relative;
  text-align: center;
  background: linear-gradient(to right, #60bdf3, #c32adf);
  color: white;
}


.inner-header {
  height: 65vh;
  width: 100%;
  margin: 0;
  padding: 0;
  padding: 2em 1.2em;
}

.inner-header h2 {
  font-family: 'fastHand';
}

.inner-header button {
  margin-top: 5px;
  padding: 2px 20px;
  font-size: 1em;
  background: #60bdf3;
  border-radius: 5px;
  border: 0px;
  box-shadow: 2px 3px black;
  cursor: pointer;
}

.inner-header button a {
  text-decoration: none;
  color: black;
}

.inner-header button:hover {
  padding: 3px 21px;
  font-size: 1.3em;
  background: #fddc47;
}


.flex {
  /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px;
  /*Fix for safari gap*/
  min-height: 100px;
  max-height: 150px;
}

.content {
  position: relative;
  height: 20vh;
  text-align: center;
  background-color: white;
}

/* Animation */

.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }

  .content {
    height: 30vh;
  }

  h1 {
    font-size: 24px;
  }
}


/* MAIN */
main {
  margin-top: 2em;
  padding: 2em 1.2em;
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

main .container {
  width: 28vmin;
  height: 28vmin;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 1em 0;
  position: relative;
  font-size: 16px;
  border-radius: 0.5em;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.26);
  border-bottom: 8px solid #10a79a;
}

main i {
  color: #10a79a;
  font-size: 2.5em;
  text-align: center;
}

main span.num {
  color: black;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 3em;
}

main span.text {
  color: grey;
  font-size: 1em;
  text-align: center;
  pad: 0.7em 0;
  font-weight: 400;
  line-height: 0;
}


/* SECTION */
section {
  margin-top: 2em;
  padding: 2em 1.2em;
}

section h1 {
  text-align: center;
}

.bg-visimisi {
  background: linear-gradient(to right, #60bdf3d3, #c42adfc4);
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 20px;
  text-align: center;
}

.misiflex {
  padding: 1.2em 0;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.26);
  display: flex;
}

.misiflex i {
  font-size: 2.3em;
  margin-left: 10px;
  max-width: 20px;
}

.misiflex p {
  margin-left: 40px;
}

@media screen and (max-width: 1024px) {
  main .container {
    height: 26vmin;
    font-size: 12px;
  }
}

@media screen and (max-width: 768px) {
  main {
    flex-wrap: wrap;
    gap: 30px;
  }

  main .container {
    width: calc(50% - 40px);
    height: 30vmin;
    font-size: 14px;
  }
  .bg-visimisi {
    font-size: 16px;
  }

  .misiflex i{
    text-align: center;
    margin-top: 15px;
  }
}

@media screen and (max-width: 480px) {
  main {
    gap: 15px;
  }
  main .container {
    width: 100%;
    height: 25vmin;
    font-size: 8px;
  }
}

/* Ganti warna latar belakang */
hgroup {
  background-color: #f7f7f7;
  padding: 2em 1.2em;
  text-align: center;
}

/* Ganti warna tulisan */
hgroup h2 {
  text-align: center;
  margin-bottom: 3px;
}

hgroup .moreTulisan a {
  text-decoration: none;
  color: black;
  background: #10a79a;
  padding: 0 1.2em;
  text-align: center;
  border-radius: 9px;
  margin-top: 1em;
}

/* Ganti warna tombol prev/next */
.prev, .next {
  color: #333;
  background-color: #f7f7f7;
  border: none;
  cursor: pointer;
}

/* Ganti warna tombol prev/next ketika dihover */
.prev:hover, .next:hover {
  color: #fff;
  background-color: #333;
}

/* Ganti ukuran dan posisi tombol prev/next */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  padding: 8px 16px;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Animasi untuk tombol prev/next */
.prev, .next {
  transition: background-color 0.3s ease;
}

/* Ganti tampilan untuk kontainer slideshow */
.slideshow-container {
  position: relative;
  margin-top: 1rem;
}

/* Ganti tampilan untuk slide gambar */
.mySlides {
  display: none;
}

/* Ganti tampilan untuk gambar */
.mySlides img {
  width: 100%;
  height: auto;
}

.mySlides .judul-berita {
  color: black;
  font-weight: bold;
  text-decoration: none;
}

/* Animasi untuk slideshow */
.mySlides {
  animation: fade 1s;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* FOOTER */
footer {
  display: flex;
  flex-flow: row wrap;
  padding: 50px;
  color: white;
  background: linear-gradient(to right, #60bdf3d3, #c42adfc4);
}

footer > * {
  flex: 1 100%;
}

.footer-left {
  margin-right: 1.25em;
  margin-bottom: 2em;
}

.footer-left h2 {
  color: black;
}

.footer-right h2 {
  color: black;
  font-weight: bold;
  font-size: 18px;

}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer li {
  line-height: 2em;
}

footer a {
  text-decoration: none;
}

.footer-right{
  display: flex;
  flex-flow: row wrap;
}

.footer-right > *{
  flex: 1 50%;
  margin-right: 1.25em;
}

footer .box a {
  color: #333;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  color: black;
}

.footer-bottom a {
  color: white;
  font-weight: bold;
}

.footer-left p {
  padding-right: 20%;
  color: black;
}

footer .socials a{
  background: rgba(51, 51, 51, 0.479);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-block;
  margin-right: 10px;
}

footer .socials a i {
  color: white;
  padding: 10px 10px;
  font-size: 20px;
}

@media screen and (min-width: 600px) {
  .footer-right > *{
    flex: 1;
  }
  .footer-left {
    flex: 1 0px;
  }
  .footer-right {
    flex: 2 0px;
  }
  .footer-bottom {
    font-size: 16px;
  }
}

@media screen and (max-width: 600px) {
  footer {
    padding: 15px;
  }
  .footer-left {
    text-align: center;
    margin: 0 0;
  }
  .footer-left p {
    padding-right: 0%;
  }
  .footer-bottom {
    font-size: 12px;
  }
}