/* === NAVBAR HEADER === */
.navbar .header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar .header-left img {
  width: 60px;
  height: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar .header-titles h1 {
  font-size: 18px;
  font-weight: 500;
  margin-left: -170px;
}

.navbar .header-titles h2 {
  font-size: 15px;
  font-weight: 500;
  margin-left: -170px;
}

/* === BAGAN STRUKTUR ORGANISASI === */
.chart-container {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Elemen Baris/Tingkat di Struktur */
.chart-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 100%;
  flex-wrap: wrap;
}

/* Kotak Anggota / Pengurus */
.member-card {
  background-color: #f1f1ff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  width: 260px;
  text-align: center;
  padding: 20px;
  border-top: 5px solid var(--primary-red);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Spesifik untuk Kepala Sekolah */
.leader {
  border-top-color: #d4a017; /* Warna Emas/Kuning khusus pimpinan */
  width: 280px;
  margin-top: 50px;
}

/* Foto Profil */
.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid #eee;
  background-color: #e1e1e1;
}

/* Detail Teks */
.role {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  color: #000000;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.name {
  font-size: 14px;
  font-weight: 600;
  color: #0c0c9e;
}

/* Garis Penghubung Dekoratif (Opsional untuk estetika) */
.divider {
  width: 50px;
  height: 2px;
  background-color: #610707;
  align-self: center;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .chart-row {
    flex-direction: column;
    align-items: center;
  }
  .member-card {
    width: 90%;
    max-width: 300px;
  }
  .navbar .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .navbar .header-left img {
    width: 50px;
    height: auto;
  }
  .navbar .header-titles h1 {
    margin-left: -280px;
    font-size: 16px;
    font-weight: 400;
  }
  .navbar .header-titles h2 {
    margin-left: -280px;
    font-size: 14px;
    font-weight: 400;
  }
  .page-header {
    height: 270px;
  }
  .page-header h2 {
    font-size: 28px;
    margin: 30px 0;
  }
  .page-header p {
    font-size: 18px;
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .chart-row {
    flex-direction: column;
    align-items: center;
  }
  .member-card {
    width: 80%;
    max-width: 250px;
  }
  .navbar .header-left {
    display: flex;
    align-items: center;
  }
  .navbar .header-left img {
    margin-left: -35px;
    width: 35px;
    height: auto;
  }
  .navbar .header-titles h1 {
    margin-left: -100px;
    font-size: 10px;
    font-weight: 400;
  }
  .navbar .header-titles h2 {
    margin-left: -100px;
    font-size: 9px;
    font-weight: 400;
  }
  .page-header {
    height: 220px;
  }
  .page-header h2 {
    font-size: 16px;
    margin: -5px 0 20px 0;
  }
  .page-header p {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .bar {
    margin-right: -10px;
  }
}
