/* =====================================================
   DISTRIK FAKFAK — Main Stylesheet
   Font: Plus Jakarta Sans + Lora
   Palette: Deep Teal #0d6e6e + Gold #d4a017 + Warm White
   ===================================================== */

:root {
  --primary:    #0d6e6e;
  --primary-dk: #084f4f;
  --primary-lt: #e8f5f5;
  --accent:     #d4a017;
  --accent-dk:  #a87c10;
  --dark:       #1a1a2e;
  --body-bg:    #f7f8fa;
  --card-bg:    #ffffff;
  --text:       #2d3748;
  --muted:      #718096;
  --border:     #e2e8f0;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 20px rgba(0,0,0,.08);
  --shadow-md:  0 8px 30px rgba(0,0,0,.12);
  --trans:      all .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--body-bg);
  line-height: 1.7;
}

h1,h2,h3,.font-serif { font-family: 'Lora', serif; }
.fw-600 { font-weight: 600; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* =====================================================
   NAVBAR
   ===================================================== */
#mainNav {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  transition: var(--trans);
  z-index: 1030;
}
#mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
  flex-shrink: 0;
}
.brand-name { font-family: 'Lora', serif; font-size: 1rem; font-weight: 600; color: var(--primary); line-height: 1.2; }
.brand-sub  { font-size: .68rem; color: var(--muted); line-height: 1; }

.nav-link { font-size: .875rem; font-weight: 500; color: var(--text) !important; padding: .5rem .75rem !important; border-radius: 8px; transition: var(--trans); }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: var(--primary-lt); }
.dropdown-item { font-size: .85rem; font-weight: 500; border-radius: 6px; }
.dropdown-item:hover { background: var(--primary-lt); color: var(--primary); }
.dropdown-menu { border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem; }

.btn-primary {
  background: var(--primary); border-color: var(--primary); border-radius: 8px;
  font-weight: 600; font-size: .85rem; transition: var(--trans);
}
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); transform: translateY(-1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 8px; font-weight: 600; }
.btn-accent:hover { background: var(--accent-dk); color:#fff; }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); border-radius: 8px; font-weight: 500; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 50%, #1a8080 100%);
  position: relative; overflow: hidden; padding: 100px 0 80px;
  min-height: 85vh; display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-shape {
  position: absolute; right: -100px; top: -80px;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.hero-shape-2 {
  position: absolute; left: -60px; bottom: -100px;
  width: 400px; height: 400px;
  background: rgba(212,160,23,.08);
  border-radius: 50%;
}
.hero-badge {
  display: inline-block; background: rgba(212,160,23,.2); color: var(--accent);
  border: 1px solid rgba(212,160,23,.3); border-radius: 50px; padding: .35rem 1rem;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; line-height: 1.2; margin-bottom: 1.25rem; }
.hero p   { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 520px; }
.hero-stat { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .25rem; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.5); animation: bounce 2s infinite; font-size: 1.5rem; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section-tag {
  display: inline-block; background: var(--primary-lt); color: var(--primary);
  border-radius: 50px; padding: .3rem .9rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .03em; margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--dark); margin-bottom: .75rem; }
.section-divider { width: 48px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; margin: 0 0 1.5rem; }
.section-divider.center { margin: 0 auto 1.5rem; }

/* =====================================================
   CARDS
   ===================================================== */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--trans); background: var(--card-bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img-top { border-radius: var(--radius) var(--radius) 0 0; object-fit: cover; }

.info-card .card-body { padding: 1.5rem; }
.info-card .card-date { font-size: .78rem; color: var(--muted); }
.info-card .card-title { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--dark); }
.info-card .card-text  { font-size: .875rem; color: var(--muted); }

.badge-kategori {
  font-size: .72rem; font-weight: 600; padding: .3rem .7rem; border-radius: 6px;
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section { background: linear-gradient(135deg, var(--primary-dk), var(--primary)); }
.stat-item { text-align: center; padding: 2rem 1rem; }
.stat-num  { font-size: 2.8rem; font-weight: 700; color: #fff; font-family: 'Lora', serif; }
.stat-label{ font-size: .875rem; color: rgba(255,255,255,.75); margin-top: .5rem; }

/* =====================================================
   PROGRAM BANSOS CARDS
   ===================================================== */
.program-card {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; transition: var(--trans); background: white;
  text-align: center;
}
.program-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(13,110,110,.15); }
.program-icon {
  width: 70px; height: 70px; border-radius: 18px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.icon-pkh  { background: #fef3e2; color: #d4a017; }
.icon-bpnt { background: #e8f5f5; color: var(--primary); }
.icon-bst  { background: #fde8e8; color: #c53030; }
.icon-blt  { background: #e8e8fe; color: #5a4fcf; }

/* =====================================================
   PENERIMA TABLE
   ===================================================== */
.table-penerima th { background: var(--primary); color: white; font-size: .85rem; font-weight: 600; }
.table-penerima td { font-size: .875rem; vertical-align: middle; }
.table-penerima tbody tr:hover { background: var(--primary-lt); }
.badge-aktif   { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-tolak   { background: #f8d7da; color: #721c24; }

/* =====================================================
   GALERI GRID
   ===================================================== */
.galeri-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; cursor: pointer;
}
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galeri-item:hover img { transform: scale(1.08); }
.galeri-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,110,110,.8) 0%, transparent 60%);
  opacity: 0; transition: var(--trans);
  display: flex; align-items: flex-end; padding: 1rem;
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-overlay-text { color: white; font-size: .875rem; font-weight: 500; }

.video-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card iframe { display: block; }

/* =====================================================
   AGENDA
   ===================================================== */
.agenda-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: var(--trans); margin-bottom: 1rem;
}
.agenda-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.agenda-date-box {
  min-width: 64px; text-align: center;
  background: var(--primary-lt); border-radius: 10px; padding: .75rem .5rem;
}
.agenda-day   { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.agenda-month { font-size: .72rem; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.agenda-title { font-size: 1rem; font-weight: 600; color: var(--dark); }
.agenda-meta  { font-size: .8rem; color: var(--muted); }

/* =====================================================
   STRUKTUR ORGANISASI
   ===================================================== */
.org-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1rem;
  text-align: center; transition: var(--trans);
}
.org-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.org-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem;
}
.org-nama    { font-weight: 600; font-size: .95rem; color: var(--dark); }
.org-jabatan { font-size: .8rem; color: var(--muted); }

/* =====================================================
   KONTAK
   ===================================================== */
.kontak-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: .75rem;
}
.kontak-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary-lt); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.kontak-icon.gold { background: #fef3e2; color: var(--accent); }
.kontak-icon.red  { background: #fde8e8; color: #c53030; }

.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .9rem; padding: .625rem .875rem;
  transition: var(--trans);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,110,110,.12);
}
.form-label { font-size: .875rem; font-weight: 600; color: var(--dark); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  padding: 60px 0 50px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: white; }
.page-hero .breadcrumb-item { font-size: .85rem; color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.8); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: white; }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: linear-gradient(135deg, #0a3d3d, var(--primary-dk));
  margin-top: 0;
}
.footer-heading { color: rgba(255,255,255,.9); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a  { color: rgba(255,255,255,.6); text-decoration: none; font-size: .875rem; transition: var(--trans); }
.footer-links a:hover { color: var(--accent); }
.footer-contact  { list-style: none; padding: 0; }
.footer-contact li { color: rgba(255,255,255,.65); font-size: .85rem; display: flex; gap: .75rem; margin-bottom: .75rem; align-items: flex-start; }
.footer-contact li i { color: var(--accent); flex-shrink: 0; margin-top: .2rem; }
.border-white-10 { border-color: rgba(255,255,255,.1) !important; }
.social-btn {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; text-decoration: none; transition: var(--trans);
}
.social-btn:hover { background: var(--accent); color: white; transform: translateY(-3px); }

/* =====================================================
   ALERTS & UTILITIES
   ===================================================== */
.alert-success-custom { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; border-radius: 8px; padding: 1rem; }
.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.bg-primary    { background: var(--primary) !important; }
.bg-primary-lt { background: var(--primary-lt) !important; }

/* =====================================================
   VISI MISI BOX
   ===================================================== */
.visi-box {
  background: linear-gradient(135deg, var(--primary), #1a8080);
  border-radius: var(--radius-lg); padding: 2.5rem; color: white;
}
.visi-box h4 { font-family: 'Lora', serif; font-size: 1.6rem; margin-bottom: 1.25rem; }
.misi-item {
  display: flex; gap: .875rem; align-items: flex-start;
  padding: .75rem; background: white; border-radius: 10px;
  margin-bottom: .75rem;
}
.misi-num {
  width: 30px; height: 30px; background: var(--primary-lt); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.misi-text { font-size: .9rem; color: var(--text); line-height: 1.5; }

/* =====================================================
   SEARCH BOX
   ===================================================== */
.search-box {
  background: white; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); margin-top: -40px; position: relative; z-index: 10;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; min-height: auto; }
  .stats-section .stat-num { font-size: 2rem; }
  .agenda-card { flex-direction: column; }
  .search-box { margin-top: 0; border-radius: var(--radius); }
}
