:root {
  --brand: #4f46e5;
  --brand-soft: #eef2ff;
  --brand-ink: #1e1b4b;
  --ink: #0f172a;
  --ink-muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
}

html, body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); }

a { text-decoration: none; }

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: .5rem;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  color: white;
  margin-right: .5rem;
}
.navbar-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

nav#mainNav {
  background-color: #4f46e5 !important;
  border-bottom: none;
  min-height: 56px;
  padding-top: .25rem;
  padding-bottom: .25rem;
}
nav#mainNav .navbar-brand,
nav#mainNav .nav-link { color: rgba(255,255,255,.9); font-weight: 500; }
nav#mainNav .nav-link:hover,
nav#mainNav .nav-link.active { color: #ffffff; }

.btn-primary {
  background: var(--brand);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(79,70,229,.25);
}
.btn-primary:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(79,70,229,.3);
}
.btn-primary-soft {
  background: var(--brand-soft);
  color: var(--brand);
  border: none;
  font-weight: 600;
}
.btn-primary-soft:hover { background: #e0e7ff; }
.btn-outline-dark { border: 2px solid var(--ink); color: var(--ink); font-weight: 600; border-radius: .5rem; }
.btn-outline-dark:hover { background: var(--ink); color: white; }

main { padding-top: 0; }

.hero-section {
  position: relative;
  padding: 1rem 0 2rem;
}
.hero-section.has-image {
  min-height: 58vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10,15,40,.25), rgba(10,15,40,.45)),
    url('../images/hkbp-hero.png') center/cover no-repeat;
}
.feature-cards { display: flex; flex-wrap: wrap; gap: .75rem; }
.feature-cards .hero-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(15,23,42,.05);
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1 1 220px;
  justify-content: center;
  text-align: center;
}
@media (max-width: 575px) {
  .feature-cards .hero-card { flex: 1 1 100%; }
}
.feature-cards .hero-card i { color: var(--brand); }
.hero-section.has-image .hero-title {
  -webkit-text-fill-color: initial;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hero-section.has-image .hero-subtitle {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  font-weight: 500;
}
.hero-section.has-image .badge-hero {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.hero-section.has-image .btn-primary {
  background: #ffffff;
  color: #0f172a;
  border: none;
}
.hero-section.has-image .btn-primary:hover { background: #e2e8f0; color: #0f172a; }
.hero-section.has-image .btn-outline-dark {
  border: 2px solid rgba(255,255,255,.7);
  color: #ffffff;
}
.hero-section.has-image .btn-outline-dark:hover {
  background: rgba(255,255,255,.15);
  color: #ffffff;
}
.hero-title {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #1e1b4b, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--ink-muted); max-width: 38rem; }
.badge-hero {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid #e0e7ff;
}

.card-3d {
  background: linear-gradient(to bottom right, #ffffff, #f8fafc);
  border: 1px solid var(--border);
  border-radius: .75rem;
  box-shadow: 0 20px 60px rgba(30,27,75,.08);
  transform: rotateY(-4deg) rotateX(2deg);
}
@media (prefers-reduced-motion: reduce) {
  .card-3d { transform: none; }
}

.section-dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(79,70,229,.18), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}
.section-light {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}
.section-eyebrow {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .75rem;
  display: inline-block;
  margin-bottom: .25rem;
}
.section-title {
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 700;
  margin-bottom: .25rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(15,23,42,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,27,75,.08); }
.stat-icon {
  width: 36px; height: 36px;
  border-radius: .5rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 1rem;
}
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.stat-label { color: var(--ink-muted); font-size: .875rem; font-weight: 500; }

.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(15,23,42,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,27,75,.08); }
.value-icon {
  width: 36px; height: 36px;
  border-radius: .5rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  font-size: 1rem;
  margin-bottom: .5rem;
}

.icon-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
}

.schedule-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(15,23,42,.04);
}
.day-badge {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: .5rem;
  font-size: .75rem;
}
.schedule-time { font-weight: 700; color: var(--ink); }
.schedule-name { font-weight: 600; color: var(--ink-muted); }
.schedule-note { color: var(--ink-muted); font-size: .875rem; }

.card-img-top.placeholder-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem .5rem 0 0;
  font-size: 2rem;
  color: white;
  background: linear-gradient(135deg, var(--brand), #818cf8);
}
.service-icon {
  width: 40px; height: 40px;
  border-radius: .5rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-section {
  background:
    radial-gradient(900px 400px at 10% 110%, rgba(79,70,229,.15), transparent 60%),
    linear-gradient(180deg, #0f172a, #1e1b4b);
  color: white;
}
.footer-section a { color: rgba(255,255,255,.7); }
.footer-section a:hover { color: white; }

.modal-backdrop.show { opacity: .85; }
.galeri-item { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.galeri-item:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.galeri-item:active { transform: scale(0.97); }
