/* ==========================================================================
   RSBY / RUMAH SAKIT MODERN MEDICAL PORTAL - FRONTEND DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Brand Medical Colors */
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #38bdf8;
  --primary-subtle: #e0f2fe;
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  
  --accent: #059669;
  --accent-light: #10b981;
  --accent-subtle: #d1fae5;
  
  --danger: #e11d48;
  --danger-light: #f43f5e;
  --danger-subtle: #ffe4e6;
  
  --warning: #f59e0b;
  --warning-subtle: #fef3c7;
  
  /* Neutral Grayscale */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Shadows & Elevations */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 10px 15px -7px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);
  --shadow-accent-glow: 0 0 25px rgba(16, 185, 129, 0.25);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 15px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Selection Color */
::selection {
  background-color: var(--primary-light);
  color: #ffffff;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.3;
}

/* ==========================================================================
   TOP HEADER BAR
   ========================================================================== */
.top-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header .contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.top-header .contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 500;
}

.top-header .contact-info i {
  color: var(--primary-light);
  font-size: 14px;
}

.top-header .badge-emergency {
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.top-header .social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.top-header .social-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all var(--transition-normal);
}

.top-header .social-link:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN NAVBAR (STICKY GLASSMORPHISM)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

.main-header .navbar {
  padding: 12px 0;
}

.main-header .logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.main-header .logo-section img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.main-header .logo-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.main-header .logo-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Nav Links */
.navbar-nav .nav-link {
  color: var(--secondary-light) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.navbar-nav .nav-link i {
  color: var(--primary);
  font-size: 13px;
  transition: transform var(--transition-normal);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background-color: var(--primary-subtle);
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i {
  transform: scale(1.1);
}

/* Dropdown Menu */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 8px;
  margin-top: 8px !important;
  background: #ffffff;
  min-width: 220px;
  animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--secondary-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.dropdown-item i {
  color: var(--primary);
  width: 18px;
  text-align: center;
  font-size: 13px;
}

.dropdown-item:hover {
  background-color: var(--primary-subtle);
  color: var(--primary-dark);
  transform: translateX(4px);
}

.dropdown-item:active {
  background-color: var(--primary);
  color: #ffffff;
}

.dropdown-item:active i {
  color: #ffffff;
}

/* Emergency Call Button in Navbar */
.btn-emergency-nav {
  background: linear-gradient(135deg, var(--danger) 0%, #be123c 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all var(--transition-normal);
}

.btn-emergency-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
  color: #ffffff !important;
}

/* ==========================================================================
   HERO SECTION & SLIDER
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--secondary);
}

.hero-slide {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.3) 100%);
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title .text-highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  transition: all var(--transition-normal);
}

.carousel-indicators .active {
  width: 28px;
  border-radius: var(--radius-pill);
  background-color: var(--primary-light);
}

.carousel-control-prev,
.carousel-control-next {
  width: 46px;
  height: 46px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 20px;
  transition: all var(--transition-normal);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
   QUICK ACTION OVERLAP BAR
   ========================================================================== */
.quick-actions-bar {
  position: relative;
  z-index: 10;
  margin-top: -50px;
}

.action-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  height: 100%;
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.action-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(5deg);
}

.action-icon.bg-blue {
  background: var(--primary-subtle);
  color: var(--primary);
}

.action-icon.bg-green {
  background: var(--accent-subtle);
  color: var(--accent);
}

.action-icon.bg-red {
  background: var(--danger-subtle);
  color: var(--danger);
}

.action-icon.bg-amber {
  background: var(--warning-subtle);
  color: var(--warning);
}

.action-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.action-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==========================================================================
   SECTION HEADINGS & UTILITIES
   ========================================================================== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

/* ==========================================================================
   STATS COUNTER CARDS
   ========================================================================== */
.stat-card-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.stat-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.stat-card-modern .stat-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-subtle) 0%, #ffffff 100%);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.stat-card-modern .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-card-modern .stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   ABOUT / PROFIL SECTION
   ========================================================================== */
.about-section {
  position: relative;
  background: #ffffff;
}

.about-img-container {
  position: relative;
  padding: 15px;
}

.about-img-main {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-badge-floating {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: floatUpDown 4s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-feature-box {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-normal);
}

.about-feature-box:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

.about-feature-box i {
  color: var(--accent);
  font-size: 20px;
}

/* ==========================================================================
   SERVICES & POLIKLINIK (CHECKERBOARD CARDS)
   ========================================================================== */
.service-card-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card-modern:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}

.service-card-modern:hover .service-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
}

.service-card-modern h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary);
}

.service-card-modern p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ==========================================================================
   DOCTORS CARDS
   ========================================================================== */
.doctor-card-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doctor-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.doctor-img-wrapper {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doctor-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.doctor-card-modern:hover .doctor-img-wrapper img {
  transform: scale(1.06);
}

.doctor-specialty-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.doctor-info-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.doctor-info-body h5 {
  font-size: 17px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.doctor-sip {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doctor-schedule-snippet {
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doctor-schedule-snippet i {
  color: var(--primary);
}

/* ==========================================================================
   FACILITIES & GALLERY CARDS
   ========================================================================== */
.facility-card-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  height: 100%;
}

.facility-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.facility-img-box {
  position: relative;
  height: 220px;
  background: #e2e8f0;
  overflow: hidden;
}

.facility-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.facility-card-modern:hover .facility-img-box img {
  transform: scale(1.08);
}

.facility-content-box {
  padding: 22px;
}

.facility-content-box h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.facility-content-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Gallery Item */
.gallery-card-modern {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
  display: block;
}

.gallery-card-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay-modern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-card-modern:hover img {
  transform: scale(1.1);
}

.gallery-card-modern:hover .gallery-overlay-modern {
  opacity: 1;
}

.gallery-overlay-modern h5 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-overlay-modern p {
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 0;
}

/* ==========================================================================
   NEWS & BLOG CARDS
   ========================================================================== */
.news-card-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.news-img-box {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #e2e8f0;
}

.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card-modern:hover .news-img-box img {
  transform: scale(1.08);
}

.news-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  line-height: 1.1;
}

.news-date-badge .day {
  font-size: 16px;
  color: var(--primary);
  display: block;
}

.news-date-badge .month {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.news-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-meta i {
  color: var(--primary);
}

.news-body h5 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-body h5 a {
  color: var(--secondary);
}

.news-body h5 a:hover {
  color: var(--primary);
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.read-more-link {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more-link:hover {
  color: var(--primary-dark);
  gap: 10px;
}

/* ==========================================================================
   EMERGENCY & CTA BANNER
   ========================================================================== */
.cta-emergency-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a8a 50%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-emergency-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0) 70%);
}

.cta-emergency-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.cta-emergency-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.btn-emergency-call {
  background: var(--danger);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  transition: all var(--transition-normal);
}

.btn-emergency-call:hover {
  background: #be123c;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.55);
}

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */
.btn-primary-medical {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

.btn-primary-medical:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-outline-medical {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

.btn-outline-medical:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.btn-accent-medical {
  background: linear-gradient(135deg, var(--accent) 0%, #047857 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

.btn-accent-medical:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

/* ==========================================================================
   SUBPAGE HERO BANNER (PAGE HEADER)
   ========================================================================== */
.page-header-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a8a 60%, var(--primary-dark) 100%);
  padding: 60px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
}

.page-header-banner .page-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page-header-banner .page-subtitle {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.page-header-banner .breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  margin-bottom: 0;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-header-banner .breadcrumb a {
  color: #38bdf8;
  font-weight: 600;
}

.page-header-banner .breadcrumb-item.active {
  color: #ffffff;
  font-weight: 700;
}

.page-header-banner .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   ROOM / BED INFORMATION (INFO KAMAR REALTIME)
   ========================================================================== */
.bed-stat-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
}

.bed-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bed-badge-available {
  background: var(--accent-subtle);
  color: var(--accent);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.bed-badge-occupied {
  background: var(--danger-subtle);
  color: var(--danger);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.table-medical {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.table-medical thead {
  background: var(--secondary);
  color: #ffffff;
}

.table-medical thead th {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
}

.table-medical tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  vertical-align: middle;
}

.table-medical tbody tr:hover {
  background-color: #f1f5f9;
}

.table-medical tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   SCHEDULE & JADWAL DOKTER TABS
   ========================================================================== */
.nav-pills-medical .nav-link {
  background: #ffffff;
  color: var(--secondary-light);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all var(--transition-normal);
}

.nav-pills-medical .nav-link.active,
.nav-pills-medical .nav-link:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   CONTACT & INTERACTIVE MAP SECTION
   ========================================================================== */
.contact-card-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-text h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
}

.form-control-modern {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  padding: 12px 16px;
  font-size: 14px;
  transition: all var(--transition-normal);
}

.form-control-modern:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

/* ==========================================================================
   FOOTER (MODERN CORPORATE LUXURY)
   ========================================================================== */
.footer-modern {
  background: #0b1120;
  color: #cbd5e1;
  position: relative;
  padding-top: 70px;
  border-top: 3px solid var(--primary);
}

.footer-top-widget h5 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-top-widget h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

.footer-top-widget p,
.footer-top-widget .footer-about-text {
  color: #cbd5e1 !important;
  font-size: 14px;
  line-height: 1.75;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

.footer-links a i {
  font-size: 11px;
  color: var(--primary-light);
  transition: transform var(--transition-normal);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-links a:hover i {
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.footer-contact-item span {
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--primary-light);
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom-bar {
  background: #070c18;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom-bar a {
  color: #94a3b8;
}

.footer-bottom-bar a:hover {
  color: #ffffff;
}

.footer-bottom-bar strong {
  color: #ffffff;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (WHATSAPP & BACK TO TOP)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: all var(--transition-normal);
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.1);
  color: #ffffff !important;
}

.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .quick-actions-bar {
    margin-top: 20px;
  }
  .action-card {
    margin-bottom: 12px;
  }
  .about-img-main {
    height: 320px;
  }
  .navbar-collapse {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-slide {
    min-height: 460px;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .cta-emergency-banner {
    padding: 30px 20px;
  }
}