/* Notifikasi background robust override */
.notif-card.card {
  background: #f8f9fa !important;
}

.notif-card.card.unread {
  background: #fff8e1 !important;
  font-weight: 500;
}

/* ====== Robust Navbar & Mobile Overflow Fix (Mobile Only) ====== */
@media (max-width: 576px) {

  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .custom-navbar {
    width: 100vw !important;
    min-width: 0 !important;
    left: 0;
    right: 0;
    overflow-x: auto;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  .custom-navbar .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .custom-navbar .navbar-brand,
  .custom-navbar .btn {
    min-width: 0;
    max-width: 100%;
    flex-shrink: 1;
  }

  .custom-navbar .navbar-brand h1 {
    font-size: 14px !important;
    letter-spacing: 1px;
  }

  .custom-navbar .navbar-brand p {
    font-size: 9px !important;
  }
}

/* Universal Styles */
*,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #e3dac9;
  background-size: cover;
  height: 100vh;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: black;
}

.row {
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
}

/* Jadwal Sholat Styles */
.table,
td,
th {
  border: none !important;
}

.beground {
  background-color: #f6f6f6;
  padding: 0.5px;
  border-radius: 10px;
  margin-left: 40px;
  margin-right: 40px;
  margin-top: 10px;
}

#menuju-waktu-sholat {
  margin-right: auto;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  font-size: 10px;
  text-align: center;
  font-weight: bold;
  color: white;
  background-color: green;
  border-radius: 0;
  margin-top: 2px;
}

.table-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

h6 {
  color: white;
}

/* Jadwal Sholat Loading Animation */
#jadwal-date {
  transition: all 0.3s ease;
}

#jadwal-date[data-loading="true"] {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.input-waktu td {
  transition: color 0.3s ease;
}

/* Error message styling for jadwal sholat */
.input-waktu td.error-message {
  color: #dc3545 !important;
  font-size: 7px !important;
  font-weight: normal !important;
  font-style: italic;
}

/* Jadwal Sholat Source Marquee */
.jadwal-source-marquee {
  width: 100%;
  overflow: hidden;
  background: #1e2a38;
  padding: 0;
  /* hilangkan padding vertikal agar tidak ganggu centering */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: static;
  margin-top: 0px;
  max-height: 20px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;

  display: flex;
  align-items: center;
  /* ini yang bikin teks center vertikal */
}


.marquee-text {
  display: inline-block;
  white-space: nowrap;
  color: #f5f7fa;
  font-size: 9px;
  font-weight: 500;
  animation: marquee-continuous 30s linear infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  will-change: transform;
  /* Tidak perlu transform di sini, animasi mulai dari 0% */
}

@keyframes marquee-continuous {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover for better UX */
.jadwal-source-marquee:hover .marquee-text {
  animation-play-state: paused;
}

/* Responsive adjustments for marquee */
@media (max-width: 576px) {
  .marquee-text {
    font-size: 10px;
    animation: marquee-continuous 65s linear infinite;
  }
}

@media (min-width: 768px) {
  .marquee-text {
    font-size: 10px;
    animation: marquee-continuous 65s linear infinite;
  }
}

/* Wrapper untuk seluruh halaman agar footer berada di bawah */
.wrapper {
  display: flex;
  flex-direction: column;
  background-color: #e3dac9;
}

/* Konten utama yang fleksibel */
.content {
  flex: 1;
}

/* Menghapus latar belakang pada tombol */
.custom-btn {
  border: none;
  /* Menghapus border jika ada */
}



/* Responsivitas untuk Perangkat Kecil */
@media (max-width: 576px) {

  .custom-btn .menu-icon {
    width: 50px;
    height: 50px;
  }

  .custom-btn span {
    font-size: 10px;
    margin-top: -5px;
  }
}

/*======================================================= LOADING SCREEN =======================================================*/
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 3s ease;
}

#main-content {
  opacity: 0;
  transition: opacity 3s ease;
}

#main-content.show {
  opacity: 1;
}

.loading-logo,
.loading-wait {
  display: block;
  max-width: 100%;
  height: auto;
}

/*======================================================= NAVBAR =======================================================*/
.custom-navbar {
  background-color: #571ec9;
  background: linear-gradient(90deg, rgba(38, 0, 255, 1) 0%, rgba(196, 60, 207, 0.9612219887955182) 74%, rgba(38, 0, 255, 1) 100%);
  padding: 0 15px 5px 15px;
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.icon-img {
  border-radius: 10px;
  padding: 3px;
  margin-right: 4px;
}

.navbar-toggler {
  margin-top: 3px;
  color: navy;
}

.navbar-toggler-icon {
  background-color: white;
  border-radius: 5px;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
  box-shadow: none;
}

.dropdown-item.text-dark {
  color: black !important;
}

.navbar-brand {
  color: whitesmoke;
  padding: 0 5px 0 0;
}

/* Responsive Container for Navbar */
.custom-navbar .container-fluid {
  max-width: 100%;
  padding: 0;
}

.custom-navbar .navbar-brand {
  white-space: nowrap;
}

.custom-navbar .navbar-brand h1 {
  font-size: inherit !important;
  margin: 0 !important;
}

/* ======================================================= MARQUEE TEXT BELOW NAVBAR =======================================================*/
.marquee-container {
  position: fixed;
  top: 50px;
  /* Position right below the navbar */
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
  overflow: hidden;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 30px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: marquee-scroll 45s linear infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0%, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.marquee-container:hover .marquee-text {
  animation-play-state: paused;
}

/* ======================================================= TV-STYLE MARQUEE (SINGLE LINE AUTO-SCROLL) =======================================================*/
.marquee-container-integrated {
  width: calc(100% - 80px);
  margin: 10px 40px;
  height: 38px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 25%, #3b82f6 50%, #2563eb 75%, #1e3a8a 100%);
  background-size: 200% 100%;
  animation: gradient-shift 8s ease infinite;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3), 
              0 2px 8px rgba(59, 130, 246, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  cursor: grab;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.marquee-container-integrated:active {
  cursor: grabbing;
}

.marquee-container-integrated:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4), 
              0 3px 10px rgba(59, 130, 246, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* TV-style scrolling wrapper - seamless loop with duplicated content */
.marquee-scroll-wrapper {
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: absolute;
  height: 100%;
  animation: marquee-tv-scroll-seamless 20s linear infinite;
  padding: 0 20px;
  gap: 0; /* No gap between duplicates */
}

/* Paused state */
.marquee-scroll-wrapper.paused {
  animation-play-state: paused;
}

/* Manual scroll mode - COMPLETELY disable animation */
.marquee-scroll-wrapper.manual-scroll {
  animation: none !important;
  /* Force GPU acceleration for smooth performance */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Resuming mode - CSS transition (ultra smooth like original animation) */
.marquee-scroll-wrapper.resuming {
  animation: none !important;
  /* Force GPU acceleration for CSS transition */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Seamless loop animation - moves only 50% since content is duplicated */
@keyframes marquee-tv-scroll-seamless {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Text content - single line with icons */
.marquee-text-integrated {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 38px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Icon inline with text */
.marquee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 16px;
  flex-shrink: 0;
}

/* Highlight important words */
.marquee-highlight {
  color: #fbbf24;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Separator dot */
.marquee-separator {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fbbf24;
  border-radius: 50%;
  margin: 0 16px;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* Responsive adjustments for marquee */
@media (max-width: 768px) {
  .marquee-container {
    top: 45px;
    /* Adjust for smaller navbar on mobile */
    height: 28px;
  }

  .marquee-text {
    font-size: 10px;
    line-height: 28px;
    animation: marquee-scroll 50s linear infinite;
  }

  .data-user {
    margin-top: 50px;
    /* Reset to original since marquee is now in content flow */
  }

  /* Integrated marquee responsive */
  .marquee-container-integrated {
    width: calc(100% - 40px);
    margin: 8px 20px;
    height: 36px;
  }

  .marquee-text-integrated {
    font-size: 12px;
    line-height: 36px;
  }

  .marquee-icon {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }

  .marquee-scroll-wrapper {
    animation: marquee-tv-scroll-seamless 22s linear infinite;
  }
}

@media (max-width: 576px) {
  .marquee-container {
    top: 42px;
    height: 26px;
  }

  .marquee-text {
    font-size: 9px;
    line-height: 26px;
    animation: marquee-scroll 55s linear infinite;
  }

  .data-user {
    margin-top: 50px;
  }

  /* Integrated marquee mobile */
  .marquee-container-integrated {
    width: calc(100% - 20px);
    margin: 6px 10px;
    height: 32px;
  }

  .marquee-text-integrated {
    font-size: 11px;
    line-height: 32px;
    gap: 8px;
  }

  .marquee-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
  }

  .marquee-separator {
    width: 4px;
    height: 4px;
    margin: 0 12px;
  }

  .marquee-scroll-wrapper {
    animation: marquee-tv-scroll-seamless 25s linear infinite;
  }
}

/* ======================================================= DATA USER =======================================================*/
.data-user {
  display: flex;
  align-items: center;
  padding-left: 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  margin-top: 50px;
  /* Back to original since marquee is now in content flow */
}

/* ======================================================= SLIDE =======================================================*/
#carouselExampleDark {
  overflow: hidden;
  border-radius: 20px;
  padding: 10px;
}

.carousel-item {
  margin-top: 0px;
}

.custom-carousel-image {
  padding: 0 25px;
  object-fit: cover;
  width: auto;
  height: 200px;
  border-radius: 20px;
  padding-bottom: 10px;
  filter: drop-shadow(0px 3px 5px rgb(255, 7, 7, 7));
}

.carousel-item:hover {
  background: #e1e1e1;
  box-shadow: 0 0 0 2px #d0d0d0;
}


/*======================================================= JADWAL SHOLAT =======================================================*/
.jadwal-sholat-judul {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: #c1be7d;
  text-align: center;
}

/*======================================================= BUTTON =======================================================*/
/* Styling untuk Container Button */
.container-button {
  padding: 0 10px;
  margin-top: 5%;
  margin-bottom: -20px;
}

.button-judul {
  margin-bottom: -3px;
  font-size: 14px;
  margin-left: 10px;
  color: #06713f;
}

/* Styling untuk Tombol */
.custom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 5px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  height: 100%;
  border: none;
}



.btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.menu-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.btn-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}


/* Styling untuk Ikon */
.custom-btn .menu-icon {
  width: 55px;
  height: 55px;
  margin-bottom: 10px;
  object-fit: contain;
}

/* Styling untuk Teks */
.custom-btn span {
  text-align: center;
  font-size: 11px;
}

/* Gutter Kustom untuk Row dengan Kelas .custom-gutter */
.custom-gutter {
  --bs-gutter-x: 1rem;
  /* Sesuaikan nilai gutter sesuai kebutuhan */
  margin-right: calc(-.1* var(--bs-gutter-x));
  margin-left: calc(-.1* var(--bs-gutter-x));
}



/* Menghapus border saat tombol custom-btn diklik */
.custom-btn:active {
  background-color: transparent;
  /* Menghilangkan perubahan latar belakang */
  outline: none;
  /* Menghilangkan outline */
  box-shadow: none;
  /* Menghilangkan bayangan yang muncul saat klik */
}

/* Menghapus perubahan pada tombol custom-btn saat fokus */
.custom-btn:focus {
  outline: none;
  /* Menghilangkan outline */
  box-shadow: none;
  /* Menghilangkan bayangan yang muncul saat fokus */
}

/* Menghapus efek hover pada tombol custom-btn */
.custom-btn:hover {
  background-color: transparent;
  /* Menghilangkan perubahan latar belakang */
  color: inherit;
  /* Warna tetap sama */
}

/* Menghapus border saat custom-col diklik */
.custom-col:active {
  outline: none;
  /* Menghilangkan outline */
  background-color: transparent;
  /* Menghilangkan perubahan latar belakang */
  box-shadow: none;
  /* Menghilangkan bayangan */
}

/* Menghapus perubahan pada custom-col saat fokus */
.custom-col:focus {
  outline: none;
  /* Menghilangkan outline */
  box-shadow: none;
  /* Menghilangkan bayangan */
}

/* Menghapus efek hover pada custom-col */
.custom-col:hover {
  background-color: transparent;
  /* Menghilangkan perubahan latar belakang */
  color: inherit;
  /* Warna tetap sama */
}

/* Menghapus outline pada semua elemen setelah klik atau fokus */
* {
  outline: none !important;
  /* Menghilangkan outline pada semua elemen */
  box-shadow: none !important;
  /* Menghilangkan bayangan yang ditambahkan browser */
}





/* Responsivitas untuk Perangkat Besar */
@media (min-width: 768px) {
  .custom-btn {
    padding: 8px;
  }

  .menu-icon {
    width: 32px;
    height: 32px;
  }

  .btn-text {
    font-size: 12px;
  }
}



.container-pembayaran {
  font-size: 20px;
  color: #06713f;
  font-weight: bold;
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
  margin-top: 50px;
  min-height: 60vh;
}





/*======================================================= BERITA DAN ARTIKEL =======================================================*/
.berita {
  margin-bottom: -3px;
  font-size: 14px;
}

.container-berita {
  color: #06713f;
  font-weight: bold;
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
  margin-top: -5px;
  margin-bottom: -5px;
}

/* Menghapus efek fokus dan klik pada container-berita di halaman pembayaran */
.pembayaran-page .container-berita *:focus,
.pembayaran-page .container-berita *:active,
.pembayaran-page .container-berita *:hover {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  color: inherit !important;
  cursor: default !important;
}

.custom-image {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 5px;
}

.custom-title {
  border: none;
  text-align: center;
}

.card-title {
  font-size: 11px;
  position: absolute;
  top: 15px;
  line-height: 1.3;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
}

.card-text {
  position: absolute;
  top: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #6c757d;
  /* Warna sekunder yang digunakan oleh Bootstrap */
  font-size: 11px;
}

.card-body {
  padding-right: 10px;
  width: 100%;
  border: none;
}

.card {
  display: flex;
  justify-content: center;
  border: none;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: rgb(227, 218, 201);
}

.container-readmore {
  display: inline-block;
  background-color: #007bff;
  /* Warna background biru */
  color: white;
  /* Warna teks putih */
  font-size: 14px;
  /* Ukuran teks default */
  padding: 1px 3px;
  /* Padding di sekitar teks */
  border-radius: 5px;
  /* Membuat sudut kolom melengkung */
  text-align: center;
  text-decoration: none;
  /* Menghapus garis bawah */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Efek bayangan */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  /* Efek transisi saat hover */
}


/*======================================================= LOKASI =======================================================*/
/* Membuat peta responsif dan memperhalus tampilan */
#map {
  width: 100%;
  height: 400px;
  /* Sesuaikan tinggi peta */
  border-radius: 10px;
  /* Menghaluskan sudut peta */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Memberikan bayangan lembut di bawah peta */
  margin-bottom: 40px;
  /* Memberikan jarak di bawah peta */
}

/* Menambahkan padding dan margin agar peta tidak terlalu dekat dengan footer atau elemen lainnya */
.map-container {
  padding: 0px 20px 15px 20px;
  background-color: #e3dac9;
  border-radius: 10px;
  overflow: hidden;
}

.map-judul {
  font-size: 14px;
  text-align: left;
  color: #06713f;
}

/* Responsif: Menyesuaikan ukuran peta di perangkat mobile */
@media (max-width: 768px) {
  #map {
    height: 300px;
    /* Lebih pendek di perangkat kecil */
  }
}

/*======================================================= FOOTER - BOTTOM NAVIGATION =======================================================*/
/* Bottom Navigation Footer - Mobile Only Design */

/* Default: Hide bottom nav, show traditional footer */
.bottom-nav-footer {
  display: none;
}

/* Traditional footer for desktop */
.custom-footer {
  background: rgb(38, 0, 255);
  background: linear-gradient(90deg, rgba(38, 0, 255, 1) 0%, rgba(118, 25, 125, 0.9612219887955182) 50%, rgba(38, 0, 255, 1) 100%);
  color: black;
  font-size: 14px;
  text-align: center;
  padding-bottom: 5px;
}

.footer-content {
  padding-top: 0.1px;
}

.social-icons {
  margin-top: 10px;
}

.social-icon {
  margin-right: 10px;
  font-size: 20px;
}

.footer-section {
  padding-top: 1px;
  font-size: 12px;
  margin-top: 10px;
}

.footer-section p {
  color: white;
}

.icon-image {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.social-icon i {
  transition: color 0.3s;
}

.social-icon:hover i {
  color: #C13584;
}

.footer-bottom {
  font-size: 12px;
  color: black;
  font-weight: bold;
  margin-top: -10px;
}

.footer-bottom p {
  margin-top: 1px;
  margin-bottom: 0.5px;
  padding-bottom: 2px;
  color: white;
}

.footer-telephone {
  margin-top: 0px;
}

.footer-telephone p {
  color: white;
}

.footer-email {
  margin-top: -5px;
  margin-bottom: 0rem;
}

.footer-email p {
  color: white;
}

.footer-email-link {
  text-decoration: underline !important;
  color: white;
}

/* Mobile Only: Show bottom navigation, hide traditional footer */
@media (max-width: 767px) {

  /* Hide traditional footer on mobile */
  .custom-footer {
    display: none;
  }

  /* Show bottom navigation on mobile */
  .bottom-nav-footer {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(38, 0, 255, 0.95) 0%, rgba(76, 29, 149, 0.95) 50%, rgba(38, 0, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 12px 0 8px 0;
  }

  .bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 55px;
    position: relative;
  }

  .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-item:hover::before {
    opacity: 1;
  }

  .nav-item:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    transform: translateY(-2px);
  }

  .nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  }

  .nav-item.active::before {
    opacity: 0;
  }

  .nav-item.active .nav-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
  }

  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-icon i {
    font-size: 20px;
    font-weight: 600;
  }

  /* Center Item (Kartu) - Special Professional Styling */
  .nav-item-center {
    position: relative;
    transform: translateY(-4px);
  }

  .nav-icon-center {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2c387e !important;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
  }

  .nav-icon-center::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 215, 0, 0.3));
    border-radius: 50%;
    z-index: -1;
  }

  .nav-icon-center i {
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  /* Remove any inner square or background behind the icon glyph itself.
     Ensure the glyph is transparent, centered and has no box or padding. */
  .bottom-nav-footer .nav-item-center .nav-icon-center i {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important; /* icon glyph itself should not create a rounded square */
    -webkit-filter: none !important;
    filter: none !important;
  }

  .nav-item-center:hover .nav-icon-center {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.4);
  }

  .nav-item-center .nav-label {
    color: #ffffff; /* Make Kartu label white like other footer labels */
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 11px;
    background: none; /* ensure no background behind the label */
  }

  .nav-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    margin-top: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
  }

  /* Active State Animation */
  .nav-item.active .nav-icon {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  }

  .nav-item.active .nav-label {
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  /* Professional icon coloring for different states */
  .nav-item:not(.active):not(.nav-item-center) .nav-icon {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-item:not(.active):not(.nav-item-center):hover .nav-icon {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
  }

  /* Body Padding to Account for Fixed Footer on Mobile */
  body {
    padding-bottom: 75px;
  }
}

/* ======================================================================
   Strong override to prevent page-specific CSS from changing bottom nav
   icon colors (fixes inconsistent icon color on pages like kartu-warga)
   ====================================================================== */
.bottom-nav-footer .nav-item .nav-icon,
.bottom-nav-footer .nav-item .nav-icon i {
  /* Use !important to take precedence over inline/page styles which may
     unintentionally set a different color (e.g. error states). */
  color: rgba(255, 255, 255, 0.9) !important;
}

.bottom-nav-footer .nav-item-center .nav-icon-center,
.bottom-nav-footer .nav-item-center .nav-icon-center i {
  /* Center (Kartu) item keeps its golden styling - force background + color for the icon only */
  color: #2c387e !important;
  background: linear-gradient(135deg, #FFD700, #FFA500) !important;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

/* The Kartu label itself should be white and without a background */
.bottom-nav-footer .nav-item-center .nav-label {
  color: #ffffff !important;
  background: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* If some page rules force the center icon to grayscale via filter or opacity,
   reset critical visual properties here as well. */
.bottom-nav-footer .nav-item-center .nav-icon-center {
  filter: none !important;
  opacity: 1 !important;
}

.bottom-nav-footer .nav-item.active .nav-icon,
.bottom-nav-footer .nav-item.active .nav-icon i,
.bottom-nav-footer .nav-item.active .nav-label {
  color: #ffffff !important;
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .bottom-nav-footer {
    padding: 1px 0 1px 0;
  }

  .bottom-nav-container {
    padding: 0 10px;
  }

  .nav-item {
    padding: 6px 8px;
    min-width: 48px;
  }

  .nav-icon {
    width: 32px;
    height: 32px;
  }

  .nav-icon i {
    font-size: 18px;
  }

  .nav-icon-center {
    width: 46px;
    height: 46px;
  }

  .nav-icon-center i {
    font-size: 24px;
  }

  .nav-label {
    font-size: 10px;
  }

  .nav-item-center .nav-label {
    font-size: 10px;
  }

  /* Adjust body padding for smaller screens */
  body {
    padding-bottom: 68px;
  }
}

/* Desktop: Traditional footer only */
@media (min-width: 768px) {
  .bottom-nav-footer {
    display: none;
  }

  .custom-footer {
    display: block;
  }

  body {
    padding-bottom: 0;
  }

  .footer-section {
    padding: 0;
  }
}

.footer-bottom {
  font-size: 12px;
  color: black;
  font-weight: bold;
  margin-top: -10px;
}

.footer-bottom p {
  margin-top: 1px;
  margin-bottom: 0.5px;
  padding-bottom: 2px;
  color: white;
}

.footer-telephone {
  margin-top: 0px;
}

.footer-telephone p {
  color: white;
}

.footer-email {
  margin-top: -5px;
  margin-bottom: 0rem;
}

.footer-email p {
  color: white;
}

.footer-email-link {
  text-decoration: underline !important;
  color: white;
}

.footer-buttom-dibuat {
  padding-bottom: 5px;
}

/* share link */
.link-icon {
  font-size: 12px;
  cursor: pointer;
  color: #f5f5dc;
  text-decoration: none;
  font-weight: bold;
}

.tautan-notification {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #28a745;
  color: white;
  padding: 5px 5px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.container-tautan {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 5px;
  /* Rounded corners */
  background: linear-gradient(135deg, #2d9802, #4cf279);
  /* Gradien gelap dari abu-abu tua ke biru tua */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 6px 6px rgba(0, 0, 0, 0.2);
  /* Deep shadow for elegance */
  text-align: center;
  width: auto;
  /* Lebar tetap */
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 15px;
  font-family: 'Arial', sans-serif;
  /* Font yang modern dan umum */
}

.container-tautan h5 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
}

.container-tautan p {
  margin-bottom: 10px;
  font-size: 14px;
}

/* Pengaturan ukuran ikon */
.link-icon img {
  width: 14px;
  /* Ubah ukuran sesuai kebutuhan */
  height: 14px;
  /* Ubah ukuran sesuai kebutuhan */
  margin-top: -6px;
}


/* Loading Spinner */
.loading-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loading-spinner.active {
  display: flex;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/*======================================================= Media Queries untuk Desktop =======================================================*/
@media (min-width: 1024px) {

  body {
    background-color: #e3dac9;
  }

  .wrapper {
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 0;
    box-sizing: border-box;
    border-left: 4px solid #571ec9;
    border-right: 4px solid #571ec9;
    background-color: white;
  }

  .content-wrapper {
    background-color: white;
    box-sizing: border-box;
  }

  .custom-navbar {
    padding: 0 20px 5px 20px;
    width: 100%;
    height: auto;
    min-height: 70px;
  }

  .navbar-collapse {
    justify-content: space-between;
  }

  .navbar-nav {
    margin-left: 0;
  }

  .navbar-nav .nav-item {
    margin-right: 10px;
  }

  .navbar-nav .nav-link {
    font-size: 20px;
  }

  .dropdown-menu .dropdown-item {
    font-size: 24px;
  }

  .dropdown-item.text-yellow-bold {
    color: #FFD700 !important;
    font-weight: bold;
  }

  #carouselExampleDark {
    overflow: hidden;
    border-radius: 20px;
  }



  #carouselExampleDark .carousel-item {
    height: 300px;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    opacity: 0;
    transform: scale(1.05);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  #carouselExampleDark .carousel-item.active,
  #carouselExampleDark .carousel-item-next.carousel-item-left,
  #carouselExampleDark .carousel-item-prev.carousel-item-right {
    opacity: 1;
    transform: scale(1);
    position: relative;
  }

  #carouselExampleDark .carousel-item-next,
  #carouselExampleDark .carousel-item-prev {
    opacity: 0;
    transform: scale(1.05);
  }

  #carouselExampleDark .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 15px;
    transition: transform 1.5s ease, opacity 1.5s ease;
  }



  .custom-footer {
    color: aliceblue;
    margin-left: -6%;
    margin-right: -6%;
    background-color: #252bc2;
    box-sizing: border-box;
  }

  .footer-bottom p {
    margin-top: 1px;
    margin-bottom: 0.5px;
    padding-bottom: 2px;
    color: white;
  }

  #loading-screen {
    width: 80vw;
    padding-left: 10%;
    padding-right: 10%;
    left: 10%;
    box-sizing: border-box;
    border-left: 4px solid #571ec9;
    border-right: 4px solid #571ec9;
  }

  .loading-logo {
    max-width: 50%;
    margin: 0 auto;
  }

  .loading-wait {
    max-width: 50%;
    margin: 20px auto 0;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
  }

  .text-yellow-bold {
    color: #FFD700;
    font-weight: bold;
  }
}



/*======================================================= Media Queries untuk Desktop dengan Tampilan iPad Pro =======================================================*/
@media (min-width: 1024px) {

  /* Mengatur tampilan desktop untuk menjadi seperti iPad Pro */
  body {
    max-width: 1024px;
    margin: 0 auto;
    background-color: white;
  }

  .wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
    background-color: #e3dac9;
  }

  .custom-navbar {
    width: 100%;
    height: auto;
    min-height: 5px;
    display: flex;
    margin-left: 0;
    padding: 0 20px 5px 20px;
  }

  .navbar-nav .nav-item {
    margin-right: 10px;
  }

  .nav-link {
    color: white !important;
  }

  .navbar-nav .nav-link {
    font-size: 18px;
    /* Ukuran font lebih kecil untuk tampilan iPad Pro */
  }

  #carouselExampleDark .carousel-item {
    height: 400px;
    /* Tinggi carousel disesuaikan untuk tampilan iPad Pro */
  }

  .custom-footer {
    background-color: #252bc2;
    text-align: center;
  }

  .footer-bottom p {
    margin-bottom: 0.5px;
    padding-bottom: 2px;
    color: white;
  }

  .icon-image {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }
}

@media screen and (min-width: 992px) {
  body {
    background-color: #424242;
    /* Dark gray background for PC/laptop */
  }

  .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    /* Keep content area white */
  }

  /* Desktop Navbar Optimization */
  .custom-navbar {
    width: 100% !important;
    max-width: 802px;
    margin: 0 auto;
    padding: 0 15px 0px 15px;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-nav .nav-item {
    margin-right: 20px;
  }

  .navbar-nav .nav-link {
    font-size: 16px;
    padding: 0.5rem 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-brand h1 {
    font-size: 1.25rem !important;
  }
}

/* Better responsive behavior */
@media (max-width: 991.98px) {
  .custom-navbar {
    padding: 0 15px 0px 15px;
  }

  .navbar-nav .nav-item {
    margin-right: 0;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
}

/* data user */

.user-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  /* dorong ke kanan */
  margin-top: 8px;
  padding-right: 10px;
}

.data-user {
  display: inline-block;
  width: fit-content;
  padding: 4px 8px;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  margin-top: 35px;
  font-style: italic;
  text-decoration: underline;
}