/* ============================================================
   MOCKUP WEBSITE PROFIL RSUD — Tema Kustom
   Mudah disesuaikan: ganti variabel warna di :root sesuai brand RSUD
   ============================================================ */

:root {
  --rs-primary: #0b5ed7;      /* biru medis */
  --rs-primary-dark: #084298;
  --rs-accent: #1c9e7c;       /* hijau aksen */
  --rs-accent-dark: #157a60;
  --rs-danger: #dc3545;
  --rs-warning: #f0ad4e;
  --rs-ink: #1f2937;          /* teks utama */
  --rs-muted: #6b7280;
  --rs-bg-soft: #f5f7fb;
  --rs-border: #e5e7eb;
  --rs-radius: 14px;
  --rs-shadow: 0 6px 24px rgba(16, 24, 40, 0.08);
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--rs-ink);
  background: #fff;
  font-size: 0.975rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, .display-5, .navbar-brand {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

.text-accent { color: var(--rs-accent) !important; }
.bg-soft { background: var(--rs-bg-soft) !important; }

/* ---------- Tombol ---------- */
.btn-rs {
  background: var(--rs-primary);
  border-color: var(--rs-primary);
  color: #fff;
  font-weight: 500;
}
.btn-rs:hover { background: var(--rs-primary-dark); border-color: var(--rs-primary-dark); color: #fff; }
.btn-accent { background: var(--rs-accent); border-color: var(--rs-accent); color: #fff; font-weight: 500; }
.btn-accent:hover { background: var(--rs-accent-dark); border-color: var(--rs-accent-dark); color: #fff; }
.btn-outline-rs { color: var(--rs-primary); border-color: var(--rs-primary); font-weight: 500; }
.btn-outline-rs:hover { background: var(--rs-primary); color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--rs-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}
.topbar a { color: rgba(255, 255, 255, 0.85); }
.topbar a:hover { color: #fff; }

/* ---------- Navbar ---------- */
.navbar {
  box-shadow: var(--rs-shadow);
  background: #fff;
}
.navbar-brand { color: var(--rs-primary-dark) !important; display: flex; align-items: center; gap: .6rem; }
.navbar-brand .logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--rs-primary), var(--rs-accent));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
}
.navbar-brand small { color: var(--rs-muted); font-weight: 400; font-size: .72rem; display: block; line-height: 1; }
.navbar .nav-link { color: var(--rs-ink); font-weight: 500; font-size: .92rem; padding: .5rem .85rem !important; border-radius: 8px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--rs-primary); background: var(--rs-bg-soft); }
.dropdown-menu { border: 1px solid var(--rs-border); box-shadow: var(--rs-shadow); border-radius: 12px; }
.dropdown-item:active { background: var(--rs-primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(8,66,152,.92), rgba(28,158,124,.85)),
              url('https://placehold.co/1600x600/0b5ed7/ffffff?text=+') center/cover;
  color: #fff;
  padding: 5rem 0;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.hero .lead { color: rgba(255,255,255,.92); }
.hero .quick-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: var(--rs-radius); padding: 1rem; display: block; height: 100%;
  transition: .2s;
}
.hero .quick-btn:hover { background: rgba(255,255,255,.28); transform: translateY(-3px); }
.hero .quick-btn i { font-size: 1.6rem; }

/* ---------- Section ---------- */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-title { position: relative; margin-bottom: 2rem; }
.section-title h2 { font-size: 1.6rem; margin-bottom: .35rem; }
.section-title p { color: var(--rs-muted); margin: 0; }
.section-title .bar { width: 56px; height: 4px; border-radius: 4px; background: var(--rs-accent); margin-top: .6rem; }
.section-title.text-center .bar { margin-left: auto; margin-right: auto; }

/* ---------- Kartu ---------- */
.card {
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  transition: .2s;
}
/* hanya kartu grid (ber-hover-lift) yang dibuat sama tinggi dalam satu baris,
   agar kartu mandiri (mis. profil dokter) tidak ikut melar */
.card.hover-lift { height: 100%; display: flex; flex-direction: column; }
.card.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--rs-shadow); }
.card.hover-lift .card-body { flex: 1 1 auto; }
.card-img-top {
  border-top-left-radius: var(--rs-radius);
  border-top-right-radius: var(--rs-radius);
  /* kotak berukuran tetap; gambar mengisi penuh lebar & tinggi (potong seperlunya) */
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-card { text-align: center; padding: 1.75rem 1rem; }
.service-card .icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 1.7rem;
  background: var(--rs-bg-soft); color: var(--rs-primary);
}
.service-card:hover .icon { background: var(--rs-primary); color: #fff; }

/* ---------- Statistik ---------- */
.stat-box { text-align: center; padding: 1.25rem; }
.stat-box .num { font-family: 'Poppins'; font-size: 2rem; font-weight: 700; color: var(--rs-primary); }
.stat-box .lbl { color: var(--rs-muted); font-size: .9rem; }

/* ---------- Badge status ---------- */
.badge-tersedia { background: rgba(28,158,124,.12); color: var(--rs-accent-dark); }
.badge-penuh { background: rgba(220,53,69,.12); color: var(--rs-danger); }
.badge-cuti { background: rgba(240,173,78,.16); color: #b9770e; }
.badge-soft { font-weight: 500; padding: .4em .7em; border-radius: 8px; }

/* ---------- Tabel ---------- */
.table-rs thead th { background: var(--rs-bg-soft); color: var(--rs-ink); font-weight: 600; border-bottom: 2px solid var(--rs-border); white-space: nowrap; }
.table-rs td { vertical-align: middle; }

/* indikator data SIMRS */
.simrs-note { font-size: .85rem; color: var(--rs-muted); }
.update-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--rs-bg-soft); border-radius: 999px; padding: .35rem .85rem; font-size: .82rem; color: var(--rs-muted); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--rs-accent); box-shadow: 0 0 0 0 rgba(28,158,124,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(28,158,124,.5)} 70%{box-shadow:0 0 0 8px rgba(28,158,124,0)} 100%{box-shadow:0 0 0 0 rgba(28,158,124,0)} }

/* bed availability mini bar */
.bed-bar { height: 8px; border-radius: 999px; background: var(--rs-border); overflow: hidden; }
.bed-bar > span { display: block; height: 100%; background: var(--rs-accent); }

/* ---------- Page header / breadcrumb ---------- */
.page-header {
  background: linear-gradient(120deg, var(--rs-primary-dark), var(--rs-primary));
  color: #fff; padding: 2.5rem 0;
}
.page-header h1 { font-size: 1.8rem; margin: 0; }
.page-header .breadcrumb { margin: .5rem 0 0; }
.page-header .breadcrumb a { color: rgba(255,255,255,.85); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.7); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- Dokter ---------- */
.doctor-card .card-img-top { height: 240px; }
.doctor-card .card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.doctor-card .card-body .btn { margin-top: auto; }
.doctor-card .spec { color: var(--rs-accent-dark); font-size: .85rem; font-weight: 500; }

/* ---------- Galeri ---------- */
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--rs-radius); transition: .2s; }
.gallery-item:hover img { filter: brightness(.92); transform: scale(1.01); }

/* ---------- Footer ---------- */
.footer { background: #0f2238; color: rgba(255,255,255,.75); }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.footer h6 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.footer .brand-line { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: 'Poppins'; font-weight: 600; }
.footer .logo-mark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--rs-primary), var(--rs-accent)); display: grid; place-items: center; color:#fff; font-weight:700; }
.footer-bottom { background: #0a1828; color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-grid; place-items: center; margin-right: .4rem; }
.footer-social a:hover { background: var(--rs-primary); }

/* ---------- Hero Carousel ---------- */
.hero-carousel .carousel-item { height: 460px; }
.hero-carousel .slide {
  height: 100%;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  position: relative; color: #fff;
}
.hero-carousel .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,66,152,.92), rgba(28,158,124,.6)); }
.hero-carousel .slide > .container { position: relative; z-index: 2; }
.hero-carousel .slide h1 { font-size: clamp(1.6rem, 3.5vw, 2.7rem); }
.hero-carousel .carousel-indicators { z-index: 3; }
/* Perkecil area klik prev/next agar tidak menghalangi konten */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: auto;
  top: 50%; bottom: auto;
  transform: translateY(-50%);
  padding: 0;
  opacity: 1;
}
.hero-carousel .carousel-control-prev { left: 1rem; }
.hero-carousel .carousel-control-next { right: 1rem; }
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 2.5rem; height: 2.5rem;
  background-color: rgba(255,255,255,.2);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background-size: 55%;
  backdrop-filter: blur(4px);
  transition: background-color .2s;
}
.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(255,255,255,.4);
}
.hero-quick { background: var(--rs-bg-soft); }
.hero-quick .qbtn { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-radius: var(--rs-radius); background: #fff; border: 1px solid var(--rs-border); transition: .2s; height: 100%; }
.hero-quick .qbtn:hover { transform: translateY(-3px); box-shadow: var(--rs-shadow); }
.hero-quick .qbtn i { font-size: 1.5rem; color: var(--rs-primary); }

/* ---------- Kartu Paket MCU ---------- */
.mcu-card { border: 1px solid var(--rs-border); border-radius: var(--rs-radius); height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: .2s; }
.mcu-card:hover { transform: translateY(-4px); box-shadow: var(--rs-shadow); }
.mcu-card .mcu-head { background: linear-gradient(135deg, var(--rs-primary), var(--rs-accent)); color: #fff; padding: 1.1rem 1.25rem; }
.mcu-card .price { font-family: 'Poppins'; font-size: 1.5rem; font-weight: 700; color: var(--rs-primary); }
.mcu-card .price small { font-size: .8rem; color: var(--rs-muted); font-weight: 400; }
.mcu-card .badge-promo { background: var(--rs-danger); color: #fff; }

/* ---------- Grid Logo Asuransi ---------- */
.insurer { background: #fff; border: 1px solid var(--rs-border); border-radius: 12px; padding: 1rem; display: grid; place-items: center; height: 90px; transition: .2s; }
.insurer img { max-height: 46px; max-width: 100%; filter: grayscale(100%); opacity: .7; transition: .2s; }
.insurer:hover { box-shadow: var(--rs-shadow); }
.insurer:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Thumbnail Video ---------- */
.video-thumb { position: relative; display: block; border-radius: var(--rs-radius); overflow: hidden; }
.video-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: .2s; }
.video-thumb:hover img { transform: scale(1.03); }
.video-thumb .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--rs-danger); font-size: 1.5rem; }
.video-thumb .vlabel { position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: .9rem; }

/* ---------- Section Pendaftaran ---------- */
.daftar-card { border: 1px solid var(--rs-border); border-radius: var(--rs-radius); padding: 1.5rem; height: 100%; }
.daftar-card .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--rs-bg-soft); color: var(--rs-primary); margin-bottom: 1rem; }

/* ---------- Branding swatch ---------- */
.swatch { border-radius: 12px; height: 90px; display: flex; align-items: flex-end; padding: .5rem .7rem; color: #fff; font-size: .78rem; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }

/* ---------- Media Sosial ---------- */
.social-btn { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--rs-border); background: #fff; color: var(--rs-ink); transition: .2s; }
.social-btn:hover { transform: translateX(4px); box-shadow: var(--rs-shadow); color: var(--rs-ink); }
.social-btn .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; }
.ig-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; transition: .2s; }
.ig-grid a:hover img { filter: brightness(.9); }

/* ---------- Tombol WhatsApp mengambang ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1050; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Util ---------- */
.fw-medium { font-weight: 500; }
.bg-emergency { background: var(--rs-danger); color: #fff; }
.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding-left: 1.8rem; margin-bottom: .5rem; }
.list-check li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--rs-accent); }
