@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* Variabel CSS untuk konsistensi tema */
:root {
  --primary-color: #00aaff;
  --dark-bg: #000000;
  --light-text: #ffffff;
  --dark-text: #cccccc;
  --card-bg: #111111;
  --border-color: #333333;
}

/* Reset dasar yang lebih modern */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  color: var(--light-text);
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 14px; /* Ukuran font dasar sedikit diperkecil */
  padding-top: 85px; /* Memberi ruang untuk header di desktop */
}

/* ========================================= */
/* === GAYA HEADER (PROFESIONAL STYLE) === */
/* ========================================= */

header#main-header {
  position: fixed;
  top: 0; /* Default di atas */
  bottom: auto; /* Pastikan properti bottom tidak aktif di desktop */
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: top 0.3s ease, bottom 0.3s ease; /* Tambahkan transisi */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 50px;
  border-bottom: 1px solid var(--border-color);
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 45px; /* Ukuran logo diperkecil */
  height: 45px;
  margin-right: 15px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1) rotate(-5deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: 1.3em; /* Diperkecil */
  font-weight: 700;
  margin: 0;
  color: var(--light-text);
  font-family: "Poppins", sans-serif;
  font-style: italic;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.7em; /* Diperkecil */
  color: var(--dark-text);
  font-style: italic;
  margin: 0;
  padding: 0;
  font-weight: 700;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 25px; /* Jarak diperkecil */
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: var(--light-text);
  font-size: 1em; /* Diperkecil */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
  font-style: italic;
  font-weight: 700;
}
header nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

header nav ul li a:hover,
header nav ul li.active a {
  color: var(--primary-color);
}

header nav ul li a:hover::after,
header nav ul li.active a::after {
  width: 100%;
}

header nav ul li a span {
  display: inline;
}

.social-media {
  display: flex;
  gap: 15px; /* Jarak diperkecil */
  align-items: center;
}

.social-media a {
  color: var(--light-text);
  font-size: 1.3em; /* Diperkecil */
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* ========================================= */
/* ===         KONTEN UTAMA              === */
/* ========================================= */

main {
  width: 100%;
  flex-grow: 1;
}

.container p,
.kegiatan-konten p {
  font-style: italic;
}

.logo-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 60px 0;
  padding: 20px 0;
}

.logo-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

main .container {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.container h2 {
  font-size: 2.5em; /* Diperkecil */
  margin-bottom: 10px;
}

.container h3 {
  font-size: 1.8em; /* Diperkecil */
  margin-bottom: 20px;
  color: var(--dark-text);
}

.container p {
  font-size: 1em; /* Diperkecil */
}

footer {
  text-align: center;
  padding: 20px;
  width: 100%;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  font-size: 0.8em; /* Diperkecil */
}
.separator {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 50px auto;
  width: 80%;
}
.visi-misi-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}
.visi,
.misi {
  flex: 1;
  min-width: 300px;
}
.visi-misi-container h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.6em; /* Diperkecil */
}
.misi ul {
  list-style-type: none;
  padding-left: 0;
}
.misi ul li {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 10px;
}
.misi ul li::before {
  content: "✓";
  color: var(--primary-color);
  margin-right: 10px;
}
.struktur-organisasi h3 {
  text-align: center;
  font-size: 1.8em; /* Diperkecil */
  margin-bottom: 10px;
  color: var(--primary-color);
}
.struktur-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.pengurus-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pengurus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 170, 255, 0.1);
}
.foto-pengurus {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  object-fit: cover;
  border: 3px solid var(--border-color);
}
.pengurus-card h4 {
  font-size: 1.1em; /* Diperkecil */
  margin-bottom: 5px;
  color: var(--light-text);
}
.pengurus-card p {
  font-size: 0.9em; /* Diperkecil */
  color: var(--dark-text);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.gallery-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 170, 255, 0.1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-item {
  position: relative;
  padding-top: 56.25%;
  height: 0;
}
.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- KARTU KEGIATAN (Ukuran Font Diperkecil) --- */
.kegiatan-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.kegiatan-item {
  display: grid;
  grid-template-columns: 150px 1fr; /* Gambar diperkecil */
  gap: 20px;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
  text-align: left;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.kegiatan-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 170, 255, 0.12);
}

.kegiatan-foto {
  width: 150px;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
}

.kegiatan-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.kegiatan-item:hover .kegiatan-foto img {
  transform: scale(1.08);
}

.kegiatan-konten {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0;
}

.kegiatan-konten h3 {
  font-size: 0.95em; /* Diperkecil */
  font-weight: 700;
  margin: 0 0 5px 0;
  color: var(--primary-color);
  text-align: left;
  line-height: 1.2;
}

.kegiatan-meta {
  display: block;
  font-size: 0.7em; /* Sangat kecil */
  color: #aaa;
  margin-bottom: 8px;
}

.kegiatan-konten p {
  display: -webkit-box;
  font-size: 0.85em; /* Diperkecil */
  color: var(--dark-text);
  margin: 0 0 12px 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.kegiatan-tombol {
  align-self: flex-start;
  padding: 5px 12px; /* Diperkecil */
  font-size: 0.75em; /* Diperkecil */
  margin-top: auto;
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 5px;
  text-decoration: none;
  font-style: normal;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.kegiatan-tombol:hover {
  background-color: #0088cc;
  transform: translateY(-2px);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.info-item {
  background-color: rgba(17, 17, 17, 0.8);
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  text-align: left;
}
.info-header {
  flex-direction: column;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.info-header h3 {
  font-size: 1.2em; /* Diperkecil */
  color: var(--light-text);
  margin: 0;
}
.info-tag {
  font-size: 0.75em; /* Diperkecil */
  font-weight: bold;
  font-style: normal;
  padding: 5px 10px;
  border-radius: 20px;
  color: #fff;
  flex-shrink: 0;
}
.tag-pengumuman {
  background-color: #007bff;
}
.tag-update {
  background-color: #28a745;
}
.tag-penting {
  background-color: #dc3545;
}
.info-meta {
  font-size: 0.8em; /* Diperkecil */
  color: #aaa;
  margin-bottom: 20px;
}
.info-meta i {
  margin-right: 8px;
}
.info-body p,
.info-body ul {
  font-size: 0.9em; /* Diperkecil */
  line-height: 1.7;
  margin-bottom: 15px;
}
.info-body ul {
  list-style-position: inside;
  padding-left: 10px;
}
.info-umum {
  display: flex;
  gap: 40px;
  text-align: left;
  margin-bottom: 30px;
}
.info-teks {
  flex: 1;
}
.info-teks h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}
.info-teks p {
  margin-bottom: 20px;
}
.info-teks i {
  color: var(--primary-color);
  margin-right: 15px;
  width: 20px;
  text-align: center;
}
.map-container {
  flex: 1;
  min-width: 300px;
}
.map-container iframe {
  border-radius: 8px;
}
.kontak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.kontak-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.kontak-card .jabatan {
  color: var(--dark-text);
  font-size: 0.9em; /* Diperkecil */
  margin-top: -15px;
}
.kontak-card .info-kontak {
  font-size: 0.85em; /* Diperkecil */
  flex-grow: 1;
  margin: 20px 0;
}
.wa-button {
  display: inline-block;
  background-color: #25d366;
  color: var(--light-text);
  padding: 10px 18px; /* Diperkecil */
  border-radius: 50px;
  text-decoration: none;
  font-style: normal;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 0.9em; /* Diperkecil */
}
.wa-button:hover {
  background-color: #1ebe57;
  transform: scale(1.05);
}
.wa-button i {
  margin-right: 10px;
  font-size: 1.1em; /* Diperkecil */
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out,
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.footer-social-media {
  margin-bottom: 15px;
}
.footer-social-media a {
  color: var(--light-text);
  font-size: 1.4em; /* Diperkecil */
  margin: 0 15px;
  transition: color 0.3s ease;
}
.footer-social-media a:hover {
  color: var(--primary-color);
}
.sort-container {
  text-align: left;
  margin-bottom: 25px;
  margin-top: 30px;
  font-style: normal;
}
select.sorter {
  background-color: var(--card-bg);
  color: var(--light-text);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9em; /* Diperkecil */
  margin-left: 10px;
  cursor: pointer;
}
select.sorter:focus {
  outline: none;
  border-color: var(--primary-color);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.album-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.album-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 170, 255, 0.15);
}
.album-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.album-item:hover .album-cover img {
  transform: scale(1.05);
}
.album-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 40px 20px 20px 20px;
  text-align: left;
  font-style: normal;
  transition: background 0.3s ease;
}
.album-info h4 {
  font-size: 1.2em; /* Diperkecil */
  margin: 0;
}
.album-info p {
  font-size: 0.85em; /* Diperkecil */
  margin: 5px 0 0 0;
  color: var(--dark-text);
  font-style: italic;
}
.album-item > a:not(.album-cover) {
  display: none;
}

/* === STYLE HALAMAN ARTIKEL (Ukuran Font Diperkecil) === */
.artikel-container {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  text-align: left;
  background-color: var(--card-bg);
  border-radius: 8px;
}
.artikel-header h2 {
  font-size: 2.2em; /* Diperkecil */
  text-align: left;
  margin-bottom: 15px;
}
.artikel-meta-info {
  font-size: 0.8em; /* Diperkecil */
  color: #aaa;
  margin-bottom: 25px;
  font-style: normal;
}
.artikel-meta-info span {
  margin-right: 20px;
}
.artikel-meta-info i {
  margin-right: 8px;
  color: var(--primary-color);
}
.artikel-konten h3,
.artikel-konten h4 {
  text-align: left;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-size: 1.4em; /* Diperkecil */
}
.artikel-konten p,
.artikel-konten li {
  text-align: justify;
  line-height: 1.7;
  font-size: 1em; /* Diperkecil */
  font-style: normal;
}
.artikel-konten ul {
  list-style-type: disc;
  list-style-position: inside;
  padding-left: 20px;
}
.artikel-konten blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1em; /* Diperkecil */
  color: var(--dark-text);
  text-align: left;
}
.artikel-konten blockquote cite {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: var(--light-text);
}
.slideshow-container {
  max-width: 800px;
  position: relative;
  margin: auto;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.slideshow-slider {
  display: grid;
}
.slide-image {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.slide-image.active-slide {
  opacity: 1;
}
.tombol-kembali {
  display: inline-block;
  margin-top: 30px;
  background-color: var(--border-color);
  color: var(--light-text);
  padding: 8px 16px; /* Diperkecil */
  text-decoration: none;
  font-style: normal;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: 0.85em; /* Diperkecil */
}
.tombol-kembali:hover {
  background-color: var(--primary-color);
}
.tombol-kembali i {
  margin-right: 8px;
}

/* ========================================= */
/* ===         GAYA WELCOME SCREEN       === */
/* ========================================= */

#welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.5s ease;
}

#welcome-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#welcome-box {
  background-color: var(--card-bg);
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 25px rgba(0, 170, 255, 0.1);
}

.welcome-logo {
  width: 70px; /* Diperkecil */
  height: 70px;
  margin-bottom: 15px;
}

#welcome-box h2 {
  margin-bottom: 5px;
  font-size: 1.8em; /* Diperkecil */
  color: var(--primary-color);
}

#welcome-box p {
  font-style: italic;
  font-size: 0.9em; /* Diperkecil */
  margin-bottom: 25px;
  color: var(--dark-text);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 0.9em; /* Diperkecil */
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px; /* Diperkecil */
  background-color: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--light-text);
  font-family: "Poppins", sans-serif;
  font-size: 0.9em; /* Diperkecil */
}

#submit-button {
  width: 100%;
  padding: 10px; /* Diperkecil */
  font-size: 0.9em; /* Diperkecil */
}

#form-message {
  font-size: 0.8em; /* Diperkecil */
}

/* ========================================= */
/* ===     HEADER ATAS MOBILE BARU       === */
/* ========================================= */
.mobile-top-header {
  display: none; /* Sembunyikan di desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001; /* Di atas header bawah */
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease-in-out;
  border-bottom: 1px solid var(--border-color);
}

.mobile-top-header.hidden {
  transform: translateY(-100%);
}

.mobile-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
  height: 50px;
}

/* ========================================= */
/* ===         RESPONSIVE DESIGN         === */
/* ========================================= */

@media (max-width: 768px) {
  body {
    padding-top: 50px; /* Ruang untuk header atas mobile */
    padding-bottom: 60px; /* Disesuaikan dengan nav bawah */
    font-size: 13px; /* Ukuran font dasar mobile diperkecil lagi */
  }

  /* === TAMPILKAN HEADER ATAS MOBILE === */
  .mobile-top-header {
    display: block;
  }

  /* Sembunyikan header desktop asli di mobile */
  header#main-header .header-container {
    display: none;
  }

  /* === PINDAHKAN NAVIGASI KE BAWAH DI MOBILE === */
  header#main-header {
    top: auto; /* Hapus properti 'top' */
    bottom: 0; /* Tetapkan di bawah */
    border-top: 1px solid var(--border-color); /* Ganti border-bottom menjadi border-top */
    border-bottom: none;
    height: 60px;
    background-color: rgba(
      0,
      0,
      0,
      0.9
    ); /* Sedikit lebih gelap untuk kontras */
  }

  /* Atur Navigasi untuk Tampil di Bawah */
  header nav {
    display: block;
    width: 100%;
    height: 100%;
  }

  header nav ul {
    display: flex;
    justify-content: space-around; /* Agar menu tersebar rata */
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 0;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav ul::-webkit-scrollbar {
    display: none;
  }

  header nav ul li {
    flex: 1; /* Agar setiap item menu memiliki lebar yang sama */
    text-align: center;
  }

  header nav ul li a {
    flex-direction: column;
    justify-content: center;
    color: var(--dark-text);
    font-size: 0.75em;
    padding: 5px;
    height: 100%;
  }

  header nav ul li a i {
    font-size: 1.6em;
    margin-bottom: 4px;
  }

  header nav ul li.active a {
    color: var(--primary-color);
  }

  header nav ul li a::after {
    display: none; /* Hapus garis bawah aktif di mobile */
  }

  main {
    padding-top: 20px; /* Beri sedikit ruang di atas konten */
  }

  /* Penyesuaian font mobile untuk kartu kegiatan */
  .kegiatan-item {
    grid-template-columns: 90px 1fr; /* Gambar lebih kecil */
    gap: 15px;
    padding: 12px;
  }

  .kegiatan-foto {
    width: 90px;
    height: 90px;
  }

  .kegiatan-konten h3 {
    font-size: 0.9em;
  }
  .kegiatan-konten p {
    -webkit-line-clamp: 2;
    font-size: 0.8em;
  }
  .kegiatan-meta,
  .kegiatan-tombol {
    font-size: 0.7em;
  }

  .container h2 {
    font-size: 2em;
  }
  .artikel-header h2 {
    font-size: 1.8em;
  }
}
/* ========================================= */
/* ===    GAYA POHON & KONTROL ZOOM      === */
/* ========================================= */

/* --- BAGIAN BARU: Kontrol Zoom --- */
.zoom-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.zoom-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--light-text);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border-color: var(--primary-color);
}

#zoom-level {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--dark-text);
  min-width: 60px;
  text-align: center;
}

/* --- PERUBAHAN: Penyesuaian pada Pohon --- */
.pohon-container {
  width: 100%;
  overflow: auto; /* Diubah menjadi auto untuk menangani zoom dan pan */
  text-align: center;
  padding: 20px 0;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  cursor: grab; /* Menandakan bisa digeser */
  background-color: rgba(17, 17, 17, 0.5);
}
.pohon-container:active {
  cursor: grabbing;
}

.pohon-organisasi {
  display: inline-flex;
  transition: transform 0.3s ease-out; /* Animasi untuk zoom */
  transform-origin: center center; /* Titik pusat zoom */
}

.pohon-organisasi ul,
.pohon-organisasi li {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.pohon-organisasi ul {
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

.pohon-organisasi li {
  padding: 20px 4px 0 4px;
  text-align: center;
}

.pohon-organisasi li::before,
.pohon-organisasi li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid var(--border-color);
  width: 50%;
  height: 20px;
}
.pohon-organisasi li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid var(--border-color);
}

.pohon-organisasi li:only-child::after,
.pohon-organisasi li:only-child::before {
  display: none;
}
.pohon-organisasi li:first-child::before,
.pohon-organisasi li:last-child::after {
  border: 0 none;
}
.pohon-organisasi li:last-child::before {
  border-right: 2px solid var(--border-color);
  border-radius: 0 5px 0 0;
}
.pohon-organisasi li:first-child::after {
  border-radius: 5px 0 0 0;
}

.pohon-organisasi ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid var(--border-color);
  width: 0;
  height: 20px;
}

.pohon-organisasi li div {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  text-decoration: none;
  color: var(--light-text);
  font-family: "Poppins", sans-serif;
  display: inline-block;
  border-radius: 8px;
  min-width: 170px;
  transition: all 0.5s;
  position: relative;
  z-index: 1;
}

.pohon-organisasi li div:hover,
.pohon-organisasi li div:hover + ul li div {
  background: var(--primary-color);
  color: var(--dark-bg);
  box-shadow: 0 0 15px var(--primary-color);
}

.pohon-organisasi li div:hover + ul li::after,
.pohon-organisasi li div:hover + ul li::before,
.pohon-organisasi li div:hover + ul::before,
.pohon-organisasi li div:hover + ul ul::before {
  border-color: var(--primary-color);
}

.pohon-organisasi .jabatan {
  display: block;
  font-size: 0.9em;
  font-weight: 700;
  color: inherit;
  margin-bottom: 4px;
}
.pohon-organisasi .nama {
  display: block;
  font-size: 0.8em;
  font-style: italic;
  color: inherit;
  opacity: 0.8;
}

.pohon-organisasi .bidang-group {
  padding-top: 20px;
}

.pohon-organisasi .bidang-group > li {
  padding: 20px 4px 0 4px;
}

.anggota-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 15px;
  padding-top: 20px;
  width: 100%;
}

.anggota-grid li {
  padding: 0 !important;
  width: 100%;
}

.anggota-grid li::before,
.anggota-grid li::after {
  display: none;
}

.pohon-organisasi li div .foto-node {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  margin: 0 auto 10px auto;
  object-fit: cover;
  display: block;
  background-color: #444;
}

.pohon-organisasi li div .foto-node-placeholder {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--dark-text);
}

/* Sisa kode Anda yang tidak terkait font-size bisa tetap sama */

/* ========================================= */
/* ===         GAYA HALAMAN KONTAK BARU    === */
/* ========================================= */

.contact-links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-link-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px 30px;
  text-decoration: none;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  font-size: 1.2em;
}

.contact-link-item:hover {
  transform: translateY(-5px);
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(0, 170, 255, 0.2);
}

.contact-link-item i {
  font-size: 1.8em;
  width: 40px; /* Memberi lebar tetap agar rapi */
  text-align: center;
}
/* ========================================= */
/* ===     GAYA KHUSUS HALAMAN HOME ANIMASI === */
/* ========================================= */

body[data-page-id="home"] main {
  flex-grow: 1;
  width: 100%;
  position: relative; /* Penting untuk positioning absolut */
  overflow: hidden; /* Sembunyikan logo saat di luar layar */
}

#logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Menerapkan animasi yang berjalan tanpa henti */
  animation: home-logo-bounce-loop 12s ease-in-out infinite;
}

#animated-logo {
  width: 350px; /* Anda bisa menyesuaikan ukuran logo di sini */
  height: auto;
}
@keyframes home-logo-bounce-loop {
  /* FASE 0: Persiapan (Logo di luar layar atas) */
  0% {
    transform: translate(-50%, -150vh) scale(0.8);
    opacity: 0;
  }

  /* FASE 1: Logo Jatuh dengan Cepat (Efek gravitasi) */
  10% {
    transform: translate(-50%, -50%);
    opacity: 1;
    animation-timing-function: ease-in; /* Percepat saat jatuh */
  }

  /* FASE 2: Pantulan Halus & Natural (Seperti Bola) */
  12% {
    /* Pantulan 1 (paling tinggi) */
    transform: translate(-50%, -50%) translateY(-100px);
    animation-timing-function: ease-out; /* Lambat di puncak pantulan */
  }
  14% {
    transform: translate(-50%, -50%);
    animation-timing-function: ease-in;
  }
  15.5% {
    /* Pantulan 2 (lebih pendek) */
    transform: translate(-50%, -50%) translateY(-50px);
    animation-timing-function: ease-out;
  }
  17% {
    transform: translate(-50%, -50%);
    animation-timing-function: ease-in;
  }
  18% {
    /* Pantulan 3 (paling pendek) */
    transform: translate(-50%, -50%) translateY(-25px);
    animation-timing-function: ease-out;
  }
  19% {
    /* Kembali diam setelah pantulan terakhir */
    transform: translate(-50%, -50%);
  }

  /* FASE 3: Logo Diam di Tengah (durasi disesuaikan) */
  19.01%,
  85% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }

  /* FASE 4: Logo Menghilang ke Kanan, selesai tepat di 100% untuk loop instan */
  100% {
    transform: translate(150vw, -50%) scale(0.8);
    opacity: 0;
    animation-timing-function: ease-in;
  }
}

/* Gaya untuk filter container di halaman kegiatan */
.filter-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px; /* Jarak antara filter kategori dan tanggal */
  flex-wrap: wrap; /* Agar responsif di layar kecil */
  margin-bottom: 25px;
  margin-top: 30px;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
}

/* ... (kode CSS lainnya tetap sama) ... */

/* ========================================= */
/* ===         GAYA HALAMAN LOGIN        === */
/* ========================================= */

.main-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif; /* Menggunakan Poppins untuk konsistensi */
  padding: 20px;
}

.centered-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 400px; /* Lebar maksimum untuk form */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 45px; /* Memberi ruang untuk ikon di atas */
}

.icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85px;
  height: 85px;
  display: grid;
  place-content: center;
  border: 1px solid #2a2a2a;
  z-index: 2;
  border-radius: 50%;
  background: #0e0e0e;
}

.icon .fa {
  color: #a2a2a2;
  font-size: 50px;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 60px 30px 25px; /* Disesuaikan: padding atas lebih besar untuk ruang ikon */
  border-radius: 30px;
  background: rgba(19, 19, 19, 0.736);
  border: 1px solid rgba(255, 255, 255, 0.097);
  position: relative;
  z-index: 1;
}

.title {
  margin: 0 0 10px 0; /* Margin disesuaikan */
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-align: center;
}

.msg {
  color: #fa2929;
  font-size: 14px;
  text-align: center;
  min-height: 20px; /* Memberi ruang agar layout tidak bergeser */
  margin-bottom: 15px;
}

.field {
  display: flex;
  position: relative;
  width: 100%;
  margin-bottom: 20px; /* Jarak antar field */
}

.field .fa {
  position: absolute;
  font-size: 14px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d7d7d;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px rgb(14 14 14) inset;
  -webkit-text-fill-color: #bababa !important;
}

form input,
form select {
  display: block;
  outline: none;
  width: 100%;
  border: none;
  font-size: 16px;
  color: #d2d2d2;
  background: transparent;
  padding: 10px 35px 10px 10px; /* Padding disesuaikan */
  border-bottom: 1px solid #404040;
  caret-color: #cccccc;
  transition: border-color 0.3s;
}

form input:focus,
form select:focus {
  border-bottom-color: var(--primary-color);
}

form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
form select option {
  background-color: #111111;
}

.action {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
  margin-top: 5px;
  color: #7d7d7d;
}

.action label {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.action input[type="checkbox"] {
  width: auto;
  margin: 0 8px 0 0;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: #9b9b9b;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-color);
}

.btn-container {
  width: 100%;
  padding-top: 15px;
  transition: 0.2s linear;
}

#login-btn {
  width: 100%;
  padding: 12px 25px; /* Padding disesuaikan */
  border: none;
  background: rgb(25, 62, 97);
  color: white;
  font-weight: 600;
  font-size: 16px;
  border-radius: 15px;
  transition: 0.3s;
  cursor: pointer;
}

#login-btn:hover:not(:disabled) {
  background: var(--primary-color);
  transform: translateY(-2px);
}

#login-btn:disabled {
  background-color: #333;
  cursor: not-allowed;
}

.signup {
  color: rgb(112, 112, 112);
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}
.signup a {
  color: var(--primary-color);
  margin-left: 5px;
  font-weight: bold;
}

/* ... (sisa kode CSS tetap sama) ... */

.shift-left {
  transform: translateX(-120%);
}
.shift-right {
  transform: translateX(120%);
}
.shift-top {
  transform: translateY(-150%);
}
.shift-bottom {
  transform: translateY(150%);
}
.no-shift {
  transform: translate(0%, 0%);
}
/* --- GAYA BARU: PETUNJUK GALERI DENGAN ANIMASI DENYUT --- */

.album-cover {
  position: relative;
  display: block;
}

/* Keyframes untuk animasi denyut/pulse */
@keyframes pulse-animation {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 10px 20px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.click-hint-animated {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  z-index: 2;

  /* Membuatnya jadi lingkaran yang menarik */
  background-color: rgba(
    0,
    170,
    255,
    0.85
  ); /* Warna --primary-color dengan transparansi */
  color: #fff;
  border-radius: 50%;
  width: 90px;
  height: 90px;

  /* Posisi & Tampilan Teks di dalam lingkaran */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: 0.9em;
  font-style: normal;
  font-weight: bold;

  /* Menjalankan animasi */
  animation: pulse-animation 2s infinite;

  /* Agar tidak menghalangi klik pada gambar */
  pointer-events: none;
}

.click-hint-animated i {
  font-size: 2em; /* Ikon lebih besar */
  margin-bottom: 5px;
}

/* Di layar kecil (mobile), buat ukurannya sedikit lebih kecil */
@media (max-width: 768px) {
  .click-hint-animated {
    width: 80px;
    height: 80px;
    font-size: 0.8em;
  }
  .click-hint-animated i {
    font-size: 1.8em;
  }
}

/* Sembunyikan petunjuk setelah pengguna mengarahkan mouse (di desktop) */
.album-item:hover .click-hint-animated {
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* ========================================= */
/* ===     GAYA CAROUSEL ALBUM GALERI    === */
/* ========================================= */

#album-grid {
  display: block;
}

.album-carousel-wrapper {
  position: relative;
  margin-top: 20px;
}

.album-carousel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 15px;
  margin: 0 -15px;
  scroll-snap-type: x mandatory;
}

.album-carousel::-webkit-scrollbar {
  display: none;
}

.album-carousel .album-item {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--border-color);
  color: var(--light-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 10;
}

@media (min-width: 769px) {
  .carousel-nav {
    display: flex;
  }
}

.carousel-nav:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

.carousel-nav.prev {
  left: -20px;
}

.carousel-nav.next {
  right: -20px;
}

@media (max-width: 768px) {
  .album-carousel .album-item {
    width: 80vw;
    max-width: 280px;
  }
}
/* ========================================= */
/* ===      GAYA UNTUK LIGHTGALLERY      === */
/* ========================================= */

/* Membuat cover album memiliki pointer cursor */
.album-cover {
  cursor: pointer;
}

/* Tema gelap untuk lightGallery */
.lg-backdrop {
  background-color: rgba(0, 0, 0, 0.85);
}
.lg-toolbar {
  background-color: rgba(0, 0, 0, 0.7);
}
.lg-sub-html {
  background-color: rgba(0, 0, 0, 0.7);
  color: #eee;
  font-size: 14px;
}
.lg-sub-html h4 {
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: #fff;
}
.lg-prev,
.lg-next {
  color: #fff !important;
}
.lg-icon {
  color: #eee;
}
.lg-icon:hover {
  color: #fff;
}
.lg-outer .lg-thumb-outer {
  background-color: #000;
}
/* ========================================= */
/* ===         GAYA CHATBOT BARU         === */
/* ========================================= */

#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  max-width: 90vw;
  background-color: #111111;
  border: 1px solid #333333;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: none; /* Default tersembunyi */
  flex-direction: column;
  z-index: 9999;
  font-family: "Poppins", sans-serif;
}

#chatbot-header {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

#chatbot-header #close-chatbot {
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
}

#chatbot-body {
  display: flex;
  flex-direction: column;
  height: 350px; /* Tinggi total body chatbot */
}

#chat-window {
  flex-grow: 1; /* Membuat area chat mengisi ruang yang tersedia */
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-message,
.bot-message {
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 80%;
  font-size: 0.9em;
  line-height: 1.4;
  word-wrap: break-word;
}

.user-message {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.bot-message {
  background-color: #333;
  color: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

#chat-input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid var(--border-color);
}

#chat-input {
  flex-grow: 1;
  border: none;
  background-color: #222;
  color: white;
  padding: 8px;
  border-radius: 5px;
}

#send-chat-btn {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 0 15px;
  margin-left: 10px;
  border-radius: 5px;
  cursor: pointer;
}

#open-chatbot-btn {
  position: fixed;
  bottom: 30px;
  right: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-size: 2em;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  #open-chatbot-btn {
    bottom: 80px; 
  }

  #chatbot-container {
    bottom: 80px;
    right: 20px;
  }
}


/* Gaya untuk animasi "sedang mengetik" */
.typing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 17px; /* Sesuaikan tinggi agar pas */
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  margin: 0 2px;
  background-color: #8e8e8e;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}

/* Atur delay animasi untuk setiap titik agar terlihat berurutan */
.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

/* Keyframes untuk animasi memantul */
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
