/* RESET */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

/* ================= NAVBAR ================= */
.navbar-rs {
  background: linear-gradient(135deg, #0a58ca, #07172e);
}

.navbar-brand img {
  height: 60px;
}

/* ================= SLIDER ================= */
.banner-img {
  height: 520px;
  object-fit: cover;
}

.carousel-caption {
  bottom: 25%;
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 12px;
}

/* ================= PROFIL ================= */
#profil {
  padding: 80px 0;
}



/* ================= CARD ================= */
.card {
  border-radius: 16px;
  overflow: hidden;
}

.card img {
  height: 260px;
  object-fit: cover;
}

/* ================= DOKTER ================= */
.dokter-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.dokter-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* ================= CAROUSEL DOKTER ================= */
#carouselDokter {
  position: relative;
  z-index: 2;
}

#carouselDokter .carousel-inner {
  overflow: hidden;
}

#carouselDokter .carousel-item {
  padding: 10px 0;
}

/* TOMBOL FIX (INI PENTING BANGET) */
.carousel-control-prev,
.carousel-control-next {
  z-index: 9999 !important;
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(13,110,253,0.8);
  border-radius: 50%;
  padding: 20px;
}

/* ================= KONTAK ================= */
.kontak-rs {
  background: #f8f9fa;
  padding: 100px 0;
}

.kontak-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
}

/* ================= WHATSAPP ================= */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 14px;
  border-radius: 50%;
  z-index: 1; /* TURUNIN BIAR GA NUTUP */
}

/* ================= FOOTER ================= */
footer {
  background: #212529;
  color: #fff;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  .banner-img {
    height: 280px;
  }

  .carousel-caption {
    bottom: 10px;
    padding: 10px;
  }

  .carousel-caption h2 {
    font-size: 18px;
  }

  /* 🔥 INI YANG BIKIN 1 DOKTER */
  #carouselDokter .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

}

/* ================= TEXT ================= */
h1, h2, h3, h4, h5 {
  font-weight: 700;
}

p {
  color: #555;
}

/* WRAPPER */
.dokter-wrap {
  display: flex;
}

/* CARD SIZE */
.dokter-item {
  width: 33.33%;
}

/* MOBILE = 1 ITEM */
@media (max-width: 768px) {
  .dokter-item {
    width: 100%;
  }
}

/* FIX BUTTON BISA DIKLIK */
.carousel-control-prev,
.carousel-control-next {
  z-index: 9999;
}

/* CARD DOKTER */
.dokter-card {
  border-radius: 20px;
  transition: all 0.3s ease;
  background: #fff;
}

.dokter-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* FOTO BULAT */
.dokter-img-wrapper img {
  transition: transform 0.3s ease;
}

.dokter-card:hover img {
  transform: scale(1.05);
}

/* HEADER */
.dokter-hero {
  background: linear-gradient(135deg, #0a58ca, #021533);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* SEARCH */
.input-group {
  border-radius: 50px;
  overflow: hidden;
}

.input-group input {
  padding: 12px;
}

/* MODAL */
.modal-content {
  border-radius: 20px;
}

.modal-header {
  background: linear-gradient(135deg, #0a58ca, #021533);
}

.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  z-index: 9999;
}

/* ICON */
.wa-float i {
  font-size: 20px;
}

/* HOVER */
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
  color: #fff;
}

/* ANIMASI HALUS */
@keyframes pulseWA {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float {
  animation: pulseWA 2.5s infinite;
}

/* MOBILE MODE */
@media (max-width: 576px) {
  .wa-float span {
    display: none;
  }

  .wa-float {
    width: 55px;
    height: 55px;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
  }

  .wa-float i {
    font-size: 24px;
  }
}

