/**
 * Custom CSS untuk Website Publik MINA DOMPON SEJAHTERA (MDS)
 * Clean, profesional, modern, mobile-friendly
 */

:root {
  --mds-primary: #059669;
  --mds-primary-hover: #047857;
  --mds-secondary: #0284c7;
  --mds-dark: #0f2942;
  --mds-darker: #091a2b;
  --mds-light: #f8fafc;
  --mds-card-border: #e2e8f0;
  --mds-text-muted: #64748b;
  --mds-whatsapp: #25d366;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar-mds {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand-logo {
  height: 48px;
  width: auto;
}

.nav-link {
  font-weight: 500;
  color: #334155;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--mds-primary) !important;
  font-weight: 600;
}

.btn-whatsapp-nav {
  background-color: var(--mds-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.btn-whatsapp-nav:hover {
  background-color: var(--mds-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  background-color: var(--mds-dark);
  background-image: linear-gradient(to right, rgba(15, 41, 66, 0.94) 0%, rgba(15, 41, 66, 0.82) 42%, rgba(15, 41, 66, 0.3) 80%, rgba(15, 41, 66, 0.15) 100%), url('../images/hero-bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 5.5rem 0 7.5rem 0;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: #a7f3d0;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-address {
  font-size: 1rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-slogan {
  font-size: 1.2rem;
  font-style: italic;
  color: #f1f5f9;
  border-left: 3px solid var(--mds-primary);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.btn-hero-primary {
  background-color: var(--mds-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 1.8rem;
  transition: all 0.25s ease;
  border: none;
}

.btn-hero-primary:hover {
  background-color: var(--mds-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

.btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 1.8rem;
  transition: all 0.25s ease;
}

.btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #ffffff;
}

/* FLOATING STATS CARD */
.stats-floating-container {
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
}

.stats-card-main {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--mds-card-border);
  padding: 1.5rem 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.blue { background-color: #e0f2fe; color: #0284c7; }
.stat-icon.green { background-color: #d1fae5; color: #059669; }
.stat-icon.orange { background-color: #fef3c7; color: #d97706; }
.stat-icon.navy { background-color: #e2e8f0; color: #0f2942; }

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--mds-text-muted);
  font-weight: 500;
}

/* PROFIL SECTION & 3 CARDS */
.profil-card-feature {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--mds-card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profil-card-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.profil-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.profil-icon-circle.green { background-color: #d1fae5; color: #059669; }
.profil-icon-circle.blue { background-color: #e0f2fe; color: #0284c7; }
.profil-icon-circle.orange { background-color: #fef3c7; color: #d97706; }

/* KEGIATAN & GALERI CARDS */
.filter-pill-btn {
  background-color: #f1f5f9;
  color: #475569;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  margin: 0.25rem;
  transition: all 0.2s ease;
}

.filter-pill-btn:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

.filter-pill-btn.active {
  background-color: var(--mds-primary);
  color: #ffffff;
}

.kegiatan-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mds-card-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.kegiatan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.kegiatan-img-wrapper {
  position: relative;
  height: 190px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.kegiatan-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kegiatan-card:hover .kegiatan-img {
  transform: scale(1.04);
}

.kegiatan-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #d97706;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.kegiatan-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.kegiatan-desc {
  font-size: 0.9rem;
  color: var(--mds-text-muted);
  line-height: 1.5;
}

/* FOOTER */
.footer-mds {
  background-color: var(--mds-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-text {
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

/* WHITE HERO BUTTON */
.btn-hero-white {
  background-color: #ffffff;
  color: #0f2942;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.75rem 1.8rem;
  transition: all 0.25s ease;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-white:hover {
  background-color: #f8fafc;
  color: var(--mds-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* RESPONSIVE TWEAKS (Ponsel & Tablet - Presisi Screenshot HP) */
@media (max-width: 768px) {
  .hero-section {
    padding: 3.25rem 0 4.75rem 0;
    background-image: linear-gradient(rgba(10, 30, 50, 0.75), rgba(8, 26, 44, 0.88)), url('../images/hero-bg.png');
    background-position: center;
    background-size: cover;
    text-align: left;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    color: #a7f3d0;
  }

  .hero-address {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    gap: 0.5rem;
    line-height: 1.35;
  }

  .hero-slogan {
    font-size: 1.12rem;
    font-style: italic;
    border-left: none;
    padding-left: 0;
    margin-bottom: 1.75rem;
    line-height: 1.4;
  }

  .hero-buttons-wrapper {
    display: flex !important;
    gap: 0.75rem !important;
    width: 100%;
  }

  .hero-buttons-wrapper .btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .stats-floating-container {
    margin-top: -2.85rem;
    margin-bottom: 2rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .stats-card-main {
    padding: 0.95rem 0.25rem;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #ffffff;
  }

  .stat-mobile-col {
    padding: 0.25rem 0.35rem;
  }

  .stat-mobile-icon {
    font-size: 1.85rem;
    line-height: 1;
    color: #0284c7;
    margin-bottom: 0.25rem;
  }

  .stat-mobile-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.15rem;
  }

  .stat-mobile-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
  }
}

/* ==================== MODAL SCROLL FIX (Mobile & Desktop) ==================== */
.modal-dialog-scrollable {
  max-height: calc(100% - 1.5rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 2.5rem) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain;
}
