/* ============================================================
   PORTAL / LANDING PAGE - Amil Zakat
   ============================================================ */
:root {
  --p-primary: #0d6e4e;
  --p-primary-dark: #0a573d;
  --p-primary-light: #12a06f;
  --p-accent: #d4af37;
  --p-dark: #07291f;
  --p-cream: #f7f9f7;
}

.portal-body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #33403b;
  background: #fff;
}

/* ====== NAVBAR ====== */
.portal-navbar {
  background: rgba(7, 41, 31, .97);
  backdrop-filter: blur(4px);
  padding: 12px 0;
  transition: all .3s;
  z-index: 1050;
}
.portal-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}
.portal-navbar .navbar-brand .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--p-accent);
  color: var(--p-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.portal-navbar .navbar-brand small { display: block; font-weight: 400; color: #b9d6c9; font-size: 11px; }
.portal-navbar .nav-link { color: #d6e7df; font-weight: 500; margin: 0 4px; }
.portal-navbar .nav-link:hover, .portal-navbar .nav-link.active { color: var(--p-accent); }
.portal-navbar .btn-login {
  border: 1px solid var(--p-accent);
  color: var(--p-accent);
  border-radius: 40px;
  padding: 6px 18px;
}
.portal-navbar .btn-login:hover { background: var(--p-accent); color: var(--p-dark); }

/* ====== HERO ====== */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--p-dark) 0%, var(--p-primary) 55%, var(--p-primary-light) 100%);
  color: #fff;
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,.06);
}
.hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 50px solid rgba(212,175,55,.10);
}
.hero .hero-content { position: relative; z-index: 2; }
.hero .badge-hero {
  background: rgba(212,175,55,.18);
  border: 1px solid rgba(212,175,55,.5);
  color: #f0d489;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 13px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.15; }
.hero p { font-size: clamp(15px, 2vw, 18px); color: #dbe9e2; max-width: 560px; }
.hero .btn-donasi {
  background: var(--p-accent);
  color: var(--p-dark);
  border-radius: 40px;
  font-weight: 700;
  padding: 12px 28px;
}
.hero .btn-donasi:hover { background: #e0c05a; color: var(--p-dark); }
.hero .btn-cara {
  border: 1px solid #b9e0ce;
  color: #eaf7f1;
  border-radius: 40px;
  padding: 12px 28px;
}
.hero .btn-cara:hover { background: rgba(255,255,255,.12); color: #fff; }

.hero-stats-badge {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-stats-badge .stat {
  border-left: 3px solid var(--p-accent);
  padding-left: 14px;
}
.hero-stats-badge .stat .num { font-size: 24px; font-weight: 800; }

/* ====== HERO BANNER (CAROUSEL) ====== */
.hero-banner {
  position: relative;
  z-index: 2;
}
.hero-carousel {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border: 3px solid rgba(255,255,255,.12);
}
.hero-carousel .carousel-item { height: 430px; background: var(--p-dark); }
.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-carousel .carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(7,41,31,.92), rgba(7,41,31,0));
  text-align: left;
}
.hero-carousel .carousel-caption h5 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  font-size: 20px;
}
.hero-carousel .carousel-caption p {
  color: #dbe9e2;
  font-size: 14.5px;
  margin: 0;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 8%;
  opacity: .7;
}
.hero-carousel .carousel-indicators {
  margin-bottom: 8px;
}
.hero-carousel .carousel-indicators li {
  background-color: rgba(255,255,255,.5);
  border: 0;
  border-radius: 10px;
  height: 4px;
  width: 22px;
}
.hero-carousel .carousel-indicators .active {
  background-color: var(--p-accent);
}
@media (max-width: 991.98px) {
  .hero-banner { margin-top: 36px; }
  .hero-carousel .carousel-item { height: 300px; }
}
@media (max-width: 575.98px) {
  .hero-banner { margin-top: 28px; }
  .hero-carousel .carousel-item { height: 230px; }
  .hero-carousel .carousel-caption h5 { font-size: 17px; }
  .hero-carousel .carousel-caption p { font-size: 13px; }
}

/* ====== SECTION COMMON ====== */
.portal-section { padding: 64px 0; }
.portal-section.bg-cream { background: var(--p-cream); }
.section-label {
  display: inline-block;
  background: #e3f1ea;
  color: var(--p-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 30px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; color: var(--p-dark); margin-bottom: 12px; }
.section-desc { color: #5f6d67; max-width: 640px; }

/* ====== PROGRAM CARDS ====== */
.program-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e6ede9;
  box-shadow: 0 6px 18px rgba(7,41,31,.07);
  padding: 26px 22px;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(13,110,78,.16);
}
.program-card .icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--p-primary), var(--p-primary-light));
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.program-card h5 { font-weight: 700; color: var(--p-dark); }
.program-card p { color: #5f6d67; font-size: 14px; }

/* ====== STATS BAND ====== */
.stats-band {
  background: linear-gradient(120deg, var(--p-primary-dark), var(--p-primary));
  color: #fff;
  padding: 46px 0;
  border-radius: 0;
}
.stats-band .stat-item { text-align: center; padding: 10px; }
.stats-band .stat-item .icon { font-size: 30px; color: var(--p-accent); margin-bottom: 8px; }
.stats-band .stat-item .num { font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.stats-band .stat-item .label { font-size: 14px; color: #d6e7df; }

/* ====== STEPS ====== */
.step-item { text-align: center; padding: 20px 12px; }
.step-item .step-no {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e3f1ea;
  color: var(--p-primary);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item h6 { font-weight: 700; color: var(--p-dark); }
.step-item p { color: #5f6d67; font-size: 13px; }

/* ====== TENTANG ====== */
.tentang-img-placeholder {
  background: linear-gradient(135deg, var(--p-primary-dark), var(--p-primary-light));
  border-radius: 18px;
  min-height: 360px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}
.tentang-img-placeholder::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,.08);
}
.check-list li { list-style: none; margin-bottom: 12px; font-size: 15px; }
.check-list li i { color: var(--p-primary); margin-right: 10px; }

/* ====== KONTAK ====== */
.contact-info .info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-info .info-item .icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #e3f1ea;
  color: var(--p-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info .info-item h6 { margin: 0; font-weight: 700; color: var(--p-dark); }
.contact-info .info-item p { margin: 2px 0 0; color: #5f6d67; font-size: 14px; }

.form-control:focus, .custom-select:focus {
  border-color: var(--p-primary-light);
  box-shadow: 0 0 0 .2rem rgba(18,160,111,.15);
}

/* ====== BERITA ====== */
.berita-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e6ede9;
  box-shadow: 0 6px 18px rgba(7,41,31,.07);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.berita-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(13,110,78,.16);
}
.berita-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 190px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.berita-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.berita-card:hover .berita-thumb img { transform: scale(1.06); }
.berita-thumb-placeholder {
  background: linear-gradient(135deg, var(--p-primary-dark), var(--p-primary-light));
  color: #fff;
  font-size: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.berita-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.berita-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #75817b;
  font-size: 12.5px;
  margin-bottom: 10px;
}
.berita-meta i { color: var(--p-primary); }
.berita-body h5 { font-weight: 700; color: var(--p-dark); margin-bottom: 8px; }
.berita-body h5 a { color: var(--p-dark); text-decoration: none; }
.berita-body h5 a:hover { color: var(--p-primary); }
.berita-body p { color: #5f6d67; font-size: 14px; flex: 1; margin-bottom: 12px; }
.berita-link {
  color: var(--p-primary);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
.berita-link:hover { color: var(--p-primary-dark); }

/* ====== BERITA DETAIL ====== */
.berita-detail {
  background: #fff;
  border: 1px solid #e6ede9;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(7,41,31,.07);
  padding: 32px;
}
.berita-detail .berita-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--p-dark);
  margin-bottom: 10px;
}
.berita-detail .berita-meta { margin-bottom: 18px; }
.berita-detail-img {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: 12px;
}
.berita-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.berita-content {
  color: #33403b;
  font-size: 16px;
  line-height: 1.8;
}

/* ====== FOOTER ====== */
.portal-footer {
  background: var(--p-dark);
  color: #b9d6c9;
}
.portal-footer .footer-top { padding: 46px 0 26px; }
.portal-footer h6 { color: #fff; font-weight: 700; margin-bottom: 16px; }
.portal-footer a { color: #b9d6c9; text-decoration: none; }
.portal-footer a:hover { color: var(--p-accent); }
.portal-footer .list-unstyled li { margin-bottom: 8px; font-size: 14px; }
.portal-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  font-size: 13px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991.98px) {
  .hero { padding: 60px 0 80px; }
  .portal-navbar .navbar-collapse { background: var(--p-dark); padding: 12px; border-radius: 10px; margin-top: 8px; }
}
@media (max-width: 575.98px) {
  .portal-section { padding: 44px 0; }
  .hero-stats-badge { gap: 18px; }
  .hero-stats-badge .stat .num { font-size: 20px; }
}