/* ==========================================================
   NU CARE LAZISNU JB - MAIN STYLESHEET
   ========================================================== */

/* ----------------------------------------------------------
   1. CSS VARIABLES & SYSTEM DESIGN
   ---------------------------------------------------------- */
:root {
  /* Colors */
  --primary: #007a3d;
  --primary-hover: #005e2d;
  --primary-light: #e6f2eb;
  --dark: #1e293b;
  --text-body: #334155;
  --text-muted: #64748b;
  --bg-light: #f7f8fa;
  --white: #ffffff;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;

  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------
   2. GENERAL / RESET STYLES
   ---------------------------------------------------------- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

.section-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* ----------------------------------------------------------
   3. TOP BAR
   ---------------------------------------------------------- */
.top-info {
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1040;
}

.top-info i {
  margin-right: 6px;
}

/* ----------------------------------------------------------
   4. NAVBAR & DROPDOWN (FIXED Z-INDEX)
   ---------------------------------------------------------- */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1050 !important; /* Memastikan navbar selalu di atas elemen lain */
}

.navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  margin: 0 4px;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background-color: var(--primary-light);
}

.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  margin-top: 10px;
  z-index: 1060 !important; /* Memastikan menu dropdown tampil di lapisan teratas */
}

.dropdown-item {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Login Button */
.btn-login {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 9px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 122, 61, 0.25);
  transition: var(--transition);
}

.btn-login:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 122, 61, 0.35);
}

/* ----------------------------------------------------------
   5. QUICK DONATE (FLOATING BUTTON)
   ---------------------------------------------------------- */
.quick-donate {
  position: fixed;
  left: 0;
  top: 45%;
  transform: translateY(-50%);
  z-index: 1030;
  background-color: var(--primary);
  color: var(--white);
  padding: 14px 16px;
  border-radius: 0 16px 16px 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.quick-donate:hover {
  background-color: var(--primary-hover);
  padding-left: 22px;
  color: var(--white);
}

/* ----------------------------------------------------------
   6. HERO SECTION
   ---------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0f172a;
  z-index: 1; /* Di bawah navbar agar dropdown tidak terhalang */
}

.hero-slide {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: var(--radius-md);
  color: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-indicators .active {
  width: 26px;
  border-radius: 10px;
  background-color: var(--primary);
}

/* ----------------------------------------------------------
   7. QUICK MENU
   ---------------------------------------------------------- */
.quick-menu-card {
  background-color: var(--white);
  padding: 24px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
}

.quick-menu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.quick-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.quick-menu-card:hover .quick-icon {
  background-color: var(--primary);
  color: var(--white);
}

.quick-menu-card h6 {
  margin: 0;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

/* ----------------------------------------------------------
   8. STATISTIK SECTION
   ---------------------------------------------------------- */
.statistik-section {
  background-color: var(--bg-light);
}

.stat-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 16px;
}

.stat-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.stat-card p {
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* ----------------------------------------------------------
   9. PROGRAM DONASI
   ---------------------------------------------------------- */
.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.program-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
  transform: scale(1.06);
}

.program-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(0, 122, 61, 0.9);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.program-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-body h5 {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.program-body p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.program-body .progress {
  height: 8px;
  border-radius: var(--radius-full);
  background-color: #e2e8f0;
}

/* ----------------------------------------------------------
   10. CALL TO ACTION (CTA)
   ---------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #004d25 100%);
  color: var(--white);
  padding: 60px 0;
}

.cta-section h2 {
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0;
}

/* ----------------------------------------------------------
   11. NEWS / BERITA
   ---------------------------------------------------------- */
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-body h5 {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 10px 0;
  color: var(--dark);
  line-height: 1.4;
}

.news-body p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ----------------------------------------------------------
   12. RESPONSIVE MEDIA QUERIES
   ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-slide {
    min-height: auto;
    padding: 40px 0;
  }

  .quick-donate {
    padding: 10px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .top-info {
    font-size: 0.75rem;
    text-align: center;
  }

  .stat-card h2 {
    font-size: 1.5rem;
  }
}