.public-body { background: #f4f4f2; }

.public-nav {
  background: linear-gradient(90deg, #1a1a1a, #0d0d0d);
  border-bottom: 3px solid #d4af37;
  padding: 12px 0;
}
.public-nav .nav-link {
  color: #e6e6e3;
  font-size: 0.9rem;
  padding: 8px 12px !important;
}
.public-nav .nav-link:hover,
.public-nav .nav-link.active {
  color: #d4af37;
  font-weight: 600;
}
.btn-psht-gold {
  background: #d4af37 !important;
  color: #1a1a1a !important;
  border: none !important;
  opacity: 1 !important;
}
.btn-psht-gold:hover { background: #b8941f !important; color: #1a1a1a !important; }

/* Tombol nama pengurus/admin di navbar - solid (BUKAN outline pudar) supaya jelas
   terlihat aktif/bisa diklik, warna beda dari siswa (gold) untuk pembeda peran.
   !important dipakai di SEMUA properti (bukan cuma warna teks) supaya kebal dari
   konflik spesifisitas CSS lain, misalnya style bawaan .navbar-dark .nav-link
   yang meredupkan opacity teks navbar secara default. */
.btn-psht-admin {
  background: #8f0f1c !important;
  color: #ffffff !important;
  border: 1px solid #d4af37 !important;
  opacity: 1 !important;
}
.btn-psht-admin:hover { background: #c81e2c !important; color: #ffffff !important; border-color: #d4af37 !important; }

/* Dropdown "Tentang Kami" di navbar */
.public-nav .dropdown-menu {
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 8px;
  margin-top: 10px;
}
.public-nav .dropdown-item {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #333;
}
.public-nav .dropdown-item:hover,
.public-nav .dropdown-item:focus {
  background: #f4ecd8;
  color: #1a1a1a;
}
.public-nav .dropdown-item.active {
  background: #1a1a1a;
  color: #d4af37 !important;
}
.public-nav .dropdown-toggle::after { vertical-align: 0.15em; }

/* ---------- Hero Beranda ---------- */
.public-hero-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 60%, #8f0f1c 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.public-hero-banner::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
}
.hero-title { font-size: 2.4rem; font-weight: 800; }
.hero-sub { font-size: 1.05rem; color: #e6e6e3; max-width: 620px; }

/* ---------- Section umum ---------- */
.section-title {
  font-weight: 800;
  color: #1a1a1a;
  border-left: 5px solid #c81e2c;
  padding-left: 14px;
  margin-bottom: 1.5rem;
}
.public-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  height: 100%;
}
.public-card .icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c81e2c, #8f0f1c);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ---------- Tingkatan sabuk ---------- */
.belt-card {
  border-radius: 14px;
  padding: 1.5rem;
  color: #fff;
  text-align: center;
  height: 100%;
}
.belt-card .belt-swatch {
  width: 60px; height: 14px;
  border-radius: 7px;
  margin: 0 auto 1rem;
}

/* ---------- Pengurus / Pelatih card ---------- */
.person-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.person-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  color: #d4af37;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 12px;
  border: 3px solid #d4af37;
}

/* ---------- Bagan Organisasi ---------- */
.orgchart-wrap {
  overflow-x: auto;
  padding: 20px 10px 10px;
}
.org-tree, .org-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.org-tree ul { padding-top: 40px; }
.org-tree li {
  position: relative;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* garis vertikal turun dari box ke anak-anaknya */
.org-tree li > ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 20px;
  border-left: 2px solid #c9a227;
  transform: translateX(-1px);
}
/* garis horizontal menghubungkan antar saudara kandung dalam satu baris */
.org-tree li > ul {
  position: relative;
}
.org-tree li > ul::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  border-top: 2px solid #c9a227;
}
.org-tree li > ul > li {
  position: relative;
  padding-top: 20px;
}
.org-tree li > ul > li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 0;
  height: 20px;
  border-left: 2px solid #c9a227;
}
.org-tree li > ul:only-child::after,
.org-tree li > ul > li:only-child::before { display: none; }
.org-tree li > ul > li:first-child::after {
  content: "";
  position: absolute;
  top: 20px; left: 0; right: 50%;
  height: 0; border-top: 2px solid transparent;
}
.org-tree li > ul > li:first-child { border-radius: 0; }
.org-box {
  display: inline-block;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  padding: 10px 18px;
  min-width: 140px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  font-size: 13px;
}
.org-box .org-nama { font-weight: 700; color: #1a1a1a; display:block; }
.org-box .org-jabatan { font-size: 11px; color: #c81e2c; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.org-box.org-top { border-color: #c81e2c; background: linear-gradient(135deg, #1a1a1a, #0d0d0d); }
.org-box.org-top .org-nama { color: #fff; }
.org-box.org-top .org-jabatan { color: #d4af37; }

/* ---------- Galeri ---------- */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  background:#fff;
}
.gallery-item img {
  width: 100%; height: 200px; object-fit: cover; display:block;
}
.gallery-caption { padding: 0.75rem 1rem; }

/* ---------- Event card ---------- */
.event-card-link { text-decoration: none; color: inherit; display:block; cursor: pointer; }
.event-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.15s, box-shadow 0.15s;
}
.event-card-link:hover .event-card {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.event-card-img {
  position: relative;
  height: 170px;
  background: #eee;
}
.event-card-img img {
  width: 100%; height: 100%; object-fit: cover; display:block;
}
.event-card-placeholder {
  width: 100%; height: 100%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  color: #d4af37;
  font-size: 2.2rem;
}
.event-price-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #d4af37;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.event-price-badge.free {
  background: #3a9d63;
  color: #fff;
}
.event-detail-banner {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
}
.event-detail-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  color: #d4af37;
  font-size: 3rem;
}

/* ---------- Footer ---------- */
.public-footer {
  background: #1a1a1a;
}
.footer-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.footer-link:hover { color: #d4af37; }
