/* ================= GLOBAL ================= */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: radial-gradient(circle at top, #f2f5fb 0, #eaecf3 45%, #e3e6f0 100%);
}

/* ================= HEADER (BERSIH) ================= */

/* Bar utama abu muda */
.top-bar {
  background: linear-gradient(90deg, #eff0f3, #f2f4fa, #f8f8fa);
  color: rgb(41, 111, 192);
  padding: 10px 0 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1000;
}

/* ketika nanti dipakai sticky */
.top-bar.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* bar biru “contact us” */
.top-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #155a9c;
  color: #fff;
  font-size: 12px;
  gap: 6px;
}

/* kiri: contact us + sosmed */
.info-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* kanan: alamat */
.info-right {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 55%;
  text-align: right;
  line-height: 1.2;
}

/* icon sosmed */
.icon-sosmed {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  text-decoration: none;
  font-size: 12px;
}

.icon-sosmed span {
  display: none; /* ON di desktop, OFF di HP */
}
@media (max-width: 768px) {

  .top-bar-info {
    flex-direction: row;
    font-size: 11px;
    padding: 4px 8px;
  }

  .info-left {
    gap: 6px;
  }

  .info-right {
    max-width: 50%;
    font-size: 10px;
  }

  .info-right span {
    display: -webkit-box;
    -webkit-line-clamp: 2;    /* max 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* container umum */
.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

/* header utama: logo + menu */
.top-bar .container {
  width: 100%;
  max-width: 1200px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* kiri: logo + nama RS */
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rs-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.logo-text {
  color: #003b74;
  font-size: 30px;
  margin: 0;
  font-weight: 750;
}

.logo-subtitle,
.rs-tagline {
  color: #44618c;
  font-size: 13px;
}

/* MENU DESKTOP */
.nav-menu {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
  padding-right: 8px;
}

.nav-menu a {
  position: relative;
  color: rgb(41, 111, 192);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: hsl(220, 89%, 18%);
  transition: 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: hsl(220, 89%, 18%);
}

.nav-menu a.active {
  color: #0c3c78;
  font-weight: 600;
}

/* ===== tombol hamburger (default: sembunyi di desktop) ===== */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #155a9c;
  transition: 0.25s;
}

/* animasi hamburger -> X */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* overlay belakang menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 9997;
}

/* ================== NAV MOBILE (≤ 768px) ================== */
@media (max-width: 768px) {

  /* bar biru lebih ringkas */
  .top-bar-info {
    padding: 4px 12px;
    font-size: 11px;
    flex-direction: row;
    gap: 6px;
  }

  .top-bar .container {
    max-width: 100%;
    width: 100%;
    padding: 6px 14px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .header-left {
    flex: 1;
    align-items: center;
    gap: 8px;
  }

  .rs-logo {
    width: 52px;
    height: 52px;
    padding: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  }

  .logo-text {
    font-size: 14px;
    line-height: 1.3;
    max-width: 220px;
  }

  .rs-tagline,
  .logo-subtitle {
    font-size: 10px;
    line-height: 1.2;
  }

  /* tampilkan hamburger */
  .nav-toggle {
    display: flex;
  }

  /* panel menu putih full-screen */
  .nav-menu {
    position: fixed;
    inset: 0;
    background: #ffffff;
    padding: 72px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 9998;
  }

  .nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: #155a9c;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* desktop: backdrop disembunyikan */
@media (min-width: 769px) {
  .nav-backdrop {
    display: none;
  }
}

/* ================= HERO SLIDER ================= */

.hero-slider {
  position: relative;
  height: calc(100vh - 120px);
  overflow: hidden;
  border-radius: 0;
  background: #000;
  z-index: 1;
  margin-top: -37px;
}
/* Boleh pakai min-height, nanti kita override lagi */
.hero-slider {
  min-height: calc(100vh - 120px);
}


/* Satu slide */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);     /* sedikit zoom untuk efek parallax */
  transition: opacity 0.8s ease, transform 10s linear;
}

/* Slide yang aktif */
.hero-slide.active {
  opacity: 1;
  transform: scale(1);        /* pelan2 zoom out */
}


/* === FINAL FIX HERO — FULL POTRET HP === */

/* Desktop / default: banner tinggi 1 layar - tinggi header */
.hero-slider {
  min-height: calc(100vh - 140px);
}

/* HP: benar-benar 1 layar penuh banner */
@media (max-width: 768px) {
  .hero-slider {
    min-height: calc(100vh - 80px); /* kira-kira header 80px */
    height: auto;
    margin-top: 0;
  }

  .hero-overlay {
    background:  transparent !important;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px 20px 28px;
  }
}

/* Overlay gelap + teks di atas slide */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.70),
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.10),
    transparent
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 500px 60px 40px;
}

.hero-overlay h1 {
  font-size: 40px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.hero-overlay p {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Kalau sudah punya .btn, ini boleh di-skip atau disesuaikan aja */
/* Tombol Primary */
.btn.btn-primary {
  background: #007bff;             /* Warna biru yang digunakan di artikel.php */
  border-radius: 50px;             /* Sudut melengkung lebih halus dan modern */
  padding: 12px 30px;              /* Padding lebih besar untuk tombol lebih nyaman */
  color: #fff;                    /* Teks putih agar kontras dengan latar belakang biru */
  text-decoration: none;
  font-weight: 600;                /* Font tebal untuk tampilan lebih jelas */
  font-size: 14px;
  display: inline-flex;            /* Menggunakan inline-flex untuk kontrol yang lebih baik */
  justify-content: center;         /* Menyusun teks di tengah */
  align-items: center;             /* Menyusun teks secara vertikal di tengah */
  transition: all 0.3s ease;       /* Efek transisi halus saat hover */
}

/* Tombol Secondary */
.btn.btn-secondary {
  background: transparent;        /* Latar belakang transparan */
  border-radius: 50px;             /* Sudut melengkung seperti tombol primary */
  padding: 12px 30px;              /* Padding lebih besar agar tombol lebih nyaman */
  color: #007bff;                  /* Teks biru yang serasi dengan tombol primary */
  border: 1px solid #007bff;      /* Border biru yang serasi dengan tombol */
  text-decoration: none;
  font-weight: 500;                /* Font lebih ringan */
  font-size: 14px;
  display: inline-flex;            /* Menggunakan inline-flex untuk kontrol yang lebih baik */
  justify-content: center;         /* Menyusun teks di tengah */
  align-items: center;             /* Menyusun teks secara vertikal di tengah */
  transition: all 0.3s ease;       /* Efek transisi halus saat hover */
}

/* Efek Hover untuk Tombol Primary */
.btn.btn-primary:hover {
  background: #0056b3;            /* Warna lebih gelap saat hover */
  transform: translateY(-2px);     /* Efek tombol sedikit terangkat saat hover */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Memberikan bayangan halus saat hover */
}

/* Efek Hover untuk Tombol Secondary */
.btn.btn-secondary:hover {
  background: rgba(0, 123, 255, 0.1); /* Efek latar belakang biru transparan saat hover */
  transform: translateY(-2px);        /* Efek tombol sedikit terangkat saat hover */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Memberikan bayangan halus saat hover */
}

/* Efek Active untuk Tombol */
.btn:active {
  transform: translateY(1px);       /* Efek tombol sedikit tertekan saat diklik */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Bayangan lebih dalam saat tombol ditekan */
}


/* Tombol panah kiri/kanan */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-prev { left: 18px; }
.hero-next { right: 18px; }

.hero-nav:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-50%) scale(1.05);
}

/* Dots indikator di bawah */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 26px;
  background: #00a8cc;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {

  .hero-overlay {
    padding: 28px 32px;
  }

  .hero-overlay h1 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    margin-top: 16px;
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.7),
      rgba(0,0,0,0.1)
    );
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px 20px 28px;
  }

  .hero-overlay h1 {
    font-size: 24px;
  }

  .hero-overlay p {
    font-size: 13px;
  }

  .hero-buttons {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
/* === FIX FINAL HERO SLIDER TANPA GAP === */
@media (max-width: 768px) {

  .hero-slider {
    height: calc(100vh - 50px) !important; /* sesuaikan angka */
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero-slide {
    height: 100% !important;
    min-height: 100% !important;
  }
}
/* === OVERRIDE PALING AKHIR HERO DI MOBILE === */
@media (max-width: 768px) {
  .hero-slider {
    height: calc(100vh - 50px) !important;  /* full layar - header */
    margin-top: -60px !important;            /* geser dikit ke atas */
    padding-top: 0 !important;
  }

  .hero-slide {
    height: 100% !important;
    min-height: 100% !important;
  }
}


/* ================= CARD ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.card {
    position: relative;
    padding: 26px 24px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #f5faff 0%, #ffffff 60%, #f2f8ff 100%);
    border: 1px solid rgba(0, 78, 156, 0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transition: 0.25s ease;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 160, 255, 0.2), transparent 65%);
    top: -80px;
    right: -70px;
}
.card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 199, 146, 0.2), transparent 60%);
    bottom: -60px;
    left: -60px;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.card h3 {
     font-size: 18px;
    color: #0b4486;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.card h3::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #00c2a8;
    border-radius: 50%;
    margin-right: 8px;
}
/* Deskripsi */
.card p {
    font-size: 14px;
    color: #50627a;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}


/* ================= DOKTER ================= */
.dokter-card {
    display: flex;
    gap: 18px;
    background: white;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 860px;
}

.dokter-card img {
    width: 170px;
    height: 210px;
    object-fit: contain;
    border-radius: 10px;
    background: #f3f3f3;
}

.dokter-info {
    flex: 1;
}

.badge-hari {
    background: #e8f5e9;
    color: #0b6b3a;
    margin-right: 5px;  /* Menambahkan jarak antara elemen hari */
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
}

/* ================= BUTTON ================= */
.btn {
    display: inline-block;
    padding: 7px 14px;
    background: #1845a7;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 6px;
    font-size: 13px;
}

.btn-edit-dok { background: rgb(0, 110, 255); }
.btn-delete { background: red; }

.btn:hover { opacity: 0.85; }

/* ================= FOOTER ================= */

.site-footer {
  margin-top: 40px;
  background: #ffffff;
  color: #123a6b;
  font-size: 14px;
  text-align: left !important;
}
/* ==== GESER FOOTER AGAK KE KIRI ==== */
.site-footer .container {
  max-width: 1200px;
  margin: 0 0 0 60px;   /* geser ke kiri */
}

.footer-content {
  justify-content: flex-start;
}
.footer-brand {
  margin-left: -15px;
}


.footer-top-banner {
  background:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,0.15) 0, transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(255,255,255,0.12) 0, transparent 45%),
    linear-gradient(90deg, #004b93, #0077c8, #00a4d8);
  color: #fff;
  padding: 30px 0;
}

.footer-top-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 25px;
  font-weight: 500;
}

/* Isi utama */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 0 30px;
  border-bottom: 1px solid #e4e8f0;
  align-items: flex-start;          /* semua kolom rata atas */
}

/* Kolom dasar */
.footer-col {
  min-width: 180px;
}

.footer-brand {
  max-width: 280px;
  text-align: left;
}

.footer-brand h1 {
  font-size: 22px;
  margin-top: -5px;
  font-weight: 700;
  text-align: left;
}

.footer-brand p {
  margin: 0 0 20px;
  line-height: 1.6;
}

/* Sosial media */
.footer-social {
  display: flex;
  gap: 14px;
  font-size: 20px;
}

.footer-social a {
  color: #004b93;
  text-decoration: none;
}

.footer-social a:hover {
  opacity: 0.8;
}

/* Judul kolom */
.footer-col h4 {
  font-size: 15px;
  margin: 0 0 10px;
  font-weight: 700;
  white-space: nowrap; 
}

.footer-subtitle {
  margin-top: 18px;
}

/* List link */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  text-decoration: none;
  color: #455a7b;
}

.footer-col a:hover {
  color: #004b93;
}

/* Bar paling bawah */
.footer-bottom {
  padding: 10px 0 14px;
  background: #f5f7fb;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6b7b94;
}

/* ========= MEDIA INFORMASI + 2 LOGO ========= */

/* kolom kanan: media informasi (kiri) + card logo (kanan) */
.footer-info {
  display: flex;
  flex-direction: row;      /* kiri teks, kanan logo */
  align-items: flex-start;
  gap: 24px;
  flex: 0 0 320px;
}

.footer-links {
  flex: 1 1 auto;          /* teks ambil ruang utama */
}

/* container 2 logo */
/* container 2 logo */
.footer-cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0px;
}

/* kotak card logo */
.footer-card {
  background: #ffffff;
  padding: 0px 2px;              /* sebelumnya gede, ini dikecilin */
  border-radius: 10px;             /* biar lebih kotak tapi masih soft */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);  /* shadow lebih tipis */
  width: 220px;                     /* masih besar tapi proporsional */
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0px;
}


/* gambar di dalam card */
.footer-card img {
  width: 100%;
  max-width: 220px;
  height: auto;
  max-height: 110px;
  object-fit: contain;
}

/* kalau ada teks kecil di bawah logo (opsional) */
.footer-card p {
  text-align: center;
  font-size: 13px;
  margin-top: 6px;
  color: #004b93;
  font-weight: 600;
}

/* responsive: di layar kecil, logo turun ke bawah teks */
@media (max-width: 900px) {
  .footer-info {
    flex-direction: column;
  }

  .footer-cards {
    justify-content: flex-start;
  }
}


/* Responsive */
@media (max-width: 900px) {
  .footer-content {
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .footer-top-inner,
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand {
    max-width: 100%;
  }
}


/* ================ RESPONSIVE ================= */
@media(max-width: 768px) {

  .top-bar .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 10px;
  }

  .grid {
    flex-direction: column;
  }

  .dokter-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero-overlay h1 {
    font-size: 22px;
  }
}

/* ====== DAFTAR DOKTER (VERSI CLEAN RS) ====== */

.dokter-card {
    display: flex;
    gap: 25px;
    background: #ffffff;
    padding: 22px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    transition: 0.25s;
}

.dokter-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.dokter-card img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f1f1;
    border: 1px solid #ddd;
}

.dokter-info h3 {
    margin: 0 0 10px 0;
    font-size: 30px;
    padding-bottom: 15px;
    color: #07234c;
}

.dokter-info p {
    margin: 4px 0;
    color: #333;
    font-size: 14px;
}

/* Jadwal */
.jadwal-inline {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jadwal-label {
    font-weight: 600;
    color: #3768d1;
    margin-right: 6px;
}

.badge-hari {
    background: #eaedf8;
    color: #0d2c6e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #ccd7ee;
}

main.container {
    padding-top: 10px;
    padding-bottom: 40px;
}

h1 {
    margin-bottom: 25px;
}
/* === HEADER DOKTER (KIRI KANAN) === */
.dokter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: -10px;   /* biar judul agak naik ke atas */
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.dokter-title h1 {
  margin: 0;
  font-size: 28px;
  color: #003b74;
}

.dokter-title p {
  margin-top: 6px;
  color: #555;
  font-size: 14px;
}

.dokter-search {
      margin-bottom: 32px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dokter-search input {
  padding: 10px 14px;
  width: 260px;
  border-radius: 8px;
  border: 1px solid #ccd3e5;
  outline: none;
  font-size: 14px;
  transition: 0.2s;
}

.dokter-search input:focus {
  border-color: #0b296b;
  box-shadow: 0 0 0 2px rgba(11, 33, 107, 0.1);
}

/* RESPONSIVE (HP) */
@media (max-width: 768px) {
  .dokter-header {
    flex-direction: column;
    gap: 10px;
  }

  .dokter-search input {
    width: 100%;
  }
}
/* ===== Floating WhatsApp ===== */
.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: 0.2s ease;
}

.wa-float i {
  font-size: 26px;
}

.wa-float:hover {
  transform: scale(1.05);
  background: #1ebe5d;
}

@media (max-width: 600px) {
  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 14px;
    border-radius: 50%;
  }
}

/* =====  JUDUL SECTION DENGAN ANIMASI SAAT SCROLL ===== */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #0c3c78;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  letter-spacing: 0.5px;

  /* awal sebelum kelihatan */
  opacity: 0;
  transform: translateY(25px);
}

/* garis bawah (awal masih kecil) */
.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0c3c78, #1da1f2);
  display: block;
  margin: 12px auto 0;
  border-radius: 5px;
  transform: scaleX(0);
}

/* ketika masuk viewport → dikasih class .in-view dari JS */
.section-title.in-view {
  animation: fadeUp 0.8s ease forwards;
}

.section-title.in-view::after {
  animation: lineGrow 0.8s ease forwards;
  animation-delay: 0.3s;
}

/* animasi judul naik + fade */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* animasi garis membesar dari tengah */
@keyframes lineGrow {
  to {
    transform: scaleX(1);
  }
}

/* WRAPPER */
.layanan-list {
  max-width: 1100px;
  margin: 30px auto 70px;
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

/* BENTUK LINGKARAN */
.layanan-item {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7fbff, #e7f0ff);
  box-shadow:
    0 15px 35px rgba(0, 67, 168, 0.12),
    inset 0 0 20px rgba(255,255,255,0.6);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 20px;
  text-align: center;
  transition: 0.4s ease;
}

/* ICON BESAR */
.layanan-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

/* JUDUL */
.layanan-text h3 {
  font-size: 18px;
  margin: 5px 0 6px;
  color: #0c3c78;
  font-weight: 700;
}

/* DESKRIPSI */
.layanan-text p {
  font-size: 14px;
  color: #1f3f6d;
  line-height: 1.4;
}

/* HOVER – timbul & hidup */
.layanan-item:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 45px rgba(0, 67, 168, 0.25);
  background: linear-gradient(145deg, #eaf3ff, #dfe9ff);
}
.layanan-description {
    font-size: 15px;                /* Sedikit lebih besar agar lebih mudah dibaca */
    color: #555;                    /* Warna abu-abu yang lebih lembut */
    margin-top: 8px;
    text-align: center;             /* Menyusun teks ke tengah */
    line-height: 1.6;               /* Menambahkan jarak antar baris agar lebih nyaman dibaca */
    font-weight: 400;               /* Membuat teks tidak terlalu tebal, lebih ringan */
    letter-spacing: 0.5px;          /* Menambahkan jarak antar huruf sedikit untuk kelihatan lebih rapi */
    padding: 0 10px;                /* Sedikit padding kiri-kanan agar teks tidak terlalu menempel */
}



/* Responsive */
@media (max-width: 768px) {
  .layanan-item {
    flex-direction: column;
    gap: 8px;
  }
}
/* =====  UNTUK JADWAL DOKTER TODAY ===== */

/* Bungkus jadwal biar nggak terlalu mepet */
/* Wrapping container for cards */
.jadwal-dokter-wrapper {
  max-width: 1000px; /* Shrink the overall max width */
  margin: 20px auto; /* Decrease the margin for tighter spacing */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Smaller card width */
  gap: 16px; /* Reduced gap between cards */
}

/* Card container adjustments */
.dokter-card {
  background-color: #ffffff;
  border-radius: 10px; /* Slightly smaller border radius */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  overflow: hidden;
  position: relative;
  padding: 12px; /* Reduced padding */
  transition: transform 0.3s ease;
}

/* Main card */
.jadwal-card {
  position: relative;
  height: 200px; /* Reduced height */
  border-radius: 22px; /* Slightly smaller rounded corners */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Softer shadow */
  transition: 0.3s ease;
}

/* Hover effect for card */
.jadwal-card:hover {
  transform: translateY(-4px); /* Less hover translation */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1); /* Softer hover shadow */
}

/* Image background adjustments */
.jadwal-bg {
  width: 60%; /* Decreased width of image */
  height: auto;
  object-fit: contain;
  position: absolute;
  right: -12px;
  bottom: -10px;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,0.08)); /* Subtle shadow */
  mask-image: linear-gradient(
    to left,
    black 88%,
    rgba(0,0,0,0.7) 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to left,
    black 82%,
    rgba(0,0,0,0.95) 86%,
    rgba(0,0,0,0.85) 88%,
    rgba(0,0,0,0.6) 91%,
    rgba(0,0,0,0.35) 94%,
    rgba(0,0,0,0.15) 97%,
    transparent 100%
  );
}

/* Hover effect on image */
.jadwal-card:hover .jadwal-bg {
  transform: scale(1.02); /* Slightly smaller scale on hover */
}

/* Overlay adjustment */
.jadwal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(4, 39, 92, 0.15) 0%,
    rgba(255, 255, 255, 0.7) 10%, /* Less opaque */
    rgba(255, 255, 255, 0.35) 50%, /* Softer transition */
    transparent 70%
  );
  z-index: 1;
}




.jadwal-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 20px;
  color: #fff;
  z-index: 2;
   max-width: 70%;
}

.jadwal-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.jadwal-status.aktif {
  background: #e6f9ef;
  color: #0f9d58;
}

.jadwal-status.akan {
  background: #fff5dd;
  color: #e89b07;
}

.jadwal-status.libur {
  background: #fde7e7;
  color: #d93025;
}

/* nama dokter */
.jadwal-content h3 {
  font-size: 20px; /* Ukuran font tetap kecil */
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
  color: #333333;
  
  /* Ganti font dengan font yang diinginkan */
  font-family: 'Roboto', Arial, sans-serif; /* Ganti dengan font yang diinginkan */
}


.jadwal-spes {
  color: #5f7fa3;
  font-size: 14px;
}

.jadwal-jam {
  font-size: 0.9rem; /* Kecilkan ukuran font untuk jam praktek */
  text-align: left;
  margin: 5px 0;
  color: #555; /* Lebih soft */
}

.jadwal-btn {
  font-size: 0.75rem;
  padding: 6px 10px;
  background-color: #4da6ff; /* Biru muda */
  color: #fff;
  text-align: center;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 8px;
  transition: background-color 0.3s ease;
}

.jadwal-btn:hover {
  background-color: #3399ff; /* Biru lebih gelap */
}

.jadwal-btn:active {
  background-color: #1a80e3; /* Biru lebih gelap saat klik */
}


/* efek hover lembut, bukan lompat jauh */
.dokter-card:hover {
  transform: translateY(-5px);
  border-color: #c8d6f0;
  box-shadow: 0 10px 24px rgba(15, 35, 52, 0.10);
}


/* Foto Dokter */
.dokter-foto img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}


/* Info dokter */
.dokter-info h3 {
  font-size: 22px;
  color: #1845a7;
  margin-bottom: 4px;
}

.dokter-poli {
  font-size: 13px;
  color: #607a9b;
  margin-bottom: 8px;
}

.dokter-jam {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Status */
.status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status.aktif {
  background: #e6f9ef;
  color: #0f9d58;
}

.status.akan {
  background: #fff8e5;
  color: #f29900;
}

.status.libur {
  background: #fdecec;
  color: #d93025;
}

/* Tombol lihat lengkap */
.lihat-lengkap {
  margin-top: 25px;
  text-align: center; /* Tombol di tengah */
}

.lihat-lengkap a {
  text-decoration: none;
  color: #333; /* Warna teks yang lebih netral (abu-abu gelap) */
  font-weight: 400; /* Tidak terlalu bold, agar lebih ringan */
  font-size: 0.9rem; /* Ukuran font yang pas */
  padding: 5px 10px; /* Padding lebih kecil agar lebih rapi */
  border-radius: 3px; /* Sudut sedikit membulat */
  transition: color 0.3s ease; /* Efek perubahan warna yang halus */
}

.lihat-lengkap a:hover {
  color: #007bff; /* Warna biru lembut saat hover */
  text-decoration: underline; /* Garis bawah saat hover */
}



/* ====== STATISTIK RS (FULL WIDTH) ====== */
.rs-stats {
  position: relative;
  padding: 80px 0;
  background-image: url('assets/img/ruang-inap.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.rs-stats-overlay {
  position: absolute;
  inset: 0;
  background: #0c40838f;  /* gelapkan foto */
}

.rs-stats-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.rs-stats-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.rs-stats-subtitle {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.rs-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.rs-stat-item {
  text-align: center;
}

.rs-stat-number {
  display: block;
  font-size: 40px;
  font-weight: 700;
  color: #edf8fd;          /* warna angka (biru terang) */
  margin-bottom: 8px;
}

.rs-stat-item p {
  font-size: 15px;
}

/* responsive */
@media (max-width: 900px) {
  .rs-stats-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
  }

  .rs-stats-title {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .rs-stats-grid {
    grid-template-columns: 1fr;
  }

  .rs-stat-number {
    font-size: 34px;
  }
}


/* ====== ARTIKEL KESEHATAN ====== */
.artikel-section {
  padding: 32px 0;
}

.artikel-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 10px 0 60px;
}

.artikel-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.artikel-card:hover {
  transform: translateY(-8px);
}

.artikel-img {
  height: 200px;
  overflow: hidden;
}

.artikel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artikel-content {
  padding: 20px;
}

.artikel-content h3 {
  font-size: 18px;
  color: #0c3c78;
  margin-bottom: 8px;
}

.artikel-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.artikel-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: #1d5fe0;
  font-weight: 600;
  text-decoration: none;
}

.artikel-link:hover {
  text-decoration: underline;
}
.artikel-sumber-container {
    display: flex;
    justify-content: flex-start;  /* Menyusun elemen ke kiri */
    align-items: center;          /* Menjaga keselarasan vertikal */
    margin-top: 20px;
    padding-left: 15px;           /* Memberikan ruang lebih di kiri */
}

.artikel-sumber {
    font-size: 14px;
    color: #555;
    margin-right: 15px; /* Memberikan jarak antara teks dan tombol */
    font-weight: 500;  /* Menambah sedikit ketebalan untuk mempertegas */
}

.artikel-sumber a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600; /* Menambah ketebalan pada tautan untuk kontras */
    transition: color 0.3s ease; /* Transisi warna untuk efek hover */
}

.artikel-sumber a:hover {
    color: #007bff; /* Warna biru saat hover */
    text-decoration: underline; /* Menambahkan underline saat hover */
}

.artikel-readmore {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600; /* Membuat tombol lebih tebal */
    background-color: #f1f1f1; /* Latar belakang abu-abu muda */
    padding: 8px 16px; /* Padding untuk tombol agar lebih besar */
    border-radius: 4px; /* Membuat sudut tombol melengkung */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Efek bayangan lembut pada tombol */
    transition: all 0.3s ease; /* Animasi halus saat hover */
}

/* Efek hover untuk tombol "Lihat Sumber Asli" */
.artikel-readmore:hover {
    background-color: #007bff; /* Warna latar belakang biru saat hover */
    color: white; /* Teks berubah menjadi putih */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Efek bayangan lebih besar */
}


/* tombol bawah */
.lihat-semua-artikel {
  text-align: center;
  margin-top: 15px;
}

.lihat-semua-artikel a {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  background: linear-gradient(45deg, #0c3c78, #1d5fe0);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.lihat-semua-artikel a:hover {
  transform: scale(1.05);
}

.artikel-share {
  margin-top: 30px;
  text-align: center;
}

.share-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}

.share-btn i {
  margin-right: 5px;
}

.share-btn.facebook {
  background-color: #3b5998;
  color: #fff;
}

.share-btn.twitter {
  background-color: #1da1f2;
  color: #fff;
}

.share-btn.whatsapp {
  background-color: #25d366;
  color: #fff;
}

.share-btn:hover {
  opacity: 0.8;
}


/* Responsive mobile */
@media (max-width: 900px) {
  .artikel-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .artikel-wrapper {
    grid-template-columns: 1fr;
  }
}

.testimoni-section {
  margin: 60px auto;
}

/* wrapper slider */
.testimoni-slider {
  display: flex;
  gap: 18px;
  overflow: hidden;           /* disembunyikan, bukan scroll manual */
  padding: 10px 0 5px;
  scroll-behavior: smooth;
  position: relative;
}

.testimoni-item {
  flex: 0 0 420px;       /* LEBAR card diperbesar */
  height: 300px;          /* TINGGI card diperbesar */
  border-radius: 18px;
  overflow: hidden;
  position: relative;

  background: #f5f7fa;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;          /* biar ada jarak dari pinggir */
}

.testimoni-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* GAMBAR TETAP UTUH */
  border-radius: 12px;
}



/* badge sumber */
.source-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.source-badge.gmaps { background: #0F9D58; }
.source-badge.ig    { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); }
.source-badge.fb    { background: #1877f2; }

/* dots indikator */
.testimoni-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.testimoni-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4d0e6;
  cursor: pointer;
  transition: 0.25s;
}

.testimoni-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #0c3c78;
}

/* RESPONSIVE */
/* Tablet */
@media (max-width: 900px) {
  .testimoni-item {
    flex: 0 0 260px;
    height: 190px;
  }
}

/* HP */
@media (max-width: 600px) {
  .testimoni-slider {
    gap: 12px;
  }
  .testimoni-item {
    flex: 0 0 85%;    /* hampir penuh satu layar */
    height: 210px;
  }
}
/* ===== ALUR PENDAFTARAN PASIEN ===== */

.alur-section {
  max-width: 1100px;
  margin: 0 auto 70px;
}

.alur-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

/* garis penghubung di belakang step (desktop) */
.alur-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 35px;
  height: 2px;
  background: linear-gradient(90deg, #c7d2e8, #89b4ff);
  z-index: 0;
}

/* card step */
.alur-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

/* lingkaran icon */
.alur-step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f3f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 14px rgba(12, 60, 120, 0.15);
  border: 2px solid #d4e3ff;
}

/* judul & text */
.alur-step-body h3 {
  font-size: 15px;
  margin: 4px 0 6px;
  color: #0c3c78;
  font-weight: 600;
}

.alur-step-body p {
  font-size: 13px;
  color: #55627d;
  line-height: 1.5;
}

/* RESPONSIVE: tablet & HP */
@media (max-width: 900px) {
  .alur-steps {
    grid-template-columns: 1fr 1fr;
  }

  .alur-steps::before {
    display: none; /* garis tengah dihilangkan biar nggak berantakan */
  }

  .alur-step {
    text-align: left;
    display: flex;
    gap: 12px;
  }

  .alur-step-icon {
    width: 65px;
    height: 50px;
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .alur-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .alur-step {
    align-items: flex-start;
  }
}

/* ================= PROFIL PAGE ================= */

.profil-section {
  padding: 40px 0;
}

.profil-box {
  max-width: 850px;
  margin: 0 auto 40px;
  text-align: center;
}

.profil-box h3 {
  font-size: 22px;
  color: #0c3c78;
  margin-bottom: 15px;
}

.profil-box p {
  color: #4a5872;
  line-height: 1.7;
}

/* Grid Sejarah - Visi - Misi */
.profil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.profil-card {
  background: #f5f9ff;
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(15, 50, 120, 0.06);
}

.profil-card h4 {
  color: #0c3c78;
  margin-bottom: 8px;
}

/* Fasilitas */
.profil-fasilitas {
  padding: 60px 0 30px;
}

.fasilitas-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 25px;
}

.fasilitas-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  font-weight: 500;
  color: #123a6b;
}

/* Map */
.profil-lokasi {
  padding: 40px 0 70px;
}

.profil-map {
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 600px) {
  .profil-box h3 {
    font-size: 18px;
  }
}

/* Section Styling */
.akreditasi-section {
  background-color: #f7f7f7;
  padding: 40px 0;
  text-align: center;
}

.akreditasi-section .section-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Box Styling */
.akreditasi-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
  max-width: 800px;
  width: 100%;
  margin: 0 auto; /* Center the box */
}

.akreditasi-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.akreditasi-deskripsi {
  font-size: 16px;
  color: #333333;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Image Styling */
.akreditasi-image {
  max-width: 100%;
  margin-top: 20px;
}

.akreditasi-cert-image {
  max-width: 80%;  /* Adjusted to make it smaller */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto; /* Center image */
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .akreditasi-section .section-title {
    font-size: 28px;  /* Reduce font size on mobile */
  }

  .akreditasi-box {
    padding: 20px;  /* Reduced padding on mobile */
    max-width: 80%;  /* Limit max-width for mobile to avoid box being too wide */
  }

  .akreditasi-heading {
    font-size: 20px;  /* Adjust heading size on mobile */
  }

  .akreditasi-deskripsi {
    font-size: 14px;  /* Smaller text for mobile */
  }

  .akreditasi-cert-image {
    max-width: 90%;  /* Image slightly larger on mobile */
  }
}

@media screen and (max-width: 480px) {
  .akreditasi-section .section-title {
    font-size: 24px;  /* Even smaller font on very small screens */
  }

  .akreditasi-box {
    padding: 15px;  /* Further reduce padding on very small screens */
    max-width: 95%;  /* Keep max-width limited for small screens */
  }

  .akreditasi-heading {
    font-size: 18px;  /* Adjust heading size on very small screens */
  }

  .akreditasi-deskripsi {
    font-size: 13px;  /* Even smaller text on very small screens */
  }

  .akreditasi-cert-image {
    max-width: 100%;  /* Image takes full width on very small screens */
  }
}


/* Section Video Profil Rumah Sakit */
.profil-video {
  background-color: #f4f4f4; /* Warna latar belakang netral */
  padding: 50px 0; /* Memberikan ruang di atas dan bawah */
}

.profil-video .container {
  max-width: 1200px;
  margin: 0 auto; /* Agar konten terpusat */
  padding: 0 20px;
}

.profil-video .section-title {
  font-size: 2rem;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  font-weight: normal;
  letter-spacing: 1px;
  text-decoration: none; /* Pastikan tidak ada garis bawah */
}


.profil-video .video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background-color: #fff; /* Latar belakang putih untuk video */
  border-radius: 8px; /* Sudut melengkung pada video */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Bayangan halus */
}

.profil-video .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px; /* Sudut melengkung pada iframe */
}
/* CSS untuk Judul Video Profil Rumah Sakit yang Simpel */
.video-section-title {
  font-size: 2rem; /* Ukuran font yang lebih sedang */
  color: #333; /* Warna teks gelap */
  text-align: center; /* Teks di tengah */
  margin-bottom: 15px; /* Jarak bawah */
  font-weight: 500; /* Ketebalan font normal */
}

.video-section-title::after {
  content: "";
  position: absolute;
  bottom: -5px; /* Garis bawah sedikit lebih rendah */
  left: 50%;
  transform: translateX(-50%); /* Membuat garis di tengah */
  width: 60px; /* Lebar garis */
  height: 3px; /* Ketebalan garis */
  background-color: #ffffff; /* Warna garis */
}


@media (max-width: 768px) {
  .profil-video .section-title {
    font-size: 1.6rem; /* Mengurangi ukuran font pada perangkat mobile */
    margin-bottom: 20px; /* Memberikan jarak lebih kecil pada perangkat mobile */
  }
  .video-section-title {
  font-size: 1.5rem; /* Ukuran font yang lebih sedang */
  color: #333; /* Warna teks gelap */
  text-align: center; /* Teks di tengah */
  margin-bottom: 15px; /* Jarak bawah */
  font-weight: 400; /* Ketebalan font normal */
}
  
  .profil-video .video-wrapper {
    padding-bottom: 56.25%; /* Menjaga rasio aspek 16:9 tetap konsisten pada mobile */
    border-radius: 5px; /* Sudut lebih kecil pada perangkat mobile */
  }
}

@media (max-width: 480px) {
  .profil-video .section-title {
    font-size: 1.4rem; /* Ukuran font lebih kecil untuk perangkat yang lebih kecil */
    margin-bottom: 15px;
  }
}




/* ================= HALAMAN LAYANAN ================= */

.layanan-section {
  padding: 40px 0 60px;
  text-align: center;
}

.layanan-desc {
  max-width: 700px;
  margin: 0 auto 45px;
  color: #4a5872;
  line-height: 1.6;
  font-size: 15px;
}

/* Grid box layanan */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* Box per layanan */
.layanan-box {
  background: #f7fbff;
  padding: 26px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(12, 60, 120, 0.06);
  transition: all 0.3s ease;
}

.layanan-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 28px rgba(12, 60, 120, 0.12);
}

/* Icon besar bulat */
.layanan-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e5eff, #00b4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
}

/* Judul layanan */
.layanan-box h3 {
  color: #0c3c78;
  margin-bottom: 8px;
  font-size: 17px;
}

/* Text layanan */
.layanan-box p {
  font-size: 14px;
  color: #4a5872;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  .layanan-desc {
    font-size: 14px;
  }
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


  /* Fix 100vw biar gak bikin kepotong di monitor beda */
.full-width {
  width: 100%;
  margin-left: calc(50% - 50vw);
}
/* ==== FULL WIDTH SECTION ==== */
.full-width-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}


/* ==== SECTION FULL-BLEED (background full layar, isi tetap center) ==== */
.section-full {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

/* ==================== RESPONSIVE HP / TABLET ==================== */

/* ---- HEADER & NAV ---- */
@media (max-width: 768px) {

  /* Bar biru atas (contact us) lebih rapat di HP */
  .top-bar-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
    padding: 4px 12px;
  }

  /* Header utama: buang padding kanan besar biar muat layar HP */
  .top-bar .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .logo-text {
    font-size: 18px;
  }

  /* Menu jadi dua baris, huruf sedikit lebih kecil */
  .nav-menu {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    padding-right: 0;
    margin-top: 4px;
  }

  .nav-menu a {
    font-size: 14px;
  }
}

/* ---- FOOTER & KONTEN BAWAH ---- */
@media (max-width: 600px) {

  /* Container footer tidak lagi geser kiri, tapi ada padding sisi */
  .site-footer .container {
    margin: 0 16px;
  }

  /* Kolom footer ditumpuk ke bawah */
  .footer-content {
    flex-direction: column;
    gap: 18px;
  }

  .footer-brand {
    margin-left: 0;
    max-width: 100%;
  }

  .footer-info {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }

  .footer-cards {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-card {
    width: 48%;        /* dua logo per baris di HP */
    min-width: 0;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;
  }
}

/* ---- SECTION KONTEN LAIN (stats, artikel, layanan) ---- */
@media (max-width: 600px) {

  /* Sumber daya kami */
  .rs-stats {
    padding: 50px 0;
  }

  .rs-stats-title {
    font-size: 22px;
  }

  .rs-stats-subtitle {
    font-size: 13px;
  }

  /* Artikel jadi 1 kolom full di HP */
  .artikel-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Layanan lingkaran: jarak lebih rapat */
  .layanan-list {
    gap: 24px;
  }

  .layanan-item {
    width: 200px;
    height: 200px;
  }
}
/* ===== NAVBAR MODE MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {

  /* top bar biru di HP */
  .top-bar-info {
    padding: 4px 10px;
    font-size: 11px;
    flex-direction: column;
    gap: 2px;
  }

  /* header: logo + hamburger */
  .top-bar .container {
    max-width: 100%;
    width: 100%;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-left {
    gap: 10px;
  }

  .logo-text {
    font-size: 16px;
  }

  .rs-tagline {
    font-size: 11px;
    /* kalau mau ringkas bisa:
    display:none;
    */
  }

  /* tombol hamburger kelihatan */
  .nav-toggle {
    display: flex;
  }

  /* panel menu putih full screen */
  .nav-menu {
    position: fixed;
    inset: 0;
    background: #ffffff;
    padding: 70px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 9998;
  }

  .nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: #155a9c;
  }

  .nav-menu a::after {
    display: none; /* hilangin underline animasi di HP */
  }

  /* saat tombol hamburger diklik */
  .nav-menu.is-open {
    transform: translateX(0);
  }

  /* backdrop gelap di belakang menu */
  .nav-backdrop {
      display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9997;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* MODE DESKTOP (≥ 769px) */
@@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    display: none;
  }

  .nav-menu.open {
    display: flex;
  }
}

/* ===== FINISHING HEADER DI HP (≤ 768px) ===== */
@media (max-width: 768px) {

  /* bikin header lebih tipis */
  .top-bar {
    padding: 4px 0 0;
  }

  /* bar biru "contact us" lebih rapi */
  .top-bar-info {
    padding: 4px 12px;
    font-size: 11px;
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
  }

  .info-left,
  .info-right {
    gap: 6px;
  }

  /* logo + teks */
  .top-bar .container {
    padding: 6px 14px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .header-left {
    flex: 1;                 /* logo+teks ambil ruang kiri */
    align-items: center;
    gap: 8px;
  }

  .rs-logo {
    width: 50px;
    height: 50px;
    padding: 4px;
    top: 0;                  /* hilangkan geser ke atas */
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  }

  .logo-text {
    font-size: 14px;
    line-height: 1.3;
    max-width: 210px;        /* biar nggak terlalu panjang */
  }

  /* tagline kecil, kalau mau bisa di-hide */
  .logo-subtitle,
  .rs-tagline {
    font-size: 10px;
    line-height: 1.2;
    color: #44618c;
    /* kalau mau ilang, tinggal uncomment:
    display: none;
    */
  }

  /* tombol hamburger pas di kanan */
  .nav-toggle {
    flex-shrink: 0;
  }
}
/* ==== OVERRIDE TERAKHIR: HEADER / MENU DI HP ==== */
@media (max-width: 768px) {

  /* Header rapih: logo + hamburger sejajar */
  .top-bar .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 6px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
  }

  .header-left {
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
  }

  .rs-logo {
    width: 52px;
    height: 52px;
    padding: 4px;
    top: 0;
  }

  .logo-text {
    font-size: 18px !important;
    line-height: 1.3;
    max-width: 220px;
    
  }

  .rs-tagline {
    font-size: 10px;
    line-height: 1.2;
  }

  /* pastikan tombol hamburger kelihatan */
  .nav-toggle {
    display: flex !important;
  }

  /* PANEL MENU PUTIH FULL SCREEN */
  .nav-menu {
    position: fixed !important;
    inset: 0 !important;
    padding: 72px 24px 24px !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    display: flex !important;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 9998;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 16px !important;
    font-weight: 500;
    color: #155a9c;
  }

  .nav-menu a::after {
    display: none !important;
  }

  /* BACKDROP ABU DI BELAKANG MENU */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9997;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}
/* === HERO DI MOBILE: FULL POTRET & MEJET HEADER === */
@media (max-width: 768px) {

  .hero-slider {
    height: calc(100vh - 80px); /* 80px kira-kira tinggi header */
    margin-top: 0;              /* hilangkan gap */
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.7),
      rgba(0,0,0,0.1)
    );
    padding: 24px 20px 28px;
    align-items: flex-end;
  }
}

/* Di desktop: backdrop disembunyikan saja */
@media (min-width: 769px) {
  .nav-backdrop {
    display: none !important;
  }
}

/* BACKDROP & DRAWER NAV HP */
.nav-backdrop {
    position: fixed;
    inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2000;            /* HARUS lebih besar dari header (header kamu 1000) */
}

.nav-backdrop .nav-drawer {
    width: 260px;
    max-width: 80%;
    background: #ffffff;
    padding: 20px 16px 32px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.25);
    transform: translateX(100%);     /* awalnya di luar layar */
    transition: transform 0.25s ease;
}

/* Saat tombol di-klik, JS kasih class .open */
.nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-backdrop.open .nav-drawer {
    transform: translateX(0);        /* geser masuk ke layar */
}
/* ===== DESKTOP ===== */
.nav-toggle {
    display: none;              /* desktop: tombol hilang */
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* ===== BACKDROP ===== */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1900;              /* di bawah header kalau mau */
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 38px;
        height: 32px;
        border: none;
        background: #055333;
        border-radius: 4px;
        padding: 4px;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background: #fff;
    }

    /* nav jadi drawer dari kanan */
    .nav-menu {
        position: fixed;
        top: 70px;                      /* sesuaikan tinggi header */
        right: 0;
        height: calc(100% - 70px);
        width: 260px;
        max-width: 80%;
        background: #ffffff;
        box-shadow: -4px 0 16px rgba(0,0,0,0.25);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px 32px;
        gap: 12px;
        transform: translateX(100%);    /* awalnya di luar layar */
        transition: transform 0.25s ease;
        z-index: 2000;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        text-decoration: none;
        color: #055333;
        padding: 6px 0;
    }

    /* saat body.nav-open: backdrop & menu muncul */
    body.nav-open .nav-menu {
        transform: translateX(0);
    }

    body.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

/* kunci scroll saat menu buka */
body.nav-open {
    overflow: hidden;
}
.nav-backdrop {
    z-index: 1500;
}

.nav-menu {
    z-index: 2000;   /* lebih tinggi dari backdrop */
    position: fixed;
}
/* === FINAL FIX NAVBAR MOBILE === */

/* Desktop: nav biasa, hamburger disembunyikan */
.nav-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  gap: 22px;
  align-items: center;
}

/* Mobile: panel kanan + backdrop */
@media (max-width: 768px) {

  /* tombol hamburger */
  .nav-toggle {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 32px;
    border: none;
    background: #155a9c;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  /* panel menu putih dari kanan */
  .nav-menu {
    position: fixed !important;
    top: 70px;                         /* sesuaikan tinggi header */
    right: 0;
    height: calc(100% - 70px);
    width: 260px;
    max-width: 80%;
    background: #ffffff !important;    /* supaya TIDAK ikut gelap */
    box-shadow: -4px 0 16px rgba(0,0,0,0.25);
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px 28px;
    transform: translateX(100%);       /* awalnya di luar layar */
    transition: transform 0.25s ease;
    z-index: 2000;                      /* di depan backdrop */
  }

  .nav-menu a {
    width: 100%;
    font-size: 16px !important;
    font-weight: 500;
    color: #155a9c;
    text-decoration: none;
    padding: 6px 0;
  }

  .nav-menu a::after {
    display: none !important;
  }

  /* backdrop abu di belakang menu */
  .nav-backdrop {
    position: fixed !important;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1500 !important;          /* di bawah panel menu */
  }

  /* saat body.nav-open di JS */
  body.nav-open .nav-menu {
    transform: translateX(0);
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

/* kunci scroll saat menu terbuka */
body.nav-open {
  overflow: hidden;
}

/* === URUTAN LAYER SUPAYA NAV TIDAK IKUT GELAP === */
.top-bar {
  z-index: 2100 !important;      /* header (logo + nav) paling atas */
}

.nav-backdrop {
  z-index: 2000 !important;      /* abu² di belakang header/nav */
}

.nav-menu {
  z-index: 2200 !important;      /* panel menu di atas semuanya */
  background: #ffffff !important;
}
/* === FIX AKHIR NAVBAR DESKTOP (≥ 769px) === */
@media (min-width: 769px) {

  /* tombol hamburger jangan tampil di desktop */
  .nav-toggle {
    display: none !important;
  }

  /* nav kembali jadi baris biasa */
  .nav-menu {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    z-index: 1001 !important;
  }

  .nav-menu a {
    font-size: 17px !important;
    color: rgb(41, 111, 192) !important;
  }

  /* backdrop tidak dipakai di desktop */
  .nav-backdrop {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* === FIX POSISI LOGO & NAV DI DESKTOP === */
@media (min-width: 769px) {

  /* container header harus row, bukan column */
  .top-bar .container {
    width: 95% !important;
    max-width: none !important;
    margin: 0 !important;              /* hilangkan margin auto */
    padding: 2px 40px !important;     /* jarak kiri/kanan dari tepi layar */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* logo blok kiri */
  .header-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-right: auto !important;
  }

  /* nav benar2 di kanan */
  .nav-menu {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 26px !important;
    margin-left: 30px !important;
    position: static !important;
    background: transparent !important;
  }
}

/* === POSISI LOGO DI DESKTOP (≥ 769px) === */
@media (min-width: 769px) {

  /* header: logo + nav sejajar tengah */
  .top-bar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .header-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
  }

  /* logo sedikit dinaikkan */
  .rs-logo {
    margin-top: -6px !important;   /* kalau kurang tinggi, ubah ke -8 / -10 */
  }
}
/* Desktop: bar alamat TAMPIL */
@media (min-width: 769px) {
  .top-bar-info {
    display: flex !important;
  }
}

/* HP: bar alamat DISSEMBUNYIKAN / diringkas */
@media (max-width: 768px) {
  .top-bar-info {
    display: none !important;
  }
}
/* ==== ALAMAT DI TOP HEADER ==== */

/* DESKTOP (≥ 769px) → alamat WAJIB tampil */
@media (min-width: 769px) {

  .info-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .info-right span {
    display: inline !important;      /* pastikan teks muncul */
    color: #ffffff !important;       /* biar kelihatan di background biru */
    white-space: nowrap;
  }
}

/* HP (≤ 768px) → alamat boleh di-hide / diringkas */
@media (max-width: 768px) {
  .info-right {
    display: none !important;
  }
}
/* === FOOTER BALANCE FIX — CENTER BENAR === */
.site-footer .container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* hilangkan offset lama */
.footer-brand {
  margin-left: 0 !important;
}

/* flex footer biar tidak condong ke kanan */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

/* kolom kanan (footer-info) agar tidak terlalu melebar */
.footer-info {
  flex: 0 0 300px;
  max-width: 300px;
}
/* === FINISHING POSISI FOOTER === */
.site-footer .container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;

  /* kiri kecil, kanan besar → kelihatan lebih geser kiri */
  padding-left: 5px !important;   /* bisa dinaikkan/diturunkan 10–30 */
  padding-right: 280px !important;  /* makin besar, makin geser ke kiri */
}

/* jangan ada geser tambahan */
.footer-brand {
  margin-left: 0 !important;
}

/* biar kolom kanan (logo) gak narik terlalu ke kanan */
.footer-info {
  flex: 0 0 280px;
  max-width: 280px;
}

/* === RAPATKAN KOLOM FOOTER === */
.footer-content {
  gap: 40px !important;      /* awalnya 60–80, sekarang lebih rapat */
}

/* Lebar maksimal tiap kolom */
.footer-col {
  min-width: 180px !important;
  max-width: 220px !important;   /* batasi biar tidak melebar */
}

/* Kolom footer brand tetap kecil */
.footer-brand {
  max-width: 260px !important;
}

/* Kolom "Media Informasi" + "Lainnya" biar tidak melebar */
.footer-info {
  gap: 20px !important;   /* awalnya 24, sedikit dirapatin */
}
/* ===== KUNCI JARAK KOLOM FOOTER ===== */
.site-footer .footer-content {
  display: flex !important;
  gap: 30px !important;          /* kecilkan jarak antar kolom */
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

/* Batasi ukuran tiap kolom biar tidak melebar */
.site-footer .footer-col {
  max-width: 220px !important;
}

/* footer brand tetap kecil */
.site-footer .footer-brand {
  max-width: 260px !important;
}

/* Kolom kanan (media info + logo) dirapatkan */
.site-footer .footer-info {
  display: flex !important;
  gap: 20px !important;
}
/* === GESER GAMBAR FOOTER KE KANAN DISEDIKIT === */
.site-footer .footer-cards {
  margin-left: 150px !important;   /* geser ke kanan */
}

/* ================== FOOTER DESKTOP (>= 992px) ================== */
@media (min-width: 992px) {

  /* container footer di tengah, geser sedikit ke kiri */
  .site-footer .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 80px !important;
  }

  .site-footer .footer-content {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 40px !important;
  }

  .site-footer .footer-col {
    max-width: 220px !important;
  }

  .site-footer .footer-brand {
    max-width: 260px !important;
    margin-left: 0 !important;
  }

  .site-footer .footer-info {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    align-items: center !important;
  }

  /* LOGO DIKANANKAN SEDIKIT, HANYA DI DESKTOP */
  .site-footer .footer-cards {
    margin-left: 24px !important;
    justify-content: flex-start !important;
  }
}

/* ================== FOOTER MOBILE / TABLET (< 992px) ================== */
@media (max-width: 991px) {

  /* container full, padding normal, TANPA geser aneh */
  .site-footer .container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
  }

  .site-footer .footer-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }

  .site-footer .footer-brand {
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .site-footer .footer-info {
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  /* LOGO DI HP: JANGAN DIGESER KE KANAN, TETAP RAPI DI BAWAH */
  .site-footer .footer-cards {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }

  .site-footer .footer-card {
    width: 60%;
    max-width: 260px;
    margin-left: 0 !important;
  }
}
/* === JARAK ANTARA KONTEN DAN FOOTER DI MOBILE === */
@media (max-width: 768px) {
  .footer-top-banner {
    margin-top: 40px;
  }
}
/* ===== HERO PROFIL ===== */
.profil-hero {
  width: 100%;
  height: 360px;
  background: url('assets/img/profil-banner.jpg') center/cover no-repeat;
  position: relative;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  margin-bottom: 40px;
}

.profil-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  justify-content: center;
  align-items: center;
}

.profil-hero-overlay h1 {
  color: white;
  font-size: 38px;
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

/* Mobile */
@media (max-width: 768px) {
  .profil-hero {
    height: 240px;
    border-radius: 0 0 16px 16px;
  }
  .profil-hero-overlay h1 {
    font-size: 26px;
  }
}

/* ===== FASILITAS GRID ===== */
.fasilitas-section {
  padding: 40px 0;
}

.fasilitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.fasilitas-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.fasilitas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.fasilitas-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.fasilitas-card h4 {
  margin: 14px 16px 6px;
  font-size: 18px;
  color: var(--blue);
}

.fasilitas-card p {
  margin: 0 16px 20px;
  font-size: 14px;
  color: #555;
}
/* === FULL BACKGROUND UNTUK PROFIL === */
.profil-bg {
  width: 100vw;               /* benar-benar selebar layar */
  margin-left: 50%;
  transform: translateX(-50%); /* hack supaya keluar dari container */
  position: relative;
  padding: 50px 0;
  background: url('../img/profile.png') center/cover no-repeat;
  overflow: hidden;
}

/* overlay biar teks tetap jelas */
.profil-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}

/* teks tetap di atas */
.profil-bg > * {
  position: relative;
  z-index: 2;
}

/* Background untuk Profil RS di Mobile */
@media (max-width: 768px) {
  .profil-bg {
    width: 100%;               /* Mengubah agar selebar container */
    margin-left: 0;
    transform: none;           /* Menghilangkan hack translateX */
    padding: 30px 0;           /* Mengurangi padding untuk mobile */
    background: url('../img/mobilebg.png') center/cover no-repeat; /* Ganti gambar untuk mobile */
    background-position: center; /* Posisikan background agar sesuai */
  }

  /* Overlay untuk mobile */
  .profil-bg::before {
    background: rgba(255, 255, 255, 0.7);  /* Kurangi opacity overlay agar tidak terlalu gelap */
    backdrop-filter: blur(3px); /* Kurangi blur untuk tampilan lebih ringan */
  }
  
  /* Teks dan elemen lain tetap berada di atas */
  .profil-bg > * {
    padding: 0 15px;            /* Memberikan ruang sedikit di samping untuk konten */
    font-size: 1rem;            /* Menyesuaikan ukuran font */
    text-align: center;         /* Menambahkan penataan teks di tengah */
  }
}

/* profil box tetap seperti sebelumnya */
.profil-box {
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 24px;
  max-width: 880px;
  margin: 0 auto 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
}
.profil-motto {
  font-size: 1.8rem; /* Ukuran font standar */
  color: #707070; /* Warna teks */
  text-align: center; /* Teks di tengah */
  font-style: italic; /* Membuat font miring untuk efek lebih elegan */
  margin-top: 20px; /* Jarak atas untuk memberi ruang */
  margin-bottom: 30px; /* Jarak bawah agar tidak terlalu rapat dengan konten lainnya */
  font-weight: bold; /* Memberikan ketebalan pada font */
  letter-spacing: 1px; /* Memberikan jarak antar huruf sedikit */
}

/* Motto pada perangkat mobile */
@media (max-width: 768px) {
  .profil-motto {
    font-size: 1.4rem; /* Ukuran font sedikit lebih kecil untuk mobile */
    font-weight: 600;
    text-align: center;
    color: #5c5c5c;
    letter-spacing: 1px; /* Menurunkan jarak antar huruf untuk mobile */
    margin: 30px 15px; /* Memberikan jarak kiri dan kanan yang lebih kecil */
  }

  .profil-motto::after {
    width: 50px; /* Lebar garis lebih kecil di mobile */
    height: 2px; /* Tinggi garis lebih tipis */
    margin: 10px auto 0; /* Menurunkan jarak garis bawah */
  }

  /* Styling untuk bagian card di mobile */
  .profil-grid {
    grid-template-columns: 1fr; /* Menyusun grid menjadi satu kolom di mobile */
    gap: 20px; /* Memberikan jarak antar card */
  }

  .profil-card {
    padding: 15px; /* Mengurangi padding card agar tidak terlalu besar */
  }

  .profil-heading {
    font-size: 1.2rem; /* Mengurangi ukuran heading di mobile */
  }

  .profil-card p, .profil-card ul {
    font-size: 0.95rem; /* Menyesuaikan ukuran font agar pas di layar kecil */
  }

  .profil-list li {
    font-size: 0.95rem; /* Mengurangi ukuran font list */
    margin-bottom: 8px; /* Jarak antar item lebih rapat */
  }
}

.kutipan {
  font-size: 12px;
  font-style: italic;
  border-left: 5px solid #2d6cdf;
  padding-left: 18px;
  color: #444;
  margin: 20px 0;
}

.kutipan .sumber {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #2d6cdf;
}
/* ==== RAPIKAN KARTU DOKTER DI MOBILE ==== */
@media (max-width: 768px) {

  /* ruang napas kanan-kiri */
  .dokter-list {           /* kalau nama list beda, pakai class wrapper daftar dokter-mu */
    padding: 16px 10px 80px;
  }

  .dokter-card {
    max-width: 360px;      /* biar kartunya nggak selebar layar */
    margin: 0 auto 18px;   /* center + jarak antar kartu */
    padding: 18px 14px 22px;
    border-radius: 22px;
    box-shadow: 0 8px 18px rgba(15,50,120,0.08);
  }

  /* foto dokter */
  .dokter-card .foto-dokter {
    width: 70%;           /* jangan full */
    max-width: 220px;
    height: auto;
    margin: 0 auto 12px;
    border-radius: 18px;
  }

  /* nama dokter */
  .dokter-card h3,
  .dokter-nama {
    font-size: 18px;
    text-align: center;
    margin: 8px 0 6px;
  }

  /* teks kecil (spesialis, poli) */
  .dokter-meta,
  .dokter-card p,
  .dokter-card li {
    font-size: 13px;
    text-align: center;
  }

  /* baris jadwal: label + badge ditumpuk biar nggak kepanjangan */
  .dokter-jadwal-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }

  .dokter-jadwal-label {
    font-size: 13px;
  }

  .jadwal-badge {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 999px;
  }
}
/* ===== STYLE PILL JADWAL DOKTER ===== */
/* ===== STYLE UMUM JADWAL (BIARKAN SEPERTI INI) ===== */
.jadwal-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
}

.jadwal-label {
  font-weight: 600;
  color: #0c3c78;
  margin-right: 8px;
}

.badge-hari {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef3ff;
  border: 1px solid #d5e0ff;
  font-size: 12px;
  color: #123f7a;
  white-space: nowrap;
}

/* ========== BLOK JADWAL UMUM (DESKTOP DEFAULT) ========== */

.jadwal-inline {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jadwal-label {
  font-weight: 600;
  color: #0c3c78;
  margin-right: 8px;
}

.jadwal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jadwal-grid .badge-hari {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: #eef3ff;
  border: 1px solid #d5e0ff;
  font-size: 13px;
  color: #123f7a;
  white-space: nowrap;   /* biar jam nggak patah di tengah */
}


/* ========== MOBILE: 2 PILL PER BARIS, LEBIH LEBAR ========== */

@media (max-width: 768px) {

  .jadwal-inline {
    display: block;
    text-align: center;
  }

  .jadwal-label {
    margin-right: 0;
    margin-bottom: 6px;
  }

  .jadwal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-items: center;
  }

  .jadwal-grid .badge-hari {
    width: 100%;
    max-width: 113px;
    font-size: 12px;
    white-space: normal;
  }

  /* Mobile: jika cuma 1 jadwal tetap center */
  .jadwal-grid.single {
    display: flex !important;
    justify-content: center !important;
  }
}

/* =========================
   HALAMAN ARTIKEL
   ========================= */

.artikel-page {
  background: radial-gradient(circle at top, #f3f8ff 0, #eef4fb 45%, #e8f0f7 100%);
  padding-bottom: 60px;
}

/* HERO */
.artikel-hero {
  padding: 40px 0 24px;
}

.artikel-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.artikel-hero-text h1 {
  font-size: 30px;
  color: #0c3c78;
  margin: 0 0 8px;
}

.artikel-hero-text p {
  margin: 0;
  color: #4a4f63;
  max-width: 420px;
  font-size: 14px;
}

.artikel-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.artikel-search input {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #c7d3f0;
  font-size: 14px;
  min-width: 220px;
  outline: none;
}

.artikel-search input:focus {
  border-color: #2d6cdf;
  box-shadow: 0 0 0 2px rgba(45,108,223,0.15);
}

/* FILTER KATEGORI */
.artikel-filter {
  padding-bottom: 10px;
}

.artikel-filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: #0c3c78;
  font-size: 14px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #c7d3f0;
  background: #ffffff;
  font-size: 13px;
  color: #2a3f68;
  text-decoration: none;
  transition: all 0.15s ease;
}

.chip:hover {
  background: #e5edff;
  border-color: #2d6cdf;
}

.chip.active {
  background: #2d6cdf;
  border-color: #2d6cdf;
  color: #ffffff;
}

/* GRID ARTIKEL */
.artikel-list-section {
  padding-top: 10px;
}

.artikel-empty {
  text-align: center;
  color: #666;
  padding: 40px 0;
}

.artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.artikel-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 50, 120, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.artikel-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.artikel-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 18px 0;
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2a3f68;
  border: 1px solid #d4e0ff;
  white-space: nowrap;
}

.badge-kategori {
  background: #e7f6ff;
  border-color: #bfe3ff;
  color: #1369a8;
}

.badge-tanggal {
  background: #f7f3ff;
  border-color: #dacbff;
  color: #5c3ea8;
}

.artikel-title {
  font-size: 18px;
  margin: 10px 18px 6px;
  color: #0c3c78;
}

.artikel-excerpt {
  margin: 0 18px 14px;
  font-size: 14px;
  color: #555;
}

.artikel-readmore {
  margin: 0 18px 16px;
  font-size: 13px;
  color: #2d6cdf;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.artikel-readmore i {
  font-size: 11px;
}

.artikel-readmore:hover {
  text-decoration: underline;
}

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 768px) {
  .artikel-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .artikel-hero-text h1 {
    font-size: 24px;
  }

  .artikel-search {
    width: 100%;
  }

  .artikel-search input {
    flex: 1;
    min-width: 0;
  }

  .artikel-filter-inner {
    align-items: flex-start;
  }
}
/* ============== HALAMAN ADMIN UMUM ============== */

.admin-page {
  padding: 30px 0 60px;
}

.admin-page h1 {
  font-size: 24px;
  color: #0c3c78;
  margin-bottom: 20px;
}

/* Alert */
.alert-success,
.alert-error {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: #e8f9f0;
  color: #0b6b3a;
  border: 1px solid #a7e3c5;
}

.alert-error {
  background: #ffecec;
  color: #b82020;
  border: 1px solid #f5b3b3;
}

/* Form admin */
.form-admin {
  background: #ffffff;
  padding: 20px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15,50,120,0.08);
  max-width: 720px;
  margin-bottom: 40px;
}

.form-admin .form-group {
  margin-bottom: 14px;
}

.form-admin label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e3257;
  font-size: 14px;
}

.form-admin input[type="text"],
.form-admin input[type="datetime-local"],
.form-admin input[type="file"],
.form-admin select,
.form-admin textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5f0;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.form-admin textarea {
  resize: vertical;
}

.form-admin input:focus,
.form-admin select:focus,
.form-admin textarea:focus {
  outline: none;
  border-color: #2d6cdf;
  box-shadow: 0 0 0 2px rgba(45,108,223,0.12);
}

.form-admin small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.form-admin .btn {
  background: #0b6b3a;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.form-admin .btn:hover {
  opacity: 0.95;
}

/* Responsif */
@media (max-width: 768px) {
  .form-admin {
    padding: 16px 14px;
  }

  .admin-page h1 {
    font-size: 20px;
  }
}
/* ========== TABEL ADMIN ARTIKEL ========== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,50,120,0.08);
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e6f5;
}

.admin-table thead {
  background: #0c3c78;
  color: #fff;
}

.admin-table tbody tr:nth-child(even) {
  background: #f7f9ff;
}

/* thumbnail kecil di tabel */
.thumb-mini {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* badge status */
.badge-status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.badge-publish {
  background: #e6f9ed;
  color: #0b6b3a;
}

.badge-draft {
  background: #fff4e6;
  color: #b26a00;
}

/* tombol aksi */
.btn-aksi {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  margin-right: 4px;
}

.btn-edit {
  background: #e6f0ff;
  color: #204a9b;
}

.btn-hapus {
  background: #ffe6e6;
  color: #b82020;
}
/* DETAIL ARTIKEL */
.artikel-detail-section {
  padding: 30px 0 60px;
}

.artikel-detail-wrapper {
  max-width: 820px;
}

.artikel-detail-header h1 {
  font-size: 26px;
  color: #0c3c78;
  margin-bottom: 8px;
}

.artikel-detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.artikel-detail-thumb img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(15,50,120,0.15);
  margin-bottom: 18px;
}

.artikel-detail-body .artikel-body {
  font-size: 15px;
  line-height: 1.7;
  color: #344054;
}

/* KUTIPAN DETAIL */
.kutipan-box {
  border-left: 4px solid #2d6cdf;
  padding: 14px 18px;
  background: #f4f6ff;
  border-radius: 10px;
  font-style: italic;
  color: #22345a;
}

/* CARD KUTIPAN DI GRID */
.artikel-card.artikel-quote {
  position: relative;
  text-align: left;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.artikel-card.artikel-quote .quote-icon {
  font-size: 42px;
  color: #d0dcff;
  line-height: 1;
  margin-bottom: 6px;
}

.artikel-card.artikel-quote .quote-text {
  font-size: 15px;
  font-style: italic;
  color: #22345a;
  margin: 0 0 10px;
}
.home-artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.home-artikel-card {
  background:#fff;
  border-radius:20px;
  box-shadow:0 15px 30px rgba(15,50,120,.08);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.home-artikel-thumb img {
  width:100%;
  height:200px;
  object-fit:cover;
}

.home-artikel-body {
  padding:18px 20px 20px;
}

.home-artikel-excerpt {
  font-size:14px;
  color:#555;
  margin:8px 0 14px;
}

.home-artikel-more {
  font-size:14px;
  color:#1a56db;
  font-weight:600;
}
/* ================= LAYANAN TERBARU ================= */
.judul-center{
    text-align:center;
    font-size:28px;
    font-weight:700;
    color:#003b74;
    margin-bottom:25px;
}

.layanan-terbaru-grid{
    max-width:900px;
    margin:auto;
    display:grid;
    grid-template-columns: repeat(2,1fr);
    gap:18px;
}

.layanan-card-img{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.07);
    text-align:center;
}

.layanan-card-img img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.layanan-title{
    padding:10px 0;
    font-weight:600;
    color:#003b74;
}

/* ================= LAYANAN KAMI ================= */
.layanan-kami-grid{
    max-width:1050px;
    margin:35px auto;
    display:grid;
    gap:22px;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
}

.layanan-box-foto{
    background:white;
    border-radius:14px;
    overflow:hidden;
    text-align:center;
    box-shadow:0 10px 24px rgba(0,0,0,0.06);
}

.layanan-box-foto img{
    width:100%;
    height:170px;
    object-fit:cover;
}

.layanan-box-foto h3{
    margin:12px 0;
    font-size:16px;
    font-weight:600;
    color:#003b74;
}

/* Responsive */
@media(max-width:700px){
    .layanan-terbaru-grid{ grid-template-columns:1fr; }
}
/* ============= KONTAK PAGE ============= */
.kontak-page {
  padding: 32px 0 40px;
}

.kontak-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

.kontak-info-card,
.kontak-form-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(15, 50, 120, 0.06);
  padding: 20px 22px;
}

.kontak-info-card p {
  font-size: 14px;
  color: #444;
}

.kontak-info-card a {
  color: #1a56db;
  text-decoration: none;
}

.kontak-info-card a:hover {
  text-decoration: underline;
}

.kontak-buttons {
  margin: 14px 0 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kontak-map {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
}

/* FORM */
.kontak-form-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kontak-form-card label {
  font-size: 14px;
  font-weight: 600;
  color: #0c3c78;
}

.kontak-form-card input,
.kontak-form-card textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  outline: none;
}

.kontak-form-card input:focus,
.kontak-form-card textarea:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 1px rgba(26, 86, 219, 0.15);
}

.kontak-form-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .kontak-layout {
    grid-template-columns: 1fr;
  }
}
.kontak-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: flex-start;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .kontak-layout {
    grid-template-columns: 1fr;
  }
}

.kontak-alert {
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(15, 50, 120, 0.18);
}

.kontak-alert .icon {
  font-weight: bold;
  font-size: 18px;
}

/* sukses */
.kontak-alert.success {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
}

/* error */
.kontak-alert.error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* ================= FOOTER ADMIN (BIRU PUTIH) ================= */
.admin-footer {
  margin-top: 40px;
  background: #0c3c78;        /* Biru utama */
  border-top: 4px solid #1e5fbf;
  color: #ffffff;
}

.admin-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.admin-footer-right {
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12.5px;
}
/* ================= NAV ADMIN TETAP DI ATAS SAAT SCROLL ================= */
.top-bar {
  position: sticky; 
  top: 0;
  z-index: 9999;     /* paling atas */
}

/* Responsive */
@media(max-width:780px){
  .admin-footer-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* ===== HEADER JADWAL DOKTER (DESKTOP) ===== */
.dokter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 32px 0 20px;
}

/* form cari */
.dokter-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* input di desktop: fleksibel */
.dokter-search input {
  flex: 1;
}

/* ===== MOBILE: form cari jangan selebar layar ===== */
@media (max-width: 768px) {

  .dokter-header {
    flex-direction: column;
    align-items: center;          /* judul + form di tengah */
    text-align: center;
  }

  .dokter-search {
    width: 100%;
    max-width: 320px;            /* ⬅️ lebar maksimal form */
    margin: 0 auto;    
    margin-bottom: 20px;          /* di-tengah */
    flex-direction: row;
  }

  .dokter-search input {
    width: 100%;
  }
}
/* ================== DESKTOP ================== */
@media (min-width: 769px) {
    .dokter-search {
        width: 380px;     /* ⬅️ ukuran form pencarian */
    }

    .dokter-search input {
        width: 100%;      /* biar mengikuti box */
    }
}
/* tombol close di menu mobile */
.nav-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 30px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #2362a8;       /* biru sama seperti link */
  font-weight: 700;
}

/* di desktop tombol close disembunyikan */
@media (min-width: 769px) {
  .nav-close {
    display: none;
  }
}

/* === TUNING JADWAL DOKTER DI DESKTOP (≥ 992px) === */
@media (min-width: 992px) {

  /* Biar wrapper nggak terlalu lebar dan isi cenderung ke tengah */
  .jadwal-dokter-wrapper {
    max-width: 500px;          /* sebelumnya 1200px, kita kecilkan */
    margin: 30px auto;
    justify-items: center;     /* semua card di-center di grid */
  }

  /* Batasi lebar kartu supaya nggak “molor” ke samping */
  .jadwal-card {
    width: 100%;
    max-width: 520px;          /* sesuaikan selera (480–560 masih oke) */
    height: 300px;             /* sedikit lebih tinggi biar proporsional */
  }

  /* Sedikit geser & besarkan foto di desktop */
  .jadwal-bg {
    width: 55%;                /* sedikit lebih besar */
    right: -8px;
    bottom: -8px;              /* diturunkan dikit biar nggak keliatan terlalu ke atas */
  }

  /* Tulisan di kiri tetap rapi */
  .jadwal-content {
    max-width: 70%;
    padding: 24px 24px 22px;
  }
}
@media (min-width: 992px) {
  .jadwal-bg {
      transform: scale(0.82);
      object-position: center 75px;
  }
}
/* ======== DESKTOP: tampil 3 kolom ======== */
@media (min-width: 992px) {
    .jadwal-dokter-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* jadikan 3 kolom */
        gap: 30px;
        max-width: 1200px;
        margin: 30px auto;
    }

    .jadwal-card {
        height: 290px;       /* optional: sesuaikan tinggi kartu */
    }
}
@media (min-width: 992px) {
    .jadwal-bg {
        transform: scale(1);       /* ukuran foto lebih besar  */
        object-fit: cover;
        object-position: center;      /* posisi tengah */
        transition: 0.3s ease-in-out; /* biar halus */
    }
}
@media (max-width: 768px) {
  .jadwal-bg {
    width: 38%;  /* menurunkan ukuran gambar pada tampilan mobile */
    right: -8px;
    bottom: -35px;
  }
}

/* Paragraf */
.profil-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  text-align: justify;
}

/* List misi */
.profil-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Item list */
.profil-list li {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #555;
  padding: 10px 14px 10px 42px;
  margin-bottom: 10px;
  background: #f8faff;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Icon custom */
.profil-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #1f3c88;
  font-weight: bold;
  font-size: 1rem;
}

/* Hover effect */
.profil-list li:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

/* ASURANSI DAN KERJA SAMA */.asuransi-section {
  background-color: #f4f6f9;
  padding: 40px 0;
}

.asuransi-list {
  display: flex;
  justify-content: center; /* Menyusun gambar di tengah */
  align-items: center; /* Menyusun gambar secara vertikal di tengah */
  gap: 20px; /* Menambah jarak antar gambar */
  flex-wrap: wrap; /* Membuat gambar membungkus ketika ukuran layar kecil */
}

.asuransi-item {
  padding: 15px;
  text-align: center;
  width: 150px; /* Ukuran tetap untuk semua item */
  display: flex;
  justify-content: center;
  align-items: center;
}

.asuransi-item img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.asuransi-item.jr img {
  max-width: 100px; /* Ukuran lebih besar untuk AdMedika, lebih kecil dari sebelumnya */
}

.asuransi-item.admedika img {
  max-width: 200px; /* Ukuran lebih besar untuk AdMedika, lebih kecil dari sebelumnya */
}

.asuransi-title {
  font-size: 1.6rem;
  color: #808080;
  font-style: italic;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-decoration: none !important;
  text-align: center;
}

.asuransi-item p {
  margin-top: 10px;
  font-weight: normal;
  font-size: 1rem;
  text-align: center;
}

.layanan-top{
    padding:80px 6%;
    background:#fff;
    margin-top: -70px;
}

/* GRID FOTO */
.layanan-foto-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:25px;
    margin-bottom:60px;
}

.layanan-foto-grid img{
    width: 75%;              /* ← diperkecil tampilannya */
    height: 380px;           /* ← lebih pendek dari 450px */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    margin: auto;            /* ← biar tetap di tengah */
    display: block;
}


/* DESKRIPSI */
.layanan-deskripsi{
    max-width:900px;
    margin:auto;
    text-align:center;
}

.layanan-deskripsi h3{
    font-size:1.4rem;
    color:#504f4f;
    margin-top:-50px;
    margin-bottom:5px;
}

.layanan-deskripsi p{
    font-size:1rem;
     margin-top: -4px;
     margin-bottom: 50px;
    line-height:1.8;
    color:#444;
}

@media (max-width: 768px) {
  .layanan-top{
    padding:80px 6%;
    background:#fff;
    margin-top: -70px;
}

/* GRID FOTO */
.layanan-foto-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:25px;
    margin-bottom:60px;
}

.layanan-foto-grid img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

/* DESKRIPSI */
.layanan-deskripsi{
    max-width:900px;
    margin:auto;
    text-align:center;
}

.layanan-deskripsi h3{
    font-size:1.4rem;
    color:#504f4f;
    margin-top:-50px;
    margin-bottom:5px;
}

.layanan-deskripsi p{
    font-size:1rem;
     margin-top: -4px;
     margin-bottom: 50px;
    line-height:1.8;
    color:#444;
}

}

.sosmed-list{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-top:25px;
}

/* CARD */
.sosmed-item{
    display:flex;
    align-items:center;
    gap:16px;
    padding:16px 18px;
    background:#fff;
    border-radius:16px;
    text-decoration:none;
    color:#222;
    box-shadow:0 8px 20px rgba(0,0,0,.06);
    transition:.25s ease;
}

.sosmed-item:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(0,0,0,.12);
}

/* ICON CONTAINER */
.sosmed-icon{
    width:52px;
    height:52px;
    border-radius:14px;   /* mirip icon HP */
    background:#f4f4f4;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

/* LOGO IMAGE */
.sosmed-icon img{
    width:70%;
    height:70%;
    object-fit:contain;   /* jaga resolusi & proporsi */
}

.sosmed-icon.wa img{
    width:120%;
    height:120%;
    object-fit:contain;   /* jaga resolusi & proporsi */
}
.sosmed-icon.fb img{
    width:110%;
    height:110%;
    object-fit:contain;   /* jaga resolusi & proporsi */
}

/* TEXT */
.sosmed-item strong{
    font-size:15px;
    display:block;
}

.sosmed-item p{
    font-size:13px;
    margin-top:2px;
    color:#666;
}

.layanan-wa-link {
    display: block;
}

.layanan-wa-link img {
    cursor: pointer;
    transition: .25s ease;
}

.layanan-wa-link img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
}
