@font-face {
  font-family: 'poppins';
  src: url(font/Poppins-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'poppins extra';
  src: url(font/Poppins-ExtraBold.ttf) format('truetype');
}

@font-face {
  font-family: 'poppins medium';
  src: url(font/Poppins-Medium.ttf) format('truetype');
}

* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
  font-family: 'poppins';
}

body {
  width: 100%;
  overflow: hidden;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

nav {
  width: 100%;
  height: 70px;
  background-color: transparent;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 30px;
  position: sticky;
  z-index: 99;
  top: 0px;
  box-shadow: inset 0px 50px 15px -8px rgba(0, 0, 0, 0.423);
}

nav .logo {
  width: 23%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

nav .logo img {
  height: 100%;
}

nav .logo .judul {
  display: flex;
  flex-direction: column;
}

nav ul {
  position: relative;
  width: 60%;
  height: 70%;
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  background-color: transparent;
}

nav ul li a {
  text-decoration: none;
  color: #ffffffd8;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: clamp(0.5px, 0.2vw, 1px);
}

nav ul li a:hover {
  color: #ffff;
}

nav ul li.active a {
  font-weight: bold;
  color: #ffff;
}

nav .menuToggle {
  position: relative;
  flex-direction: column;
  height: 20px;
  right: 10px;
  display: none;
  justify-content: space-between;
}

nav .menuToggle input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

nav .menuToggle span {
  display: block;
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background-color: white;
  margin-bottom: 3px;
  transition: all 0.4s;
  transform-origin: center;
}

.menuToggle input:checked ~ span:nth-child(2) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menuToggle input:checked ~ span:nth-child(4) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.menuToggle input:checked ~ span:nth-child(3) {
  opacity: 0;
  transform: scale(0);
}

.overlay {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0px;
  left: 0px;
  background-color: rgba(0, 0, 0, 0.423);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.container-satu {
  width: 100%;
  height: 630px;
  position: relative;
  top: -5rem;
}

.container-satu .slider {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.slider .selamat-datang {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(255, 250, 116, 0.22);
  color: white;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
}

.slider .selamat-datang h3 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-family: 'poppins extra';
  text-shadow: 0px 5px 4px rgba(0, 0, 0, 0.922);
}

.slider .selamat-datang h5 {
  font-family: 'poppins medium';
  font-size: clamp(0.9rem, 3vw, 1.2rem);
}

.slider img {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
}

.container-satu .pembukaan {
  margin: auto;
  width: 100%;
  height: 11%;
  position: relative;
  top: -10%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 10%,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.3),
    rgba(0, 0, 0, 0)
  );
  color: #fff57e;
  text-align: center;
  text-shadow: 0px 5px 15px black;
  font-weight: bold;
  font-size: clamp(1rem, 3vw, 1.8rem);
}

.container-dua {
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  overflow: hidden;
  gap: 1rem;
}

.container-dua .foto-ketua {
  width: 25%;
  height: 80%;
  margin-left: 5rem;
  background-color: #fff57e;
  border-radius: 10px;
}

.container-dua .foto-ketua img {
  position: relative;
  height: inherit;
  left: 0px;
  top: 15%;
  bottom: 0px;
  transform: scale(1.5);
}

.container-dua .kata-sambutan {
  width: 80%;
  height: 100%;
  display: block;
  padding-top: 2.7rem;
  position: relative;
}

.container-dua .kata-sambutan p {
  font-style: italic;
  font-size: clamp(0.2rem, 2.3vw, 1rem);
  margin-bottom: 8px;
  padding: 2rem 5rem 0px 3rem;
}

.container-dua .kata-sambutan h2 {
  padding-left: 3rem;
  font-size: clamp(0.5rem, 3vw, 1.4rem);
}

.container-dua .kata-sambutan svg {
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 25%;
}

.container-tiga,
.container-empat {
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
  background-color: #fff57e;
  display: flex;
  flex-direction: column;
}

.container-tiga .berita,
.container-empat .alumni {
  width: 25%;
  height: 4rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  color: #1b6752;
  font-size: clamp(0.7rem, 2.5vw, 1.2rem);
}

.container-tiga .berita img,
.container-empat .alumni img {
  height: 100%;
}

.container-tiga ul,
.container-empat ul {
  width: 100%;
  list-style: none;
  color: black;
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 2rem;
  padding: 12px 15px;
}

.container-tiga ul li {
  width: 20%;
  height: 25rem;
  border: 5px solid #ffff;
  border-radius: 10px;
  overflow: hidden;
}

.container-tiga ul li a,
.container-empat ul li {
  width: 100%;
  height: inherit;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.container-tiga ul li a img,
.container-empat ul li .foto-alumni img {
  width: 100%;
  height: 55%;
  object-fit: cover;
  object-position: center;
}

.container-tiga ul li a .cover-berita {
  height: 45%;
  padding: 5px;
  background-color: #ffff;
  color: black;
}
.container-tiga ul li a .cover-berita h3 {
  font-size: 1rem; /* ★ DIPERKECIL */
  line-height: 1.3;
}

.container-tiga ul li a .cover-berita p {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.423); /* ★ DIPERKECIL */
}

.container-tiga ul li a .cover-berita h5 {
  font-size: 0.9rem; /* ★ DIPERKECIL */
  line-height: 1.35;
}

.container-tiga ul li a:hover .cover-berita h3 {
  color: red;
}

.container-tiga .view-all,
.container-empat .view-all {
  display: flex;
  justify-content: end;
  padding-right: 1rem;
  padding-bottom: 1.5rem;
}

.container-tiga .view-all a,
.container-empat .view-all a {
  padding: 7px;
  background-color: transparent;
  text-decoration: none;
  color: #1b6752;
  border: 5px solid #1b6752;
  border-radius: 2rem;
  font-weight: bold;
  font-size: clamp(0.6rem, 2vw, 1rem);
  transition: color 0.5s;
}

.container-tiga .view-all a:hover,
.container-empat .view-all a:hover {
  background-color: #1b6752;
  color: #ffff;
  border: 5px solid #ffff;
}

.container-empat {
  background-color: #ffff;
}

.container-empat ul {
  width: 85%;
  margin: auto;
}

.container-empat ul li {
  width: 25%;
  height: 20rem;
  gap: 1rem;
}

.container-empat ul li .keterangan {
  text-align: center;
}

.container-empat ul li .keterangan h2 {
  font-size: clamp(0.4rem, 2.5vw, 1.1rem);
}

.container-empat ul li .keterangan h4 {
  font-size: clamp(0.3rem, 2vw, 0.95rem);
}

.container-empat ul li .keterangan h5 {
  font-size: clamp(0.3rem, 2vw, 0.95rem);
}

.container-empat ul li .foto-alumni {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.container-empat ul li .foto-alumni img {
  position: relative;
  top: 0.7rem;
  height: 100%;
  object-fit: contain;
}

.container-empat ul li .foto-alumni .circle-bg {
  width: 170px;
  height: 170px;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -120%);
  background-color: #fff57e;
  border-radius: 50%;
}

footer {
  width: 100%;
  height: 25rem;
  background-color: #fff57e;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  box-sizing: border-box;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  font-size: clamp(0.65rem, 2vw, 1rem);
}

footer .logo {
  width: 100%;
  height: 13%;
  display: flex;
  margin-bottom: 2rem;
  flex-direction: row;
}

footer .logo img {
  height: 100%;
  margin-right: 0.8rem;
}

footer h3 {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
}

footer a,
footer p,
footer li {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
}

footer hr {
  width: 100%;
  border-bottom: 2px solid black;
  margin-bottom: 1rem;
}

footer .bawah {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

footer .kiri {
  width: 60%;
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 5rem;
}

footer .kiri .alamat,
footer .kiri .kontak {
  width: 35%;
}

footer .kiri .kontak ul {
  list-style-type: none;
}

footer .kiri .kontak a {
  text-decoration: none;
  color: #1b6752;
}

footer .kanan {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

footer .kanan ul {
  width: 50%;
  display: flex;
  flex-direction: row;
  list-style-type: none;
  gap: 10px;
}

footer .kanan ul li {
  width: 60%;
}

footer .kanan ul li img {
  width: 100%;
}

/* .container-satu {
  height: 65vh;
  min-height: 630px;
  max-height: 750px;
} */

/* ukuran tab */
@media screen and (min-width: 577px) and (max-width: 992px) {
  /* ===== NAV ===== */
  nav {
    height: 65px;
    padding: 0 20px;
  }

  nav .logo {
    width: 30%;
  }

  nav .logo .judul h4 {
    font-size: 0.85rem;
  }

  nav ul {
    width: 55%;
  }

  nav ul li a {
    font-size: 0.8rem;
  }

  /* ===== CONTAINER SATU ===== */
  .container-satu {
    height: 65vh;
    min-height: 520px;
  }

  .slider .selamat-datang h3 {
    font-size: 3rem;
  }

  .slider .selamat-datang h5 {
    font-size: 1rem;
  }

  /* ===== CONTAINER DUA ===== */

  .container-dua {
    height: 420px; /* ★ DIUBAH */
    position: relative;
    overflow: hidden; /* ★ tetap */
  }

  .container-dua .foto-ketua {
    width: 30%; /* ★ DIUBAH */
    height: 75%;
    margin-left: 2.5rem; /* ★ DIUBAH */
    position: relative;
    overflow: visible;
  }

  .container-dua .foto-ketua img {
    /* transform: scale(1.5); */
    top: 30%;
  }

  .container-dua .kata-sambutan {
    width: 65%; /* ★ DIUBAH */
    padding-top: 1.8rem;
  }

  .container-dua .kata-sambutan p {
    font-size: 1rem; /* ★ DIUBAH */
    padding: 1.5rem 2rem 0 2rem;
    line-height: 1.6;
  }

  .container-dua .kata-sambutan h2 {
    font-size: 1.3rem; /* ★ DIUBAH */
    padding-left: 2rem;
  }

  .container-dua .kata-sambutan svg {
    width: 200px;
    right: 13px; /* jarak tetap tablet */
    bottom: 10px;
  }

  /* ===== CONTAINER TIGA ===== */
  .container-tiga .berita {
    width: 35%;
  }

  .container-tiga ul li {
    width: 30%;
    height: 22rem;
  }

  .container-tiga ul li a .cover-berita h3 {
    font-size: 0.75rem;
  }

  .container-tiga ul li a .cover-berita p {
    font-size: 0.68rem;
  }

  .container-tiga ul li a .cover-berita h5 {
    font-size: 0.67rem;
  }

  /* ===== CONTAINER EMPAT ===== */
  .container-empat .alumni {
    width: 35%;
  }
  .container-empat ul {
    width: 95%;
  }

  .container-empat ul li {
    width: 30%;
    height: 18rem;
  }

  .container-empat ul li .foto-alumni .circle-bg {
    width: 150px;
    height: 150px;
  }

  /* ===== FOOTER ===== */
  footer {
    height: auto;
    padding: 15px 20px;
  }

  footer .logo {
    height: 55px; /* DIPERKECIL */
    align-items: center;
  }

  footer .logo img {
    height: 100%;
  }

  footer .logo .judul h4 {
    font-size: 0.85rem;
    line-height: 1.1rem;
  }

  footer .bawah {
    align-items: flex-start;
  }

  footer .kiri {
    width: 60%;
    gap: 3rem;
  }

  footer .kanan {
    width: 40%;
  }

  footer .kanan ul {
    width: 80%;
  }
}

/* ukuran mobile */

@media screen and (max-width: 576px) {
  body { 
      overflow-x: hidden;
  }
  
  nav .logo {
    width: 80%;
  }

  .logo .judul {
    font-size: 0.9rem;
  }

  nav ul {
    position: absolute;
    flex-direction: column;
    justify-content: start;
    top: 0px;
    padding-top: 2rem;
    width: 100%;
    height: 100vh;
    background-color: #1b6752;
    z-index: 5;
    transform: translateX(100%);
    transition: all 0.5s;
  }

  nav ul li {
    text-align: left;
    padding-left: 0.5rem;
    padding-bottom: 1rem;
    width: 100%;
  }

  body.blur {
    background-color: rgba(0, 0, 0, 0.517);
    transition: background-color 0.5s ease-in-out;
    opacity: 0.8s;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }

  nav ul.slide {
    transform: translateX(0);
    z-index: 5;
  }

  nav .menuToggle {
    display: flex;
    z-index: 5;
  }

  .container-satu {
    min-height: 480px;
    top: 0px;
    margin-top: -4.5rem;
  }

  .slider .selamat-datang h3 {
    font-size: 2.2rem;
    text-align: center;
  }

  .slider .selamat-datang h5 {
    font-size: 0.95rem;
    text-align: center;
  }

  .container-satu .pembukaan {
    height: 13%;
    font-size: 1rem;
    top: -12%;
  }

  /* ===== CONTAINER DUA ===== */
  .container-dua {
    flex-direction: row; /* ★ TETAP ROW */
    align-items: center;
    height: 200px; /* ★ DIKECILKAN */
    padding: 0 10px;
    gap: 10px;
    overflow: hidden;
  }

  /* FOTO KETUA */
  .container-dua .foto-ketua {
    width: 35%; /* ★ SESUAI LEBAR MOBILE */
    height: 75%;
    margin-left: 0;
    border-radius: 8px;
    position: relative;
  }

  .container-dua .foto-ketua img {
    height: 100%;
    top: 14%;
    transform: scale(1.1); /* ★ SCALE DOWN */
  }

  /* KATA SAMBUTAN */
  .container-dua .kata-sambutan p {
    padding: 0px;
    padding-left: 1rem;
    font-size: 0.4rem;
    /* line-height: 1.45; */
  }

  .container-dua .kata-sambutan h2 {
    padding-left: 1rem;
    font-size: 0.6rem;
  }

  /* ===== SVG TETAP POJOK KANAN BAWAH ===== */

  .container-dua .kata-sambutan svg {
    display: none;
    /* position: absolute;
    right: 10px;
    bottom: 0px;
    width: 10%; */
  }

  .container-tiga .berita,
  .container-empat .alumni,
  footer .logo {
    width: 45%;
  }

  .container-tiga .berita img,
  .container-empat .alumni img,
  footer .logo img {
    height: 60%;
  }

  .container-tiga ul {
    gap: 0.3rem;
    padding: 10px 8px;
  }

  .container-tiga ul li {
    width: 45%;
    height: 12rem;
  }

  .container-tiga ul li a .cover-berita h3 {
    font-size: 0.4rem;
  }

  .container-tiga ul li a .cover-berita p {
    font-size: 0.2rem;
  }

  .container-tiga ul li a .cover-berita h5 {
    font-size: 0.3rem;
  }

  .container-tiga .view-all,
  .container-empat .view-all {
    padding-bottom: 0.5rem;
  }

  /* ===== CONTAINER EMPAT ===== */
  .container-empat ul {
    width: 95%;
    gap: 0.5rem;
  }

  .container-empat ul li {
    width: 60%;
    height: 9rem;
  }

  .container-empat ul li .foto-alumni .circle-bg {
    width: 75px;
    height: 75px;
  }

  footer {
    height: auto;
  }

  footer .logo {
    height: 55px;
    width: 100%;
    margin-bottom: 0.5rem;
    align-items: center;
  }

  footer .logo img {
    height: 70%;
  }

  footer .logo .judul h4 {
    font-size: 0.85rem;
    line-height: 1.1rem;
  }

  footer .bawah {
    align-items: flex-start;
  }

  footer .kiri {
    width: 60%;
    gap: 3rem;
  }

  footer .kanan {
    width: 45%;
  }

  footer .kanan ul {
    width: 85%;
  }
}
