/* ==========================================================================
   PORTAL INFORMASI PAJAK DAERAH KOTA JAYAPURA
   Core Design System & Stylesheet (CSS Murni)
   Warna Resmi: Navy (#0B1F3A), Navy-2 (#14305A), Gold (#C9A24B), Slate (#F8FAFC)
   ========================================================================== */

:root {
  /* Palet Warna Resmi Pemda */
  --navy: #0B1F3A;
  --navy-2: #14305A;
  --navy-dark: #071527;
  --navy-light: #1E3A8A;
  --gold: #C9A24B;
  --gold-hover: #b8923e;
  --gold-light: #FDF9EE;
  --gold-subtle: rgba(201, 162, 75, 0.15);
  --emerald: #1B7A43;
  --emerald-light: #EBF8F1;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --border-color-dark: #CBD5E1;

  /* Font Families */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 28px -4px rgba(11, 31, 58, 0.12);
  --shadow-gold: 0 4px 14px rgba(201, 162, 75, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ==========================================================================
   Base & Sticky Footer Layout
   ========================================================================== */
html,
body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg);
  font-family: var(--font-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main#konten {
  flex: 1 0 auto;
  width: 100%;
  overflow-x: clip;
}

.font-serif {
  font-family: var(--font-serif);
}

.text-navy {
  color: var(--navy) !important;
}

.text-gold {
  color: var(--gold) !important;
}

/* ==========================================================================
   Aksesibilitas (WCAG 2.1 AA) - Skip Link
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--gold);
}

/* ==========================================================================
   Header: Topbar & Sticky Navbar
   ========================================================================== */
.topbar {
  background: var(--navy-dark);
  color: #94A3B8;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar span {
  display: inline-flex;
  align-items: center;
}

.topbar i {
  color: var(--gold);
}

.site-nav {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0.65rem 0;
  transition: all 0.25s ease;
}

.navbar-brand {
  text-decoration: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  line-height: 1.2;
  margin-top: 2px;
}

/* Nav Menu Links */
.navbar-nav .nav-link {
  color: #334155;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.55rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--navy);
  background-color: rgba(11, 31, 58, 0.05);
}

.navbar-nav .nav-link.active {
  color: var(--navy) !important;
  font-weight: 700;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0.85rem;
  right: 0.85rem;
  height: 3px;
  background: var(--gold);
  border-radius: 99px;
}

/* Nav Search Bar */
.nav-search {
  position: relative;
  width: clamp(140px, 12vw, 220px);
  min-width: 120px;
}

.nav-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.875rem;
  pointer-events: none;
}

.nav-search .form-control {
  padding-left: 2.5rem;
  padding-right: 1rem;
  height: 40px;
  border-radius: 999px;
  font-size: 0.875rem;
  background-color: #F1F5F9;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-search .form-control:focus {
  background-color: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}

/* ==========================================================================
   Page Head & Breadcrumbs (Sub-header)
   ========================================================================== */
.page-head {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-2) 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(7, 21, 39, 0.15);
}

.page-head-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.12) 0%, rgba(11, 31, 58, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, #EAB308 50%, var(--gold) 100%);
}

.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.page-breadcrumb .breadcrumb-item a:hover {
  color: var(--gold);
}

.page-breadcrumb .breadcrumb-item.active {
  color: #FFFFFF;
  font-weight: 600;
}

.page-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
  padding: 0 0.5rem;
}

.page-head .page-title,
.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.page-head .page-subtitle,
.page-head p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Tombol Kustom (Buttons)
   ========================================================================== */
.btn-gold {
  background-color: var(--gold);
  color: #071527 !important;
  font-weight: 700;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  box-shadow: 0 2px 8px rgba(201, 162, 75, 0.28);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold:hover,
.btn-gold:focus {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #071527 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(201, 162, 75, 0.4);
}

.btn-outline-navy {
  color: var(--navy);
  border: 1.5px solid var(--navy);
  background: transparent;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
  background-color: var(--navy);
  color: #FFFFFF !important;
}

.btn-navy {
  background-color: var(--navy);
  color: #FFFFFF !important;
  font-weight: 600;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-navy:hover,
.btn-navy:focus {
  background-color: var(--navy-2);
  border-color: var(--navy-2);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-loading {
  pointer-events: none;
  opacity: 0.85;
}

/* Hero Action Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-hero-primary {
  background-color: var(--gold);
  color: #071527 !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 14px rgba(201, 162, 75, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #071527 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 75, 0.5);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-outline:hover,
.btn-hero-outline:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-hero-track {
  background: rgba(11, 31, 58, 0.75);
  color: #E2E8F0 !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 162, 75, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-track:hover,
.btn-hero-track:focus {
  background: rgba(20, 48, 90, 0.95);
  border-color: var(--gold);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 162, 75, 0.25);
}

@media (max-width: 575.98px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn-hero-primary,
  .hero-cta-group .btn-hero-outline,
  .hero-cta-group .btn-hero-track {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Kartu & Komponen Antarmuka (Cards, Chips, Badges)
   ========================================================================== */
.card-x {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Stat Card */
.stat-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.stat-card .ico {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.stat-card .val {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.stat-card .lbl {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Guide Hero Card (Beranda - Dark Glass) */
.guide-hero-card {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-hero-card:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--gold) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* Filter Chips (Berita, Panduan, Regulasi) */
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid var(--border-color-dark);
  color: #475569;
  background: #FFFFFF;
  margin-right: 0.5rem;
  margin-bottom: 0.65rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.filter-chip:hover:not(.active) {
  background: #F1F5F9;
  color: var(--navy);
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--navy) !important;
  color: #FFFFFF !important;
  border-color: var(--navy) !important;
  box-shadow: 0 4px 10px rgba(11, 31, 58, 0.2);
}

/* Chip Badge Kategori */
.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  background: var(--gold-subtle);
  color: #8A641A;
}

/* News Card */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
}

.news-card .thumb {
  height: 190px;
  background: #E2E8F0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .thumb img {
  transform: scale(1.05);
}

.news-card .body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.news-card .meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Reg Item (Peraturan) */
.reg-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  text-decoration: none !important;
  color: inherit;
  border-left: 4px solid var(--navy);
}

.reg-item:hover {
  border-left-color: var(--gold);
}

.reg-item .ico {
  width: 48px;
  height: 48px;
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Form Card */
.form-card {
  background: var(--surface);
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-label .req {
  color: #DC2626;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.95rem;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}

/* Stepper Visual (Alur Pengaduan) */
.steps-visual {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.step-item {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 17px;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
}

.step-item:last-child::before {
  display: none;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 0 4px #F8FAFC;
}

.step-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.step-content p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Ticket Box (Pengaduan Sukses) */
.ticket-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gold);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.ticket-box .no {
  font-family: monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 0.75rem 0;
}

/* Timeline Tindak Lanjut (Cek Status) */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 14px;
  width: 2px;
  background: #E2E8F0;
}

.timeline li {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 1.5rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--navy);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-color-dark);
}

.empty-state i {
  font-size: 3.25rem;
  color: #94A3B8;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   Tabel Responsif
   ========================================================================== */
.table-x {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-x table {
  margin-bottom: 0;
}

.table-x thead th {
  background-color: var(--navy);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border: none;
}

.table-x tbody td {
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  border-color: var(--border-color);
}

.table-x tfoot tr {
  background-color: #F8FAFC;
  border-top: 2px solid var(--border-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #94A3B8;
  padding: 4rem 0 1.5rem;
  border-top: 4px solid var(--gold);
  margin-top: auto;
}

.site-footer h4 {
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.site-footer p {
  line-height: 1.6;
}

.site-footer ul li {
  margin-bottom: 0.65rem;
}

.site-footer a {
  color: #CBD5E1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-footer a:hover {
  color: var(--gold);
  padding-left: 3px;
}

.site-footer .copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: #64748B;
}

/* ==========================================================================
   Tombol Kembali ke Atas (ToTop Button)
   ========================================================================== */
#toTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#toTop:hover {
  background: var(--gold-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   Responsivitas (Media Queries)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .site-nav {
    padding: 0.5rem 0;
  }

  .navbar-nav {
    padding-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0.75rem !important;
  }

  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .nav-search {
    margin-top: 0.75rem;
    width: 100%;
    min-width: 100%;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-nav .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.6rem !important;
  }

  .navbar-nav .nav-link.active::after {
    left: 0.6rem;
    right: 0.6rem;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-logo {
    width: 40px !important;
    height: 40px !important;
  }

  .nav-search {
    width: 155px;
    min-width: 120px;
  }

  .btn-gold {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 575.98px) {
  .brand-title {
    font-size: clamp(0.82rem, 3.8vw, 1rem);
    letter-spacing: -0.01em;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .page-head {
    padding: 2rem 0;
  }

  .form-card {
    padding: 1.5rem;
  }

  #toTop {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Struktur Organisasi / Kartu Pejabat Pas Foto (Mirip SS 2)
   ========================================================================== */
.org-tree-wrapper {
  position: relative;
  width: 100%;
}

.org-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  text-align: center;
  padding: 1.75rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.org-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(201, 162, 75, 0.5);
}

/* Card Level 1 (Pimpinan Utama) */
.org-card-leader {
  max-width: 440px;
  margin: 0 auto;
  border-top: 4px solid var(--gold);
  box-shadow: 0 6px 24px rgba(11, 31, 58, 0.08);
}

/* Card Level 2, 3, 4 */
.org-card-sub {
  border-top: 3px solid var(--navy);
}

/* Bingkai Pas Foto Persegi Panjang dengan Sudut Melengkung (Sesuai SS 2) */
.pasfoto-frame {
  width: 150px;
  height: 185px;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-color: #EBF3FA;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.org-card-leader .pasfoto-frame {
  width: 165px;
  height: 205px;
  border: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.25);
}

.pasfoto-frame img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block;
  border-radius: 13px;
}

.pasfoto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #F1F5F9 0%, #E2E8F0 100%);
  color: #64748B;
  font-size: 2.75rem;
}

.tree-connector-down {
  width: 2px;
  height: 36px;
  background: var(--gold);
  margin: 0 auto;
  position: relative;
}

.tree-connector-down::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.level-divider {
  position: relative;
  text-align: center;
  margin: 1.75rem 0 2.25rem;
}

.level-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E2E8F0;
  z-index: 1;
}

.level-divider span {
  position: relative;
  z-index: 2;
  background: #F8FAFC;
  padding: 0.4rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}