* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body {
  background: url("../img/bguinsu.jpg") center center/cover no-repeat fixed;
  color: #333333a6;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  font-family: "Domine", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

a {
  text-decoration: none;
  color: #388e4a;
  transition: color 0.3s ease-in-out;
}
a:hover {
  color: #256c36;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(154, 230, 151, 0.829);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.nav-left {
  display: flex;
  align-items: center;
}
.logo {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.1);
}
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
nav h2 {
  font-weight: 700;
  color: #10441b;
  margin: 0;
  letter-spacing: 1.5px;
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(68, 59, 59, 0.2);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.menu li a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: 25px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  position: relative;
}
.menu li a:hover {
  color: #256c36;
  transform: translateY(-2px);
  background: rgba(56, 142, 74, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.iconMenu {
  display: none;
  width: 35px;
  height: 35px;
  cursor: pointer;
  margin-left: 1.5rem;
  transition: transform 0.3s ease;
}
.iconMenu:hover {
  transform: scale(1.1);
}

/* Hero Section (Dibiarkan sama, sudah bagus) - TETAP SAMA */
.hero-section {
  color: #fff;
  text-align: center;
  position: relative;
  animation: fadeIn 1.5s ease-out;
  margin-bottom: 8rem;
  height: max-content;
}

.hero-section img {
  max-width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content {
  z-index: 5;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  transform: translateY(40%);
}

.text-hero {
  width: 100%;
  height: max-content;
  padding: 1rem;
  border-radius: 10px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}
.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.98;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Struktur Organisasi Container - MODIFIKASI RINGAN */
.info-section {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  margin: 60px auto;
  max-width: 1200px; /* Lebar lebih besar untuk bagan */
  padding: 50px;
  position: relative;
  z-index: 2;
  animation: slideIn 1s ease-out forwards;
  opacity: 0;
}
.info-section:nth-of-type(1) {
  animation-delay: 0.5s;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Title yang Ditingkatkan - TETAP SAMA */
.section-title {
  font-size: 2.2rem;
  margin: 50px 0 30px;
  color: #10441b;
  text-align: center;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
  border-bottom: 3px solid #388e4a;
  display: block;
}

/* === GAYA KHUSUS UNTUK TATA LETAK TANPA GARIS HIERARKI === */

.org-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; /* Jarak vertikal antar baris dikurangi */
}

/* Baris Anggota Tim */
.row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  position: relative;
  /* Tambahkan margin bawah untuk pemisah visual yang jelas */
  margin-bottom: 20px;
}

/* HAPUS SEMUA GARIS BAGAN (Pseudo-elements) */

.kepala-row::after,
.first-level::before,
.second-level::before,
.third-level::before,
.row:not(.kepala-row) .bagian::before,
.kepala-row .kepala-unit::after {
  content: none !important; /* Memastikan semua garis dihilangkan */
}

/* Styling Kartu Anggota Tim - MODIFIKASI RINGAN */
.bagian {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: default;
  border: 1px solid rgba(56, 142, 74, 0.1);
  text-align: center;
  position: relative;
  width: 220px; /* Lebar Tetap untuk anggota */
  z-index: 5;
}
.kepala-unit {
  width: 250px;
}

.bagian:hover {
  background: #f0fff0;
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.member-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #388e4a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.member-img:hover {
  transform: scale(1.05);
  border-color: #256c36;
}

.bagian h3 {
  font-size: 1.4rem;
  color: #10441b;
  margin: 5px 0 5px;
  font-weight: 700;
}

.bagian p {
  font-size: 1rem;
  font-style: italic;
  color: #388e4a;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: rgba(56, 142, 74, 0.05);
  display: inline-block;
}

/* Menu mobile dan responsive (Dibiarkan sama, sudah bagus) - TETAP SAMA */
.container-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.container-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

menu#menu {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.2)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  padding: 40px;
  width: 90%;
  max-width: 450px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform: scale(0.7) translateY(50px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    opacity 0.5s ease;
}
.container-menu.active menu#menu {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.iconBackMenu {
  width: 35px;
  height: 35px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  transition: transform 0.3s ease;
}
.iconBackMenu:hover {
  transform: rotate(90deg) scale(1.1);
}

menu#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  text-align: center;
}
menu#menu ul li a {
  text-decoration: none;
  color: #388e4a;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 15px;
  padding: 15px 20px;
  display: block;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  position: relative;
}
menu#menu ul li a:hover {
  background: rgba(56, 142, 74, 0.2);
  color: #256c36;
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments - MODIFIKASI RINGAN */
@media (max-width: 1250px) {
  .info-section {
    max-width: 95%;
  }
}

@media (max-width: 1100px) {
  .row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 0; /* Hilangkan margin di mode mobile */
  }
  .bagian {
    width: 80%;
    max-width: 300px;
  }
  .org-chart-container {
    gap: 30px;
  }

  .menu {
    display: none;
  }
  .iconMenu {
    display: block;
  }
  nav h2 {
    font-size: 1.6rem;
  }
  .hero-section {
    height: 450px;
    padding: 80px 15px;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .info-section {
    padding: 40px 25px;
    margin: 40px auto;
  }
  .section-title {
    font-size: 1.8rem;
    padding-bottom: 8px;
  }
  .member-img {
    width: 120px;
    height: 120px;
  }
  .hero-section {
    max-width: 100vw;
    width: 100%;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.6rem 1rem;
  }
  .logo {
    width: 50px;
    height: 50px;
  }
  nav h2 {
    font-size: 1.4rem;
  }
  .hero-section {
    height: 380px;
    padding: 60px 15px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .info-section {
    padding: 30px 15px;
    margin: 30px auto;
  }
  .bagian {
    width: 100%;
    max-width: 300px;
  }
  menu#menu {
    padding: 30px;
  }
  menu#menu ul li a {
    font-size: 1.1rem;
    padding: 12px 15px;
  }
}
