/* ==========================================================================
   Bapenda Kabupaten Lahat — Lighter Forest Green (#276739) & Celadon (#afe1af)
   Primary Accent: Celadon Green #afe1af (Solid Flat)
   Contrast Color: Lighter Forest Green #276739 (Fresh, Elegant, Not Too Dark)
   Strictly Solid Flat Colors — NO Gradients
   ========================================================================== */

:root {
  --celadon-primary: #afe1af;
  --celadon-hover:   #9cd89c;
  --celadon-dark:    #2e6f40;
  --forest-main:     #276739;  /* Updated: Lighter, fresher Forest Green */
  --forest-dark:     #194d29;  /* Updated: Lighter Deep Forest */
  --forest-deep:     #123a1f;  /* Updated: Lighter Deepest Footer */
  --celadon-light:   rgba(175, 225, 175, 0.25);
  --celadon-tint:    #f2f9f3;

  --white: #ffffff;
  --surface-soft: #f8faf8;
  --surface-alt: #f2f9f3;
  --dark-text: #0f172a;
  --body-text: #334155;
  --muted-text: #64748b;
  --border-light: #e2e8f0;
}

/* ---------- Base ---------- */
body {
  font-family: "Open Sans", sans-serif;
  color: var(--body-text);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: var(--dark-text);
}

.btn, .nav-link, .navbar-brand, .breadcrumb, figcaption, .badge {
  font-family: "Lato", sans-serif;
}

a {
  color: var(--forest-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--forest-dark);
}

.bg-light-grey {
  background-color: var(--surface-alt) !important;
}

.text-celadon { color: #afe1af !important; }
.text-green, .text-cyan, .text-navy, .text-gold, .text-purple, .text-red {
  color: var(--forest-main) !important;
}

/* ---------- Section Titles (Solid Flat Line) ---------- */
.section-title {
  color: var(--dark-text);
  position: relative;
  padding-bottom: 0.85rem;
  margin-bottom: 2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 75px;
  height: 4px;
  border-radius: 2px;
  background-color: #afe1af;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Buttons (Solid Flat #afe1af Color with Lighter Forest Text) ---------- */
.btn-brand, .btn-celadon, .btn-green, .btn-cyan, .btn-gold, .btn-red {
  background-color: #afe1af;
  border: 2px solid #afe1af;
  color: #194d29 !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(175, 225, 175, 0.35);
  transition: all 0.2s ease;
}

.btn-brand:hover, .btn-celadon:hover, .btn-green:hover, .btn-cyan:hover, .btn-gold:hover, .btn-red:hover {
  background-color: #9cd89c;
  border-color: #9cd89c;
  color: #194d29 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(175, 225, 175, 0.45);
}

.btn-white-hero {
  background-color: #ffffff;
  border: 2px solid #ffffff;
  color: #194d29 !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.btn-white-hero:hover {
  background-color: #afe1af;
  border-color: #afe1af;
  color: #194d29 !important;
  transform: translateY(-2px);
}

.btn-outline-brand, .btn-outline-navy, .btn-outline-cyan, .btn-outline-green {
  border: 2px solid #afe1af;
  color: var(--forest-main) !important;
  font-weight: 700;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.btn-outline-brand:hover, .btn-outline-navy:hover, .btn-outline-cyan:hover, .btn-outline-green:hover {
  background-color: #afe1af;
  border-color: #afe1af;
  color: #194d29 !important;
  transform: translateY(-2px);
}

.btn-outline-light-hero {
  border: 2px solid #afe1af;
  color: #afe1af !important;
  font-weight: 700;
  background-color: transparent;
  transition: all 0.2s ease;
}

.btn-outline-light-hero:hover {
  background-color: #afe1af;
  border-color: #afe1af;
  color: #194d29 !important;
  transform: translateY(-2px);
}

/* ---------- Topbar (Lighter Forest Dark #194d29) ---------- */
.topbar {
  background-color: #194d29;
  color: #f2f9f3;
  font-size: 0.825rem;
  font-family: "Lato", sans-serif;
  border-bottom: 1px solid rgba(175, 225, 175, 0.25);
}

.topbar i {
  color: #afe1af;
}

.topbar a {
  color: #f2f9f3;
  text-decoration: none;
}

.topbar a:hover {
  color: #afe1af;
}

/* ---------- Navbar (Solid Lighter Forest Green #276739) ---------- */
.navbar-bapenda {
  background-color: #276739;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 4px 20px rgba(39, 103, 57, 0.2);
  border-bottom: 3.5px solid #afe1af;
}

.navbar-bapenda .nav-link {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  padding-left: 1.1rem !important;
  padding-right: 1.1rem !important;
  transition: all 0.2s ease;
  position: relative;
}

.navbar-bapenda .nav-link:hover,
.navbar-bapenda .nav-link:focus {
  color: #afe1af;
}

.navbar-bapenda .nav-link.active {
  color: #afe1af !important;
  font-weight: 800;
}

.navbar-bapenda .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -0.85rem;
  left: 1.1rem;
  right: 1.1rem;
  height: 3.5px;
  background-color: #afe1af;
  border-radius: 2px 2px 0 0;
}

.navbar-bapenda .navbar-toggler {
  border: 1.5px solid #afe1af;
}

.navbar-bapenda .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23afe1af' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #ffffff;
  padding: 6px 14px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid #afe1af;
  overflow: hidden;
}

.logo-item {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ---------- Hero / Carousel (Solid Lighter Forest Green #276739) ---------- */
.hero-slide {
  min-height: 500px;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background-color: #276739;
}

.hero-slide-1, .hero-slide-2, .hero-slide-3 {
  background-color: #276739;
}

.hero-slide h1,
.hero-slide h2 {
  font-size: 2.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.hero-slide h1 span,
.hero-slide h2 span {
  color: #afe1af;
}

.hero-slide .lead {
  color: #f2f9f3;
  max-width: 650px;
  font-size: 1.15rem;
}

.hero-icon {
  font-size: 10.5rem;
  color: #afe1af;
  opacity: 0.25;
}

.carousel-indicators [data-bs-target] {
  background-color: #afe1af;
  opacity: 0.4;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #afe1af;
  width: 30px;
  border-radius: 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

/* ---------- Badges (Solid #afe1af Color) ---------- */
.badge-celadon, .badge-green, .badge-cyan, .badge-purple, .badge-gold, .badge-emerald, .badge-red {
  background-color: #afe1af;
  color: #194d29 !important;
  font-weight: 800;
  padding: 0.55rem 1.1rem;
  border-radius: 30px;
  border: none;
}

.badge-celadon-light {
  background-color: rgba(175, 225, 175, 0.25);
  color: var(--forest-main) !important;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 30px;
  border: 1px solid #afe1af;
}

/* ---------- Page Header (Solid Lighter Forest Green #276739) ---------- */
.page-header {
  background-color: #276739;
  color: #ffffff;
  padding: 3rem 0;
  position: relative;
  border-bottom: 4px solid #afe1af;
}

.page-header h1 {
  font-size: 2.25rem;
  color: #ffffff;
  font-weight: 800;
}

.page-header .breadcrumb-item a {
  color: #afe1af;
  text-decoration: none;
  font-weight: 600;
}

.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item+.breadcrumb-item::before {
  color: #f2f9f3;
}

/* ---------- Kartu Konten ---------- */
.card-konten {
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  background-color: #ffffff;
}

.card-konten:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(39, 103, 57, 0.15);
  border-color: #afe1af;
}

.card-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #194d29;
  background-color: #afe1af;
}

.thumb-1, .thumb-2, .thumb-3, .thumb-4 {
  background-color: #afe1af;
  color: #194d29;
}

.card-konten .card-title a {
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 700;
}

.card-konten .card-title a:hover {
  color: var(--forest-main);
}

.meta-info {
  font-size: 0.825rem;
  color: var(--muted-text);
  font-family: "Lato", sans-serif;
}

/* ---------- Statistik Seksi (Solid Lighter Forest Green #276739) ---------- */
.stat-section {
  background-color: #276739;
  color: #ffffff;
  border-top: 4px solid #afe1af;
  border-bottom: 4px solid #afe1af;
}

.stat-number {
  font-family: "Roboto", sans-serif;
  font-size: 3.1rem;
  font-weight: 800;
  color: #afe1af;
}

.stat-label {
  color: #f2f9f3;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Sambutan ---------- */
.foto-kepala {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: 1.25rem;
  background-color: #276739;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 5px solid #afe1af;
  box-shadow: 0 10px 25px rgba(39, 103, 57, 0.2);
  padding: 5px;
}

.foto-kepala img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  border: 3px solid #ffffff;
}

/* ---------- Pengumuman List ---------- */
.list-pengumuman .list-group-item {
  border-left: 5px solid #afe1af;
  margin-bottom: 0.85rem;
  border-radius: 0.75rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.list-pengumuman .list-group-item:hover {
  transform: translateX(5px);
  border-left-color: var(--forest-main);
  box-shadow: 0 6px 18px rgba(175, 225, 175, 0.25);
}

.tanggal-kotak {
  background-color: #afe1af;
  color: #194d29;
  border-radius: 0.65rem;
  min-width: 72px;
  text-align: center;
  padding: 0.65rem;
  font-family: "Lato", sans-serif;
}

.tanggal-kotak .tgl {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: #194d29;
}

.tanggal-kotak .bln {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #194d29;
  font-weight: 800;
}

/* ---------- Galeri ---------- */
.galeri-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 3rem;
  transition: transform 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.galeri-item:hover {
  transform: translateY(-4px);
}

.galeri-item .galeri-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1.1rem;
  background-color: rgba(39, 103, 57, 0.9);
  color: #ffffff;
  font-size: 0.9rem;
  font-family: "Lato", sans-serif;
}

/* ---------- Visi Misi / Tupoksi ---------- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background-color: #afe1af;
  color: #194d29;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.accordion-bapenda .accordion-button:not(.collapsed) {
  background-color: #afe1af;
  color: #194d29;
  font-weight: 800;
}

/* ---------- Kontak ---------- */
.kontak-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.map-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 2px solid #afe1af;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
}

/* ---------- Footer (Lighter Deep Forest #123a1f) ---------- */
.footer-bapenda {
  background-color: #123a1f;
  color: #e2e8f0;
  border-top: 4px solid #afe1af;
}

.footer-bapenda h5 {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.footer-bapenda h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 3px;
  background-color: #afe1af;
  border-radius: 2px;
}

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

.footer-bapenda a:hover {
  color: #afe1af;
  padding-left: 5px;
}

.footer-bapenda .sosmed a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  margin-right: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.footer-bapenda .sosmed a:hover {
  background-color: #afe1af;
  color: #194d29;
  border-color: #afe1af;
  transform: translateY(-2px);
}

.footer-copyright {
  background-color: #0c2915;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--forest-main);
  font-family: "Lato", sans-serif;
  border-radius: 8px;
  margin: 0 3px;
  border: 1px solid var(--border-light);
  font-weight: 600;
}

.pagination .page-item.active .page-link {
  background-color: #afe1af;
  border-color: #afe1af;
  color: #194d29 !important;
  font-weight: 800;
}

.kategori-item {
  display: inline-block;
  padding: 8px 18px;
  margin: 4px;
  border-radius: 30px;
  background-color: var(--surface-alt);
  color: var(--dark-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.kategori-item:hover, .kategori-item.active {
  background-color: #afe1af;
  color: #194d29 !important;
  border-color: #afe1af;
}