/* ========================================================
   CSS Portal Publik Klinik Utama Rawat Inap Ibunda
   Medical Excellence Design System - Mobile First & SEO Friendly
   ======================================================== */

:root {
  --primary-color: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #dcfce7;
  
  --accent-color: #f59e0b;
  --danger-color: #ef4444;
  
  --dark-text: #0f172a;
  --body-text: #334155;
  --muted-text: #64748b;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Base Typography & Layout */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--body-text);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Link Utilities */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-dark);
}
.hover-primary:hover {
  color: var(--primary-color) !important;
}

/* Topbar */
.topbar {
  background: #f8fafc;
  font-size: 0.815rem;
  color: var(--muted-text);
  border-bottom: 1px solid var(--border-color);
  padding: 5px 0;
}
.topbar a {
  color: var(--body-text);
  text-decoration: none;
}
.topbar a:hover {
  color: var(--primary-color);
}

/* Navbar */
.navbar-klinik {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 7px 0;
  transition: all 0.3s ease;
  z-index: 1030;
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand-logo img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  flex-shrink: 0;
  display: inline-block;
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 1px;
}

.navbar-nav {
  gap: 2px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--body-text) !important;
  padding: 6px 9px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap !important;
  line-height: 1.3;
}

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

/* Buttons */
.btn-primary-custom {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  font-weight: 600;
  border-radius: 50px;
  padding: 9px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-primary-custom:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.35);
}

.btn-secondary-custom {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  border-radius: 50px;
  padding: 9px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-secondary-custom:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
}

.btn-primary-custom.btn-sm,
.btn-secondary-custom.btn-sm {
  padding: 6px 13px;
  font-size: 0.815rem;
  font-weight: 700;
  border-radius: 50px;
  white-space: nowrap !important;
  line-height: 1.3;
}

/* Hero Section */
.hero-slider-item {
  min-height: 540px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-slider-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 70px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(224, 242, 254, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(224, 242, 254, 0.35);
  color: #7dd3fc;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-desc {
  font-size: 1.25rem;
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1.5;
}

/* Trust Badges Bar */
.trust-bar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-top: -45px;
  position: relative;
  z-index: 10;
}

/* Feature Box Cards */
.feature-box {
  background: #ffffff;
  padding: 32px 26px;
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(2, 132, 199, 0.4);
}

.feature-icon-wrapper {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  background: var(--primary-light);
  color: var(--primary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.feature-box:hover .feature-icon-wrapper {
  background: var(--primary-gradient);
  color: #ffffff;
  transform: scale(1.05);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  display: inline-block;
  background: rgba(2, 132, 199, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark-text);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-desc {
  color: var(--muted-text);
  font-size: 1.05rem;
  max-width: 660px;
  margin: 12px auto 0;
  line-height: 1.6;
}

/* Modern Cards */
.card-modern {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(2, 132, 199, 0.35);
}

/* Value Card / Nilai Pelayanan (Mengapa Memilih Kami) */
.value-card {
  align-items: center !important;
  text-align: center;
  border-radius: var(--radius-xl);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.value-icon-circle {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.85rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.25rem;
  flex-shrink: 0 !important;
  align-self: center !important;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.value-card:hover .value-icon-circle {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.value-icon-circle.icon-blue {
  background-color: #e0f2fe;
  color: #0284c7;
}

.value-icon-circle.icon-green {
  background-color: #dcfce7;
  color: #16a34a;
}

.value-icon-circle.icon-cyan {
  background-color: #cffafe;
  color: #0891b2;
}

.value-icon-circle.icon-amber {
  background-color: #fef3c7;
  color: #d97706;
}

.card-modern-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.card-modern-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Doctor Card */
.doctor-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(2, 132, 199, 0.4);
}

.doctor-avatar {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--primary-light);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
  transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-avatar {
  transform: scale(1.06);
}

.doctor-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark-text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.doctor-specialty {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.doctor-schedule-badge {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--body-text);
}

/* Gallery Grid */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  height: 250px;
  background: #e2e8f0;
  box-shadow: var(--card-shadow);
  transition: all 0.35s ease;
}

.gallery-img,
.gallery-item .gallery-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  color: #ffffff !important;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.gallery-overlay h1,
.gallery-overlay h2,
.gallery-overlay h3,
.gallery-overlay h4,
.gallery-overlay h5,
.gallery-overlay h6 {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.gallery-overlay .badge {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* Floating WhatsApp Button (Desktop) */
.floating-wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa-btn i {
  font-size: 1.5rem;
}

.floating-wa-btn:hover {
  color: #ffffff;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ========================================================
   MOBILE BOTTOM NAVIGATION BAR (SMARTPHONE APP FEEL)
   ======================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  justify-content: space-around;
  align-items: center;
  padding: 6px 4px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
  .floating-wa-btn {
    display: none !important;
  }
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  min-width: 62px;
  min-height: 48px;
}

.mobile-bottom-item i {
  font-size: 1.15rem;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.mobile-bottom-item:hover,
.mobile-bottom-item.active {
  color: var(--primary-color);
}

.mobile-bottom-item.active i {
  transform: translateY(-2px);
}

.mobile-bottom-highlight {
  position: relative;
  margin-top: -16px;
}

.mobile-wa-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
  margin-bottom: 2px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-highlight:active .mobile-wa-bubble {
  transform: scale(0.92);
}

/* Footer */
.footer-klinik {
  background: #0b1329;
  color: #94a3b8;
  padding-top: 64px;
  padding-bottom: 32px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

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

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #64748b;
}

/* ========================================================
   RESPONSIVE OPTIMIZATIONS (TABLET & MOBILE BREAKPOINTS)
   ======================================================== */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .navbar-nav {
    padding-top: 12px;
    padding-bottom: 8px;
  }
}

@media (max-width: 768px) {
  /* Prevent bottom bar overlapping body content */
  body {
    padding-bottom: 68px;
  }
  
  .hero-slider-item {
    min-height: 440px;
  }
  .hero-content {
    padding: 40px 0;
    text-align: center;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-desc {
    font-size: 1.05rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .section-desc {
    font-size: 0.95rem;
  }
  .feature-box {
    padding: 24px 20px;
  }
  .doctor-card {
    padding: 22px 18px;
  }
}

/* ========================================================
   Performance Optimization (Core Web Vitals & Rendering)
   ======================================================== */
.card-modern-img,
.gallery-img,
.article-content img {
  max-width: 100%;
  height: auto;
}

/* Off-screen Content Rendering Optimization (Skips invisible DOM painting) */
.gallery-section,
.instagram-embed-wrapper,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 450px;
}

/* Hardware-accelerated smooth transitions */
.card-modern,
.feature-box,
.doctor-card,
.btn {
  transform: translateZ(0);
}

/* ========================================================
   PORTAL PASIEN & PENDAFTARAN ONLINE (NOMOR RM) STYLES
   ======================================================== */
.portal-pasien-card {
  background: linear-gradient(135deg, #0b1e36 0%, #0369a1 55%, #0284c7 100%);
  border-radius: var(--radius-xl);
  color: #ffffff;
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portal-pasien-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portal-step-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: all 0.3s ease;
  height: 100%;
}

.portal-step-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
}

.portal-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .portal-pasien-card {
    padding: 28px 20px;
  }
}


