/* ==================== GLOBAL ==================== */

/* Warna custom untuk bagian kepengurusan RW */
.bg-custom-green {
  background-color: #22c55e !important;
}

html {
  scroll-behavior: smooth;
}

/* Tombol navigasi utama */
.btn-nav {
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background-color: #22c55e !important;
  color: white !important;
}

/* Background body */
body {
  background: linear-gradient(to right, #f0fdf4, #fefce8);
}

/* ==================== CARD SECTION ==================== */
/* Gunakan class .card-section di container yang berisi card agar tidak mempengaruhi layout lain */
.card-section .row {
  display: flex;
  flex-wrap: wrap;
}

.card-section .row > [class*="col-"] {
  display: flex;
}

.card-section .row > [class*="col-"] .card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

/* Efek hover pada card */
.card-section .card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

/* Gambar card */
.card-section .card-img-top {
  border-bottom: 3px solid #22c55e;
  transition: all 0.3s ease-in-out;
}

.card-section .card-img-top:hover {
  filter: brightness(1.05) saturate(1.2);
}

/* Pastikan isi card body fleksibel dan rata tengah */
.card-section .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Nama orang */
.card-section .card-title {
  font-size: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Badge atau jabatan */
.card-section .card-text span,
.card-section .card-text {
  white-space: normal;
  text-align: center;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
  font-weight: 700;
  border-left: 6px solid #22c55e;
  padding-left: 12px;
  font-size: 1.5rem;
  color: #198754;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: sticky;
  bottom: 20px;
  z-index: 999;
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(to top left, #166534, #22c55e) !important;
  color: white;
  padding-top: 3rem;
  padding-bottom: 3rem;
  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
}

/* Pastikan row di footer tidak ikut layout card */
footer .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

footer a.text-white:hover {
  color: #e9fbe5 !important;
  transform: scale(1.05);
  text-decoration: underline;
}

footer .fab {
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .fab:hover {
  transform: scale(1.2);
  color: #e9fbe5;
}

footer .ratio iframe {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ==================== RESPONSIVE ==================== */
/* Untuk tablet (768px–991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .person-img {
    height: 250px !important;
    object-fit: cover;
  }
}

/* Untuk HP kecil */
@media (max-width: 576px) {
  footer .row {
    display: block;
  }
}
