/* ============================================================
   DPMPTSP Papua Tengah - Public CSS
   ============================================================ */

:root {
  --primary: #003087;
  --primary-dark: #001f5e;
  --primary-light: #0044bb;
  --secondary: #f5a623;
  --secondary-dark: #e0911a;
  --accent: #e8f0fe;
  --success: #1a7a4a;
  --danger: #c0392b;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --border: #e0e6ef;
  --bg-light: #f7f9fc;
  --white: #ffffff;
  --font: 'Plus Jakarta Sans', sans-serif;
  --shadow: 0 4px 20px rgba(0,48,135,0.10);
  --shadow-lg: 0 8px 40px rgba(0,48,135,0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ---- TOP BAR ---- */
.topbar {
  background: var(--primary-dark);
  color: #cdd6f4;
  font-size: 0.82rem;
  border-bottom: 2px solid var(--secondary);
}
.topbar span { color: #cdd6f4; }
.topbar-social {
  color: #cdd6f4;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.2s;
}
.topbar-social:hover { background: var(--secondary); color: var(--primary-dark); }

/* ---- NAVBAR ---- */
.navbar-main {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  padding: 0.5rem 0;
}
.logo-img { transition: transform 0.3s; }
.navbar-brand:hover .logo-img { transform: scale(1.05); }
.brand-text .brand-name { font-weight: 800; font-size: 1.1rem; color: var(--primary); line-height: 1.2; }
.brand-text .brand-sub { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.navbar-main .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 0.9rem !important;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--primary) !important;
  background: var(--accent);
}
.navbar-main .dropdown-menu {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 220px;
}
.navbar-main .dropdown-item {
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 500;
  font-size: 0.87rem;
  transition: all 0.2s;
}
.navbar-main .dropdown-item:hover { background: var(--accent); color: var(--primary); }

/* ---- HERO / SLIDER ---- */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  min-height: 500px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 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-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,166,35,0.2); border: 1px solid rgba(245,166,35,0.4);
  color: var(--secondary); border-radius: 50px;
  padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-section h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.25; }
.hero-section p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.hero-img-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg); padding: 2rem;
  text-align: center; color: white;
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--secondary); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* ---- TRACKING BAR ---- */
.tracking-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.tracking-bar .form-control {
  border-radius: 50px 0 0 50px;
  border: 2px solid var(--border);
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
}
.tracking-bar .btn {
  border-radius: 0 50px 50px 0;
  padding: 0.7rem 1.5rem;
}

/* ---- SECTION STYLES ---- */
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--primary); }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }
.section-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px; margin: 0.75rem auto 0;
}
.section-tag {
  display: inline-block;
  background: var(--accent); color: var(--primary);
  border-radius: 50px; padding: 0.3rem 1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}
.bg-light-blue { background: var(--bg-light); }
.bg-primary-gradient { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }

/* ---- LAYANAN CARDS ---- */
.layanan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  height: 100%;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.layanan-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.layanan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.layanan-card:hover::before { transform: scaleX(1); }
.layanan-card .icon-box {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--primary);
  margin-bottom: 1.2rem;
  transition: all 0.3s;
}
.layanan-card:hover .icon-box { background: var(--primary); color: var(--white); }
.layanan-card h5 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.layanan-card p { font-size: 0.87rem; color: var(--text-muted); margin: 0; }
.layanan-card .badge-waktu {
  font-size: 0.76rem; color: var(--success); font-weight: 600;
  background: #e8f8f0; border-radius: 50px; padding: 0.25rem 0.75rem;
}

/* ---- BERITA CARDS ---- */
.berita-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; height: 100%;
  transition: all 0.3s;
}
.berita-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.berita-card .card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 4rem;
}
.berita-card .card-body { padding: 1.25rem; }
.berita-card .card-date { font-size: 0.78rem; color: var(--text-muted); }
.berita-card .card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.45; }
.berita-card .card-title a { color: inherit; }
.berita-card .card-title a:hover { color: var(--primary); }

/* ---- PENGUMUMAN ---- */
.pengumuman-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.pengumuman-item:last-child { border: 0; }
.pengumuman-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--secondary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
}
.pengumuman-item h6 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.pengumuman-item p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ---- TRACKING ---- */
.tracking-result {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.tracking-header { background: var(--primary); color: white; padding: 1.5rem; }
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
  background: var(--border);
}
.timeline-item { display: flex; gap: 1.5rem; padding: 1rem 0; position: relative; }
.timeline-dot {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; position: relative; z-index: 1;
}
.timeline-dot.done { background: var(--success); color: white; }
.timeline-dot.active { background: var(--primary); color: white; }
.timeline-dot.pending { background: var(--border); color: var(--text-muted); }

/* ---- SURVEY ---- */
.rating-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rating-btn {
  width: 44px; height: 44px;
  border: 2px solid var(--border); border-radius: 50%;
  background: white; cursor: pointer; font-weight: 700;
  transition: all 0.2s; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.rating-btn:hover, .rating-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.rating-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ---- STATS COUNTER ---- */
.stat-item { text-align: center; padding: 2rem 1rem; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-top: 0.3rem; }

/* ---- FOOTER ---- */
.footer { background: var(--primary-dark); }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-heading { color: var(--secondary); font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: all 0.2s; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 0.75rem; margin-bottom: 0.85rem; color: rgba(255,255,255,0.6); font-size: 0.87rem; }
.footer-contact i { color: var(--secondary); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { background: rgba(0,0,0,0.3); }
.footer-social {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.footer-social:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); }

/* ---- BUTTONS ---- */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-warning { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); font-weight: 700; }
.btn-warning:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* ---- BREADCRUMB ---- */
.page-hero {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  padding: 3rem 0 2rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 250px; height: 250px;
  border-radius: 50%; background: rgba(255,255,255,0.04);
}
.page-hero h1 { color: white; font-size: 1.8rem; }
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.7); }
.breadcrumb-item.active { color: var(--secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- ALERTS ---- */
.alert-success { background: #e8f8f0; border-color: #b7e4c7; color: #1a7a4a; }
.alert-danger { background: #fdf0f0; border-color: #f5c6c6; color: #c0392b; }

/* ---- FORMS ---- */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,48,135,0.1);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text); }

/* ---- BACK TO TOP ---- */
.btn-back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  z-index: 999; box-shadow: var(--shadow);
}
.btn-back-top.show { display: flex; }

/* ---- PAGINATION ---- */
.pagination .page-link { color: var(--primary); border-radius: 8px; margin: 0 2px; border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ---- STATUS BADGE ---- */
.badge-diterima { background: #e3f2fd; color: #1565c0; }
.badge-verifikasi { background: #fff8e1; color: #f57f17; }
.badge-proses { background: #e8f5e9; color: #2e7d32; }
.badge-selesai { background: #e8f5e9; color: #1b5e20; font-weight: 700; }
.badge-ditolak { background: #ffebee; color: #b71c1c; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 3rem 0; }
  .stat-num { font-size: 2rem; }
  .navbar-main .nav-link { padding: 0.5rem 0 !important; }
}

/* ============================================================
   Extended public.css - missing styles
   ============================================================ */

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 3rem 0;
}
.page-hero h1 { font-weight: 800; font-size: 2rem; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* Tracking */
.tracking-result { }
.tracking-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; border-radius: 16px 16px 0 0; padding: 2rem;
}

/* Timeline public */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item {
  display: flex; gap: 1rem; padding-bottom: 1.5rem; position: relative;
}
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 17px; top: 38px; bottom: 0;
  width: 2px; background: #e0e6ef;
}
.timeline-dot {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; border: 2px solid #90caf9;
  background: #e3f2fd; color: #1565c0;
}
.timeline-dot.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Rating buttons */
.rating-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rating-btn {
  width: 48px; height: 48px;
  border: 2px solid #e0e6ef; border-radius: 10px;
  background: white; cursor: pointer; font-weight: 700; font-size: 1rem;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.rating-btn:hover { border-color: var(--primary); background: var(--accent); color: var(--primary); }
.rating-btn.active { border-color: var(--primary); background: var(--primary); color: white; }
.rating-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: #aaa; margin-top: 4px; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.1rem;
  opacity: 0; pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,48,135,0.3);
  z-index: 999;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); }

/* Alert auto */
.alert-auto { animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

/* Section tag */
.section-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 50px;
}
.section-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px; margin: 1rem 0;
}

/* Card berita */
.berita-card {
  background: white; border-radius: 16px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,48,135,0.07);
  transition: all 0.3s; height: 100%;
}
.berita-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,48,135,0.15); }
.berita-card .card-body { padding: 1.25rem; }
.berita-card .card-title a { color: var(--text-dark); text-decoration: none; font-weight: 700; }
.berita-card .card-title a:hover { color: var(--primary); }
.berita-card .card-date { font-size: 0.78rem; color: #aaa; }

/* Table in regulasi page */
.table-custom { width: 100%; border-collapse: collapse; }
.table-custom thead th {
  background: #f0f4f8; padding: 0.85rem 1rem;
  font-weight: 700; font-size: 0.8rem;
  color: #666; border-bottom: 2px solid #e0e6ef;
}
.table-custom tbody td { padding: 1rem; border-bottom: 1px solid #e0e6ef; }
.table-custom tbody tr:hover td { background: #fafbfd; }

/* fw helpers */
.fw-700 { font-weight: 700 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-800 { font-weight: 800 !important; }
