/* ===== GLOBAL VARIABLES ===== */
:root {
  --primary-blue: #0d6efd;
  --primary-blue-dark: #0a58ca;
  --primary-blue-light: #e7f1ff;
  --hospital-green: #2d9c8a;
  --hospital-green-light: #e6f4f1;
  --accent-gold: #ffc107;
  --accent-purple: #6f42c1;
  --dark-text: #1a1a1a;
  --gray-text: #6c757d;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --footer-bg: #1e2a3a;
  --footer-text: #f8f9fa;
  --footer-text-muted: #a0b3c9;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 50px rgba(13, 110, 253, 0.12);
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);

  --gradient-primary: linear-gradient(135deg, #0d6efd, #10b981);
  --text-dark: #1e293b;
  --text-gray: #475569;
  --text-muted: #64748b;
  --shadow-hover: 0 30px 45px -15px rgba(13, 110, 253, 0.2);
  --border-radius-card: 28px;
  --border-radius-default: 20px;

  /* NEW MODERN PALETTE (tetap dipertahankan untuk konten detail) */
  --deep-navy: #13294b;
  --soft-slate: #4a5b6e;
  --mint-fresh: #6cace4;
  --warm-sand: #f2e9e4;
  --pure-white: #ffffff;
  --card-bg: #ffffff;
  --gradient-2: linear-gradient(135deg, #0d6efd 0%, #2d9c8a 100%);
  --border-light: rgba(100, 116, 139, 0.12);
  --blue-main: #0d6efd;
  --blue-soft: #e7f0ff;
  --text-dark: #1f2937;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--light-bg);
  color: var(--dark-text);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}
/* ===== NAVBAR STYLES ===== */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-bottom: 1px solid rgba(13, 110, 253, 0.1);
}

.navbar .container {
  max-width: 1400px;
}

.navbar-brand.brand-rs {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-rs {
  height: 45px;
  width: auto;
  margin-right: 12px;
  filter: drop-shadow(0 4px 8px rgba(13, 110, 253, 0.2));
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-item .nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  padding: 0.8rem 1.2rem !important;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
  background: linear-gradient(
    135deg,
    var(--primary-blue-light),
    var(--hospital-green-light)
  );
  color: var(--primary-blue) !important;
}

.nav-item .nav-link::after {
  display: none;
}

/* ===== DROPDOWN STYLES - FIXED VERSION ===== */

/* Basic dropdown styles */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  background: white;
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.dropdown-item {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--dark-text);
}

.dropdown-item:hover,
.dropdown-item.active {
  background: linear-gradient(
    135deg,
    var(--primary-blue-light),
    var(--hospital-green-light)
  );
  color: var(--primary-blue);
  transform: translateX(5px);
}

/* Dropdown toggle arrow */
.dropdown-toggle::after {
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Desktop styles (min-width: 992px) */
@media (min-width: 992px) {
  /* First level dropdown - show on hover */
  .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeInDown 0.2s ease;
  }

  /* Submenu (dropend) positioning */
  .dropend {
    position: relative;
  }

  .dropend > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0.25rem;
  }

  /* Show submenu on hover */
  .dropend:hover > .dropdown-menu {
    display: block;
  }

  /* Arrow untuk dropend (submenu) */
  .dropend > .dropdown-toggle::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    border: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
  }

  .dropend:hover > .dropdown-toggle::after {
    transform: translateY(-50%) translateX(3px);
  }

  /* Remove arrow for dropend items */
  .dropend .dropdown-toggle::before {
    display: none;
  }

  /* Animation */
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mobile styles (max-width: 991px) */
@media (max-width: 991px) {
  /* Reset dropdown positioning */
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }

  .dropdown-menu {
    position: static !important;
    float: none !important;
    width: auto !important;
    margin-top: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 1rem !important;
  }

  /* Style for dropdown items in mobile */
  .dropdown-item {
    padding: 0.8rem 1rem !important;
    white-space: normal;
    word-wrap: break-word;
  }

  /* Submenu in mobile */
  .dropend > .dropdown-menu {
    margin-left: 1rem !important;
    padding-left: 1rem !important;
    border-left: 2px solid var(--primary-blue) !important;
    background: rgba(13, 110, 253, 0.02) !important;
  }

  /* Better touch targets */
  .dropdown-toggle {
    position: relative;
    padding-right: 2.5rem !important;
  }

  .dropdown-toggle::after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Dropend arrow in mobile */
  .dropend > .dropdown-toggle::after {
    content: "\f107" !important;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    border: none;
  }

  /* When dropdown is open */
  .dropend.show > .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Ensure clicks work */
  .dropdown-item {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Background for open dropdowns */
  .dropdown.show > .dropdown-toggle {
    background: linear-gradient(
      135deg,
      var(--primary-blue-light),
      var(--hospital-green-light)
    );
    border-radius: 50px;
  }
}

.btn-slide {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-slide-primary {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  color: white;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-slide-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.4);
  color: white;
}

.btn-slide-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-slide-outline:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
}

/* Z-index fixes */
.navbar {
  z-index: 1030;
}

.dropdown-menu {
  z-index: 1031;
}

.dropdown .dropdown-menu .dropdown-menu {
  z-index: 1032;
}

/* Prevent text selection issues */
.dropdown-item {
  user-select: none;
  -webkit-user-select: none;
}

/* Fix for Bootstrap's default behavior */
.dropdown-menu[data-bs-popper] {
  margin-top: 0;
}

/* Ensure submenu stays visible when hovering */
.dropend {
  position: relative;
}

.dropend .dropdown-menu {
  min-width: 200px;
}

/* ===== MODERN HERO SECTION ===== */
.hero {
  position: relative;
  overflow: visible !important;
  height: 40vh; /* turunin dari 80vh */
  min-height: 450px; /* kecilin juga min-height */
  overflow: hidden;
  width: 100%;
}
.hero .swiper-pagination {
  top: 20px !important;
  bottom: auto !important;
  z-index: 20 !important;
}

.swiper-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Overlay gradient yang lebih modern */
.slide-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    rgba(19, 41, 75, 0.9) 0%,
    rgba(19, 41, 75, 0.5) 50%,
    rgba(108, 172, 228, 0.4) 100%
  );
  z-index: 2;
}

/* Kontainer konten */
.slide-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
}

.slide-content .container {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 15px;
}

.slide-content .row {
  width: 100%;
  min-height: 500px;
  align-items: center;
  margin: 0;
}

/* Styling teks utama */
.hero .slide-text {
  max-width: 600px;
  animation: fadeInUp 0.8s ease;
  position: relative;
  z-index: 10;
  padding: 20px 0;
}

.hero .slide-subtitle {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

.hero .slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero .slide-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 550px;
}

/* Buttons */
.hero .slide-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero .btn-slide {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: none;
  cursor: pointer;
}

.hero .btn-slide-primary {
  background: linear-gradient(135deg, #0d6efd, #2d9c8a);
  color: white;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.hero .btn-slide-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(13, 110, 253, 0.4);
  color: white;
}

.hero .btn-slide-outline {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero .btn-slide-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  border-color: white;
  color: white;
}

/* Info Cards */
.hero .hero-info-grid {
  background: #002d72;
  backdrop-filter: blur(20px);
  padding: 1rem 2.5rem; /* Padding atas-bawah dikurangi agar lebih ramping */
  border-radius: 100px; /* Gunakan pill-shape agar terlihat modern */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3); /* Tambahin border putih transparan */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  width: fit-content; /* Box akan mengikuti lebar konten saja */
  max-width: 90%;
  margin: 0 auto;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem; /* Jarak antar informasi lebih lebar */

  position: absolute;
  bottom: -12px; /* Naikkan sedikit agar tidak terlalu jauh ke bawah */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999 !important;
}

.hero .hero-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
}

/* Tambahkan garis pemisah vertikal di tengah */
.hero .hero-info-item:not(:last-child) {
  border-right: 1px solid #e0e0e0;
  padding-right: 3rem;
}

.hero .hero-info-item i {
  font-size: 2rem; /* Perkecil ikon  */
  min-width: 40px;
  background: linear-gradient(135deg, #34eb46, #34eb46);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .hero-info-item .info-label {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 0;
}

.hero .hero-info-item .info-value {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .hero-info-item .info-value small {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff !important;
}


/* ============================================
   POLIKLINIK SECTION
   ============================================ */
#poli-section {
  background-color: #f8fbff;
  padding: 80px 0;
}

.poli-full-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #005eb8, #0077d4);
  overflow: hidden;
  clear: both;
}

.poli-full-section .section-header h2 {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.poli-full-section .section-header .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

.poli-full-section .section-header .header-decoration {
  background: white;
}

/* Bulatan Poli */
.poli-circle-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 25px;
  margin-top: 30px;
  justify-items: center;
}

.poli-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 110px;
}

.poli-circle-item:hover {
  transform: translateY(-5px);
}

.poli-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-blue);
  background: white;
  border: 2px solid var(--primary-blue-light);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.1);
  transition: all 0.3s ease;
}

.poli-circle-item:hover .poli-circle {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
  border-color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.poli-name {
  font-weight: 700;
  color: white;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Card Poli */
.poli-list-section {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 70px 70px 40px 40px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   DOKTER LIST SECTION
   ============================================ */
.dokter-list-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.dokter-list-section.active {
  display: block;
}

.back-to-poli {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 25px;
  border-radius: 40px;
  font-weight: 600;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.back-to-poli:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-8px);
}

/* Kartu Dokter */
.dokter-card-portrait {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  border-top: 4px solid var(--hospital-green);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dokter-card-portrait:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.dokter-photo-portrait {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
}

.dokter-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 18px;
  margin-bottom: 8px;
}

.dokter-specialty {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Jadwal Dokter */
.jadwal-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px;
  margin-top: 15px;
}

.jadwal-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jadwal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jadwal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  font-size: 13px;
}

.jadwal-hari {
  font-weight: 600;
  color: var(--text-dark);
}

.jadwal-waktu {
  color: var(--primary-blue);
  font-weight: 600;
  background: var(--primary-blue-light);
  padding: 3px 10px;
  border-radius: 6px;
}

#poli-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 10px 30px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}



/* ============================================
   SECTION HEADER (UNIVERSAL)
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header .section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto 20px;
}

.section-header .header-decoration {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
  margin: 0 auto;
  position: relative;
}

.section-header .header-decoration::before,
.section-header .header-decoration::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: -3px;
}

.section-header .header-decoration::before {
  left: -20px;
  background: var(--primary-blue);
}

.section-header .header-decoration::after {
  right: -20px;
  background: var(--hospital-green);
}

/* ============================================
   INFO BOX (UNTUK LAYANAN RAWAT JALAN DLL)
   ============================================ */
.info-box {
  background: white;
  border-radius: var(--border-radius-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-blue);
}

.info-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary-blue);
  margin: 0 auto;
}
/* Card Actions - Tombol */
.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}


.btn-book i {
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
  background: none !important;
  -webkit-text-fill-color: white !important;
  color: white !important;
}

.btn-book:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-detail {
  flex: 1;
  background: transparent;
  border: 1.5px solid rgba(13, 110, 253, 0.3);
  color: var(--primary-blue);
  text-align: center;
  padding: 10px 8px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-detail i {
  font-size: 0.7rem !important;
  margin-bottom: 0 !important;
  background: none !important;
  -webkit-text-fill-color: var(--primary-blue) !important;
  color: var(--primary-blue) !important;
  transition: transform 0.3s ease;
}

.btn-detail:hover {
  background: rgba(13, 110, 253, 0.05);
  border-color: var(--primary-blue);
}

.btn-detail:hover i {
  transform: translateX(4px);
}

/* Hapus service-stats (karena udah dihapus dari HTML) */
.service-stats {
  display: none;
}

/* ============================================
   UNIFIED CARD (UNTUK DOKTER & BERITA)
   ============================================ */
.ui-card {
  min-width: 260px;
  background: white;
  border-radius: var(--border-radius-default);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  border-top: 4px solid var(--hospital-green);
}

.ui-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.ui-card .photo-wrap {
  height: 170px;
  background: var(--primary-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ui-card .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ui-card:hover .photo-wrap img {
  transform: scale(1.1);
}

.ui-card .card-body {
  padding: 20px;
  text-align: center;
}

.badge-soft {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* ============================================
   SLIDER (UNTUK BERITA & DOKTER)
   ============================================ */
.slider-wrapper {
  position: relative;
  padding: 0 40px;
}

.card-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card-slider::-webkit-scrollbar {
  display: none;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--primary-blue);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
}

.slide-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slide-btn.left {
  left: 0;
}

.slide-btn.right {
  right: 0;
}

/* ============================================
   LAYANAN UNGGULAN SECTION
   ============================================ */
.layanan-full-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
  clear: both;
}

.layanan-full-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(13, 110, 253, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.layanan-full-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

/* Grid Layanan */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

/* Service Card */
.service-card {
  background: white;
  border-radius: 20px;
  padding: 32px 25px 36px;
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(13, 110, 253, 0.1);
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-card) var(--border-radius-card) 0 0;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 110, 253, 0.2);
}

/* Badge */
.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #0d6efd10, #10b98110);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-blue);
  border: 1px solid rgba(13, 110, 253, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Icon */
.service-card > i:first-of-type {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover > i:first-of-type {
  transform: scale(1.05);
}

/* Title & Description */
.service-card h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card > p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Doctor Section */
.doctor-section {
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0;
}

.doctor-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(13, 110, 253, 0.2);
}

.doctor-title i {
  font-size: 0.85rem;
  color: var(--primary-blue);
}

.doctor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 12px;
  background: white;
  transition: all 0.2s;
}

.doctor-item:last-child {
  margin-bottom: 0;
}

.doctor-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateX(3px);
}

.doctor-item h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.doctor-item span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.schedule-badge {
  background: #eef2ff;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: #0d6efd;
  white-space: nowrap;
}

/* Features */
.service-features {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
}

.service-features li i {
  font-size: 0.75rem;
  color: var(--hospital-green);
}

/* Stats */
.service-stats {
  display: flex;
  gap: 15px;
  margin-top: 18px;
  padding-top: 12px;
}

.stat-item {
  flex: 1;
  background: #f8fafc;
  padding: 10px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid rgba(13, 110, 253, 0.06);
}

.stat-item:hover {
  border-color: rgba(13, 110, 253, 0.15);
  background: white;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Tombol Aksi (Opsional) */
.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-book {
  flex: 2;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 10px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-detail {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(13, 110, 253, 0.3);
  color: var(--primary-blue);
  text-align: center;
  padding: 10px 16px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-detail:hover {
  background: rgba(13, 110, 253, 0.05);
  border-color: var(--primary-blue);
}

/* ============================================
   POLIKLINIK SECTION
   ============================================ */
.poli-full-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #005eb8, #0077d4);
  overflow: hidden;
  clear: both;
}

.poli-full-section .section-header h2 {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.poli-full-section .section-header .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

.poli-full-section .section-header .header-decoration {
  background: white;
}

/* Bulatan Poli */
.poli-circle-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 25px;
  margin-top: 30px;
  justify-items: center;
}

.poli-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 110px;
}

.poli-circle-item:hover {
  transform: translateY(-5px);
}

.poli-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary-blue);
  background: white;
  border: 2px solid var(--primary-blue-light);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.1);
  transition: all 0.3s ease;
}

.poli-circle-item:hover .poli-circle {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
  border-color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.poli-name {
  font-weight: 700;
  color: white;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Card Poli */
.poli-list-section {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 70px 70px 40px 40px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   DOKTER LIST SECTION
   ============================================ */
.dokter-list-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.dokter-list-section.active {
  display: block;
}

.back-to-poli {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 12px 25px;
  border-radius: 40px;
  font-weight: 600;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.back-to-poli:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-8px);
}

/* Kartu Dokter */
.dokter-card-portrait {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  border-top: 4px solid var(--hospital-green);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dokter-card-portrait:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.dokter-photo-portrait {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
}

.dokter-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 18px;
  margin-bottom: 8px;
}

.dokter-specialty {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Jadwal Dokter */
.jadwal-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px;
  margin-top: 15px;
}

.jadwal-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jadwal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jadwal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  font-size: 13px;
}

.jadwal-hari {
  font-weight: 600;
  color: var(--text-dark);
}

.jadwal-waktu {
  color: var(--primary-blue);
  font-weight: 600;
  background: var(--primary-blue-light);
  padding: 3px 10px;
  border-radius: 6px;
}

#poli-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 10px 30px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   BERITA SECTION
   ============================================ */
.berita-full-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #007cbe, #0095e0);
  overflow: hidden;
  clear: both;
}

.berita-full-section .section-header h2 {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.berita-full-section .section-header .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

.berita-full-section .section-header .header-decoration {
  background: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .container {
    padding: 0 24px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .layanan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .slider-wrapper {
    padding: 0 35px;
  }

  .poli-full-section,
  .layanan-full-section,
  .berita-full-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .hero .hero-info-grid {
    width: 95%;
    max-width: 95%;

    padding: 1rem;

    gap: 1rem;

    overflow-x: auto;
    overflow-y: hidden;

    flex-wrap: nowrap;

    border-radius: 50px;
  }
  .container {
    padding: 0 20px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .layanan-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .schedule-badge {
    white-space: normal;
    font-size: 0.6rem;
  }

  .doctor-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .slider-wrapper {
    padding: 0 30px;
  }

  .slide-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .poli-circle {
    width: 80px;
    height: 80px;
    font-size: 26px;
  }

  .poli-name {
    font-size: 12px;
  }

  .poli-list-section {
    padding: 2rem 1rem;
    border-radius: 50px 50px 30px 30px;
  }

  .back-to-poli {
    padding: 10px 20px;
    font-size: 14px;
  }

  #poli-title {
    font-size: 1.5rem;
    padding: 8px 20px;
  }

  .poli-full-section,
  .layanan-full-section,
  .berita-full-section {
    padding: 50px 0;
  }
}

@media (max-width: 576px) {
  .service-stats {
    flex-direction: column;
    gap: 10px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-features li {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .slider-wrapper {
    padding: 0 25px;
  }

  .slide-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .ui-card {
    min-width: 220px;
  }

  .poli-circle-container {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 15px;
  }

  .poli-circle {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }

  .poli-name {
    font-size: 11px;
  }

  .dokter-photo-portrait {
    height: 250px;
  }
}

/* ============================================
   ANIMASI
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   UTILITY & TAMBAHAN
   ============================================ */
.page-title {
  color: var(--primary-blue);
  padding-left: 15px;
  margin: 30px 0 15px 0;
}

#poli-section {
  background-color: #f8fbff;
  padding: 80px 0;
}

.slide-content {
  position: relative;
  z-index: 2;
}

.text-muted {
  color: var(--text-muted) !important;
}

.fw-bold {
  font-weight: 700;
}

/* Hapus duplikasi dan konflik */
.layanan-full-section .service-card .service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.layanan-full-section .service-card .service-btn i {
  font-size: 0.9rem;
  margin-bottom: 0;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

.layanan-full-section .service-card .service-btn:hover {
  color: var(--hospital-green);
}

.layanan-full-section .service-card .service-btn:hover i {
  transform: translateX(5px);
  color: var(--hospital-green);
}

/* ===== FOOTER STYLES===== */
footer {
  background: var(--footer-bg, #1e2a3a);
  color: white;
  position: relative;
  border-top: 3px solid var(--hospital-green, #2d9c8a);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* Container dan grid */
footer .container {
  max-width: 1400px;
}

footer .row {
  margin-bottom: 0;
}

/* Headings */
footer h5,
footer h6 {
  color: white;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
}

footer h5 {
  font-size: 1.3rem;
  background: linear-gradient(135deg, #fff, #e6f4f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

footer h6 {
  font-size: 1.1rem;
  text-transform: uppercase;
  opacity: 0.9;
}

/* All text elements */
footer p,
footer span,
footer small,
footer .small,
footer .text-muted,
footer .list-unstyled li,
footer .border-top .container small,
footer .border-top .container .small {
  color: white !important;
}

/* Paragraph text */
footer p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

footer p.small {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Links */
footer a {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

footer a:hover {
  color: white !important;
  transform: translateX(5px);
  opacity: 1;
}

/* List items */
footer .list-unstyled {
  padding-left: 0;
  list-style: none;
}

footer .list-unstyled li {
  margin-bottom: 0.8rem;
  color: white !important;
}

/* Icons - Keep green for specific icons */
footer .list-unstyled i,
footer .fas.fa-map-marker-alt,
footer .fas.fa-phone-alt,
footer .fas.fa-envelope,
footer .fa-phone-alt,
footer .fa-map-marker-alt,
footer .fa-envelope {
  width: 20px;
  margin-right: 8px;
  color: var(--hospital-green, #2d9c8a) !important;
  font-size: 1rem;
}

/* Social Icons */
footer .social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

footer .social-icons a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateX(0);
}

footer .social-icons a:hover {
  background: linear-gradient(
    135deg,
    var(--primary-blue, #0d6efd),
    var(--hospital-green, #2d9c8a)
  );
  transform: translateY(-5px) scale(1.1);
  color: white !important;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

footer .social-icons a i {
  width: auto;
  margin-right: 0;
  color: inherit !important;
  font-size: 1.2rem;
}

/* Border top */
footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: 1rem;
}

footer .border-top .container {
  padding: 1.5rem 0;
}

footer .border-top .container small,
footer .border-top .container .small {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.85rem;
}

/* Akreditasi Card */
footer .bg-light {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem !important;
}

footer .bg-light .text-warning {
  color: #ffc107 !important;
}

footer .bg-light i.fa-award {
  color: #ffc107 !important;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

footer .bg-light p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 0.25rem;
}

footer .bg-light .fw-bold {
  color: white !important;
  font-size: 1.1rem;
}

footer .bg-light .small {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.8rem;
}

/* Emergency Contact Section */
footer .col-md-3:first-of-type ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

footer .col-md-3:first-of-type ul li i {
  font-size: 1.1rem;
}

/* Specific icon colors for emergency */
footer .fa-phone-alt[style*="color: #dc3545"] {
  color: #dc3545 !important;
}

footer .fa-whatsapp[style*="color: #25d366"] {
  color: #25d366 !important;
}

/* Contact Info Section */
footer .col-md-4 p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

footer .col-md-4 p i {
  margin-top: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  footer .row {
    text-align: center;
  }

  footer .col-md-4 p {
    justify-content: center;
  }

  footer .social-icons {
    justify-content: center;
  }

  footer .list-unstyled li a {
    justify-content: center;
  }

  footer .bg-light {
    max-width: 250px;
    margin: 0 auto;
  }

  footer .col-md-3:first-of-type ul li a {
    justify-content: center;
  }
}

/* Hover effects for contact links */
footer a[href^="tel:"],
footer a[href^="mailto:"],
footer a[href^="https://wa.me"] {
  position: relative;
}

footer a[href^="tel:"]:hover i,
footer a[href^="mailto:"]:hover i,
footer a[href^="https://wa.me"]:hover i {
  transform: scale(1.2);
}

/* Copyright section specific */
footer .border-top .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .border-top .container small {
  letter-spacing: 0.5px;
}

/* Remove any remaining gray text */
footer [class*="text-muted"] {
  color: white !important;
}

/* Ensure all text in footer columns is white */
footer [class^="col-"] {
  color: white;
}

footer [class^="col-"] * {
  color: white;
}

/* Keep icons green except social media icons */
footer [class^="col-"] i:not(.social-icons i) {
  color: var(--hospital-green, #2d9c8a) !important;
}

/* Override for emergency icons that should keep their colors */
footer .fa-phone-alt[style*="color: #dc3545"],
footer .fa-whatsapp[style*="color: #25d366"] {
  color: inherit !important;
}

/* Smooth transitions */
footer * {
  transition: all 0.3s ease;
}

/* ===== SEJARAH & VISI MISI - FINAL CLEAN VERSION ===== */

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
}

.section-header .section-subtitle {
  color: black;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}

.section-header .header-decoration {
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.timeline-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-item {
  flex: 0 0 calc(33.333% - 25px);
  min-width: 280px;
  margin-bottom: 20px;
}

.timeline-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(13, 110, 253, 0.1);
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.15);
  border-color: var(--primary-blue);
}

.timeline-year {
  position: absolute;
  top: -15px;
  left: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
  border: 2px solid white;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 15px;
}

.timeline-icon i {
  font-size: 2rem;
  color: var(--primary-blue);
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 700;
}

.timeline-content p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.timeline-badge {
  background: rgba(13, 110, 253, 0.08);
  color: var(--primary-blue);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-detail {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-detail i {
  transition: transform 0.3s;
}

.btn-detail:hover {
  color: var(--hospital-green);
}

.btn-detail:hover i {
  transform: translateX(5px);
}

/* ===== MODAL STYLING ===== */
.timeline-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-modal.show {
  display: flex;
  opacity: 1;
}

.timeline-modal .modal-content {
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.timeline-modal .modal-body {
  overflow-y: auto;
  flex: 1;
}

.modal-content {
  background: white;
  border-radius: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

.modal-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-section ul li {
  align-items: flex-start;
  gap: 10px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.modal-section ul li:last-child {
  border-bottom: none;
}

.modal-section ul li::before {
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 25px 30px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  border-radius: 30px 30px 0 0;
  color: white;
  position: relative;
}

.modal-year {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
  opacity: 0.9;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

.modal-body p {
  color: #2c3e50;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-section {
  margin-bottom: 25px;
}

.modal-section h4 {
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section ul {
  list-style: none;
  padding: 0;
}

.modal-section li {
  margin-bottom: 12px;
  padding-left: 25px;
  color: #4a5568;
}

.modal-section li:before {
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.modal-gallery img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== MISSION SECTION ===== */
.mission-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

/* Vision Card */
.vision-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.08);
  margin-bottom: 3rem;
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.vision-icon-wrapper {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(45, 156, 138, 0.1)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.15);
}

.vision-icon {
  font-size: 2.8rem;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vision-content h3 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.vision-statement {
  background: #f8fafc;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  border-left: 4px solid var(--hospital-green);
}

.vision-statement p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-style: italic;
}

.vision-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  border: 1px solid rgba(13, 110, 253, 0.1);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mission Cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.mission-card {
  background: white;
  border-radius: 20px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(13, 110, 253, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.1);
}

.mission-number {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(13, 110, 253, 0.05);
  line-height: 1;
}

.mission-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(45, 156, 138, 0.1)
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.mission-icon i {
  font-size: 1.6rem;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mission-card h4 {
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.mission-card p {
  color: #4a5568;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.mission-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-points li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2c3e50;
}

.mission-points i {
  color: var(--hospital-green);
  font-size: 0.8rem;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  padding: 60px 0;
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13, 110, 253, 0.9), transparent);
  color: white;
  padding: 1.2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.gallery-overlay p {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .timeline-item {
    flex: 0 0 100%;
  }

  .modal-content {
    width: 95%;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-year {
    font-size: 2.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .vision-highlights {
    flex-direction: column;
    gap: 0.5rem;
  }

  .highlight-item {
    width: 100%;
  }
}

/* ===== STYLE KHUSUS UNTUK PROFIL PEJABAT ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding: 0 15px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.section-header .section-subtitle {
  color: black;
  font-size: 1rem;
  font-weight: bold;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.section-header .header-decoration {
  width: 70px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  margin: 1.2rem auto 0;
  border-radius: 2px;
  position: relative;
}

.section-header .header-decoration::before,
.section-header .header-decoration::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hospital-green);
  top: -2px;
}

.section-header .header-decoration::before {
  left: -4px;
}

.section-header .header-decoration::after {
  right: -4px;
}

/* TAB NAVIGATION */
.tab-navigation {
  background: white;
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
  max-width: 100%;
}

.nav-tabs-custom {
  border: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.nav-tabs-custom .nav-link {
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  color: var(--gray-text);
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-tabs-custom .nav-link i {
  font-size: 1rem;
}

.nav-tabs-custom .nav-link.active {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  color: white !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-tabs-custom .nav-link:hover:not(.active) {
  border-color: var(--primary-blue-light);
  color: var(--primary-blue) !important;
}

/* OFFICER PROFILE SECTION */
.officer-section {
  padding: 30px 0;
  background: var(--light-bg);
}

.officer-card {
  min-height: auto;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: 100%;
  margin-bottom: 0;
}

.officer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  z-index: 1;
}

.officer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* FOTO */
.officer-photo-container {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.officer-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transition: 0.5s ease;
}

.officer-card:hover .officer-photo-container img {
  transform: scale(1.1);
}

/* INFO */
.officer-section .officer-info {
  padding: 16px 15px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  flex: 1;
}

.officer-info h3 {
  color: black;
  margin-bottom: 6px;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 600;
  word-wrap: break-word;
  width: 100%;
}

.officer-position {
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 8px;
  width: 100%;
  word-wrap: break-word;
}

.officer-nip {
  font-size: 0.9rem;
  color: black;
  margin-bottom: 8px;
}

.officer-rank {
  align-self: center;
  background: linear-gradient(
    135deg,
    var(--primary-blue-light),
    var(--hospital-green-light)
  );
  color: var(--primary-blue);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: auto;
  display: inline-block;
  width: auto;
}

/* ===== STRUKTUR ORGANISASI ===== */
:root {
  --primary-blue: #0056b3;
  --accent-orange: #ff8c00;
  --light-teal: #e0f2f1;
  --text-dark: #333;
}
.org-wrapper {
  background: #f8f9fa;
  padding: 30px 0 50px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.org-title {
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-size: 1.8rem;
}

.org-subtitle {
  font-size: 1rem;
  color: var(--gray-text);
}

/* Row Styling */
.org-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

/* Card Styling */
.org-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 15px;
  width: 200px;
  position: relative;
  border-top: 5px solid var(--primary-blue);
  transition: transform 0.3s ease;
}

.org-card:hover {
  transform: translateY(-5px);
}

.main-leader {
  width: 250px;
  max-width: 100%;
  border-top-color: var(--primary-blue);
}

.secondary {
  border-top-color: #26a69a;
}

.small-unit {
  width: 150px;
  border-top: 3px solid #ccc;
  padding: 12px 8px;
}

/* Photo Styling */
.org-photo {
  width: 115px;
  height: 115px;
  margin: 15px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.org-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Text Info */
.org-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 8px 0 3px;
  color: var(--text-dark);
  word-wrap: break-word;
}

.org-info h6 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 5px 0 2px;
  color: var(--text-dark);
}

.org-info p {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.3;
}

.org-info small {
  font-size: 0.65rem;
  color: #888;
  display: block;
}

/* Badges */
.level-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: white;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: bold;
  white-space: nowrap;
}

.level-badge.orange {
  background: var(--accent-orange);
}

.level-badge.blue {
  background: #0288d1;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet Landscape (992px ke bawah) */
@media (max-width: 992px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .officer-photo-container {
    height: 240px;
  }

  .org-card {
    width: 180px;
    padding: 12px;
  }

  .main-leader {
    width: 220px;
  }

  .small-unit {
    width: 140px;
  }

  .org-photo {
    width: 70px;
    height: 70px;
  }
}

/* Tablet Portrait (768px ke bawah) */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header .section-subtitle {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .tab-navigation {
    padding: 0.4rem;
  }

  .nav-tabs-custom {
    gap: 0.3rem;
  }

  .nav-tabs-custom .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .nav-tabs-custom .nav-link i {
    font-size: 0.9rem;
    margin-right: 0.4rem;
  }

  .officer-section {
    padding: 20px 0;
  }

  .officer-photo-container {
    height: 220px;
  }

  .officer-info {
    padding: 14px 12px 16px;
  }

  .officer-info h3 {
    font-size: 1rem;
  }

  .officer-position {
    font-size: 0.8rem;
  }

  .officer-nip {
    font-size: 0.7rem;
  }

  .officer-rank {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
  }

  .org-wrapper {
    padding: 20px 0 40px;
  }

  .org-title {
    font-size: 1.6rem;
  }

  .org-chart {
    gap: 25px;
  }

  .org-row {
    gap: 12px;
  }

  .org-card {
    width: calc(50% - 20px);
    min-width: 150px;
    padding: 12px 8px;
  }

  .main-leader {
    width: 80%;
    max-width: 280px;
  }

  .small-unit {
    width: calc(33.33% - 10px);
    min-width: 100px;
  }

  .level-badge {
    font-size: 8px;
    padding: 2px 6px;
    top: -10px;
  }
}

/* Mobile (576px ke bawah) */
@media (max-width: 576px) {
  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header .header-decoration {
    width: 60px;
  }

  .tab-navigation {
    border-radius: 30px;
    padding: 0.3rem;
  }

  .nav-tabs-custom {
    flex-direction: column;
    width: 100%;
  }

  .nav-tabs-custom .nav-item {
    width: 100%;
  }

  .nav-tabs-custom .nav-link {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.85rem;
    text-align: center;
    white-space: normal;
  }

  .officer-photo-container {
    height: 200px;
  }

  .officer-info h3 {
    font-size: 0.95rem;
  }

  .officer-position {
    font-size: 0.75rem;
  }

  .officer-nip {
    font-size: 0.65rem;
  }

  .org-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .main-leader {
    width: 100%;
    max-width: 280px;
  }

  .org-row {
    flex-direction: column;
    align-items: center;
  }

  .small-unit {
    width: 80%;
    max-width: 200px;
  }

  .org-photo {
    width: 65px;
    height: 65px;
  }

  .org-info h5 {
    font-size: 0.85rem;
  }

  .org-info p {
    font-size: 0.65rem;
  }

  .level-badge {
    font-size: 7px;
    padding: 2px 5px;
  }
}

/* Small Mobile (400px ke bawah) */
@media (max-width: 400px) {
  .section-header h2 {
    font-size: 1.4rem;
  }

  .section-header .section-subtitle {
    font-size: 0.8rem;
  }

  .officer-photo-container {
    height: 180px;
  }

  .officer-info {
    padding: 12px 10px 14px;
  }

  .officer-info h3 {
    font-size: 0.9rem;
  }

  .officer-position {
    font-size: 0.7rem;
  }

  .org-card {
    padding: 10px 6px;
  }

  .org-photo {
    width: 60px;
    height: 60px;
  }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
  .officer-photo-container {
    height: 160px;
  }

  .officer-info {
    padding: 10px;
  }

  .org-chart {
    gap: 15px;
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .officer-card:hover,
  .org-card:hover {
    transform: none;
  }

  .officer-card:active,
  .org-card:active {
    transform: translateY(-3px);
  }

  .nav-tabs-custom .nav-link {
    padding: 0.8rem;
  }
}
/* ===== STRUKTUR ORGANISASI DENGAN FOTO ===== */
.org-image-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.org-image-container:hover {
  box-shadow: var(--shadow-lg);
}

.struktur-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.struktur-img:hover {
  transform: scale(1.02);
}

/* Modal styling */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  color: white;
  border-bottom: none;
  padding: 1rem 1.5rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-title {
  font-weight: 600;
  font-size: 1.2rem;
}

.modal-body {
  padding: 1.5rem;
  background: var(--light-bg);
}

.modal-body img {
  max-height: 80vh;
  object-fit: contain;
}

/* Responsive untuk struktur organisasi foto */
@media (max-width: 768px) {
  .org-image-container {
    padding: 10px;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .org-image-container p.text-muted {
    font-size: 0.8rem;
  }
}

/* ===== RANAP ===== */
/* Header Section */
.header-section {
  margin-bottom: 3rem;
  margin-top: 50px;
}

.badge.bg-soft-primary {
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(45, 156, 138, 0.1)
  );
  color: var(--primary-blue);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(13, 110, 253, 0.2);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.subtitle-text {
  color: black;
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Statistik Cards Modern */
.info-ranap.card-stats {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.info-ranap.card-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  opacity: 0;
  transition: var(--transition);
}

.info-ranap.card-stats:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.info-ranap.card-stats:hover::before {
  opacity: 1;
}

.stats-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bg-primary-gradient {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

.bg-success-gradient {
  background: linear-gradient(135deg, #198754, #146c43);
}

.bg-warning-gradient {
  background: linear-gradient(135deg, #ffc107, #ffca2c);
}

.stats-content h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: var(--dark-text);
  line-height: 1;
}

.stats-content p {
  color: black;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 1rem;
}

/* Filter Section */
.filter-section {
  background: white;
  padding: 1.2rem 1.5rem;
  border-radius: 60px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  background: var(--light-bg);
  color: var(--gray-text);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.filter-btn:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.filter-btn.active {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  color: white;
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-text);
  z-index: 10;
}

.search-box .form-control {
  padding-left: 45px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  height: 45px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-box .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  outline: none;
}

/* Table Modern */
.ranap-table-wrapper {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.ranap-table {
  width: 100%;
  border-collapse: collapse;
}

.ranap-table thead {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
}

.ranap-table th {
  color: white;
  padding: 1.2rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: none;
}

.ranap-table td {
  padding: 1.2rem 1rem;
  text-align: center;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
  font-size: 0.95rem;
}

.ranap-table tbody tr {
  transition: var(--transition);
}

.ranap-table tbody tr:hover {
  background-color: #f8fafc;
  transform: scale(1.01);
  box-shadow: var(--shadow-sm);
}

.fw-600 {
  font-weight: 600;
  color: var(--dark-text);
}

/* gallery */
.ranap-gallery {
  background: #f8fbff;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

/* Badge Classes */
.badge-class {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.class-1 {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1976d2;
}

.class-2 {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #f57c00;
}

.class-3 {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
  color: #388e3c;
}

.class-4 {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  color: #7b1fa2;
}

.class-5 {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  color: #d32f2f;
}

.bed-count {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 1.1rem;
  background: var(--primary-blue-light);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  display: inline-block;
}

/* Badge Status */
.badge {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: none;
}

.badge-wbp {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: white;
  box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

.badge-umum {
  background: linear-gradient(135deg, #198754, #146c43);
  color: white;
  box-shadow: 0 3px 10px rgba(25, 135, 84, 0.3);
}

.badge-icu {
  background: linear-gradient(135deg, #dc3545, #b02a37);
  color: white;
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.badge-isolasi {
  background: linear-gradient(135deg, #ffc107, #ffca2c);
  color: #212529;
  box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

/* Table Footer */
.table-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  font-size: 0.9rem;
  color: var(--gray-text);
}

.info-update i,
.info-note i {
  color: var(--primary-blue);
}

/* FACILITY CARD MODERN */
.facility-card.modern-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  z-index: 1;
}

.facility-card.modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
}

.facility-card.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.facility-card.modern-card:hover::before {
  transform: scaleX(1);
}

.facility-icon-wrapper {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.facility-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-blue-light), #e2f0f9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-blue);
  margin: 0 auto;
  transition: all 0.4s;
  position: relative;
  z-index: 2;
}

.facility-card.modern-card:hover .facility-icon {
  transform: rotate(5deg) scale(1.1);
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  color: white;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.facility-card.modern-card h5 {
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: black;
  position: relative;
  z-index: 2;
}

.facility-card.modern-card p.text-muted {
  color: black !important;
}

.facility-hover-effect {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(13, 110, 253, 0.03) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.facility-card.modern-card:hover .facility-hover-effect {
  opacity: 1;
}

/* TIMELINE MODERN */
.info-card.modern-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.info-card.modern-card:hover {
  box-shadow: var(--shadow-lg);
}

.card-header-custom {
  margin-bottom: 2rem;
}

.card-header-custom .page-title {
  text-align: left;
  margin-bottom: 0;
}

.timeline-modern {
  position: relative;
  padding-left: 20px;
}

.timeline-modern::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary-blue-light),
    var(--hospital-green-light)
  );
  border-radius: 2px;
}

.timeline-step-modern {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-step-modern:last-child {
  margin-bottom: 0;
}

.timeline-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 8px 15px rgba(13, 110, 253, 0.2);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  padding-top: 5px;
}

.timeline-content h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-text);
  font-size: 1.1rem;
}

.timeline-content p.text-muted {
  color: black !important;
  line-height: 1.6;
}

/* ALERT CARD MODERN */
.alert-card-modern {
  background: #f8fafc;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.2rem;
  border-left: 4px solid;
  transition: var(--transition);
}

.alert-card-modern:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.alert-card-modern.visiting-hours {
  border-left-color: var(--primary-blue);
}

.alert-card-modern.regulations {
  border-left-color: var(--hospital-green);
}

.alert-icon {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-blue);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-content h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-text);
  font-size: 1.1rem;
}

.alert-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.alert-content li {
  margin-bottom: 0.8rem;
  color: black;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.alert-content li:last-child {
  margin-bottom: 0;
}

.alert-content li span {
  flex: 1;
  color: black !important;
}

.alert-content li span.badge {
  flex: 1;
  color: var(--primary-blue) !important;
}

/* Responsive */
@media (max-width: 992px) {
  .page-title {
    font-size: 2rem;
  }

  .filter-section {
    border-radius: 20px;
  }

  .filter-tabs {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .table-footer-info {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .info-ranap.card-stats {
    padding: 1.5rem;
  }

  .stats-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .stats-content h3 {
    font-size: 1.8rem;
  }

  .timeline-modern::before {
    left: 20px;
  }

  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .alert-card-modern {
    flex-direction: column;
    gap: 1rem;
  }

  .alert-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.8rem;
  }

  .subtitle-text {
    font-size: 1rem;
  }

  .filter-section {
    padding: 1rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .ranap-table th,
  .ranap-table td {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }

  .badge-class {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
  }

  .bed-count {
    padding: 0.2rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ranap-section {
  animation: fadeInUp 0.6s ease;
}

/* Hover effects */
.ranap-table tbody tr {
  cursor: pointer;
  position: relative;
}

.ranap-table tbody tr::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-blue),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.ranap-table tbody tr:hover::after {
  opacity: 0.2;
}

/* Loading animation for stats */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.info-ranap.card-stats:hover .stats-icon {
  animation: pulse 1s infinite;
}

/* ===== IGD ===== */
:root {
  --primary-color: #0d6efd;
  --danger-color: #dc3545;
  --soft-danger: #fff5f5;
  --soft-blue: #f4f8ff;
  --dark-text: #1f2937;
  --light-text: #6b7280;
  --radius: 16px;
}

/* ===============================
   RESET & GENERAL
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark-text);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--dark-text);
}

/* ===============================
   HERO SECTION - DIPERKECIL
================================= */
.hero-igd {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  padding: 30px 0; /* DIPERKECIL dari 2rem */
  border-bottom: 1px solid #f0f0f0;
}

.hero-badge {
  background: var(--danger-color);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-title span {
  color: var(--danger-color);
}

/* Service Tags */
.emergency-badge {
  background: white;
  padding: 10px 16px;
  border-radius: 12px;
  border-left: 4px solid var(--danger-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.emergency-badge i {
  color: var(--danger-color);
  font-size: 1.2rem;
  width: 24px;
}

/* Hero Image */
.hero-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(220, 53, 69, 0.1);
}

.image-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* ===============================
   SECTION SPACING - SEMUA DIPERKECIL
================================= */
section {
  padding: 40px 0; /* Default padding section */
}

.section-sm {
  padding: 30px 0;
}

.section-xs {
  padding: 20px 0;
}

/* Title Section */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.section-title span {
  color: var(--danger-color);
}

.section-subtitle {
  color: var(--light-text);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1rem;
}

/* ===============================
   FACILITY CARDS
================================= */
.facility-main-card {
  background: white;
  border-radius: 16px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  height: 100%;
  transition: all 0.3s;
}

.facility-main-card:hover {
  border-color: var(--danger-color);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.06);
}

.facility-icon-large {
  width: 65px;
  height: 65px;
  background: var(--soft-danger);
  color: var(--danger-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 15px;
}

.facility-icon-large.warning {
  background: #fff8e1;
  color: #f59e0b;
}

.facility-main-card h5 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.facility-main-card p {
  color: var(--light-text);
  font-size: 0.85rem;
  margin: 0;
}

/* ===============================
   SUPPORT CARDS
================================= */
.support-card {
  background: white;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.support-card:hover {
  border-color: var(--danger-color);
}

.support-card i {
  font-size: 1.3rem;
  color: var(--danger-color);
  width: 28px;
}

.support-card span {
  font-weight: 500;
  color: var(--dark-text);
  font-size: 0.95rem;
}

/* PERALATAN MEDIS - FIXED VERSION */
.equipment-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.equipment-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.equipment-image-wrapper:hover img {
  transform: scale(1.03);
}

.image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Grid Equipment - Ukuran TULISAN DIPERBESAR */
.equipment-grid {
  background: white;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
}

.equipment-card-modern {
  background: #f8fafc;
  border-radius: 16px;
  padding: 15px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
  border: 1px solid #edf2f7;
  height: 100%;
}

.equipment-card-modern:hover {
  background: white;
  border-color: #dc3545;
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.08);
  transform: translateY(-3px);
}

.equipment-icon-wrapper {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc3545;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.equipment-card-modern:hover .equipment-icon-wrapper {
  background: #dc3545;
  color: white;
}

.equipment-text {
  flex: 1;
}

.equipment-text h6 {
  font-size: 1rem; /* DIPERBESAR */
  font-weight: 600;
  margin-bottom: 2px;
  color: #1e293b;
}

.equipment-text p {
  font-size: 0.8rem; /* Dibuat lebih kecil untuk kontras */
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
  .equipment-grid {
    padding: 15px;
  }

  .equipment-card-modern {
    padding: 12px 10px;
  }

  .equipment-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .equipment-text h6 {
    font-size: 0.9rem;
  }

  .equipment-text p {
    font-size: 0.75rem;
  }
}

/* TIMELINE / ALUR*/
.flow-timeline {
  padding: 0;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
}

.step-number {
  width: 38px;
  height: 38px;
  background: var(--danger-color);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-number.bg-warning {
  background: red;
}

.step-content h5 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.step-content p {
  color: var(--light-text);
  font-size: 0.85rem;
  margin: 0;
}

/*  KONTAK DARURAT */

.emergency-contact {
  background: linear-gradient(145deg, #dc3545 0%, #b02a37 100%);
  padding: 1.5rem 0; /* Lebih kecil */
}

/* Card lebih compact */
.contact-card-compact {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.2rem 0.8rem; /* Padding lebih kecil */
  text-align: center;
  color: white;
  height: 100%;
  transition: all 0.2s ease;
}

.contact-card-compact:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Icon circle lebih kecil */
.contact-icon-circle-small {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.2rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card-compact:hover .contact-icon-circle-small {
  background: rgba(255, 255, 255, 0.25);
}

/* Typography lebih kecil */
.contact-card-compact h6 {
  font-weight: 700;
  font-size: 0.75rem; /* Lebih kecil */
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.3rem;
  display: inline-block;
}

/* Phone number */
.contact-link-small {
  display: block;
  font-size: 0.9rem; /* Lebih kecil */
  font-weight: 600;
  color: white;
  text-decoration: none;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.contact-link-small:hover {
  text-decoration: underline;
}

/* Address */
.contact-address-small {
  font-size: 0.75rem; /* Lebih kecil */
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Extra small link */
.contact-link-extra-small {
  font-size: 0.7rem;
  color: white;
  text-decoration: none;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link-extra-small:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Badges kecil */
.emergency-badge-small {
  display: inline-block;
  font-size: 0.6rem; /* Sangat kecil */
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  padding: 3px 8px;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.contact-badge-small {
  display: inline-block;
  font-size: 0.55rem;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* Responsive lebih kecil */
@media (max-width: 768px) {
  .emergency-contact {
    padding: 1rem 0;
  }

  .contact-card-compact {
    padding: 1rem 0.5rem;
  }

  .contact-icon-circle-small {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===============================
   BUTTONS
================================= */
.btn-emergency {
  background: var(--danger-color);
  color: white;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 500;
  border: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-emergency:hover {
  background: #b02a37;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(220, 53, 69, 0.2);
}

.btn-outline-emergency {
  background: transparent;
  color: var(--danger-color);
  border: 1.5px solid var(--danger-color);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline-emergency:hover {
  background: var(--soft-danger);
  color: #b02a37;
  border-color: #b02a37;
}

/* ===============================
   UTILITY CLASSES
================================= */
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.pt-0 {
  padding-top: 0 !important;
}
.pb-0 {
  padding-bottom: 0 !important;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  section {
    padding: 30px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .facility-main-card {
    padding: 20px 12px;
  }

  .support-card {
    padding: 10px;
  }

  .emergency-info {
    padding: 20px 12px;
  }
}

/* ===============================
   SWIPER SLIDER CUSTOMIZATION
================================= */

/* Hero Swiper */
.heroSwiper {
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(220, 53, 69, 0.15);
}

.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
  color: white;
  background: rgba(220, 53, 69, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.heroSwiper .swiper-button-next:after,
.heroSwiper .swiper-button-prev:after {
  font-size: 18px;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
  background: rgba(220, 53, 69, 1);
}

.heroSwiper .swiper-pagination-bullet {
  background: white;
  opacity: 0.7;
  width: 10px;
  height: 10px;
}

.heroSwiper .swiper-pagination-bullet-active {
  background: var(--danger-color);
  opacity: 1;
}

/* Image badge di dalam slider */
.heroSwiper .image-badge {
  position: absolute;
  left: 50%;
  bottom: 30px; /* Jarak dari bawah 30px */
  transform: translateX(
    -50%
  ); /* Geser ke kiri 50% dari lebar dirinya sendiri */
  background: rgba(220, 53, 69, 0.85);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
  white-space: nowrap; /* Biar tulisannya 1 baris */
}
/* Equipment Swiper */
.equipmentSwiper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.equipmentSwiper .swiper-slide {
  position: relative;
}

.equipmentSwiper .swiper-slide img {
  width: 100%;
  height: auto; /* Otomatis ngikutin rasio gambar */
  max-height: 350px; /* Biar ngga terlalu gede */
  object-fit: contain;
  border-radius: 16px;
  background-color: #f5f5f5; /* Biar kalo ada ruang kosong keisi abu2 */
}

/* Slide caption (badge di dalam gambar) */
.slide-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
}

.slide-caption .badge {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border: none;
  backdrop-filter: blur(4px);
}

/* Warna badge sesuai kelas */
.slide-caption .badge.bg-primary {
  background: rgba(13, 110, 253, 0.9) !important;
}
.slide-caption .badge.bg-danger {
  background: rgba(220, 53, 69, 0.9) !important;
}
.slide-caption .badge.bg-warning {
  background: rgba(255, 193, 7, 0.9) !important;
  color: #000 !important;
}
.slide-caption .badge.bg-success {
  background: rgba(25, 135, 84, 0.9) !important;
}

/* Pagination equipment */
.equipment-pagination {
  position: relative;
  margin-top: 15px;
  text-align: center;
}

.equipment-pagination .swiper-pagination-bullet {
  background: var(--danger-color);
  opacity: 0.4;
  width: 10px;
  height: 10px;
  margin: 0 5px;
}

.equipment-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--danger-color);
}

/* Caption di bawah slider */
.equipmentSwiper .image-caption {
  position: relative;
  bottom: auto;
  left: auto;
  background: transparent;
  color: var(--dark-text);
  padding: 10px 0 0;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.equipmentSwiper .image-caption i {
  color: var(--danger-color);
}

/* Responsive */
@media (max-width: 768px) {
  .equipmentSwiper .swiper-slide img {
    height: 250px;
  }

  .heroSwiper .swiper-button-next,
  .heroSwiper .swiper-button-prev {
    display: none; /* Sembunyikan tombol di mobile biar ngga numpuk */
  }

  .slide-caption .badge {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ===== STYLE KHUSUS UNTUK RAWAT JALAN ===== */
.page-title {
    font-size: 2.5rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 4rem;
  
      background: linear-gradient(
          135deg,
          var(--primary-blue),
          var(--hospital-green)
      );
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
  }


.subtitle-text {
  color: black;
  padding-left: 15px;
  margin: -10px 0 15px 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}

/* SEARCH BOX */
.search-box {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--hospital-green);
  margin-bottom: 30px;
}

/* Tampilan Poli Hanya Bulatan + Nama (Tanpa Kotak) */
.poli-item {
  text-align: center;
  margin-bottom: 30px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.poli-item:hover {
  transform: translateY(-5px);
}

/* BULETAN UNTUK IKON */
.poli-icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: var(--blue-main);
  margin: 0 auto 12px auto;
  transition: all 0.3s;
  border: 3px solid transparent;
  box-shadow: var(--shadow-sm);
}

.poli-item:hover .poli-icon-circle {
  transform: scale(1.08);
  border-color: var(--hospital-green);
  background: linear-gradient(135deg, var(--blue-soft), #ffffff);
  box-shadow: var(--shadow-md);
}

.poli-item.active .poli-icon-circle {
  border-color: var(--hospital-green);
  background: linear-gradient(135deg, var(--blue-soft), #ffffff);
  box-shadow: var(--shadow-md);
}

.poli-name {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
  line-height: 1.3;
}

.poli-availability {
  font-size: 0.75rem;
}

/* PANEL DETAIL */
.poli-detail-panel {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  margin: 20px 0 30px 0;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--hospital-green);
  border-top: 1px solid #e9ecef;
  border-right: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  display: none;
  animation: fadeIn 0.4s ease;
}

.poli-detail-panel.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--blue-main);
  margin-right: 20px;
  flex-shrink: 0;
}

/* Style untuk tombol kembali ke poli */
.btn-back-to-poli {
  background: white;
  border: 1px solid var(--blue-main);
  color: var(--blue-main);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-back-to-poli:hover {
  background: var(--blue-main);
  border-color: var(--blue-main);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.doctor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doctor-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: center;
}

.doctor-list li:last-child {
  border-bottom: none;
}

.doctor-list i {
  color: var(--hospital-green);
  margin-right: 10px;
  font-size: 14px;
}

.doctor-list span.text-muted {
  color: var(--primary-blue) !important;
}

/* SCHEDULE TABLE */
.schedule-table {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.table-header {
  background: var(--blue-main);
  color: white;
  padding: 20px;
}

.schedule-row {
  display: flex;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.schedule-row:hover {
  background: var(--blue-soft);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-cell {
  padding: 20px;
  flex: 1;
  display: flex;
  align-items: center;
}

/* INFO CARD */
.info-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border-left: 5px solid var(--blue-main);
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--blue-main);
  margin-bottom: 20px;
}

/* DATA POLI HIDDEN - Untuk menyimpan data */
.poli-data-container {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .schedule-row {
    flex-direction: column;
  }

  .schedule-cell {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
  }

  .schedule-cell:last-child {
    border-bottom: none;
  }

  .poli-icon-circle {
    width: 75px;
    height: 75px;
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .hero-slider {
    height: 60vh;
    min-height: 450px;
  }
  .slide-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 55vh;
    min-height: 400px;
  }
  .slide-title {
    font-size: 2.2rem;
  }
  .slide-description {
    font-size: 1rem;
  }
  .btn-slide {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  .page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    height: 60vh;
    min-height: 450px;
  }
  .slide-title {
    font-size: 2rem;
  }
}

/* PENUNJANG */
/* ===== STYLE KHUSUS UNTUK LAYANAN PENUNJANG ===== */
.ps-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.ps-section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0d6efd, #2d9c8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ps-section-subtitle {
  font-size: 1.2rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}
.ps-header-decoration {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #2d9c8a);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Intro text */
.ps-services-intro {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 3rem;
  background: #f0f9ff;
  padding: 1.8rem 2.5rem;
  border-radius: 60px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 110, 253, 0.1);
}
.ps-services-intro p {
  font-size: 1.15rem;
  color: #1e293b;
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 0;
}

/* ===== KARTU BENTUK BULET (REVISI: HANYA LINGKARAN IKON, NAMA DI BAWAH) ===== */
.ps-service-item {
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.ps-service-icon-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.15);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #0d6efd, #2d9c8a) border-box;
}

.ps-service-item:hover .ps-service-icon-circle {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.25);
}

.ps-service-icon-circle i {
  font-size: 3rem;
  background: linear-gradient(135deg, #0d6efd, #2d9c8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.ps-service-item:hover .ps-service-icon-circle i {
  transform: scale(1.1);
}

.ps-service-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.ps-service-item:hover h4 {
  color: #0d6efd;
}

.ps-service-item .ps-click-hint {
  font-size: 0.7rem;
  color: #6c757d;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ps-service-item:hover .ps-click-hint {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .ps-service-icon-circle {
    width: 100px;
    height: 100px;
  }
  .ps-service-icon-circle i {
    font-size: 2.5rem;
  }
}

/* Modal detail yang elegan */
.ps-modal-service-content {
  border: none;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.ps-modal-service-header {
  background: linear-gradient(115deg, #0d6efd, #2d9c8a);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.ps-modal-service-icon {
  width: 75px;
  height: 75px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ps-modal-service-icon i {
  font-size: 2.8rem;
  background: linear-gradient(135deg, #0d6efd, #2d9c8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ps-modal-service-header .ps-modal-title {
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.3px;
}

.ps-modal-body {
  padding: 2rem 2rem 1rem;
}

.ps-detail-section {
  margin-bottom: 1.8rem;
}

.ps-detail-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #0b2b4b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eef2f6;
  padding-bottom: 0.5rem;
}

.ps-detail-section-title i {
  color: #2d9c8a;
  font-size: 1.2rem;
}

.ps-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ps-list-modern li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: #334155;
}

.ps-list-modern li::before {
  content: "▹";
  color: #0d6efd;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.ps-info-contact {
  background: #f0f9ff;
  border-radius: 20px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.ps-info-contact i {
  font-size: 2rem;
  color: #2d9c8a;
}

.ps-modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1.2rem 2rem;
  background: #fcfcfd;
}

.ps-btn-custom-close {
  background: white;
  border: 1px solid #ced4da;
  border-radius: 40px;
  padding: 0.5rem 1.8rem;
}

/* Stats section */
.ps-stats-section {
  background: linear-gradient(135deg, #0d6efd, #2d9c8a);
  padding: 3rem 0;
  border-radius: 30px;
  margin: 3rem 0;
  color: white;
}
.ps-stat-item {
  text-align: center;
}
.ps-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
}

/* CTA Section */
.ps-cta-section {
  background: white;
  border-radius: 30px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  margin: 3rem 0;
  text-align: center;
}
.ps-cta-title {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 1rem;
}
.ps-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn-ps-cta-primary {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--hospital-green)
  );
  color: white;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-ps-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.4);
  color: white;
}
.btn-ps-cta-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-ps-cta-outline:hover {
  background: var(--primary-blue);
  color: white;
}

/* TAMBAHAN CSS UNTUK GAMBAR DI MODAL */
.ps-modal-service-header {
  background: transparent !important;
  padding: 0 !important;
  position: relative;
}

/* Gambar full width tanpa border radius di atas */
.ps-modal-service-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

/* Container untuk judul di dalam body (bukan header) */
.ps-modal-title-container {
  text-align: center;
  margin: 1.5rem 0 1rem;
}

.ps-modal-title-container h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  background: linear-gradient(135deg, #0d6efd, #2d9c8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* Sembunyikan title di header */
.ps-modal-service-header .ps-modal-title {
  display: none;
}

/* Sembunyikan ikon lingkaran biru */
.ps-modal-service-icon {
  display: none !important;
}

/* Sesuaikan padding body */
.ps-modal-body {
  padding: 0 2rem 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* Hapus border radius bottom dari gambar */
.modal-content {
  border-radius: 40px;
  overflow: hidden;
}

/* Scrollbar styling */
.ps-modal-body::-webkit-scrollbar {
  width: 6px;
}

.ps-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.ps-modal-body::-webkit-scrollbar-thumb {
  background: #0d6efd;
  border-radius: 10px;
}

/* Close button styling */
.btn-close-white {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 0.8rem;
  opacity: 0.8;
  z-index: 1050;
}

.btn-close-white:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.7);
}
/* Responsive untuk hero */
@media (max-width: 992px) {
  .hero-slider {
    height: 60vh;
    min-height: 450px;
  }
  .slide-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 55vh;
    min-height: 400px;
  }
  .slide-title {
    font-size: 2.2rem;
  }
  .slide-description {
    font-size: 1rem;
  }
  .btn-slide {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    height: 60vh;
    min-height: 450px;
  }
  .slide-title {
    font-size: 2rem;
  }
}


/* JUDUL HALAMAN TARIF */
.tarif-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    /* margin-bottom: 25px; */

    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--hospital-green)
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
}


/* POLI SECTION - BULATAN PUTIH */
.poli-circle-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 25px;
    margin-top: 30px;
    justify-items: center;
}

.poli-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 110px;
}

.poli-circle-item:hover {
    transform: translateY(-5px);
}

.poli-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 30px;
    color: var(--blue-main);
    background: white;
    border: 2px solid var(--blue-soft);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.poli-circle-item:hover .poli-circle {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
    border-color: var(--blue-main);
    background: var(--blue-soft);
}

.poli-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    margin-top: 5px;
}

/* DOKTER SECTION - PORTRAIT STYLE */
.dokter-list-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.dokter-list-section.active {
    display: block;
}

.back-to-poli {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-soft);
    color: var(--blue-main);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-poli:hover {
    background: var(--blue-main);
    color: white;
    transform: translateX(-5px);
}

.dokter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* DAFTAR HARGA SECTION */
.harga-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-top: 40px;
    border-top: 4px solid var(--hospital-green);
}

.harga-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.harga-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.harga-table thead {
    background: var(--blue-soft);
}

.harga-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--blue-main);
    border-bottom: 2px solid var(--blue-main);
}

.harga-table tbody tr {
    transition: all 0.2s;
}

.harga-table tbody tr:hover {
    background: #f8f9fa;
}

.harga-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e9ecef;
}

.harga-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.harga-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--hospital-green);
}

.harga-category {
    margin-bottom: 30px;
}

.harga-category-title {
    font-weight: 600;
    color: var(--blue-main);
    font-size: 16px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--blue-soft);
}

.harga-note {
    background: var(--hospital-light);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-dark);
    border-left: 3px solid var(--hospital-green);
}

.harga-note i {
    color: var(--hospital-green);
    margin-right: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}



/* INFO BOX - untuk halaman tarif */
.info-box {
    background:#fff;
    border-radius:15px;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0, 0, 0, 0.08);
    transition:.3s;
    border-top: 4px solid var(--blue-main);
}
.info-box:hover{ 
    transform:translateY(-6px); 
    box-shadow:0 8px 20px rgba(13, 110, 253, 0.15);
}

.icon-circle{
    width:60px;
    height:60px;
    border-radius:50%;
    background:var(--blue-soft);
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto;
    font-size:26px;
    color:var(--blue-main);
}

#pdfPreviewModal .modal-dialog {
    width: 678px;
}

#pdfPreviewModal .modal-content {
    height: 90vh;
}

#pdfPreviewModal iframe {
    width: 100%;
    height: 100%;
}

/* Mobile */
@media (max-width: 768px) {

    #pdfPreviewModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
    }

    #pdfPreviewModal .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    #pdfPreviewModal .modal-body {
        height: calc(100vh - 60px) !important;
    }

    #pdfPreviewModal iframe {
        width: 100%;
        height: 100%;
    }
}
