* { font-family: var(--font-family, 'Poppins', sans-serif); }

body { background: #fff; color: #2b2b2b; }

.top-bar { background: var(--dark); color: #fff; }

.navbar-brand { text-decoration: none; }
.nav-link { font-weight: 500; color: #333 !important; }
.nav-link:hover { color: var(--primary) !important; }

/* Hero / Slider */
.hero-img { height: 520px; object-fit: cover; filter: brightness(0.65); }
.hero-caption { bottom: 15%; left: 8%; right: auto; max-width: 550px; text-align: left; }
.hero-fallback {
  height: 420px;
  background: linear-gradient(135deg, var(--primary), var(--dark));
}

.badge-section {
  display: inline-block;
  background: rgba(14,124,134,.1);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .5px;
}

/* Cards */
.service-card, .package-card, .doctor-card, .article-card {
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: 16px;
  overflow: hidden;
}
.service-card:hover, .package-card:hover, .doctor-card:hover, .article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08) !important;
}
.service-img { height: 170px; object-fit: cover; }
.package-img { height: 170px; object-fit: cover; }
.article-img { height: 170px; object-fit: cover; }
.doctor-photo { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; border: 3px solid var(--light-bg); }

/* Floating buttons */
.float-btn {
  position: fixed;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  z-index: 1050;
  text-decoration: none;
}
.wa-btn { background: #25D366; bottom: 90px; }
.wa-btn:hover { background: #1ebc59; color: #fff; }
.emergency-btn { background: #e53935; bottom: 20px; position: fixed; }
.emergency-btn:hover { background: #c62828; color: #fff; }
.emergency-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #e53935;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.article-content img { max-width: 100%; border-radius: 12px; margin: 1rem 0; }
.article-content { line-height: 1.8; }

footer a:hover { color: #fff !important; }
.kodea-credit { transition: opacity .2s ease; }
.kodea-credit:hover { opacity: .85; }
.kodea-credit img { transition: transform .2s ease; }
.kodea-credit:hover img { transform: scale(1.05); }

/* Dot indikator untuk rotasi otomatis (Dokter & Artikel di beranda) */
.rotator-dots { display: inline-flex; gap: 6px; }
.rotator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.15);
  display: inline-block;
  transition: background .3s ease, transform .3s ease;
}
.rotator-dot.active { background: var(--primary); transform: scale(1.3); }

/* Artikel terkait di halaman detail artikel */
.related-article-card img { height: 140px; object-fit: cover; }

/* Mitra Asuransi */
.insurance-logo {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: .85;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.insurance-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
