/* ============================================================
   Web BPD Desa Sindangkarya — Custom CSS
   Bootstrap 5 base + BPD custom theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --bpd-primary:      #1a4480;
  --bpd-primary-dark: #0f2d56;
  --bpd-accent:       #e8a020;
  --bpd-accent-light: #fdf4e3;
  --bpd-green:        #16a34a;
  --bpd-red:          #dc2626;
  --bpd-text:         #1e293b;
  --bpd-muted:        #64748b;
  --bpd-border:       #e2e8f0;
  --bpd-bg:           #f8fafc;
  --bpd-card-shadow:  0 2px 16px rgba(26,68,128,.10);
  --bpd-radius:       14px;
  --transition:       .25s ease;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--bpd-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--bpd-accent); }

img { max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--bpd-primary); border-radius: 6px; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.bpd-navbar {
  background: var(--bpd-primary);
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
  padding: .6rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background var(--transition);
}

.bpd-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.bpd-navbar .brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.bpd-navbar .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bpd-navbar .brand-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}

.bpd-navbar .brand-subtitle {
  font-size: .72rem;
  color: rgba(255,255,255,.75);
  font-weight: 400;
}

.bpd-navbar .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 500;
  font-size: .88rem;
  padding: .45rem .75rem !important;
  border-radius: 8px;
  transition: all var(--transition);
  letter-spacing: .2px;
}

.bpd-navbar .nav-link:hover,
.bpd-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.15);
}

.bpd-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.3);
}

.bpd-navbar .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.btn-navbar-cta {
  background: var(--bpd-accent);
  color: #fff !important;
  font-weight: 600;
  padding: .42rem 1.1rem !important;
  border-radius: 8px !important;
  transition: all var(--transition) !important;
}

.btn-navbar-cta:hover {
  background: #c8881a !important;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
.hero-section {
  background: linear-gradient(135deg, var(--bpd-primary-dark) 0%, var(--bpd-primary) 50%, #2563eb 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::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") repeat;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  background: var(--bpd-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-section .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .8rem;
  letter-spacing: -.5px;
}

.hero-title span { color: var(--bpd-accent); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-btn-primary {
  background: var(--bpd-accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.8rem;
  border-radius: 10px;
  border: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(232,160,32,.4);
}

.hero-btn-primary:hover {
  background: #c8881a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,160,32,.5);
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.8rem;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.4);
  transition: all var(--transition);
}

.hero-btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: .8rem 1.2rem;
  flex: 1;
  min-width: 140px;
}

.hero-stat .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bpd-accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════════ */
.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bpd-accent-light);
  color: var(--bpd-accent);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--bpd-text);
  line-height: 1.25;
  letter-spacing: -.4px;
}

.section-title span { color: var(--bpd-primary); }

.section-desc {
  color: var(--bpd-muted);
  font-size: .95rem;
  margin-top: .5rem;
}

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.bpd-card {
  background: #fff;
  border-radius: var(--bpd-radius);
  box-shadow: var(--bpd-card-shadow);
  border: 1px solid var(--bpd-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.bpd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,68,128,.16);
}

.bpd-card .card-img-top {
  height: 190px;
  object-fit: cover;
}

.bpd-card .card-body { padding: 1.25rem; }

.card-kategori {
  display: inline-block;
  background: var(--bpd-accent-light);
  color: var(--bpd-accent);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}

.card-title-bpd {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bpd-text);
  line-height: 1.4;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: .78rem;
  color: var(--bpd-muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.card-placeholder-img {
  height: 190px;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bpd-primary);
  font-size: 2.5rem;
}

/* ══════════════════════════════════════════════════════════
   QUICK ACCESS MENU
══════════════════════════════════════════════════════════ */
.quick-access-section {
  padding: 3rem 0;
  background: #fff;
  border-bottom: 1px solid var(--bpd-border);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: 1.5rem 1rem;
  border-radius: var(--bpd-radius);
  border: 1px solid var(--bpd-border);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--bpd-text);
  background: var(--bpd-bg);
}

.quick-item:hover {
  background: var(--bpd-primary);
  border-color: var(--bpd-primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(26,68,128,.25);
}

.quick-item .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition);
}

.quick-item:hover .icon {
  background: rgba(255,255,255,.2) !important;
}

.quick-item .label {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════
   STAT BADGES
══════════════════════════════════════════════════════════ */
.stat-card {
  background: #fff;
  border-radius: var(--bpd-radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid var(--bpd-border);
  box-shadow: var(--bpd-card-shadow);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26,68,128,.15);
}

.stat-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bpd-primary);
  line-height: 1;
  margin-bottom: .25rem;
}

.stat-card .stat-label {
  font-size: .82rem;
  color: var(--bpd-muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn-bpd-primary {
  background: var(--bpd-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  padding: .65rem 1.5rem;
  transition: all var(--transition);
}

.btn-bpd-primary:hover {
  background: var(--bpd-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26,68,128,.3);
}

.btn-bpd-accent {
  background: var(--bpd-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  padding: .65rem 1.5rem;
  transition: all var(--transition);
}

.btn-bpd-accent:hover {
  background: #c8881a;
  color: #fff;
  transform: translateY(-1px);
}

.btn-bpd-outline {
  background: transparent;
  color: var(--bpd-primary);
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid var(--bpd-primary);
  padding: .6rem 1.4rem;
  transition: all var(--transition);
}

.btn-bpd-outline:hover {
  background: var(--bpd-primary);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════════════════ */
.badge-baru     { background: #dbeafe; color: #1e40af; }
.badge-diproses { background: #fef9c3; color: #854d0e; }
.badge-selesai  { background: #dcfce7; color: #166534; }
.badge-ditolak  { background: #fee2e2; color: #991b1b; }
.badge-aktif    { background: #dcfce7; color: #166534; }
.badge-draft    { background: #f1f5f9; color: #475569; }
.badge-publish  { background: #dbeafe; color: #1e40af; }

.status-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   BANNER POP-UP
══════════════════════════════════════════════════════════ */
.bpd-banner-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  max-width: 360px;
  background: #fff;
  border-radius: var(--bpd-radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  border-left: 5px solid var(--bpd-primary);
  animation: slideInRight .4s ease;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.bpd-banner-popup .popup-header {
  background: var(--bpd-primary);
  color: #fff;
  padding: .85rem 1.2rem;
  font-weight: 700;
  font-size: .9rem;
  border-radius: calc(var(--bpd-radius) - 5px) calc(var(--bpd-radius)) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bpd-banner-popup .popup-body {
  padding: 1.1rem 1.2rem;
  font-size: .88rem;
  color: var(--bpd-text);
  line-height: 1.6;
}

.bpd-banner-popup .btn-close {
  filter: brightness(0) invert(1);
  opacity: .8;
  font-size: .75rem;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.bpd-footer {
  background: var(--bpd-primary-dark);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 0;
}

.footer-brand-logo {
  width: 54px;
  opacity: .95;
}

.footer-title {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: .3rem;
}

.footer-subtitle {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}

.footer-heading {
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--bpd-accent);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--bpd-accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  margin-bottom: .6rem;
}

.footer-contact-item .icon { color: var(--bpd-accent); flex-shrink: 0; margin-top: .1rem; }

.footer-bottom {
  background: rgba(0,0,0,.25);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2.5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  transition: all var(--transition);
  margin-right: .4rem;
}

.footer-social a:hover {
  background: var(--bpd-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   SECTIONS PADDING
══════════════════════════════════════════════════════════ */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--bpd-primary) 0%, var(--bpd-primary-dark) 100%);
  padding: 2.5rem 0;
  color: #fff;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 .3rem;
}

.page-header .breadcrumb-item { font-size: .85rem; color: rgba(255,255,255,.7); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.page-header .breadcrumb-item a { color: rgba(255,255,255,.8); }

/* ══════════════════════════════════════════════════════════
   FORM STYLES
══════════════════════════════════════════════════════════ */
.form-control, .form-select {
  border: 1.5px solid var(--bpd-border);
  border-radius: 10px;
  padding: .65rem 1rem;
  font-family: inherit;
  font-size: .9rem;
  color: var(--bpd-text);
  transition: all var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--bpd-primary);
  box-shadow: 0 0 0 3px rgba(26,68,128,.12);
}

.form-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--bpd-text);
  margin-bottom: .4rem;
}

/* ══════════════════════════════════════════════════════════
   KODE TIKET TRACKER
══════════════════════════════════════════════════════════ */
.tiket-tracker-box {
  background: linear-gradient(135deg, var(--bpd-primary) 0%, #2563eb 100%);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  color: #fff;
}

.tiket-tracker-box h2 {
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: .5rem;
}

.tiket-input {
  background: rgba(255,255,255,.15) !important;
  border: 2px solid rgba(255,255,255,.35) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tiket-input::placeholder { color: rgba(255,255,255,.6) !important; }
.tiket-input:focus { border-color: var(--bpd-accent) !important; box-shadow: 0 0 0 3px rgba(232,160,32,.3) !important; }

/* ══════════════════════════════════════════════════════════
   PROFIL BPD CARDS
══════════════════════════════════════════════════════════ */
.bpd-member-card {
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border-radius: var(--bpd-radius);
  border: 1px solid var(--bpd-border);
  box-shadow: var(--bpd-card-shadow);
  transition: all var(--transition);
}

.bpd-member-card:hover {
  border-color: var(--bpd-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,68,128,.18);
}

.bpd-member-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bpd-primary);
  margin-bottom: 1rem;
}

.bpd-member-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bpd-primary), #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 1rem;
  border: 3px solid var(--bpd-primary);
}

.bpd-member-card .name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--bpd-text);
  margin-bottom: .25rem;
}

.bpd-member-card .jabatan {
  background: var(--bpd-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .8rem;
  border-radius: 50px;
  display: inline-block;
}

/* ══════════════════════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════════════════════ */
.faq-item {
  border: 1px solid var(--bpd-border);
  border-radius: 10px !important;
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-item .accordion-button {
  font-weight: 600;
  font-size: .92rem;
  color: var(--bpd-text);
  background: #fff;
  padding: 1.1rem 1.25rem;
}

.faq-item .accordion-button:not(.collapsed) {
  background: var(--bpd-primary);
  color: #fff;
  box-shadow: none;
}

.faq-item .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.faq-item .accordion-body {
  font-size: .9rem;
  color: var(--bpd-muted);
  line-height: 1.7;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--bpd-border);
}

/* ══════════════════════════════════════════════════════════
   POLLING
══════════════════════════════════════════════════════════ */
.polling-card {
  background: #fff;
  border-radius: var(--bpd-radius);
  border: 1px solid var(--bpd-border);
  box-shadow: var(--bpd-card-shadow);
  padding: 1.75rem;
}

.polling-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 2px solid var(--bpd-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: .6rem;
}

.polling-option:hover {
  border-color: var(--bpd-primary);
  background: #f0f4ff;
}

.polling-option input { accent-color: var(--bpd-primary); width: 18px; height: 18px; }

.polling-progress {
  margin-bottom: .6rem;
}

.polling-progress .label-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: var(--bpd-text);
}

.polling-progress .progress {
  height: 10px;
  border-radius: 10px;
  background: #e2e8f0;
}

.polling-progress .progress-bar {
  background: linear-gradient(90deg, var(--bpd-primary), #2563eb);
  border-radius: 10px;
  transition: width .8s ease;
}

/* ══════════════════════════════════════════════════════════
   INFOGRAFIS / CHART CONTAINER
══════════════════════════════════════════════════════════ */
.chart-wrapper {
  background: #fff;
  border-radius: var(--bpd-radius);
  border: 1px solid var(--bpd-border);
  box-shadow: var(--bpd-card-shadow);
  padding: 1.75rem;
}

.chart-wrapper h5 {
  font-weight: 700;
  color: var(--bpd-text);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════
   GALERI
══════════════════════════════════════════════════════════ */
.galeri-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.galeri-item:hover img { transform: scale(1.07); }

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,68,128,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 1.8rem;
  color: #fff;
}

.galeri-item:hover .galeri-overlay { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL LAYOUT
══════════════════════════════════════════════════════════ */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bpd-primary-dark);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1020;
  transition: transform var(--transition);
}

.admin-sidebar-brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.admin-sidebar-brand img {
  width: 38px;
  filter: brightness(0) invert(1);
}

.admin-sidebar-brand .brand-text {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.admin-sidebar-brand .brand-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
}

.sidebar-menu { padding: 1rem 0; }

.sidebar-section-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  padding: .75rem 1.25rem .35rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.sidebar-item:hover,
.sidebar-item.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-left-color: var(--bpd-accent);
}

.sidebar-item .icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.admin-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  background: #f1f5f9;
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--bpd-border);
  padding: .875rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.admin-topbar .page-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bpd-text);
  margin: 0;
}

.admin-main { padding: 1.75rem; }

/* Admin stat cards */
.admin-stat-card {
  background: #fff;
  border-radius: var(--bpd-radius);
  padding: 1.5rem;
  box-shadow: var(--bpd-card-shadow);
  border: 1px solid var(--bpd-border);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26,68,128,.14);
}

.admin-stat-card .stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.admin-stat-card .stat-info .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bpd-text);
  line-height: 1;
  margin-bottom: .2rem;
}

.admin-stat-card .stat-info .label {
  font-size: .8rem;
  color: var(--bpd-muted);
  font-weight: 500;
}

/* Admin table */
.admin-table-card {
  background: #fff;
  border-radius: var(--bpd-radius);
  border: 1px solid var(--bpd-border);
  box-shadow: var(--bpd-card-shadow);
  overflow: hidden;
}

.admin-table-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--bpd-border);
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--bpd-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-table th {
  background: #f8fafc;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--bpd-muted);
  border-bottom: 1px solid var(--bpd-border);
  padding: .85rem 1rem;
  white-space: nowrap;
}

.admin-table td {
  font-size: .88rem;
  color: var(--bpd-text);
  padding: .85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table tr:hover td { background: #f8fafc; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.show {
    transform: translateX(0);
  }
  .admin-content {
    margin-left: 0;
  }
  .hero-stats { gap: 1.25rem; }
}

@media (max-width: 767.98px) {
  .section-pad { padding: 3rem 0; }
  .bpd-banner-popup { max-width: calc(100vw - 2rem); right: 1rem; bottom: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   ANIMATION UTILITIES
══════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
