/* ==============================
   TOPBAR
============================== */

.topbar {
  background: #fff;
  border-bottom: 4px solid #c99a2e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.topbar .container-fluid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 15px;
}

.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.logo-pn {
  width: 78px;
  height: auto;
  flex-shrink: 0;
}

.header-title {
  line-height: 1.25;
}

.header-small {
  font-size: 18px;
  font-weight: 500;
  color: #666;
  margin: 0;
}

.header-medium {
  font-size: 15px;
  font-weight: 600;
  color: #b88917;
  letter-spacing: 0.3px;
  margin: 2px 0;
}

.header-big {
  font-size: 32px;
  font-weight: 800;
  color: #333;
  line-height: 1.15;
  margin: 2px 0 6px;
}

.header-address {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-left: 30px;
  flex-shrink: 0;
}

.logo-berakhlak {
  height: 60px;
  width: auto;
}

.tanggal-badge {
  margin-top: 8px;
  padding: 6px 14px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 30px;
  font-size: 13px;
  color: #555;
}

/* ==============================
   NAVBAR
============================== */

.navbar {
  margin-bottom: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

.navbar .container {
  display: flex;
  justify-content: center;
}

.navbar .container-fluid {
  padding-left: 40px;
  padding-right: 40px;
}

.navbar-nav {
  float: none !important;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
}

.navbar-nav > li {
  display: block;
}

.navbar-nav > li > a {
  color: #fff !important;
  font-weight: 600;
  padding: 14px 16px;
  white-space: nowrap;
}

.navbar-nav > li > a:hover {
  background: #d35400 !important;
}

.navbar-nav > .active > a {
  background: #c0392b !important;
}

/* Dropdown */

.dropdown-menu {
  background: #c0392b;
  border: none;
}

.dropdown-menu > li > a {
  color: #fff !important;
  padding: 10px 15px;
}

.dropdown-menu > li > a:hover {
  background: #e74c3c !important;
  color: #fff !important;
}

/* Submenu bertingkat */

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

.dropdown-submenu > a:after {
  content: "›";
  float: right;
  margin-right: 5px;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 992px) {
  .topbar-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .topbar-left {
    flex-direction: column;
    gap: 12px;
  }

  .topbar-right {
    margin: 15px 0 0;
    align-items: center;
  }

  .logo-pn {
    width: 70px;
  }

  .logo-berakhlak {
    height: 50px;
  }

  .header-small {
    font-size: 16px;
  }

  .header-medium {
    font-size: 14px;
  }

  .header-big {
    font-size: 28px;
    white-space: normal;
  }

  .header-address {
    font-size: 13px;
  }
}

#toggleHoverSpeech {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

#toggleHoverSpeech[aria-pressed="true"] {
  background: #96351f;
  color: #fff;
}

@media (max-width: 767px) {
  .navbar .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .navbar-nav {
    display: block;
    flex-wrap: wrap;
  }

  .navbar-nav > li > a {
    white-space: normal;
  }

  .dropdown-submenu > .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-left: 15px;
    box-shadow: none;
  }
}

/* ==========================================
   SIDEBAR RELAAS PANGGILAN
========================================== */

.sidebar-relass {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.sidebar-relass-content {
  padding: 10px;
  background: #f7f7f7;
}

/* Item */
.sidebar-relass-item {
  padding: 13px;
  margin-bottom: 9px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-left: 3px solid #a52b17;
  border-radius: 4px;
  transition: box-shadow 0.2s ease;
}

.sidebar-relass-item:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Nomor perkara */
.sidebar-relass-top {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-relass-label {
  color: #999;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.sidebar-relass-label i {
  margin-right: 4px;
  color: #b68a42;
}

.sidebar-relass-number {
  color: #8f2817;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Nama pihak */
.sidebar-relass-name {
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 7px;
}

/* Tanggal dan link */
.sidebar-relass-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #eee;
}

.sidebar-relass-date {
  color: #888;
  font-size: 10px;
}

.sidebar-relass-date i {
  margin-right: 4px;
  color: #b68a42;
}

.sidebar-relass-link {
  display: inline-block;
  padding: 5px 9px;
  background: #f8eee9;
  color: #922b19 !important;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none !important;
}

.sidebar-relass-link:hover {
  background: #922b19;
  color: #fff !important;
}

/* Lihat semua */
.sidebar-relass-all {
  display: block;
  padding: 11px;
  margin-top: 5px;
  text-align: center;
  background: #8f2817;
  color: #fff !important;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
}

.sidebar-relass-all:hover {
  background: #b47c2c;
}

.sidebar-relass-all i {
  margin-left: 5px;
}

/* Kosong */
.sidebar-relass-empty {
  padding: 20px 10px;
  color: #888;
  font-size: 12px;
  text-align: center;
}

/* ==========================================
   SIDEBAR WIDGET UMUM
========================================== */

.sidebar-contact,
.sidebar-related,
.sidebar-statistics {
  margin-top: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.sidebar-widget-content {
  padding: 10px;
  background: #f7f7f7;
}

.sidebar-widget-empty {
  padding: 20px 10px;
  color: #999;
  font-size: 12px;
  text-align: center;
}

/* ==========================================
   HUBUNGI KAMI
========================================== */

.sidebar-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 10px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 5px;
}

.sidebar-contact-item:last-child {
  margin-bottom: 0;
}

.sidebar-contact-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8eee9;
  border-radius: 5px;
}

.sidebar-contact-icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.sidebar-contact-detail {
  flex: 1;
  min-width: 0;
}

.sidebar-contact-detail a {
  display: inline-block;
  color: #922b19;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.sidebar-contact-detail a:hover {
  color: #bd7920;
}

.sidebar-contact-detail a i {
  margin-left: 4px;
  font-size: 9px;
  color: #aaa;
}

.sidebar-contact-detail p {
  margin: 5px 0 0;
  color: #777;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* ==========================================
   LINK TERKAIT
========================================== */

.sidebar-related-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 9px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 5px;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.sidebar-related-item:last-child {
  margin-bottom: 0;
}

.sidebar-related-item:hover {
  background: #fffaf4;
  border-color: #e1c69b;
}

.sidebar-related-logo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
}

.sidebar-related-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-related-detail {
  flex: 1;
  min-width: 0;
}

.sidebar-related-detail strong {
  display: block;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.sidebar-related-detail span {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sidebar-related-item:hover .sidebar-related-detail strong {
  color: #922b19;
}

.sidebar-related-arrow {
  color: #aaa;
  font-size: 18px;
  padding: 0 3px;
}

.sidebar-related-item:hover .sidebar-related-arrow {
  color: #922b19;
}

/* ==========================================
   STATISTIK SITUS
========================================== */

.sidebar-statistics-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 95px;
  padding: 15px;
  background: #fff;
  overflow: hidden;
}

.sidebar-statistics-content #histats_counter {
  max-width: 100%;
  text-align: center;
}

.sidebar-statistics-content img {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 767px) {
  .sidebar-contact-item {
    padding: 12px 9px;
  }

  .sidebar-related-item {
    padding: 10px 8px;
  }
}

/* ==========================================
   SIDEBAR ALIH BAHASA
========================================== */

.sidebar-translate,
.sidebar-search,
.sidebar-carousel {
  margin-top: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.sidebar-translate .sidebar-widget-content {
  padding: 13px;
}

.sidebar-translate-icon {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.sidebar-translate-icon > i {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8eee9;
  border-radius: 5px;
  color: #922b19;
  font-size: 20px;
}

.sidebar-translate-icon strong {
  display: block;
  color: #333;
  font-size: 12px;
}

.sidebar-translate-icon span {
  display: block;
  color: #888;
  font-size: 10px;
  margin-top: 3px;
}

#google_translate_element {
  width: 100%;
  min-height: 38px;
}

#google_translate_element .goog-te-gadget {
  font-size: 0;
}

#google_translate_element .goog-te-combo {
  width: 100%;
  max-width: 100%;
  height: 38px;
  margin: 0;
  padding: 5px 9px;
  color: #555;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
}

/* ==========================================
   SIDEBAR PENCARIAN
========================================== */

.sidebar-search .sidebar-widget-content {
  padding: 13px;
}

.sidebar-search-input {
  position: relative;
}

.sidebar-search-input > i {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: #a52a16;
  z-index: 2;
  font-size: 14px;
}

.sidebar-search-input .form-control {
  height: 42px;
  padding: 8px 12px 8px 38px;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  box-shadow: none;
  font-size: 12px;
}

.sidebar-search-input .form-control:focus {
  border-color: #b88a45;
  box-shadow: 0 0 0 2px rgba(184, 138, 69, 0.1);
}

#searchResult {
  margin-top: 10px;
}

#searchResult:empty {
  display: none;
}

/* ==========================================
   SIDEBAR CAROUSEL
========================================== */

.sidebar-carousel-content {
  padding: 10px;
  background: #f7f7f7;
}

.sidebar-carousel .carousel {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
}

.sidebar-carousel .carousel-inner {
  width: 100%;
}

.sidebar-carousel .carousel-inner > .item {
  text-align: center;
  background: #fff;
}

.sidebar-carousel .carousel-inner > .item > a {
  display: flex;
  width: 100%;
  min-height: 150px;
  align-items: center;
  justify-content: center;
}

.sidebar-carousel .carousel-inner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  margin: 0 auto;
}

/* Navigasi carousel */
.sidebar-carousel .carousel-control {
  width: 34px;
  background: transparent;
  opacity: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease;
}

.sidebar-carousel .carousel:hover .carousel-control {
  opacity: 0.85;
}

.sidebar-carousel .carousel-control .glyphicon {
  top: 50%;
  margin-top: -10px;
  font-size: 19px;
}

.sidebar-carousel .carousel-control.left {
  left: 0;
}

.sidebar-carousel .carousel-control.right {
  right: 0;
}

.sidebar-carousel-empty {
  padding: 30px 12px;
  text-align: center;
  color: #999;
  font-size: 12px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 767px) {
  .sidebar-carousel .carousel-inner > .item > a {
    min-height: 120px;
  }

  .sidebar-carousel .carousel-inner img {
    max-height: 320px;
  }
}

/* ==========================================
   INFORMASI PELAYANAN
========================================== */

.service-information {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 25px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.service-section-heading {
  margin-bottom: 22px;
}

.service-section-heading > span,
.location-heading > div > span {
  display: block;
  margin-bottom: 7px;
  color: #bd8b35;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.service-section-heading h3,
.location-heading h3 {
  margin: 0;
  color: #7f2017;
  font-size: 23px;
  font-weight: 700;
}

.service-section-heading p,
.location-heading p {
  margin: 8px 0 0;
  color: #888;
  font-size: 12px;
  line-height: 1.7;
}

/* Tab navigasi */

.service-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #eee;
}

.service-tab-nav > li {
  float: none;
  margin-bottom: -2px;
}

.service-tab-nav > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 17px;
  color: #666;
  background: #f6f6f6;
  border: 1px solid transparent;
  border-radius: 5px 5px 0 0;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.service-tab-nav > li > a i {
  color: #a32c1a;
  font-size: 15px;
}

.service-tab-nav > li > a:hover {
  color: #922b19;
  background: #fff8f0;
  border-color: #eee;
}

.service-tab-nav > li.active > a,
.service-tab-nav > li.active > a:hover,
.service-tab-nav > li.active > a:focus {
  color: #fff;
  background: #922b19;
  border: 1px solid #922b19;
}

.service-tab-nav > li.active > a i {
  color: #f5c66c;
}

/* Isi tab */

.service-tab-content {
  padding: 25px 10px 10px;
}

.service-tab-flex {
  display: flex;
  align-items: center;
  gap: 35px;
  min-height: 210px;
}

.service-tab-image {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 10px;
}

.service-tab-image img {
  display: block;
  width: 100%;
  max-width: 260px;
  max-height: 210px;
  object-fit: contain;
}

.service-tab-text {
  flex: 1;
}

.service-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #bd8b35;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.service-tab-text h4 {
  margin: 0 0 13px;
  color: #333;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.service-tab-text p {
  margin-bottom: 18px;
  color: #777;
  font-size: 13px;
  line-height: 1.9;
}

.service-read-more {
  display: inline-block;
  padding: 10px 17px;
  color: #fff !important;
  background: #922b19;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.service-read-more:hover {
  background: #b58a37;
}

.service-read-more i {
  margin-left: 8px;
}

/* ==========================================
   LOKASI PENGADILAN
========================================== */

.location-section {
  margin: 30px 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.location-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid #eee;
}

.location-heading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #922b19;
  background: #f8eee9;
  border-radius: 50%;
  font-size: 21px;
}

.location-map {
  width: 100%;
  height: 380px;
  background: #f3f3f3;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-address {
  padding: 14px 20px;
  color: #777;
  background: #fafafa;
  border-top: 1px solid #eee;
  font-size: 12px;
  line-height: 1.7;
}

.location-address i {
  margin-right: 7px;
  color: #922b19;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 767px) {
  .service-information {
    padding: 16px;
  }

  .service-section-heading h3,
  .location-heading h3 {
    font-size: 19px;
  }

  .service-tab-nav {
    display: flex;
    gap: 4px;
  }

  .service-tab-nav > li {
    flex: 1;
    min-width: 0;
  }

  .service-tab-nav > li > a {
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 10px 5px;
    text-align: center;
    font-size: 10px;
    white-space: normal;
    line-height: 1.4;
  }

  .service-tab-nav > li > a i {
    font-size: 17px;
  }

  .service-tab-content {
    padding: 15px 5px 5px;
  }

  .service-tab-flex {
    flex-direction: column;
    gap: 15px;
  }

  .service-tab-image {
    width: 100%;
    min-height: 130px;
    flex: none;
  }

  .service-tab-image img {
    max-height: 160px;
    max-width: 210px;
  }

  .service-tab-text {
    width: 100%;
  }

  .service-tab-text h4 {
    font-size: 17px;
  }

  .location-heading {
    padding: 17px;
  }

  .location-map {
    height: 300px;
  }
}

/* Layout halaman menu */
.page-container {
  max-width: 1280px;
  width: 100%;
  margin: 25px auto 40px;
  padding-left: 15px;
  padding-right: 15px;
}

.page-container > .row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-container > .row > .col-md-9 {
  float: none;
}

.page-container > .row > .col-md-3 {
  float: none;
}

@media (max-width: 767px) {
  .page-container > .row {
    display: block;
  }

  .page-container > .row > div {
    width: 100%;
  }
}

/* ==========================================
   LAYOUT UTAMA WEBSITE
========================================== */

.website-main-container {
  width: calc(100% - 50px);
  max-width: 1280px;
  margin: 15px auto 30px;
  box-sizing: border-box;
}

/* Semua bagian mengikuti lebar pembungkus */
.website-main-container > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Jarak slider ke pelayanan */
.website-main-container > *:first-child {
  margin-bottom: 14px;
}

/* Jarak pelayanan ke konten */
.website-main-container > .website-content-shell {
  margin-top: 10px;
}

/* Kotak konten halaman */
.website-content-shell {
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

/* Kolom konten dan sidebar */
.website-content-shell > .row {
  margin-left: -10px;
  margin-right: -10px;
}

/* Responsif */
@media (max-width: 767px) {
  .website-main-container {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .website-content-shell {
    padding: 10px;
  }
}

/* ==========================================
   HALAMAN DETAIL
========================================== */

.page-detail-content {
  width: 100%;
  background: #fff;
}

.page-heading {
  padding: 10px 0 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #e8e8e8;
}

.page-heading h1 {
  margin: 0 0 8px;
  color: #333;
  font-size: 34px;
  font-weight: 800;
}

.page-heading p {
  margin: 0;
  color: #888;
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================
   SHARED PAGE COMPONENTS
   Digunakan oleh seluruh halaman website
========================================== */

/* KERANGKA HALAMAN */

.page-detail-content {
  width: 100%;
  margin-bottom: 30px;
  padding: 25px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

/* JUDUL HALAMAN */

.page-heading {
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 17px;
  border-bottom: 1px solid #eee;
}

.page-heading:after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 65px;
  height: 3px;
  background: #922b19;
  content: "";
}

.page-heading h1 {
  margin: 0 0 9px;
  color: #762719;
  font-size: 26px;
  font-weight: 700;
}

.page-heading p {
  margin: 0;
  color: #888;
  font-size: 13px;
  line-height: 1.7;
}

/* TAB */

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #f8f8f8;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.page-tab i {
  color: #922b19;
}

.page-tab:hover {
  border-color: #d8b99a;
  background: #fff7f0;
}

.page-tab.active {
  border-color: #922b19;
  background: #922b19;
  color: #fff;
}

.page-tab.active i {
  color: #f5c66c;
}

/* PANEL / KOTAK KONTEN */

.page-panel {
  margin-bottom: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.page-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 20px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.page-panel-heading h3,
.page-panel-heading h4 {
  margin: 0;
  color: #333;
  font-size: 17px;
  font-weight: 700;
}

.page-panel-heading > i {
  color: #922b19;
  font-size: 27px;
}

.page-panel-content {
  padding: 20px;
}

/* LABEL */

.page-label {
  display: inline-block;
  margin-bottom: 6px;
  color: #b58a37;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* FRAME / PDF */

.page-frame {
  width: 100%;
  height: 650px;
  background: #f1f1f1;
}

.page-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* FOOTER PANEL */

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 18px;
  background: #fafafa;
  border-top: 1px solid #eee;
  color: #888;
  font-size: 11px;
}

.page-footer i {
  margin-right: 5px;
  color: #b58a37;
}

/* TOMBOL DOWNLOAD / BUKA DOKUMEN */

.page-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 4px;
  background: #922b19;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.page-download:hover {
  background: #b58a37;
  color: #fff !important;
}

/* TABEL */

.page-table {
  width: 100%;
  margin: 0;
  background: #fff;
}

.page-table thead th {
  padding: 14px 15px !important;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8 !important;
  color: #555;
  font-size: 12px;
  font-weight: 700;
}

.page-table tbody td {
  padding: 14px 15px !important;
  vertical-align: middle !important;
  border-top: 1px solid #eee !important;
  color: #555;
  font-size: 13px;
}

.page-table tbody tr:hover {
  background: #fffaf5;
}

/* ACCORDION */

.page-accordion {
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
}

.page-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  border-bottom: 3px solid #e9b64d;
  background: linear-gradient(110deg, #781e12, #a52b17);
  color: #fff;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.page-accordion-header i {
  color: #f5c66c;
  transition: transform 0.2s ease;
}

.page-accordion-header.active i {
  transform: rotate(180deg);
}

.page-accordion-body {
  padding: 20px;
}

/* DATA KOSONG */

.page-empty {
  padding: 50px 20px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  background: #fafafa;
  text-align: center;
}

.page-empty > i {
  color: #b58a37;
  font-size: 42px;
}

.page-empty h3 {
  margin: 15px 0 8px;
  color: #444;
  font-size: 18px;
  font-weight: 700;
}

.page-empty p {
  margin: 0;
  color: #999;
  font-size: 12px;
  line-height: 1.7;
}

/* RESPONSIVE */

@media (max-width: 767px) {
  .page-detail-content {
    padding: 15px;
  }

  .page-heading h1 {
    font-size: 23px;
  }

  .page-tabs {
    gap: 6px;
  }

  .page-tab {
    flex: 1 1 auto;
    padding: 10px;
    font-size: 11px;
  }

  .page-panel-heading {
    padding: 14px;
  }

  .page-panel-heading h3,
  .page-panel-heading h4 {
    font-size: 15px;
  }

  .page-panel-content {
    padding: 12px;
  }

  .page-frame {
    height: 480px;
  }

  .page-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-table thead th,
  .page-table tbody td {
    padding: 10px !important;
    font-size: 11px;
  }
}

/* ==========================================
   KOMPONEN GALERI BERSAMA
========================================== */

.page-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 20px;
  background: #eee;
  color: #666;
  font-size: 10px;
}

.page-tab.active .page-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.page-total {
  color: #888;
  font-size: 12px;
  white-space: nowrap;
}

.page-total i {
  margin-right: 5px;
  color: #b58a37;
}

.page-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}

.page-gallery-item {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  transition: 0.25s ease;
}

.page-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
}

.page-gallery-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f1f1f1;
}

.page-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.page-gallery-item:hover .page-gallery-image img {
  transform: scale(1.06);
}

.page-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 25, 15, 0.45);
  color: #fff;
  font-size: 25px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-gallery-item:hover .page-gallery-overlay {
  opacity: 1;
}

.page-gallery-caption {
  padding: 13px 12px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 991px) {
  .page-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .page-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 12px;
  }

  .page-gallery-image {
    height: 220px;
  }

  .page-tabs {
    flex-direction: column;
  }

  .page-tab {
    width: 100%;
    justify-content: flex-start;
  }
}

/* INFORMASI GALERI */

.page-gallery-date {
  display: block;
  margin-bottom: 7px;
  color: #b58a37;
  font-size: 11px;
  font-weight: 600;
}

.page-gallery-date i {
  margin-right: 4px;
}

.page-gallery-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.page-gallery-more {
  display: block;
  margin-top: 8px;
  color: #922b19;
  font-size: 11px;
  font-weight: 600;
}

.page-gallery-more i {
  margin-left: 4px;
}

/* INFORMASI NAMA DOKUMEN */

.page-document-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-weight: 600;
  line-height: 1.6;
}

.page-document-name i {
  color: #a52b17;
  font-size: 18px;
}

/* LABEL KATEGORI / STATUS */

.page-label-badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.page-label-ikm {
  background: #922b19;
}

.page-label-ipk {
  background: #2876a8;
}

.page-label-warning {
  background: #d99b36;
}

.page-label-info {
  background: #5bc0de;
}

.page-label-default {
  background: #777;
}

/* FILE TIDAK TERSEDIA */

.page-no-file {
  color: #999;
  font-size: 11px;
}

/* LABEL JENIS DIPA */

.page-label-dipa01 {
  background: #922b19;
}

.page-label-dipa03 {
  background: #2876a8;
}

/* =========================================
   VIDEO GALLERY
========================================= */

.page-video-featured {
  margin-bottom: 40px;
}

.page-video-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #111;
}

.page-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-video-featured .page-video-frame {
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.page-video-featured-title {
  margin-top: 15px;
  font-size: 28px;
  font-weight: 800;
  color: #333;
}

.page-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.page-video-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.page-video-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-video-caption {
  padding: 15px;
}

.page-video-caption h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
}

@media (max-width: 768px) {
  .page-video-grid {
    grid-template-columns: 1fr;
  }

  .page-video-featured-title {
    font-size: 22px;
  }
}

/* =========================================
   RICH CONTENT - HALAMAN DINAMIS
========================================= */

.page-rich-content {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  padding: 10px 15px;
  overflow-wrap: break-word;
}

/* PARAGRAF */
.page-rich-content p {
  margin-bottom: 15px;
  text-align: justify;
}

/* GAMBAR */
.page-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}

/* GAMBAR TENGAH */
.page-rich-content p[style*="text-align:center"] {
  text-align: center !important;
}

.page-rich-content p[style*="text-align: center"] {
  text-align: center !important;
}

.page-rich-content p[style*="text-align:center"] img,
.page-rich-content p[style*="text-align: center"] img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* TABEL */
.page-rich-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

/* HEADER TABEL */
.page-rich-content table thead {
  background: #f4f6f7;
}

.page-rich-content table th {
  padding: 10px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #ddd;
}

/* BODY TABEL */
.page-rich-content table td {
  padding: 10px;
  border: 1px solid #eee;
}

/* ZEBRA */
.page-rich-content table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* HOVER */
.page-rich-content table tbody tr:hover {
  background: #fdf2e9;
}

/* LINK */
.page-rich-content a {
  color: #c0392b;
  text-decoration: none;
}

.page-rich-content a:hover {
  text-decoration: underline;
}

/* DAFTAR */
.page-rich-content ul,
.page-rich-content ol {
  padding-left: 25px;
  margin-bottom: 15px;
}

.page-rich-content li {
  margin-bottom: 5px;
}

/* MOBILE */
@media (max-width: 767px) {
  .page-rich-content {
    padding: 5px;
    font-size: 14px;
  }

  .page-rich-content table {
    font-size: 12px;
  }

  .page-rich-content table th,
  .page-rich-content table td {
    padding: 7px;
  }
}

/* =========================================
   PROFIL PEGAWAI
========================================= */

.pegawai-profile,
.pegawai-profile-list {
  padding: 20px 0;
}

.pegawai-profile-list {
  border-bottom: 1px solid #eee;
  margin-bottom: 25px;
  padding-bottom: 30px;
}

.pegawai-profile-list:last-child {
  border-bottom: none;
}

.pegawai-profile-header {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.pegawai-profile-photo {
  flex: 0 0 230px;
}

.pegawai-profile-photo img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 3px solid #eee;
}

.pegawai-profile-info {
  flex: 1;
  min-width: 0;
}

.pegawai-profile-info h2 {
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #333;
}

.pegawai-profile-position {
  display: inline-block;
  background: #fff3e6;
  color: #b76b15;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.pegawai-profile-table {
  width: 100%;
}

.pegawai-profile-table td {
  padding: 8px 5px;
  font-size: 14px;
  vertical-align: top;
}

.pegawai-profile-table td:first-child {
  width: 160px;
  font-weight: 600;
  color: #333;
}

.pegawai-profile-table td:nth-child(2) {
  width: 15px;
  text-align: center;
}

.pegawai-profile-table td:last-child {
  color: #555;
}

.pegawai-section {
  margin-top: 25px;
}

.pegawai-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  border-left: 4px solid #c0392b;
  padding-left: 12px;
  margin-bottom: 12px;
}

.pegawai-section-content {
  background: #fafafa;
  padding: 15px 18px;
  border-radius: 8px;
  line-height: 1.9;
  font-size: 14px;
  color: #444;
}

@media (max-width: 767px) {
  .pegawai-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pegawai-profile-photo {
    width: 200px;
    flex: none;
  }

  .pegawai-profile-photo img {
    height: 250px;
  }

  .pegawai-profile-table {
    text-align: left;
  }

  .pegawai-profile-table td:first-child {
    width: 130px;
  }
}

/* =========================================
   ROLE MODEL & AGEN PERUBAHAN
========================================= */

.pegawai-role-item {
  padding: 20px 0 30px;
  margin-bottom: 20px;
  border-bottom: 1px dashed #e5e5e5;
}

.pegawai-role-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.pegawai-role-header {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.pegawai-role-photo {
  flex: 0 0 160px;
}

.pegawai-role-photo img {
  width: 160px;
  height: 210px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 3px solid #eee;
}

.pegawai-role-info {
  flex: 1;
  min-width: 0;
}

.pegawai-role-info h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.pegawai-role-position {
  color: #b76b15;
  font-weight: 600;
  margin-bottom: 12px;
}

.pegawai-role-identity {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}

.pegawai-role-identity strong {
  color: #333;
  display: inline-block;
  min-width: 75px;
}

.pegawai-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pegawai-role-badge,
.pegawai-agen-badge {
  display: inline-block;
  color: #fff;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 600;
}

.pegawai-role-badge {
  background: #27ae60;
}

.pegawai-agen-badge {
  background: #2980b9;
}

@media (max-width: 767px) {
  .pegawai-role-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pegawai-role-info h2 {
    font-size: 20px;
  }

  .pegawai-role-badges {
    justify-content: center;
  }

  .pegawai-role-identity {
    text-align: left;
    display: inline-block;
  }
}

/* =========================================
   BERITA
========================================= */

.news-box,
.news-list {
  position: relative;
  z-index: 1;
}

.news-item {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.news-item:hover {
  transform: translateY(-3px);
}

.news-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.news-list .news-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-list .news-title a {
  color: #2c3e50;
  text-decoration: none;
}

.news-list .news-title a:hover {
  color: #c0392b;
}

.news-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.news-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* PAGINATION */

.pagination-wrapper {
  position: relative;
  z-index: 10;
  text-align: center;
  margin: 25px 0;
}

.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-left: 0;
}

.pagination li {
  list-style: none;
}

.pagination li a,
.pagination li span {
  display: block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #c0392b;
  background: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.pagination li a:hover,
.pagination li.active span,
.pagination li.active a {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

/* DETAIL BERITA */

.news-detail {
  width: 100%;
  overflow: visible !important;
}

.news-back-wrapper {
  margin-bottom: 20px;
}

.btn-kembali {
  display: inline-block;
  padding: 8px 14px;
  background: #f5f5f5;
  color: #333;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  transition: 0.25s;
}

.btn-kembali:hover {
  background: #c0392b;
  color: #fff;
}

.news-detail-title {
  display: block;
  position: relative;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  color: #2c3e50;
  margin: 0 0 20px;
  padding: 0;
  height: auto;
  overflow: visible;
  white-space: normal;
  overflow-wrap: break-word;
}

.news-meta {
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 2px solid #f1f1f1;
  color: #888;
  font-size: 14px;
}

.news-meta i {
  margin-right: 6px;
}

/* ISI BERITA */

.news-content {
  font-size: 16px;
  line-height: 1.95;
  color: #444;
  overflow-wrap: break-word;
}

.news-content p {
  margin-bottom: 18px;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}

.news-content table {
  max-width: 100%;
}

/* SLICK */

.news-gallery .slick-prev,
.news-gallery .slick-next {
  width: 40px;
  height: 40px;
  background: rgba(192, 57, 43, 0.9);
  border-radius: 50%;
  z-index: 9;
}

.news-gallery .slick-prev:hover,
.news-gallery .slick-next:hover {
  background: #c0392b;
}

.news-gallery .slick-prev {
  left: -10px;
}

.news-gallery .slick-next {
  right: -10px;
}

.news-gallery .slick-prev:before,
.news-gallery .slick-next:before {
  color: #fff;
  font-size: 18px;
}

/* DOT NAVIGASI GALERI BERITA */
.news-gallery .slick-dots {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;

  display: block !important;
  width: 100% !important;

  margin: 12px 0 0 !important;
  padding: 0 !important;

  text-align: center !important;
  transform: none !important;
}

.news-gallery .slick-dots li {
  display: inline-block !important;
  float: none !important;
  vertical-align: middle;
  margin: 0 3px !important;
}

.news-gallery .slick-dots li button:before {
  color: #c0392b;
  font-size: 10px;
}

.news-gallery .slick-dots li.slick-active button:before {
  color: #e74c3c;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .news-image img {
    height: 200px;
    margin-bottom: 15px;
  }

  .news-detail {
    padding: 20px;
  }

  .news-detail-title {
    font-size: 27px;
  }

  .news-content {
    font-size: 14px;
    line-height: 1.85;
  }

  .news-meta {
    font-size: 12px;
  }

  .news-gallery .slick-prev {
    left: 0;
  }

  .news-gallery .slick-next {
    right: 0;
  }
}

/* =========================================
   BERITA - LIST
========================================= */

#berita-container .news-list {
  position: relative;
  z-index: 1;
  width: 100%;
}

#berita-container .news-item {
  background: #fff;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease;
}

#berita-container .news-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FOTO BERITA */
#berita-container .news-image {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #f7f7f7;
}

#berita-container .news-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center;
  border-radius: 0;
  margin: 0 !important;
  padding: 0;
}

/* JUDUL BERITA */
#berita-container .news-list .news-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 8px;
  padding: 0;
}

#berita-container .news-list .news-title a {
  color: #303b4a;
  text-decoration: none;
}

#berita-container .news-list .news-title a:hover {
  color: #a52a1a;
}

/* TANGGAL */
#berita-container .news-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

#berita-container .news-date i {
  margin-right: 5px;
}

/* RINGKASAN */
#berita-container .news-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* =========================================
   PAGINATION
========================================= */

#berita-container .pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 25px 15px;
  margin-top: 10px;
}

#berita-container .pagination-wrapper .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#berita-container .pagination-wrapper .pagination > li {
  list-style: none;
  margin: 0;
}

#berita-container .pagination-wrapper .pagination > li > a,
#berita-container .pagination-wrapper .pagination > li > span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #fff;
  color: #a52a1a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

#berita-container .pagination-wrapper .pagination > li > a:hover {
  background: #a52a1a;
  color: #fff;
  border-color: #a52a1a;
}

#berita-container .pagination-wrapper .pagination > li.active > a,
#berita-container .pagination-wrapper .pagination > li.active > span {
  background: #a52a1a;
  color: #fff;
  border-color: #a52a1a;
}

#berita-container .pagination-wrapper .pagination > li.disabled > a,
#berita-container .pagination-wrapper .pagination > li.disabled > span {
  color: #bbb;
  background: #f7f7f7;
  cursor: not-allowed;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 767px) {
  #berita-container .news-item {
    padding: 13px;
  }

  #berita-container .news-image {
    height: 200px;
    margin-bottom: 15px;
  }

  #berita-container .news-list .news-title {
    font-size: 15px;
  }

  #berita-container .pagination-wrapper .pagination {
    gap: 5px;
  }

  #berita-container .pagination-wrapper .pagination > li > a,
  #berita-container .pagination-wrapper .pagination > li > span {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }
}

/* =========================================
   ARTIKEL - DAFTAR
========================================= */

.page-article-list {
  width: 100%;
}

.page-article-item {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid #eee;
}

.page-article-item:first-child {
  padding-top: 5px;
}

.page-article-image {
  flex: 0 0 240px;
  height: 155px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f3f3;
}

.page-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.page-article-item:hover .page-article-image img {
  transform: scale(1.04);
}

.page-article-body {
  flex: 1;
  min-width: 0;
}

.page-label-artikel {
  display: inline-block;
  background: #8e2418;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 9px;
}

.page-article-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 9px;
}

.page-article-title a {
  color: #2c3e50;
  text-decoration: none;
}

.page-article-title a:hover {
  color: #a52a1a;
}

.page-article-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.page-article-meta span {
  margin: 0 5px;
}

.page-article-summary {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

/* PAGINATION */

.page-pagination {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.page-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.page-pagination .pagination li {
  list-style: none;
}

.page-pagination .pagination li a,
.page-pagination .pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  background: #fff;
  color: #8e2418;
  text-decoration: none;
}

.page-pagination .pagination li a:hover,
.page-pagination .pagination li.active a,
.page-pagination .pagination li.active span {
  background: #8e2418;
  color: #fff;
  border-color: #8e2418;
}

/* =========================================
   ARTIKEL - DETAIL
========================================= */

.page-article-back {
  display: inline-block;
  padding: 7px 13px;
  margin-bottom: 22px;
  border-radius: 5px;
  background: #f3f3f3;
  color: #444;
  text-decoration: none;
  font-size: 13px;
}

.page-article-back:hover {
  background: #8e2418;
  color: #fff;
  text-decoration: none;
}

.page-article-detail-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  color: #2c3e50;
  margin: 0 0 15px;
  overflow-wrap: break-word;
}

.page-article-detail-meta {
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
  margin-bottom: 22px;
}

.page-article-detail-image {
  text-align: center;
  margin-bottom: 25px;
}

.page-article-detail-image img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 10px;
}

.page-article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  overflow-wrap: break-word;
}

.page-article-content p {
  margin-bottom: 18px;
}

.page-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

.page-article-content iframe {
  max-width: 100%;
}

/* RESPONSIVE */

@media (max-width: 767px) {
  .page-article-item {
    flex-direction: column;
    gap: 14px;
  }

  .page-article-image {
    flex: none;
    width: 100%;
    height: 220px;
  }

  .page-article-title {
    font-size: 18px;
  }

  .page-article-detail-title {
    font-size: 26px;
  }

  .page-article-content {
    font-size: 14px;
    line-height: 1.85;
  }

  .page-pagination .pagination {
    gap: 4px;
  }

  .page-pagination .pagination li a,
  .page-pagination .pagination li span {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }
}

/* =========================================
   FIX FINAL POSISI DOT GALERI BERITA
========================================= */

.news-gallery {
  position: relative !important;
  width: 100% !important;
}

.news-gallery ul.slick-dots {
  position: relative !important;

  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  width: 100% !important;
  height: auto !important;

  margin: 12px 0 0 !important;
  padding: 0 !important;

  transform: none !important;
  text-align: center !important;
  list-style: none !important;
}

.news-gallery ul.slick-dots li {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  float: none !important;
  margin: 0 3px !important;
  padding: 0 !important;
}

.news-gallery ul.slick-dots li button {
  display: block !important;
  padding: 0 !important;
}

/* =========================================
   GALLERY - GRID DOKUMENTASI
========================================= */

.page-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.page-gallery-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
  transition: 0.2s ease;
}

.page-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* AREA FOTO */
.page-gallery-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f5f5f5;
}

.page-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center;
  margin: 0 !important;
  padding: 0 !important;
}

/* OVERLAY */
.page-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.page-gallery-item:hover .page-gallery-overlay {
  opacity: 1;
}

/* CAPTION */
.page-gallery-caption {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px;
  text-align: center;
}

.page-gallery-date {
  margin-bottom: 8px;
  color: #b17a28;
  font-size: 11px;
  font-weight: 600;
}

.page-gallery-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: #303b4a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-gallery-more {
  margin-top: auto;
  padding-top: 10px;
  color: #a52a1a;
  font-size: 11px;
  font-weight: 700;
}

/* =========================================
   PAGINATION
========================================= */

.page-gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin: 30px 0 15px;
}

.page-gallery-pagination .gallery-page-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #96351f !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: 0.2s;
}

.page-gallery-pagination .gallery-page-link:hover,
.page-gallery-pagination .gallery-page-link.active {
  background: #96351f;
  border-color: #96351f;
  color: #fff !important;
}

.page-gallery-pagination .gallery-page-dots {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: #777;
}

/* EMPTY STATE */
.page-empty {
  padding: 50px 20px;
  text-align: center;
  color: #777;
}

.page-empty i {
  font-size: 45px;
  margin-bottom: 15px;
  color: #aaa;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {
  .page-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .page-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-gallery-image {
    height: 160px;
  }

  .page-gallery-caption {
    padding: 9px;
  }

  .page-gallery-title {
    font-size: 11px;
  }

  .page-gallery-pagination {
    gap: 4px;
  }

  .page-gallery-pagination .gallery-page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
  }
}

/* =========================================
   FIX GALLERY VPS - OVERRIDE FINAL
========================================= */

/* GRID */
body .page-detail-content .page-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
}

/* KARTU */
body .page-detail-content a.page-gallery-item {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  text-decoration: none !important;
}

/* FOTO */
body .page-detail-content .page-gallery-image {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}

body .page-detail-content .page-gallery-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* CAPTION */
body .page-detail-content .page-gallery-caption {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 12px !important;
  text-align: center !important;
}

/* PAGINATION CONTAINER */
body .page-detail-content .page-gallery-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 30px 0 15px !important;
}

/* TOMBOL PAGINATION */
body .page-detail-content .page-gallery-pagination a.gallery-page-link {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 38px !important;
  width: auto !important;
  height: 38px !important;
  padding: 0 12px !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  color: #96351f !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* HOVER DAN AKTIF */
body .page-detail-content .page-gallery-pagination a.gallery-page-link:hover,
body .page-detail-content .page-gallery-pagination a.gallery-page-link.active {
  background: #96351f !important;
  border-color: #96351f !important;
  color: #fff !important;
}

body .page-detail-content .page-gallery-pagination .gallery-page-dots {
  display: inline-flex !important;
  align-items: center !important;
  color: #777 !important;
}

/* TABLET */
@media (max-width: 991px) {
  body .page-detail-content .page-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* HP */
@media (max-width: 575px) {
  body .page-detail-content .page-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body .page-detail-content .page-gallery-image {
    height: 160px !important;
    min-height: 160px !important;
  }

  body .page-detail-content .page-gallery-pagination a.gallery-page-link {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 8px !important;
  }
}
