/* =====================================================
   Website UPZ BAZNAS PT INALUM — Stylesheet utama
   ===================================================== */

:root {
  --upz-green: #0a7d3b;
  --upz-green-dark: #065c2a;
  --upz-green-light: #e6f4ec;
  --upz-gold: #c9a227;
  --upz-dark: #1c1c1c;
  --upz-gray: #6c757d;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2b2b2b;
}

a { color: var(--upz-green); }
a:hover { color: var(--upz-green-dark); }

.btn-upz {
  background-color: var(--upz-green);
  border-color: var(--upz-green);
  color: #fff;
}
.btn-upz:hover, .btn-upz:focus {
  background-color: var(--upz-green-dark);
  border-color: var(--upz-green-dark);
  color: #fff;
}
.btn-outline-upz {
  border: 1px solid var(--upz-green);
  color: var(--upz-green);
}
.btn-outline-upz:hover {
  background-color: var(--upz-green);
  color: #fff;
}

.text-upz { color: var(--upz-green) !important; }
.bg-upz { background-color: var(--upz-green) !important; }
.bg-upz-light { background-color: var(--upz-green-light) !important; }

/* ---------- Navbar ---------- */
.navbar-upz {
  background-color: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
}
.navbar-upz .navbar-brand .logo-circle {
  width: 42px;
  height: 42px;
  background: var(--upz-dark);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
}
.navbar-upz .brand-text { line-height: 1.1; }
.navbar-upz .brand-text .brand-top {
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
}
.navbar-upz .brand-text .brand-bottom {
  font-size: .62rem;
  letter-spacing: .05em;
  color: var(--upz-gray);
}
.navbar-upz .nav-link {
  color: #333;
  font-weight: 500;
  margin: 0 .35rem;
}
.navbar-upz .nav-link:hover,
.navbar-upz .nav-link.active { color: var(--upz-green); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, #ececec 0%, #dcdcdc 100%);
  display: flex;
  align-items: center;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15));
}
.hero.has-image { color: #fff; }
.hero .hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero h1 {
  font-style: italic;
  font-weight: 700;
}
.hero p { font-size: .95rem; }

.carousel-indicators-upz button {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: #aaa;
  opacity: .6;
}
.carousel-indicators-upz button.active {
  background: var(--upz-dark);
  opacity: 1;
}

/* ---------- Section ---------- */
.section { padding: 4.5rem 0; }
.section-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: .5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--upz-gray);
  margin-bottom: 3rem;
}

/* ---------- Program ---------- */
.program-item { text-align: center; }
.program-item .program-icon {
  font-size: 3rem;
  color: var(--upz-dark);
  margin-bottom: .75rem;
}
.program-item h5 { font-weight: 700; }
.program-item p {
  color: var(--upz-gray);
  font-size: .9rem;
}
.program-item a { text-decoration: none; color: inherit; }
.program-item:hover .program-icon { color: var(--upz-green); }
.program-item:hover h5 { color: var(--upz-green); }

/* ---------- Kartu berita ---------- */
.news-card {
  border: 0;
  border-radius: .5rem;
  overflow: hidden;
  background: #fff;
  height: 100%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .07);
  transition: transform .15s ease, box-shadow .15s ease;
}
.news-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-card .card-body { flex-grow: 1; }
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, .12);
}
.news-card .news-thumb {
  height: 180px;
  background: #d2d2d2 center/cover no-repeat;
}
.news-card .card-body { background: #fff; }
.news-card .card-title {
  font-weight: 600;
  font-size: 1.05rem;
}
.news-card .news-meta {
  font-size: .8rem;
  color: var(--upz-gray);
}
.news-card a { text-decoration: none; color: inherit; }

/* ---------- Placeholder abu-abu (wireframe style) ---------- */
.img-placeholder {
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  font-size: 2.5rem;
  border-radius: .4rem;
}

/* ---------- Galeri video ---------- */
.video-card .ratio { border-radius: .4rem; overflow: hidden; background: #111; }
.video-card h6 { margin-top: .6rem; font-weight: 600; }
.yt-thumb {
  position: absolute; top: 0; left: 0;
  display: block; width: 100%; height: 100%;
  cursor: pointer; background: #111;
}
.yt-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .2s;
}
.yt-thumb:hover img { opacity: .8; }
.yt-thumb .yt-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.yt-thumb .yt-play svg {
  width: 64px; height: 64px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
  transition: transform .2s;
}
.yt-thumb:hover .yt-play svg { transform: scale(1.12); }
/* Modal video */
#ytModal .modal-dialog { max-width: 860px; }
#ytModal .modal-body { padding: 0; background: #000; line-height: 0; }
#ytModal iframe { width: 100%; height: 480px; border: none; }

/* ---------- Transparansi ---------- */
.stat-card {
  border: 1px solid #e5e5e5;
  border-radius: .6rem;
  padding: 1.5rem;
  background: #fff;
}
.stat-card .stat-icon {
  font-size: 1.8rem;
  color: var(--upz-green);
}
.stat-card .stat-value {
  font-size: 1.45rem;
  font-weight: 700;
}
.stat-card .stat-label {
  color: var(--upz-gray);
  font-size: .85rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 4rem 0 1.5rem;
}
.footer h2 { font-weight: 700; }
.footer .footer-bottom {
  border-top: 1px solid #ececec;
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: .8rem;
  color: var(--upz-gray);
}
.footer .footer-bottom a {
  color: var(--upz-gray);
  margin-right: 1rem;
}
.footer .map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: .4rem;
  background: #d9d9d9;
}

/* ---------- Halaman umum ---------- */
.page-header {
  background: var(--upz-green-light);
  padding: 3rem 0;
}
.page-header h1 { font-weight: 700; }
.breadcrumb { margin-bottom: 0; }

.article-content {
  white-space: pre-line;
  line-height: 1.8;
}

/* ---------- Form donasi ---------- */
.donation-type .form-check-input:checked {
  background-color: var(--upz-green);
  border-color: var(--upz-green);
}
.bank-box {
  background: var(--upz-green-light);
  border-left: 4px solid var(--upz-green);
  border-radius: .35rem;
  padding: 1rem 1.25rem;
}
