* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: "Montserrat", sans-serif;
  height: 100%;
}

header {
  background-color: #431650;
  padding: 20px 40px;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
}

.logo span {
  color: white;
  font-weight: bold;
  font-size: 18px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 16px;
}

nav ul li a.active {
  font-weight: bold;
  border-bottom: 3px solid #ffd25d;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  padding: 10px;
  display: inline-block;
  position: relative;
}

.nav-menu a:hover {
  transform: scale(1.05); /* efek tebal tanpa geser */
  color: #ffffff;
}

.nav-menu .active {
  color: #ffffff;
  font-weight: 600;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #ffffff;
  list-style: none;
  min-width: 180px;
  border-radius: 5px;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  color: #431650;
}

.dropdown-menu li a:hover {
  background-color: #9e9e9e;
  border-radius: 5px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.nav-menu a.active:hover {
  transform: none;
  color: #ffffff;
  cursor: default;
}

.nav-menu li:nth-child(3) a,
.nav-menu li:nth-child(4) a,
.nav-menu li:nth-child(5) a {
  position: relative;
  top: -2px;
}
.hero {
  position: relative;
  height: 100vh;
  background: #431650;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Agar gambar latar tidak keluar area */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Agar gambar menyesuaikan ukuran tanpa distorsi */
  z-index: 0;
  opacity: 0.4; /* Bisa disesuaikan agar tidak terlalu mencolok */
}
.hero-content {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 300px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
}

.hero .tahun {
  font-size: 20px;
  font-weight: 400;
}

.slogan {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
}

.slogan .seirama {
  background-color: #ffd25d;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 10px;
  margin-bottom: 5px;
  font-size: 18px;
}

.slogan .bersama {
  background-color: white;
  color: #431650;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 18px;
}
.visi-misi {
  background-color: #ffffff;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.container-visi-misi {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.judul-section {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: -20px; /* menarik label ke atas box */
  z-index: 2;

  .label-visi {
    background-color: #431650; /* warna emas/kuning */
    color: #ffffff; /* ungu tua */
  }

  .label-misi {
    background-color: #431650; /* merah tua */
    color: white;
  }
}
.box {
  background-color: #f6eefc;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  color: #431650;
  font-size: 16px;
  line-height: 1.8;
}

.box ol {
  padding-left: 20px;
}

.box ol li {
  margin-bottom: 10px;
}
.logo-kabinet {
  background-color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.logo-kabinet h2 {
  font-size: 37px;
  color: #431650;
  margin-bottom: 30px;
  font-weight: 700;
}

.logo-container img {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
}
.logo-interaktif {
  text-align: center;
  margin: 40px auto;
  max-width: 600px;
  position: relative;
}

.logo-img-full {
  width: 170%;
  height: auto;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* pusatkan gambar besar */
}

.label {
  position: absolute;
  background-color: #ece2f7;
  color: #431650;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
}

.label.kuning {
  background-color: #ffd25d;
  color: #431650;
}

.label-merah {
  color: #aa0000;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 28px; /* tambah atau ubah ukuran sesuai kebutuhan */
}

.label.merah .bold {
  color: #aa0000;
}

.label.left {
  text-align: left;
}

.label.right {
  text-align: right;
}

.makna-logo {
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.makna-logo h3 {
  font-size: 26px;
  margin-bottom: 10px;
  font-weight: bold;
}

.teks-merah {
  color: #d11a1a;
  margin-right: 5px;
}

.teks-berani {
  color: #8b0000;
}

.label-merah {
  color: #8b0000;
  font-weight: 600;
  margin-bottom: 10px;
}

.deskripsi {
  color: #431650;
  font-size: 18px;
  line-height: 1.7;
  max-width: 700px; /* batas lebar maksimum */
  margin: 0 auto; /* pusatkan secara horizontal */
  text-align: center; /* agar rata tengah */
  padding: 0 20px; /* beri sedikit ruang kiri-kanan */
}

.struktur-kepengurusan {
  width: 100%;
  padding: 60px 0;
  background-color: #fff;
  text-align: center;
}

.struktur-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.footer {
  background-color: #431650;
  color: white;
  padding: 50px 30px 20px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  font-family: "Poppins", sans-serif;
  margin-top: -250px; /* Sesuaikan sesuai kebutuhan naiknya */
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto 30px;
  gap: 30px;
}

.footer-left h3,
.footer-right h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-center {
  text-align: center;
}

.footer-center img.footer-logo {
  width: 130px;
  margin-bottom: 10px;
}

.footer-center p {
  font-size: 18px;
  font-weight: semibold;
}

.footer-center p strong {
  color: white;
}

.social-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 40px); /* 3 kolom */
  grid-gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.social-icons-grid img {
  width: 40px;
  height: 40px;
}

.footer hr {
  border: none;
  border-top: 2px solid #ddd;
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #ccc;
}
/* Tombol Toggle Menu untuk Mobile */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
}
/* Tombol Close (X) di Sidebar */
.close-btn {
  display: none;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
}

/* Media Query untuk Tampilan Mobile */
@media (max-width: 768px) {
  header {
    position: static;
    width: 100%;
    padding: 10px 20px;
  }
  .close-btn {
    display: block;
  }
  .misi-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100vh;
    background-color: #431650;
    flex-direction: column;
    padding: 60px 20px 20px;
    display: flex;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  nav.open {
    left: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu li {
    width: 100%;
  }

  .dropdown-menu {
    position: relative;
    background-color: #fff;
    box-shadow: none;
    padding-left: 15px;
  }

  .dropdown-menu li a {
    color: #431650;
    padding: 10px 10px;
  }
  .footer {
    padding: 20px 15px 10px;
    margin-top: -120px; /* Sesuaikan sesuai kebutuhan naiknya */
  }

  .footer-content {
    flex-direction: row; /* biar sejajar */
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px;
  }

  .footer-left {
    flex: 1;
    min-width: 100px;
    max-width: 30.33%; /* opsional, biar proporsional */
    text-align: left;
    padding: 0;
  }
  .footer-center {
    flex: 1;
    min-width: 100px;
    max-width: 30.33%; /* opsional, biar proporsional */
    text-align: center;
    padding: 0;
  }
  .footer-right {
    flex: 1;
    min-width: 100px;
    max-width: 30.33%; /* opsional, biar proporsional */
    text-align: right;
    padding: 0;
  }

  .footer-left h3,
  .footer-right h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .footer-left p {
    font-size: 8px;
    line-height: 1.4;
  }
  .footer-right p,
  .footer-center p {
    font-size: 11px;
    line-height: 1.4;
  }

  .footer-center img.footer-logo {
    width: 80px;
    margin-bottom: 5px;
  }

  .social-icons-grid {
    grid-template-columns: repeat(3, 26px);
    grid-gap: 6px;
    justify-content: flex-start;
    margin-top: 6px;
  }

  .social-icons-grid img {
    width: 26px;
    height: 26px;
  }

  .footer-bottom {
    font-size: 10px;
    text-align: center;
    padding: 0 10px;
  }
  .hero {
    height: 40vh;
    padding: 30px 15px;
  }
  .hero-logo {
    width: 150px;
    margin-bottom: 0px;
  }

  .hero-content h1 {
    font-size: 15px;
  }

  .hero-content .tahun {
    font-size: 12px;
    margin-bottom: 0px;
  }

  .slogan .seirama,
  .slogan .bersama {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
  }
  /* Logo Interaktif */
  .logo-interaktif {
    max-width: 100%;
    margin: 30px auto;
    padding: 0 10px;
    overflow-x: auto;
  }

  .logo-img-full {
    width: 100%;
    max-width: 100%;
    height: auto;
    position: relative;
    left: 0;
    transform: none;
  }

  /* Label */
  .label {
    font-size: 10px;
    padding: 4px 6px;
    max-width: 150px;
    white-space: normal;
  }

  /* Posisi label disesuaikan agar tidak keluar area */
  .label.left,
  .label.right {
    position: static;
    display: block;
    margin: 6px auto;
    text-align: center;
  }

  /* Hilangkan garis penghubung di mobile */
  .line {
    display: none;
  }

  /* Makna Logo */
  .makna-logo {
    padding: 0 15px;
  }

  .label-merah {
    font-size: 18px;
  }

  .deskripsi {
    font-size: 14px;
    padding: 0 10px;
    line-height: 1.6;
    text-align: center;
  }

  /* Struktur Kepengurusan */
  .struktur-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}
html,
body {
  overflow-x: hidden;
}
