.app-header {
  background-color: var(--bs-primary);
}

@media (max-width: 991.98px) {
  [data-kt-app-header-minimize=on] .app-header {
    background-color: var(--bs-primary);
    border-bottom: 1px solid var(--bs-primary) !important;
  }
}

@media (min-width: 992px) {
  [data-kt-app-header-minimize=on] .app-header {
    background-color: var(--bs-primary);
  }

  .backdrop-blur-lg {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background-color: rgba(var(--bs-dark-rgb), 0.3);
  }

  .gtranslate_wrapper a.glink span {
    color: var(--bs-white);
    opacity: 0.75 !important;
  }


}

[data-bs-theme=light] #swapper_modal_menu .menu-white .menu-item .menu-link .menu-title {
  color: var(--bs-gray-700);
}

[data-bs-theme=light] #swapper_modal_menu .menu-white .menu-item .menu-link .menu-arrow:after {
  background-color: var(--bs-gray-700);
}

[data-bs-theme=dark] #swapper_modal_menu .menu-white .menu-item .menu-link .menu-title {
  color: var(--bs-gray-600);
}

[data-bs-theme=dark] #swapper_modal_menu .menu-white .menu-item .menu-link .menu-arrow:after {
  background-color: var(--bs-gray-600);
}


.bg-overlay-kiri::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
  background: linear-gradient(90deg, rgba(var(--bs-dark-rgb), 0.8) 0%, rgba(var(--bs-dark-rgb), 0) 70%);
}

.bg-overlay-kanan::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
  background: linear-gradient(90deg, rgba(var(--bs-dark-rgb), 0) 30%, rgba(var(--bs-dark-rgb), 0.8) 100%);
}

.bg-overlay-tengah::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
  background: linear-gradient(0deg, rgba(var(--bs-white-rgb), 0), rgba(var(--bs-dark-rgb), 0.5), rgba(var(--bs-white-rgb), 0));
}

.bg-video-overlay {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  background-repeat: repeat;
}

@media (max-width: 768px) {
  .bg-video-overlay {
    height: 99%;
  }
}

@media (max-width: 576px) {
  .bg-video-overlay {
    height: 98%;
  }
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .banner-rounded {
    border-radius: 0.625rem;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
  }
}

.banner-ratio {
  position: relative;
  width: 100%;
  height: 100vh;
}

.banner-ratio img,
.banner-ratio video,
.banner-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .banner-ratio {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .banner-ratio img,
  .banner-ratio video,
  .banner-ratio iframe {
    position: static;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

.img-cover {
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.transform-270 {
  transform: rotate(270deg);
}

.breadcrumb .breadcrumb-item:after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f105";
  display: inline-block;
  margin: 0 8px;
  font-size: 1rem;
  opacity: 0.75 !important;
  color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity)) !important;
}

.pagination .page-link {
  background-color: var(--bs-light);
  --bs-text-opacity: 1;
  color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity)) !important;
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 0;
    height: auto;
    max-width: 100%;
    position: unset !important;
  }

  /* KECUALIKAN jika modal punya class modal-fullscreen */
  .modal-dialog.modal-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    /* Bootstrap 5 pakai inset untuk fullscreen */
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  .modal-content {
    border-radius: 1rem 1rem 0 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    animation: slideUp 0.3s ease-out;
  }

  /* Tetap, border-radius 0 kalau modal fullscreen */
  .modal-dialog.modal-fullscreen .modal-content {
    border-radius: 0 !important;
    position: relative;
    height: 100%;
    bottom: unset;
    animation: none;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }
}

/* Typography Gradient Effect */
.text-gradient {
  background: linear-gradient(90deg, #10b981 0%, #1bb4cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 991.98px) {
  [data-kt-app-header-minimize=on] .app-header {
    border-bottom: unset !important;
  }
}

#page-list-places .hero-search {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-success));
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#page-list-places .hero-search::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1505228395891-9a51e7e86bf6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2073&q=80') center/cover;
  opacity: 0.25;
  z-index: -1;
}

#page-list-places .hero-search .search-box {
  position: relative;
  border-radius: 50px;
  overflow: hidden;
}

#page-list-places .hero-search .search-box input {
  padding-left: 25px;
  padding-right: 60px;
  height: 55px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#page-list-places .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
}

@media (max-width: 991.98px) {
  .padding-top-mobile {
    padding-top: 75px !important;
  }

  [data-kt-app-header-minimize=on] .app-header {
    border-bottom: unset !important;
  }

  .app-header {
    border-bottom: unset !important;
  }

  .form-control-lg {
    min-height: calc(1.5em + 1.1rem + 2px) !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 1rem !important;
    border-radius: 0.425rem !important;
  }
}

.app-header {
  box-shadow: var(--bs-app-header-minimize-box-shadow) !important;
}


.news-title h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-title h3:hover {
  text-decoration: underline;
}

#banner-slider {
  aspect-ratio: 4 / 1;
}

/* Memastikan semua slide dan gambar di dalamnya mengisi bingkai dengan sempurna */
#banner-slider .swiper-slide,
#banner-slider .swiper-slide a,
#banner-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ini penting agar gambar mengisi area tanpa menjadi gepeng */
}

/* Legacy CMS Post Image Support (Tailwind to Bootstrap) */
img.rounded-lg { border-radius: 0.5rem; }
img.max-h-\[600px\] { max-height: 600px; }
img.w-auto { width: auto; max-width: 100%; }
img.mx-auto { margin-left: auto; margin-right: auto; display: block; }
img.object-contain { object-fit: contain; }
img.my-4 { margin-top: 1rem; margin-bottom: 1rem; }


/* ==========================================================================
 * Pustaka Tabel — render output dari CMS Resolver_Embed.
 *
 * CMS mengganti placeholder <div data-table-ref="UUID"> menjadi markup
 * <div class="cms-table-wrapper"><table class="cms-table cms-table-{preset}">...
 * Stylesheet di sini memastikan tampilan konsisten di portal publik.
 * ========================================================================== */

.cms-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.cms-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
    color: inherit;
}

.cms-table caption {
    caption-side: bottom;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: left;
}

.cms-table th,
.cms-table td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    vertical-align: top;
}

.cms-table thead th {
    font-weight: 600;
    background-color: rgba(243, 244, 246, 0.7);
    border-bottom: 1px solid #e5e7eb;
}

.cms-table tbody tr {
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.cms-table tbody tr:last-child {
    border-bottom: none;
}

.cms-table img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    display: inline-block;
}

.cms-table a {
    color: var(--bs-link-color, var(--bs-primary, #006db0));
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Alignment helpers — scoped supaya tidak konflik dengan Bootstrap */
.cms-table .text-left   { text-align: left !important; }
.cms-table .text-center { text-align: center !important; }
.cms-table .text-right  { text-align: right !important; }

/* ---- Preset: default (base sudah cukup) ---- */
.cms-table-default { /* no-op */ }

/* ---- Preset: striped ---- */
.cms-table-striped tbody tr:nth-child(even) {
    background-color: rgba(243, 244, 246, 0.6);
}

/* ---- Preset: bordered ---- */
.cms-table-bordered {
    border: 1px solid #e5e7eb;
}
.cms-table-bordered th,
.cms-table-bordered td {
    border: 1px solid #e5e7eb;
}

/* ---- Preset: compact ---- */
.cms-table-compact th,
.cms-table-compact td {
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
}

/* ==========================================================================
 * Badge cells (Sel_Badge)
 * ========================================================================== */

.cms-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}

.cms-badge-default {
    background-color: #f3f4f6;
    color: #374151;
}
.cms-badge-success {
    background-color: #d1fae5;
    color: #065f46;
}
.cms-badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}
.cms-badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}
.cms-badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Mode gelap (jika portal mendukung) */
[data-bs-theme="dark"] .cms-table caption {
    color: #9ca3af;
}
[data-bs-theme="dark"] .cms-table thead th {
    background-color: rgba(75, 85, 99, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .cms-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .cms-table-striped tbody tr:nth-child(even) {
    background-color: rgba(75, 85, 99, 0.25);
}
[data-bs-theme="dark"] .cms-table-bordered,
[data-bs-theme="dark"] .cms-table-bordered th,
[data-bs-theme="dark"] .cms-table-bordered td {
    border-color: rgba(255, 255, 255, 0.1);
}
