/********** Template CSS **********/
:root {
    --primary: #021bff;
    --secondary: #ff0000;
    --light: #EEF9FF;
    --dark: #000dff;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

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

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 255, 0.85);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -90px;
        z-index: 1;
    }
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.twentytwenty-wrapper {
    height: 100%;
}

.hero-header {
    background: linear-gradient(rgba(5, 31, 68, 0.85), rgba(5, 31, 68, 0.85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.bg-appointment {
    background: linear-gradient(rgba(5, 31, 68, 0.85), rgba(5, 31, 68, 0.85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.appointment-form {
    background: rgba(0, 21, 255, 0.7);
}

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
}

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius:100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

.bg-offer {
    background:url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.offer-text {
    background: rgba(0, 21, 255, 0.85);
}

.price-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 45px);
    height: 45px;
    top: calc(50% - 22.5px);
    left: -22.5px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.price-carousel:hover .owl-nav {
    opacity: 1;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.bg-testimonial {
    background: url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    background: rgba(1, 26, 252, 0.85);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 46px);
    height: 46px;
    top: calc(50% - 23px);
    left: -23px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}

<style>
  .doctor-photo {
    width: 100px;         /* kecil tapi masih jelas */
    height: 100px;        /* bulat sempurna */
    object-fit: cover;
    border-radius: 50%;
  }
</style>

<style>
.card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
}
</style>

/* Custom dropdown menu style */
.dropdown-menu {
  border-radius: 20px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: none !important;
  padding: 15px 10px !important;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

.dropdown-item {
  border-radius: 10px;
  padding: 8px 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #0222da;
  color: white;
}

/* Glassmorphism-style dropdown menu */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 25px !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-height: 70vh;
  overflow-y: auto;
}

.dropdown-item {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: #000;
  padding: 10px 18px;
  margin: 5px 0;
  border-radius: 20px;
  transition: all 0.3s ease-in-out;
  background: rgba(255, 255, 255, 0.4);
}

.dropdown-item:hover {
  background-color: #0222da;
  color: #fff;
  transform: translateX(4px);
}

<style>
  .judul-section {
    font-family: 'Roboto', sans-serif;
    color: #0222da; /* Warna biru Bootstrap */
    text-transform: uppercase;
    position: relative;
    display: inline-block;
  }

</style>

@media (max-width: 576px) {
  /* Navbar brand text */
  .navbar-brand span {
    font-size: 14px;
    display: block;
    line-height: 1.2;
  }

  .navbar-brand img {
    height: 30px;
  }

  /* Marquee text */
  marquee span {
    font-size: 12px !important;
    line-height: 1.3;
  }

  /* Carousel */
  .carousel-item {
    height: 250px !important;
  }

  .carousel-item img {
    height: 100% !important;
    object-fit: contain;
    width: 100%;
  }

  /* Tombol daftar */
  .btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Logo mitra */
  .mitra-logo {
    height: 50px !important;
  }

  /* Gambar dokter */
  .doctor-card img,
  .mitra-logo {
    width: 100%;
    height: auto !important;
  }

  /* Carousel container fix */
  .carousel .d-flex {
    flex-direction: column;
  }
}

<style>
.scrolling-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.scrolling-images {
  display: flex;
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
</style>

.scrolling-wrapper {
  position: relative;
}

.scrolling-images {
  animation: scroll-infinite 80s linear infinite;
  width: max-content;
}

@keyframes scroll-infinite {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.glass-label {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 15px;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #000000; /* ✅ PUTIH */
  font-weight: 700; /* ✅ TEBAL */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

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

@media (max-width: 576px) {
  .header-title {
    font-size: 0.85rem;
  }

  .hero-header {
    background-size: contain;
  }
}

.hemodialisa-card {
  position: relative;
  border-radius: 20px;
  background: url('../img/HD.jpg') center/cover no-repeat;
  overflow: hidden;
  color: white;
}

/* Overlay gelap */
.hemodialisa-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 60, 0.65); /* biru gelap transparan */
  z-index: 0;
}

.hemodialisa-card * {
  position: relative;
  z-index: 1;
}

/* Judul dan ikon */
.hemodialisa-card h3 {
  color: #1e90ff; /* biru medis */
  font-size: 1.8rem;
}

.hemodialisa-card h3 i {
  color: #1e90ff;
}

/* Deskripsi */
.hemodialisa-card .desc {
  color: #f0f0f0;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* List styling */
.hemodialisa-card ul {
  max-width: 500px;
}

.hemodialisa-card li {
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  color: #e6f7ff;
}

.hemodialisa-card li i {
  color: #00ff88; /* hijau terang */
  margin-right: 10px;
  font-size: 1.2rem;
}

.igd-card {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(255, 255, 255, 0.1));
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(255, 0, 0, 0.25);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Ikon berdenyut */
.igd-card .fa-ambulance {
  color: #ff4d4d;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
  }
}

/* Judul IGD */
.igd-card .room-title {
  color: #ff3333;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

/* Deskripsi */
.igd-card .room-description {
  color: #000000;
  line-height: 1.6;
  max-width: 800px;
  margin: auto;
}

.poliklinik-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
}

.poliklinik-logo {
  position: absolute;
  top: -170px; /* sesuaikan ketinggian */
  left: 50%;
  transform: translateX(-50%);
}

.poliklinik-logo img {
  max-width: 300px; /* sesuaikan ukuran logo */
  height: auto;
}

.mitra-logo {
  width: 200px;
  height: 300px;        /* paksa kotak */
  object-fit: contain;  /* isi kotak tanpa merusak rasio */
  padding: 10px;        /* biar gak terlalu mepet */
  background: #fff;     /* opsional, kasih latar putih */
  border-radius: 12px;  /* opsional, biar rounded */
}

.mitra-logo:hover {
  transform: scale(1.1); /* efek zoom saat hover */
}

/* Untuk layar kecil (HP) biar otomatis mengecil */
@media (max-width: 768px) {
  .mitra-logo {
    max-width: 100px;
  }
}
