/* ================================================
   INNER PAGE STYLES
   Website Desa Sungai Siput
   ================================================ */

/* ===== PAGE HERO / BREADCRUMB ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #0f6b36 100%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,0.02) 30px, rgba(255,255,255,0.02) 31px),
    radial-gradient(circle at 80% 50%, rgba(200,163,44,0.12) 0%, transparent 60%);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg,
    var(--gold) 0px, var(--gold) 20px,
    var(--primary-dark) 20px, var(--primary-dark) 25px,
    var(--gold-light) 25px, var(--gold-light) 40px,
    var(--primary) 40px, var(--primary) 45px,
    var(--gold) 45px
  );
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: 1300px; margin: 0 auto; padding: 0 24px;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.page-hero-title span { color: var(--gold-light); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.75); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb-sep { color: var(--gold); font-size: 0.7rem; }
.breadcrumb .current { color: var(--gold-light); font-weight: 600; }
.page-hero-icon {
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 6rem;
  color: rgba(200,163,44,0.12);
}

/* ===== INNER PAGE LAYOUT ===== */
.inner-page { background: var(--cream); min-height: 60vh; }

/* Two-column layout */
.inner-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}
.inner-layout-full {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 24px;
}

/* ===== SIDEBAR ===== */
.sidebar { }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.sidebar-card-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 14px 18px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 2px solid var(--gold);
}
.sidebar-card-header i { color: var(--gold-light); }
.sidebar-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  font-size: 0.83rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  gap: 8px;
}
.sidebar-nav-link:last-child { border-bottom: none; }
.sidebar-nav-link i { color: var(--primary); width: 16px; font-size: 0.8rem; }
.sidebar-nav-link:hover, .sidebar-nav-link.active {
  background: rgba(13,92,46,0.06);
  color: var(--primary);
  padding-left: 22px;
}
.sidebar-nav-link.active { font-weight: 700; border-left: 3px solid var(--gold); }
.sidebar-nav-link .arrow { color: var(--text-light); font-size: 0.7rem; }

/* ===== CONTENT CARD ===== */
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.content-card-header {
  padding: 20px 28px;
  border-bottom: 2px solid var(--cream-dark);
  display: flex; align-items: center; justify-content: space-between;
}
.content-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex; align-items: center; gap: 10px;
}
.content-card-title i { color: var(--gold); }
.content-card-body { padding: 28px; }
.content-card-body.no-pad { padding: 0; }

/* ===== TYPOGRAPHY IN CONTENT ===== */
.prose h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin: 24px 0 10px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
}
.prose h3:first-child { margin-top: 0; }
.prose p {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.85;
  margin-bottom: 14px;
}
.prose ul { margin: 10px 0 14px 20px; }
.prose ul li {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 6px;
  padding-left: 8px;
  position: relative;
  line-height: 1.7;
}
.prose ul li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.65rem;
  position: absolute;
  left: -16px;
  top: 3px;
}

/* ===== HIGHLIGHT BOX ===== */
.info-box {
  background: linear-gradient(135deg, rgba(13,92,46,0.06), rgba(200,163,44,0.08));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}
.info-box.blue { background: rgba(30,80,180,0.06); border-color: #3498db; }
.info-box.red { background: rgba(231,76,60,0.06); border-color: #e74c3c; }
.info-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.info-box-title i { color: var(--gold); }
.info-box p { font-size: 0.88rem; color: var(--text-gray); margin: 0; line-height: 1.7; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--primary), var(--gold));
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 8px;
}
.timeline-dot {
  position: absolute;
  left: -26px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 2px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.timeline-desc { font-size: 0.85rem; color: var(--text-gray); line-height: 1.7; }

/* ===== OFFICIAL CARDS (perangkat, BPD, dll) ===== */
.officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.official-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.official-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); background: var(--white); }
.official-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.7);
  border: 4px solid var(--cream-dark);
  overflow: hidden;
}
.official-photo img { width: 100%; height: 100%; object-fit: cover; }
.official-name { font-size: 0.9rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; line-height: 1.3; }
.official-jabatan {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 8px;
}
.official-badge {
  display: inline-block;
  background: rgba(13,92,46,0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}
.official-badge.gold { background: rgba(200,163,44,0.15); color: var(--gold-dark); }

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table thead { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.data-table thead th {
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.data-table thead th:first-child { border-radius: 0; }
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(13,92,46,0.04); }
.data-table tbody td { padding: 13px 16px; color: var(--text-dark); vertical-align: middle; }
.data-table tbody td:first-child { color: var(--text-light); font-size: 0.78rem; }
.table-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.table-badge.green { background: rgba(13,92,46,0.12); color: var(--primary); }
.table-badge.gold { background: rgba(200,163,44,0.15); color: var(--gold-dark); }
.table-badge.blue { background: rgba(30,80,180,0.1); color: #1e50b4; }

/* ===== STAT BOXES ===== */
.stat-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-top: 3px solid var(--primary);
  transition: var(--transition);
}
.stat-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-box.gold { border-top-color: var(--gold); }
.stat-box.maroon { border-top-color: var(--maroon); }
.stat-box.blue { border-top-color: #1e50b4; }
.stat-box-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box.gold .stat-box-num { color: var(--gold-dark); }
.stat-box-label { font-size: 0.75rem; color: var(--text-gray); }

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 7px;
}
.form-label .required { color: #e74c3c; margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13,92,46,0.1);
}
.form-control::placeholder { color: var(--text-light); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,92,46,0.3); }

/* ===== DOWNLOAD CARDS ===== */
.download-list { display: flex; flex-direction: column; gap: 12px; }
.download-item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.download-item:hover { background: var(--white); border-color: var(--gold); }
.download-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.download-icon.pdf { background: rgba(231,76,60,0.12); color: #e74c3c; }
.download-icon.xlsx { background: rgba(46,204,113,0.12); color: #27ae60; }
.download-icon.docx { background: rgba(52,152,219,0.12); color: #2980b9; }
.download-info { flex: 1; }
.download-name { font-size: 0.88rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 3px; }
.download-meta { font-size: 0.75rem; color: var(--text-light); }
.btn-download {
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.btn-download:hover { background: var(--gold-dark); color: var(--white); }

/* ===== NEWS LIST (berita) ===== */
.news-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.news-filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  flex-wrap: nowrap;
}
.news-filter-scroll {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.news-filter-scroll::-webkit-scrollbar { height: 6px; }
.news-filter-scroll::-webkit-scrollbar-track { background: transparent; }
.news-filter-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}
.news-filter-btn {
  flex: 0 0 auto;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
}
.news-filter-btn.active, .news-filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.news-search {
  flex: 0 0 280px;
  margin-left: 6px;
  display: flex; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px;
  gap: 8px;
  font-size: 0.82rem;
}
.news-search input {
  border: none; outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  width: 180px;
  background: transparent;
  color: var(--text-dark);
}
.news-search i { color: var(--text-light); }

@media (max-width: 640px) {
  .news-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .news-filter-scroll,
  .news-search {
    width: 100%;
  }
  .news-search {
    flex-basis: auto;
    margin-left: 0;
  }
  .news-search input {
    width: 100%;
  }
}

/* ===== GALERI FULL ===== */
.galeri-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.galeri-full-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  background: var(--primary);
}
.galeri-full-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.galeri-full-item:hover img { transform: scale(1.08); }
.galeri-full-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  gap: 8px; font-size: 0.78rem;
  min-height: 160px;
}
.galeri-full-placeholder i { font-size: 2rem; color: rgba(200,163,44,0.4); }
.galeri-full-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end; padding: 12px;
  color: white; font-size: 0.8rem;
}
.galeri-full-item:hover .galeri-full-overlay { opacity: 1; }

/* ===== VIDEO GRID ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-thumb {
  aspect-ratio: 16/9;
  background: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer;
}
.video-thumb i { font-size: 3.5rem; color: rgba(255,255,255,0.5); }
.video-play-btn {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(200,163,44,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.2rem;
  transition: var(--transition);
}
.video-thumb:hover .video-play-btn { transform: scale(1.15); background: var(--gold); }
.video-info { padding: 14px; }
.video-title { font-size: 0.88rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 6px; line-height: 1.4; }
.video-meta { font-size: 0.74rem; color: var(--text-light); display: flex; gap: 12px; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-meta i { color: var(--gold); }

/* ===== PENGADUAN TRACKER ===== */
.tracker-steps {
  display: flex; justify-content: space-between;
  margin: 24px 0 30px;
  position: relative;
}
.tracker-steps::before {
  content: '';
  position: absolute;
  top: 20px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.tracker-step { text-align: center; flex: 1; position: relative; }
.tracker-step-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  font-weight: 700; font-size: 0.9rem;
  color: var(--primary);
  position: relative; z-index: 1;
}
.tracker-step.done .tracker-step-circle { background: var(--primary); color: var(--white); }
.tracker-step.active .tracker-step-circle { background: var(--gold); border-color: var(--gold); color: var(--primary-dark); }
.tracker-step-label { font-size: 0.72rem; color: var(--text-gray); font-weight: 500; }

/* ===== CHART PLACEHOLDER ===== */
.chart-container {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 2px dashed var(--border);
  min-height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-light);
  gap: 10px;
}
.chart-container i { font-size: 2.5rem; color: var(--gold); opacity: 0.5; }
.chart-bar-group { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 0 10px; }
.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary-dark), var(--primary-light));
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height 1s ease;
  min-width: 30px;
}
.chart-bar:hover { background: linear-gradient(to top, var(--gold-dark), var(--gold-light)); }
.chart-bar-label {
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem; color: var(--text-light);
  white-space: nowrap;
}
.chart-bar-val {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 700; color: var(--primary-dark);
  white-space: nowrap;
}

/* ===== MAP SIMPLE ===== */
.rt-rw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.rt-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.rt-card:hover { background: var(--white); box-shadow: var(--shadow); }
.rt-card.rw { border-left-color: var(--gold); }
.rt-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  line-height: 1;
}
.rt-card.rw .rt-card-num { color: var(--gold-dark); }
.rt-card-label { font-size: 0.75rem; color: var(--text-light); margin-bottom: 10px; }
.rt-card-name { font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.rt-card-wil { font-size: 0.76rem; color: var(--text-gray); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .inner-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .page-hero-icon { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .inner-layout { padding: 30px 16px; }
  .inner-layout-full { padding: 30px 16px; }
  .officials-grid { grid-template-columns: repeat(2, 1fr); }
  .news-full-grid { grid-template-columns: 1fr; }
  .stat-boxes { grid-template-columns: repeat(2, 1fr); }
  .tracker-steps { flex-direction: column; gap: 16px; }
  .tracker-steps::before { display: none; }
}
