/* ==========================
   GLOBAL
========================== */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #212529;
  background-color: #f8f9fa;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 600;
}

/* ==========================
   NAVBAR
========================== */
.navbar {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.navbar-brand {
  font-weight: 600;
}
.skip-link {
      position: absolute;
      left: -999px;
      top: 10px;
    }
    .skip-link:focus {
      left: 10px;
      background: #000;
      color: #fff;
      padding: 8px 12px;
      z-index: 9999;
      text-decoration: none;
    }

    a:focus,
    button:focus {
      outline: 3px solid #0d6efd;
      outline-offset: 2px;
    }

    body.high-contrast {
      background: #000;
      color: #fff;
    }
    body.high-contrast a {
      color: #ffd700;
    }

    .accessibility-tools button {
      margin-left: 4px;
    }

    /* PATCH AUDIT: KONTRAS TEKS */
    .text-muted {
      color: #495057 !important;
    }
/* ==========================
   HERO
========================== */
.hero {
  background: linear-gradient(
      rgba(13,110,253,0.85),
      rgba(13,110,253,0.85)
    ),
    url("../img/hero/hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
}

.hero h1 {
  font-size: 2.5rem;
}

/* ==========================
   CARD
========================== */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card h5 {
  font-weight: 600;
}

/* ==========================
   TABLE
========================== */
.table thead {
  background-color: #0d6efd;
  color: #fff;
}

/* ==========================
   FOOTER
========================== */
footer {
  background-color: #1f2933;
}

footer p, footer small {
  color: #e5e7eb;
}
/* ==========================
   TOP HEADER INSTANSI
========================== */
.top-header {
  background-color: #0b5ed7; /* biru instansi */
  height: 70px;
}

.logo-box {

}

.logo-box img {
  height: 45px;
}

.instansi-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  padding-left: 10px;
  white-space: nowrap;
}

/* ==========================
   RESPONSIVE HEADER RSUD
========================== */

/* DEFAULT (DESKTOP) */
.top-header {
  background-color: rgb(56,182,255);
  height: 70px;
  position: relative;
  z-index: 10;
}

.logo-box {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
    background-color: white;
  align-items: center;
  justify-content: center;
  border-bottom-right-radius: 40px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  top: 15px;
  
}

.logo-box img {
  height: 60px;
}

.instansi-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.6px;
  line-height: 1;
  white-space: nowrap;
  justify-content: top;
}



/* ==========================
   TABLET (≤ 991px)
========================== */
@media (max-width: 991.98px) {

  .logo-box {
    width: 80px;
    height: 80px;
    top: 10px;
  }

  .logo-box img {
    height: 48px;
  }

  .instansi-title {
    font-size: 1rem;
  }

  .navbar {
    margin-top: 25px;
  }
}

/* ==========================
   MOBILE (≤ 576px)
========================== */
@media (max-width: 575.98px) {

  .top-header {
    height: auto;
    padding: 10px 0;
  }

  .logo-box {
    width: 60px;
    height: 60px;
    top: 0;
    box-shadow: none;
  }

  .logo-box img {
    height: 36px;
  }

  .instansi-title {
    font-size: 0.95rem;
    white-space: normal; /* boleh turun baris */
    line-height: 1.2;
  }

  .navbar {
    margin-top: 10px;
  }
}

/* Search 
/* ==========================
   SEARCH NAVBAR
========================== */
.navbar-search input {
  width: 180px;
}

@media (max-width: 991.98px) {
  .navbar-search {
    margin-bottom: 10px;
  }

  .navbar-search input {
    width: 100%;
  }
}
/* =========================
   CAROUSEL RSUD (STABIL)
========================= */

#rsudCarousel {
  position: relative;
}

/* SETIAP SLIDE */
#rsudCarousel .carousel-item {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000;
}

/* BACKGROUND BLUR */
#rsudCarousel .carousel-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

#rsudCarousel .carousel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.15);
}

/* GAMBAR UTAMA */
#rsudCarousel .carousel-main {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  object-fit: contain;   /* 🔥 TIDAK TERPOTONG */
  margin: 0 auto;
  display: block;
}

/* CAPTION */
#rsudCarousel .carousel-caption {
  z-index: 3;
  background: rgba(0,0,0,0.45);
  padding: 1rem 1.25rem;
  border-radius: 8px;
}

/* TOMBOL */
#rsudCarousel .carousel-control-prev,
#rsudCarousel .carousel-control-next {
  z-index: 5;           /* 🔥 PALING ATAS */
}

/* MOBILE */
@media (max-width: 768px) {
  #rsudCarousel .carousel-item {
    height: 320px;
  }
}


/* ==========================
   APLIKASI TERKAIT RSUD
========================== */
.app-card {
  display: block;
  text-align: center;
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 12px;
  height: 100%;
  color: #212529;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  text-decoration: none;
}

.app-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo img {
  max-width: 100%;
  max-height: 100%;
}

.app-card h5 {
  font-weight: 600;
  margin-bottom: 8px;
}

.app-card p {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* ==========================
   APLIKASI TERKAIT RSUD (V2)
========================== */
.app-section {
  background-color: #f8f9fa;
}

.app-card-v2 {
  display: block;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 25px;
  height: 100%;
  text-align: center;
  color: #212529;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.app-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  text-decoration: none;
}



/* TEXT */
.app-card-v2 h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.app-card-v2 p {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}
/* ===== APP GRID RESPONSIVE ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

/* ===== APP CARD ===== */
.app-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  color: #212529;

  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

/* ===== ICON ===== */
.app-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon img {
  max-width: 100%;
  max-height: 100%;
}

/* ===== TEXT ===== */
.app-card h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-card small {
  font-size: 0.8rem;
  color: #6c757d;
}

/* ===== HOVER EFFECT ===== */
.app-card:hover {
  transform: translateY(-6px);
  background-color: #f0f6ff;
  border-color: #0d6efd;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.18);
}

.app-card:hover h6 {
  color: #0d6efd;
}


.app-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* HAPUS SEMUA BACKGROUND */
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Logo saja yang terlihat */
.app-icon img {
  max-width: 96px;      /* besar & jelas */
  max-height: 96px;
  object-fit: contain;
}


/* Efek hover halus (opsional tapi direkomendasikan) */
.app-card-v2:hover .app-icon {
  transform: scale(1.06);
}


/* MOBILE */
@media (max-width: 576px) {
  .app-card-v2 {
    padding: 25px 20px;
  }
}


/* ===== INFO & NEWS SECTION ===== */
.news-item:hover {
  background-color: #f8f9fa;
  border-radius: 6px;
}

.news-thumb {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.layanan-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}

.layanan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,.2);
}

.layanan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.layanan-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}

.layanan-overlay h5 {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

/* ==============================
   HOVER ZOOM + POP EFFECT
============================== */

.layanan-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    z-index .35s ease;
  z-index: 1;
}

/* gambar */
.layanan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

/* saat hover */
.layanan-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 22px 48px rgba(0,0,0,.35);
  z-index: 10;
}

/* zoom gambar */
.layanan-card:hover img {
  transform: scale(1.12);
}

/* overlay */
.layanan-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75),
    rgba(0,0,0,.25),
    transparent
  );
  transition: background .35s ease;
}

/* overlay saat hover */
.layanan-card:hover .layanan-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85),
    rgba(0,0,0,.45),
    transparent
  );
}

.layanan-overlay h5 {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

/* mobile: nonaktifkan zoom berlebihan */
@media (max-width: 768px) {
  .layanan-card:hover {
    transform: none;
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
  }

  .layanan-card:hover img {
    transform: scale(1.05);
  }
}

/* ===============================
   FOOTER RSUD
================================ */
.footer-rsud {
  background: linear-gradient(180deg, #38b6ff, rgb(5, 48, 114));
  font-size: 0.95rem;
}

.footer-logo {
  width: 42px;
  height: auto;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
  transition: background .3s ease, transform .3s ease;
}

.footer-social a:hover {
  background: rgba(255,255,255,.3);
  transform: translateY(-3px);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-list i {
  color: #b9f1e7;
  font-size: 1.1rem;
  margin-top: 2px;
}

.footer-list .igd {
  margin-top: 12px;
  color: #ffd966;
  font-weight: 600;
}

.footer-bottom {
  background: rgba(0,0,0,.15);
  font-size: 0.85rem;
}

/* FOOTER LEBIH RINGKAS */
.footer-rsud .container {
  padding-top: 2.5rem;   /* sebelumnya 3rem */
  padding-bottom: 2.5rem;
}

.footer-rsud p {
  margin-bottom: 0.75rem;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-bottom {
  padding-top: 0.75rem;
  padding-bottom: 0rem;
}
.standar-card {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;

  text-decoration: none;
  color: #212529;
  font-weight: 500;

  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.standar-card i {
  font-size: 1.4rem;
  color: #0d6efd;
}

.standar-card:hover {
  background-color: #f0f6ff;
  border-color: #0d6efd;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
}

.standar-card:hover span {
  color: #0d6efd;
}
/* ===== STANDAR PELAYANAN LIST ===== */
.standar-card {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;

  text-decoration: none;
  color: #212529;
  font-weight: 500;

  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.standar-card i {
  font-size: 1.4rem;
  color: #0d6efd;
}

.standar-card:hover {
  background-color: #f0f6ff;
  border-color: #0d6efd;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
}

.standar-card:hover span {
  color: #0d6efd;
}

/* ===== MAKULAT PELAYANAN (HEIGHT LIMIT) ===== */
.maklumat-img {
  width: 100%;
  max-width: 600px;

  max-height: 420px;       /* 🔒 batas tinggi */
  object-fit: contain;    /* jaga proporsi */

  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}