
/* Loader background */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #EEF5FE;
  /* warna latar saat loading */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Saat loader hilang */
#loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader img {
  width: 90px;
  /* Atur ukuran gambar sesuai kebutuhan */
  height: auto;
  /* Agar proporsional */
}

/* ---Global CSS--- */

body {
  background: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.container-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  position: relative;
}

.title-text {
  font-size: 40px;
  font-weight: bold;
  color: #234974;
}

@media (max-width: 768px) {
  .title-text {
    font-size: 28px;
  }
}

.subtitle-text {
  font-size: 16px;
  color: #4AA48D;
  line-height: 1.6;
}

.btn-section {
  background-color: #234974;
  color: white;
  padding: 12.5px 50px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
}

.btn-section:hover {
  background-color: #234974;
  color: white;
  opacity: 0.9;
}

.btn-center {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 0 0;
  position: relative;
}

/* ---Header Top Bar Section--- */

.header-top-bar {
  background: linear-gradient(145deg, rgb(19, 40, 63) 0%, rgba(35, 73, 116, 0.95) 25%, rgba(74, 172, 144, 0.95) 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.header-top-bar a {
  color: #fff;
  white-space: nowrap;
}

.header-top-bar a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.header-top-bar i {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .header-top-bar .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* ---Navbar Section--- */

.navbar {
  display: flex;
  width: 100%;
  /* padding: 10px 100px; */
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

nav.navbar {
  transition: all 0.3s ease;
  z-index: 1030;
}

.header-top-bar {
  transition: all 0.3s ease;
}

.nav-item {
  margin: 0 5px;
}

/* Nested dropdown support */
.dropdown-submenu .dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0.1rem;
}

/* Desktop only: submenu muncul saat hover */
@media (min-width: 992px) {
  .dropdown-submenu:hover>.dropdown-menu {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .dropdown-submenu .dropdown-menu {
    display: none;
    position: static;
    margin: 1rem;
  }

  .dropdown-submenu.show>.dropdown-menu {
    display: block;
  }
}

/* ---Hero Section--- */

/* ---Carousel--- */
.hero-section {
  position: relative;
  /*height: 100vh; /* Tinggi penuh 1 layar device */
  height: 50vh;
  min-height: 700px;
  /* fallback untuk device kecil */
  overflow: hidden;
}

.hero-slide {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.8) 35%, rgba(255, 255, 255, 0.3) 70%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 1;
}

.carousel-fade .carousel-item {
  transition: opacity 1s ease-in-out;
}

.carousel-indicators [data-bs-target] {
  background-color: #234974;
  margin-bottom: 150px;
}

.carousel-indicators-banner [data-bs-target] {
  background-color: #234974;
  width: 30px;
  border-radius: 10px;
  margin-bottom: 0px;

}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 35%;
  transform: translateY(-50%);
  background-color: #ffffff;
  /* warna biru */
  border-radius: 50%;
  opacity: 0.5;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #234974;
  /* hijau saat hover */
  opacity: 1;
}

.carousel-icon:hover {
  color: white !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 50% 50%;
  filter: invert(1);
  /* ubah warna panah jadi putih */
}

.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}

/* ---Default--- */
/* .hero-section {
  background-image: url("../images2/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f7fcfe;
  padding: 120px 0 140px 0; --bawah ditambah agar ada ruang card--
  position: relative;
  z-index: 1;
  min-height: 750px;
} */

.hero-text {
  max-width: 50%;
  z-index: 2;
  position: relative;
  color: white;
  margin-top: 0;
  padding-top: 30px;
}

.hero-title {
  font-size: clamp(1.25rem, 3vw + 0.4rem, 3.05rem);
  font-weight: 700;
  color: #234974;
  background: linear-gradient(90deg, #234974 0%, #2F6F8F 35%, #43A99B 70%, #5BC4A8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.35rem);
  color: #234974;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-subtitle .hero-highlight {
  font-weight: 700;
  color: #1e3b5e;
}

.hero-address {
  font-size: 16px;
  color: #4AA48D;
  line-height: 1.6;
  margin-bottom: 40px;
}

.line-decorator {
  width: 60px;
  height: 6px;
  background-color: #4CAF50;
  border-radius: 5px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.btn-book {
  background-color: #4CAF50;
  color: white;
  padding: 12.5px 50px;
  border-radius: 50px;
  border: none;
  font-weight: 700;
}

.btn-book:hover {
  background-color: #234974;
  color: white;
}

@media (max-width: 768px) {
  .hero-slide {
    height: 75vh;
    /* Tinggi lebih kecil untuk layar kecil */
    background-position: right 17% bottom 45%;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    z-index: 1;
  }

  .carousel-indicators [data-bs-target] {
    margin-bottom: 325px;
  }

  .carousel-indicators-banner [data-bs-target] {
    margin-bottom: 0px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
    /* Sembunyikan kontrol pada layar kecil */
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 30px 20px 20px 20px;
    margin-top: 0;
  }

  .hero-title {
    text-align: center;
    background: linear-gradient(90deg, #234974 0%, #2F6F8F 35%, #43A99B 70%, #5BC4A8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-subtitle {
    text-align: center;
    color: #234974;
    font-style: normal;
    margin-bottom: 10px;
  }

  .hero-address {
    text-align: center;
    font-size: 14px;
    color: #337565;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .line-decorator {
    width: 60px;
    height: 6px;
    background-color: #4CAF50;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* Cari Dokter */
.search-doctor-section {
  margin-top: -150px;
  /* naikkan agar overlap */
  padding-bottom: 60px;
  background-color: #ffffff;
}

.search-box {
  background-color: #fff;
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  z-index: 3;
  position: relative;
}

.line-decorator1 {
  width: 100%;
  height: 6px;
  background-color: #4CAF50;
  border-radius: 5px;
}

.input-pencarian-dokter {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: end;
  gap: 15px;
}

.form-pencarian-dokter {
  width: 100%;
}

/* Style untuk container tombol */
.form-button-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: flex-end;
}

/* Style untuk tombol pencarian */
.btn-search {
  width: auto;
  height: 40px;
  background-color: #234974;
  color: white;
  border-radius: 50px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background-color: #1a365d;
  color: white;
}

/* Style untuk tombol reset */
.btn-search2nd {
  width: auto;
  height: 40px;
  background-color: white;
  color: #234974;
  border-radius: 50px;
  border: 1px solid #234974;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-search2nd:hover {
  background-color: #f8f9fa;
  color: #234974;
  border-color: #1a365d;
}


@media (max-width: 768px) {
  .search-doctor-section {
    margin-top: -325px;
    /* naikkan agar overlap */
    margin-left: 30px;
    margin-right: 30px;
    padding-bottom: 50px;
    background-color: #ffffff;
  }

  .search-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    z-index: 3;
    position: relative;
  }

  .line-decorator1 {
    width: 100%;
    height: 6px;
    background-color: #4CAF50;
    border-radius: 5px;
  }

  .input-pencarian-dokter {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: end;
    gap: 20px;
  }
}

/* ---Layanan Kami/Feature--- */

.features {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #FFFFFF;
  padding: 50px 0;
  position: relative;
  min-height: 750px;
}

.container-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.features-card {
  background-color: #ffffff;
  padding: 30px 50px;
  width: 300px;
  height: 210px;
  border: 1px solid #ADADAD;
  border-radius: 2rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.features-card:hover {
  border: 1px solid #234974;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.content-card img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.content-card h6 {
  font-size: 14px;
  font-weight: 700;
  color: #234974;
  line-height: 1.6;
}

.jadwaldokter-card {
  background-color: #ffffff;
  padding: 20px 20px 10px 20px;
  width: 300px;
  border: 1px solid #ADADAD;
  border-radius: 2rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  min-width: 320px;
  max-width: 320px;
}

.jadwaldokter-card:hover {
  border: 1px solid #234974;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.jadwaldokter-card h6 {
  font-size: 14px;
  font-weight: 700;
  color: #234974;
  line-height: 1.6;
}

.dokter-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.dokter-nama {
  flex: 1;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.dokter-jam {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
}

.line-jadwaldokter {
  width: 60px;
  height: 6px;
  background-color: #4CAF50;
  border-radius: 5px;
  margin-top: 20px;
  margin-bottom: 20px;
  /* center position */
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

@media (max-width: 768px) {
  .features {
    min-height: fit-content;
  }

  .container-features {
    display: flex;
    /* penting agar item nav horizontal */
    justify-content: start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* pastikan scroll aktif jika tab lebih banyak dari layar */
    padding: 10px 30px;
    /* padding kiri kanan */
    margin-top: 20px;
    /* jarak atas */
  }

  .features-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* ---Dokter Kami--- */

.doctors {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  padding: 50px 0;
  position: relative;
  min-height: 750px;
}

/* ---Dokter Kami: Fitur Scroll dengan teknik Wraping untuk Tab Nav Bar--- */

.scrolling-tabs-wrapper {
  overflow-x: auto;
  width: 100%;
  /* pastikan scroll aktif jika tab lebih banyak dari layar */
}

.scrolling-tabs {
  display: flex;
  /* penting agar item nav horizontal */
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.scrolling-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.nav-pills .nav-link {
  border-radius: 2rem;
  padding: 8px 20px;
  margin-right: 10px;
  background-color: #EEF5FE;
  color: #234974;
  border: 1px solid #EEF5FE;
  white-space: nowrap;
  transition: 0.3s;
}

.nav-pills .nav-link.active {
  background-color: #234974;
  color: white;
  font-weight: 600;
}

/* ---Dokter Kami: Profile Dokter--- */


.container-doctors {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  padding: 20px 0;
  /* tambahan agar ada spasi vertikal */
}

.container-doctors .swiper-slide {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: flex;
  justify-content: center;
}

.card-doctor {
  background-image: url(../images2/bg-profilputih.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 300px;
  background-color: #ffffff;
  padding: 0 25px;
  flex-shrink: 0;
  /* jaga agar tidak menyempit */
  display: flex;
  flex-direction: column;
  align-items: start;
  border-radius: 15px;
  border: 1px solid #adadad;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.doctors-images {
  /* background-color: #F4F9FC; */
  width: 100%;
  max-width: 250px;
  height: auto;
  /* border: 1px solid #ADADAD; */
  border-radius: 15px;
  margin: 20px 0;

}

.doctors-name {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: left;
  width: 225px;
}

.doctors-name h5 {
  font-size: 16px;
  height: 35px;
  color: #234974;
}

.doctors-position {
  font-size: 14px;
  color: #4AA48D;
  line-height: 1.6;
}

.icon-arrow {
  color: #234974;
  display: inline;
  font-size: 20px;
}

/* -- Informasi Pelayanan Kesehatan -- */

.infobed {
  background-size: cover;
  /* background-color: #F4FBFF; */
  background: linear-gradient(135deg,
                    #19324d,
                    #50aa94);
  padding: 50px 0;
  position: relative;
  /* min-height: 750px; */
}

.jadwaldokter {
  background-size: cover;
  background-color: #F4FBFF;
  padding: 50px 50px 0 50px;
  position: relative;
  /* min-height: 750px; */
}

.container-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  padding: 20px 0;
  /* tambahan agar ada spasi vertikal */
}

/* ---Jadwak Dokter Hari Ini--- */

.container-loket {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  padding: 20px 0;
  /* tambahan agar ada spasi vertikal */
  min-height: 750px;
}

@media (max-width: 768px) {
  .container-loket {
    flex-direction: column;
    /* ubah menjadi kolom untuk layar kecil */
    align-items: center;
    /* rata tengah */
    padding: 5px 0;
    /* padding vertikal */
  }
}

.container-frame {
  display: flex;
  justify-content: center;
  gap: 10px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  width: 100%;
  margin: 0 auto;
  /* agar rata tengah */
}

.frame {
  background-color: #ffffff;
  padding: 10px;
  position: relative;
  min-height: 670px;
  border-radius: 20px;
  border: 1px solid #F4F9FC;
}


/* INFOBED AUTO SCROLL */

/* Wrapper utama agar kartu bisa digeser ke samping (Horizontal Scroll) */
.card-slider-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Scroll halus di iOS */
  padding-bottom: 15px;
}

/* Menyembunyikan scrollbar bawaan agar tampilan lebih bersih */
.card-slider-container::-webkit-scrollbar {
  display: none;
}

/* Mengatur ukuran kartu agar konsisten */
/* Mengatur ukuran kartu yang diperbesar */
.custom-card {
  flex: 0 0 auto;
  width: 240px; /*  Diperbesar dari 180px ke 240px */
  border-radius: 20px; /* Lekukan sudut dipertegas agar lebih modern */
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Jaminan estetika agar kartu lebih menonjol */
}

/* Mengatur teks angka besar agar ikut proporsional */
.bed-count {
  font-size: 4rem; /*  Diperbesar dari 3rem ke 4rem */
  font-weight: bold;
  line-height: 1;
}

.bed-total {
  font-size: 2rem; /* Diperbesar dari 1.5rem ke 2rem */
  color: #a5f3fc;
}

/* Badge status yang disesuaikan ukurannya */
.status-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.85rem; /*  Diperbesar sedikit */
  padding: 6px 16px; /*  Padding badge diperluas */
  border-bottom-left-radius: 15px;
}

.status-tersedia {
  background-color: #d1fae5;
  color: #065f46;
}

.status-penuh {
  background-color: #fee2e2;
  color: #991b1b;
}

/* -- Artikel & Edukasi Kesehatan -- */

.arcticle {
  background-size: cover;
  background-color: #ffffff;
  padding: 50px 0;
  position: relative;
  min-height: 700px;
}

.container-article {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  padding: 20px 0;
  /* tambahan agar ada spasi vertikal */
}

.card-article {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid #adadad;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 57, 122, 0.8) 20%, rgba(0, 57, 122, 0.3) 70%, transparent 100%);
  z-index: 1;
}

.card-text {
  position: absolute;
  bottom: 0;
  padding: 0 15px 0 15px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  width: 100%;
  gap: 20px;
  /* margin: 0 30px; */
  /* color: #ffffff; */
  transition: transform 0.3s ease;
}

.card-article:hover .card-text a i {
  transform: translateX(5px);
}

.tanggal-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  background-color: #ffffff;
  border-radius: 5px;
  /* border: 1px solid #234974; */
  /* padding-top: 10px; */
  height: 60px;
  width: 50px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

.tanggal-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #234974;
  line-height: 1;
}

.tanggal-text p {
  font-size: 16px;
  font-weight: 500;
  color: #234974;
  line-height: 0.5;
}

.title-article {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: left;
  /* background-color: #234974; */
  color: #ffffff;
  width: 150px;
}

.title-article h6 {
  white-space: nowrap;
  /* Jangan pindah baris */
  overflow: hidden;
  /* Sembunyikan teks yang kelebihan */
  text-overflow: ellipsis;
  /* Truncate Enabled (Tambahkan '...') */
  width: 150px;
  font-size: 14px;
  font-weight: 600;
  line-height: auto;
}

.title-article p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Jumlah baris maksimal */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Truncate Enabled (Tambahkan '...') */
  max-height: 3.2em;
  /* Sesuaikan dengan baris dan line-height */
  width: 150px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6em;
}

.img-art {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

/* Artikel Detail */
.content-artikel {
  margin: 30px 0;
  line-height: 1.8;
}

.content-artikel p {
  margin-bottom: 20px;
  text-align: justify;
}

.content-artikel img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.content-artikel h2,
.content-artikel h3,
.content-artikel h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #234974;
}

.content-artikel ul,
.content-artikel ol {
  margin: 20px 0;
  padding-left: 30px;
}

.content-artikel li {
  margin-bottom: 10px;
}

/* Related Articles */
.related-articles {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}


@media (max-width: 768px) {
  .arcticle {
    min-height: fit-content;
  }

  .container-article {
    display: flex;
    /* penting agar item nav horizontal */
    justify-content: start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* pastikan scroll aktif jika tab lebih banyak dari layar */
    padding: 10px 30px;
    /* padding kiri kanan */
    margin-top: 20px;
    /* jarak atas */
  }

  .card-article {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .tanggal-text {
    justify-content: center;
    padding: 10px 0 0 0;
    /* padding atas bawah */
    height: 50px;
    /* tinggi kotak tanggal */
    width: 40px;
    /* lebar kotak tanggal */
    margin-bottom: 10px;
  }

  .img-art {
    width: 100%;
    height: auto;
    /* ganti dari 600px ke 400px */
  }
}


/* --- Footer --- */

.footer-section {
  /* background-image: url(../images2/decor_flower.png); */
  background-size: 300px;
  background-position: right bottom;
  background-position-x: 105%;
  background-position-y: 110%;
  background-repeat: no-repeat;
  background: linear-gradient(
      180deg,
      #234974,
      #4AAC90
  );
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  padding: 20px 0;
  /* tambahan agar ada spasi vertikal */
}

.card-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
  margin-top: 50px;
  margin-bottom: 0px;

}

.left-footer {
  display: flex;
  flex-direction: column;
  justify-content: start;
  /* align-items: center; */
  gap: 15px;
  width: 500px;
}

.left-footer p {
  font-size: 16px;
  font-weight: 400;
  color: white;
  width: auto;
  line-height: 1.6rem;
}

.icon-socmed {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 10px;
}

.icon-daftaronline {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 15px;
}

.right-footer {
  width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  /* align-items: center; */
  gap: 15px;
}


.right-footer h3 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  width: auto;
  line-height: 1.6rem;
}

.right-footer h4 {
  font-size: 20px;
  font-weight: 500;
  color: white;
  width: auto;
  line-height: 1.6rem;
}

.line-decorator-footer {
  width: 60px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 5px;
  /* margin-top: 20px; */
  margin-bottom: 20px;
}

.contact {
  display: flex;
  flex-direction: column;
  justify-content: start;
  /* align-items: center; */
  gap: 15px;
}

.contact-list {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: white;
}

.contact-list p {
  margin: 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  /* ini bikin teks rata tengah vertikal */
  max-width: 165px;
}

.line-object {
  width: 100%;
  height: 0.5px;
  background-color: #ffffff;
  border-radius: 5px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.right-footer-regis {
  width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 15px;
}

.right-footer-regis h3 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  width: auto;
  line-height: 1.6rem;
}

@media (max-width: 768px) {

  .footer-section {
    background-size: 200px;
    background-position: right bottom;
    background-position-x: 115%;
    background-position-y: 103%;
  }

  .card-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 100px;
    gap: 50px;
  }

  .left-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: auto;
    margin: 0 16px;
  }

  .left-footer p {
    text-align: center;
  }

  .left-footer img {
    height: 70px;
    align-items: center;
  }

  .icon-socmed img {
    height: 30px;
    align-items: center;
    justify-content: center;
  }

  /* 🔧 Perbaikan icon daftar online */
  .icon-daftaronline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .icon-daftaronline img {
    max-width: 100px;
    /* batasi lebar maksimal */
    height: auto;
    /* biar proporsional */
  }

  /* kalau mau beda tiap logo */
  .logo-jaksehat {
    max-width: 140px;
    height: auto;
  }

  .icon-daftaronline .logo-jkn {
    max-width: 60px;
    height: auto;
  }

  .logo-jaki {
    max-width: 110px;
    height: auto;
  }

  .right-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 15px;
    margin-left: 50px;
  }

  .right-footer-regis {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 15px;
    margin-left: 50px;
  }
}


/* --- Icon Scroll Up --- */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #234974;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: #4CAF50;
}

/* Hero Section - Title Page */

.titlepage-section {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: url('../../assets/images2/bg2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #234974;
  opacity: 0.9;
  z-index: 1;
}

.container-title {
  position: relative;
  z-index: 2;
  max-width: 90%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-text-page {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.subtitle-text-page {
  font-size: 18px;
  color: #ffffff;
  line-height: 1.6;
  max-width: 700px;
}

.line-decorator-page {
  width: 60px;
  height: 6px;
  background-color: #4CAF50;
  border-radius: 5px;
  /* margin-top: 20px; */
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .title-text-page {
    font-size: 28px;
  }

  .subtitle-text-page {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .title-text-page {
    font-size: 22px;
  }

  .subtitle-text-page {
    font-size: 15px;
  }
}

/* Content Visi, Misi dan Nilai Organisasi */

.container-visi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  /* padding-top: 30px;      tambahan agar ada spasi vertikal */
  /* margin: 50px 0; */
  margin: 50px auto;
  /* agar rata tengah */
}

.line-decorator-desc {
  width: 60px;
  height: 6px;
  background-color: #4CAF50;
  border-radius: 5px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .line-decorator-desc {
    margin-bottom: 15px;
  }
}

.line-decorator-desc2 {
  width: 60px;
  height: 6px;
  background-color: #4CAF50;
  border-radius: 5px;
}

.title-text-visi {
  font-size: 42px;
  font-weight: 700;
  color: #234974;
  margin-bottom: 15px;
}

.subtitle-text-visi {
  font-size: 18px;
  /* color: #4AA48D; */
  color: #121926;
  line-height: 1.6;
  max-width: 100%;
  /* ganti dari max-width ke width */
  text-align: justify;
  text-justify: inter-word;
  /* membantu untuk browser yang mendukung */
}

/* .subtitle-text-visi {
  font-size: 16px;
  color: #4AA48D;
  line-height: 1.6;
  max-width: 100%;
  text-align: justify;
} */

.subtitle-text-visi li {
  margin-bottom: 30px;
  /* Atau ubah sesuai selera */
  line-height: 1.6;
  /* Agar teks dalam satu item lebih nyaman dibaca */
}

.subtitle-text-motto {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F4FBFF;
  padding: 30px 0;
  font-size: 42px;
  font-weight: 600;
  font-style: oblique;
  color: #234974;
  border-radius: 10px;
}

.img-page {
  display: flex;
  width: 100%;
  height: 600px;
  margin: 30px 0;
}

.img-pagesejarah {
  display: block;
  /* Ubah dari flex ke block untuk gambar tunggal */
  width: 100%;
  /* Lebar penuh container */
  height: 1000px;
  /* Tinggi tetap sesuai desain */
  margin: 30px 0;
  object-fit: cover;
  /* Pertahankan rasio + potong bagian berlebih */
}

.container-img {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  max-width: 100%;
  gap: 30px;
  margin: 30px 0;
  /* Tambahkan properti berikut */
  width: 100%;
  /* Pastikan container mengambil lebar penuh */
  height: 400px;
  /* Atur tinggi frame (sesuaikan nilai) */
  overflow: hidden;
  /* Sembunyikan bagian gambar yang melebihi frame */
  background: #f5f5f5;
  /* Warna background untuk area kosong (opsional) */
}

/* Tambahkan aturan khusus untuk gambar di dalam container */
.container-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Penting: Menjaga rasio aspek gambar */
  position: absolute;
  /* Posisikan absolut agar bisa diatur */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Pusatkan gambar */
}

.img-igd {
  width: 50%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.img-amb {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.img-prb {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

/* .img-rg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 600px;
  margin: 30px 0;
  border-radius: 20px;
} */

.design-banner-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 600px;
  margin: 30px 0;
  border-radius: 20px;
  background-image: url('../../assets/images2/design_ulasangoogle.png');
  background-size: cover;
  background-position: center;
}

.design-banner-yuko {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 600px;
  margin: 30px 0;
  border-radius: 20px;
  background-image: url('../../assets/images2/design_laporsiyuko.png');
  background-size: cover;
  background-position: center;
}

.design-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* penuhi lebar container */
  height: 100vh;
  /* atau bisa pakai 100vh untuk full layar */
  background-image: url('../../assets/images2/soon.png');
  background-size: contain;
  /* atau cover, tergantung mau potong gambar atau tidak */
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 768px) {

  .container-visi {
    padding: 0 20px;
    /* padding kiri kanan */
    margin: 30px auto;
    /* jarak atas bawah */
  }

  .subtitle-text-motto {
    text-align: center;
  }

  .img-page {
    height: auto;
    /* ganti dari 600px ke 400px */
  }

  .img-pagesejarah {
    height: auto;
    /* ganti dari 600px ke 400px */
  }

  .container-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .img-igd {
    width: 100%;
    height: 400px;
  }

  .img-amb {
    width: 100%;
    height: 400px;
  }

  .img-prb {
    width: 100%;
    height: 225px;
  }

  .design-banner-google {
    background-image: url('../../assets/images2/design_ulasangooglemob.png');
    margin: 15px 0;
    width: 100%;
    height: 700px;
  }

  .design-banner-yuko {
    background-image: url('../../assets/images2/design_laporsiyukomob.png');
    margin: 15px 0;
    width: 100%;
    height: 700px;
  }

  .design-soon {
    background-image: url('../../assets/images2/soon_hp.png');
    width: 100%;
    /* penuhi lebar container */
    height: 100vh;
    /* atau bisa pakai 100vh untuk full layar */
  }

  /* .img-rg {
    width: 100%;
    height: auto;
  } */

}

/* ---Layanan Rawat Jalan: Info Ruangan--- */

.scrolling-tabs-wrapper-rj {
  overflow-x: auto;
  width: 100%;
  /* pastikan scroll aktif jika tab lebih banyak dari layar */
}

.scrolling-tabs-rj {
  display: flex;
  /* penting agar item nav horizontal */
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.scrolling-tabs-rjk {
  display: flex;
  /* penting agar item nav horizontal */
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
}

.scrolling-tabs-alur {
  display: flex;
  /* penting agar item nav horizontal */
  justify-content: center;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  gap: 30px;
}

.scrolling-tabs-mutu {
  display: flex;
  /* penting agar item nav horizontal */
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  gap: 15px;
}

.scrolling-tabs-kontak {
  display: flex;
  /* penting agar item nav horizontal */
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  gap: 15px;
}

.scrolling-tabs-rj::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.scrolling-tabs-rjk::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.scrolling-tabs-alur::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.scrolling-tabs-mutu::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.scrolling-tabs-kontak::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

@media (max-width: 768px) {
  .scrolling-tabs-rj {
    display: flex;
    /* penting agar item nav horizontal */
    justify-content: start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .scrolling-tabs-rjk {
    display: flex;
    /* penting agar item nav horizontal */
    justify-content: start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
  }

  .scrolling-tabs-alur {
    display: flex;
    /* penting agar item nav horizontal */
    justify-content: start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    gap: 15px;
  }

  .scrolling-tabs-mutu {
    display: flex;
    /* penting agar item nav horizontal */
    justify-content: start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    gap: 15px;
  }

  .scrolling-tabs-kontak {
    display: flex;
    /* penting agar item nav horizontal */
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    gap: 15px;
  }
}


.nav-pills .nav-link {
  border-radius: 2rem;
  padding: 8px 20px;
  margin-right: 10px;
  background-color: #EEF5FE;
  color: #234974;
  border: 1px solid #EEF5FE;
  white-space: nowrap;
  transition: 0.3s;
}

.nav-pills .nav-link.active {
  background-color: #234974;
  color: white;
  font-weight: 600;
}

.container-inforuangan {
  display: flex;
  flex-wrap: wrap;
  /* agar responsif */
  justify-content: start;
  /* sejajarkan di tengah horizontal */
  gap: 30px;
  /* jarak antar card */
  padding: 30px 20px;
  /* padding kiri kanan */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container-inforuangan {
    justify-content: center;
  }
}

.card-inforuangan {
  width: 280px;
  background-color: #ffffff;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
}

.inforuangan-images {
  background-color: #F4F9FC;
  width: 300px;
  height: 300px;
  /* border: 1px solid #ADADAD; */
  border-radius: 15px;
  margin: 20px 0;
}

.inforuangan-name {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 225px;
  margin: 15px o;
  font-size: 18px;
  color: #234974;
}

.inforuangan-position {
  font-size: 14px;
  color: #4AA48D;
  line-height: 1.6;
}

/* ---Layanan Rawat Jalan: MCU--- */


.container-mcu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  padding: 20px 0;
  /* tambahan agar ada spasi vertikal */
}

.card-paketmcu {
  background-image: url(../images2/logorsud1.png);
  background-size: 250px;
  background-position: bottom right;
  background-position-x: 300%;
  background-position-y: 200px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: start;
  /* supaya tombol tetap di bawah */
  border-radius: 15px;
  background-color: #ffffff;
  width: 300px;
  height: 350px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  /* supaya gambar tidak keluar dari card */
  /* gap: 5px; */
  border: 0.5px solid #4AA48D;
}

.img-paketmcu {
  width: 100%;
  height: 200px;
  /* tinggi placeholder sama untuk semua gambar */
  object-fit: cover;
  /* isi gambar menyesuaikan bingkai */
  border-radius: 15px 15px 0 0;
  display: block;
}

.kategori-mcu {
  background-color: #F4F9FC;
  color: #234974;
  text-wrap: wrap;
  font-size: 10px;
  font-weight: 700;
  padding: 2.5px 10px;
  width: fit-content;
  border-radius: 15px;
  margin: 10px 15px 5px 15px;
}

.judul-paketmcu {
  color: #234974;
  font-size: 16px;
  font-weight: 800;
  width: fit-content;
  margin: 5px 15px 5px 15px;

  /* Solusi 2: Alternatif jika line-clamp tidak bekerja di beberapa browser */
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

}

.btn-mcu {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  position: relative;
  margin: 5px 15px 10px 15px;
}

.btn-sectionmcu {
  background-color: #234974;
  color: #ffffff;
  padding: 10px 30px;
  width: 100%;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  margin-right: 25px;
}

.btn-sectionmcu:hover {
  background-color: #234974;
  color: #aaff00;
}

.card-link {
  text-decoration: none;
  /* hilangkan underline */
  color: inherit;
  /* gunakan warna teks bawaan */
  display: block;
  /* biar bisa bungkus full card */
}

.card-link:hover .card-paketmcu {
  transform: translateY(-3px);
  transition: 0.2s;
}

.detail-paketmcu {
  background-image: url(../images2/logorsud1.png);
  background-size: 500px;
  background-position: right bottom;
  background-position-x: 120%;
  background-position-y: 150px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #234974;
  padding: 30px;
  gap: 50px;
  margin-bottom: 50px;
}

.images-paketmcu {
  background-image: url(../images2/bg-profil.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #234974;
  width: 500px;
  height: 500px;
  border-radius: 10px;
}

.name-paketmcu {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.nama-paketmcu {
  color: #234974;
  font-size: 48px;
  font-weight: 800;
  width: fit-content;
  margin-bottom: 30px;
}

.harga-paketmcu {
  font-size: 36px;
  color: #ccff00;
  font-weight: 800;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .detail-paketmcu {
    background-image: url(../images2/logorsud1.png);
    background-size: 200px;
    background-position: right bottom;
    background-position-x: 800%;
    background-position-y: 200px;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #234974;
    padding: 10px;
    gap: 30px;
    margin-bottom: 30px;
  }

  .images-paketmcu {
    background-image: url(../images2/bg-profil.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #234974;
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .name-paketmcu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nama-paketmcu {
    color: #234974;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    width: fit-content;
    margin-bottom: 10px;
  }

  .harga-paketmcu {
    font-size: 24px;
    color: #ccff00;
    font-weight: 800;
    line-height: 1.6;
  }
}

.container-table {
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 15px 0;
}

.container-table th {
  background-color: #234974;
  color: #ffffff;
  padding: 15px 30px;
  text-align: center;
  border: 1px solid #ffffff;
}

.container-table td {
  background-color: #EEF5FE;
  color: #121926;
  padding: 15px 30px;
  text-align: center;
  border: 1px solid #ffffff;
}

.container-table .list {
  text-align: start;
}

.table-responsive-custom {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive-custom table {
  min-width: 768px;
  /* atau bisa 600px tergantung isi tabel */
}


@media (max-width: 768px) {
  .img-mcu {
    width: 100%;
    height: 220px;
    /* ganti dari 600px ke 400px */
  }
}

/* ---Layanan Rawat Jalan: Dokter Kami--- */

.filter-pencarian {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #234974;
  padding: 30px;
}

.input-pencarian {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: end;
  gap: 15px;
}

.form-pencarian {
  width: 100%;
}

.ourdoctor {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: start;
  justify-content: center;
  width: 100%;
  gap: 50px;
  margin: 50px 0 50px 0;
}

.card-ourdoctor {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  min-width: 615px;
  max-width: 615px;
  padding: 30px 30px;
  border-radius: 15px;
  /* border: 1px solid #4AA48D; */
  background-color: #F4F9FC;
  gap: 30px;
  width: auto;
}

/* .card-ourdoctor:hover {
  background-color: #F4F9FC;
  border: 1px solid #234974;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  transition: ease-in-out;
} */

.images-ourdoctor {
  background-image: url(../images2/bg-profil.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #234974;
  width: 200px;
  height: 200px;
  border-radius: 1000px;
  /* bikin bulat */
  object-fit: cover;
  /* isi kotak penuh */
  object-position: center;
  display: block;
  /* biar img nggak ada inline gap */
}

.name-button {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  height: 100%;
}

.name-ourdoctor {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.name-ourdoctor h2 {
  font-size: 24px;
  font-weight: 700;
  color: #234974;
}

.position-ourdoctor {
  font-size: 16px;
  color: #4AA48D;
  line-height: 1.6;
}

.btn-ourdoctor {
  background-color: #234974;
  color: white;
  padding: 10px 30px;
  border-radius: 50px;
  border: none;
  font-weight: 500;
}

.btn-ourdoctor:hover {
  background-color: #234974;
  color: white;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .input-pencarian {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: end;
    gap: 20px;
  }

  .ourdoctor {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 30px;
    margin: 30px 20px 50px 20px;
  }

  .card-ourdoctor {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    min-width: 350px;
    max-width: 350px;
    padding: 15px 15px;
    border-radius: 15px;
    background-color: #F4F9FC;
    gap: 30px;
    width: 100%;
  }

  .images-ourdoctor {
    background-color: #234974;
    width: 100px;
    height: 100px;
    border-radius: 1000px;
  }

  .name-ourdoctor h2 {
    font-size: 18px;
    font-weight: 700;
    color: #234974;
  }

  .position-ourdoctor {
    font-size: 12px;
    color: #4AA48D;
    line-height: 1.6;
  }

  .btn-ourdoctor {
    background-color: #234974;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    border: none;
    font-weight: 500;
  }

}

/* --- Manajemen RS --- */

.direktur-rs {
  background-image: url(../images2/decor_flower3.png);
  background-size: 250px;
  background-position: left top;
  background-position-x: -5%;
  background-position-y: -75px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #234974;
  padding: 30px 30px 10px 30px;
  gap: 30px;
}

.images-direktur {
  background-image: url(../images2/bg-profil.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #234974;
  width: 300px;
  height: 300px;
  border-radius: 1000px;
}

.name-direktur {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.name-direktur h2 {
  font-size: 28px;
  font-weight: 800;
  color: #234974;
}

.position-direktur {
  font-size: 16px;
  color: #4AA48D;
  line-height: 1.6;
}

.manajemen-rswrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.manajemen-rs {
  background-image: url(../images2/decor_flower3.png);
  background-size: 200px;
  background-position: left top;
  background-position-x: -25%;
  background-position-y: -70px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #234974;
  padding: 30px 30px 10px 30px;
  gap: 30px;
  text-align: center;
}

.images-manajemen {
  background-image: url(../images2/bg-profil.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #234974;
  width: 250px;
  height: 250px;
  border-radius: 1000px;
}

.name-manajemen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  width: 100%;
  text-align: center;
}

.name-manajemen h2 {
  font-size: 24px;
  font-weight: 800;
  color: #234974;
}

.position-manajemen {
  font-size: 14px;
  color: #4AA48D;
  line-height: 1.6;
}

@media (max-width: 768px) {

  .direktur-rs {
    background-image: url(../images2/decor_flower3.png);
    background-size: 200px;
    background-position: left top;
    background-position-x: -50%;
    background-position-y: -70px;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #234974;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
  }

  .images-direktur {
    background-color: #234974;
    width: 150px;
    height: 150px;
    border-radius: 1000px;
  }

  .name-direktur {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .name-direktur h2 {
    font-size: 24px;
    font-weight: 800;
    color: #234974;
    text-align: center;
  }

  .position-direktur {
    font-size: 14px;
    color: #4AA48D;
    line-height: 1.6;
  }

  .manajemen-rswrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .manajemen-rs {
    background-image: url(../images2/decor_flower3.png);
    background-size: 200px;
    background-position: left top;
    background-position-x: -50%;
    background-position-y: -70px;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #234974;
    gap: 30px;
    width: 100%;
  }

  .images-manajemen {
    background-color: #234974;
    width: 150px;
    height: 150px;
    border-radius: 1000px;
  }

  .name-manajemen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .name-manajemen h2 {
    font-size: 24px;
    font-weight: 700;
    color: #234974;
    text-align: center;
  }

  .position-manajemen {
    font-size: 14px;
    color: #4AA48D;
    line-height: 1.6;
    text-align: center;
  }
}

/* --- Detail Doctors --- */

.detail-doctor {
  background-image: url(../images2/decor_flower2.png);
  background-size: 250px;
  background-position: right bottom;
  background-position-x: 105%;
  background-position-y: 90px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #234974;
  padding: 30px;
  gap: 50px;
  margin-bottom: 50px;
}

.name-doctor {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.name-doctor h2 {
  font-size: 32px;
  font-weight: 800;
  color: #234974;
}

.position-doctor {
  font-size: 18px;
  color: #4AA48D;
  line-height: 1.6;
}

/* Style untuk status praktek */
.status-praktek {
  background-color: #4CAF50;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
}

.status-libur {
  background-color: #f44336;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
}

/* Tambahkan style untuk status unknown */
.status-unknown {
  background-color: #ff9800;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .detail-doctor {
    background-image: url(../images2/decor_flower2.png);
    background-size: 150px;
    background-position-x: 130%;
    background-position-y: 80px;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #234974;
    padding: 15px;
    gap: 30px;
    margin-bottom: 30px;
  }

  .name-doctor h2 {
    font-size: 22px;
    font-weight: 700;
    color: #234974;
  }

  .position-doctor {
    font-size: 14px;
    color: #4AA48D;
    line-height: 1.6;
  }

}

.subtitle-text-acc {
  font-size: 18px;
  /* color: #4AA48D; */
  color: #234974;
  line-height: 1.6;
  max-width: 100%;
  /* ganti dari max-width ke width */
  text-align: justify;
  text-justify: inter-word;
  /* membantu untuk browser yang mendukung */
  padding: 20px 10px 10px 10px;
}

@media (max-width: 768px) {
  .subtitle-text-acc {
    font-size: 16px;
    padding: 10px 0;
  }
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: #234974;
  color: #ffffff;
  cursor: pointer;
  padding: 20px;
  width: 100%;
  text-align: left;
  border-radius: 5px;
  border: none;
  outline: none;
  transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.activeAcc,
.accordion:hover {
  background-color: #234974;
  color: white;
  opacity: 0.9;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  margin: 15px 0;
  padding: 0 30px;
  background-color: #EEF5FE;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.accordion:after {
  content: '\02795';
  /* Unicode character for "plus" sign (+) */
  font-size: 16 px;
  color: #ffffff;
  float: right;
  margin-left: 5px;
}

.activeAcc:after {
  content: "\2796";
  /* Unicode character for "minus" sign (-) */
  color: #ffffff;
}

.line {
  width: 100%;
  height: 1px;
  background-color: #adadad;
  border-radius: 5px;
  margin-bottom: 50px;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: start;
  margin: 50px 0 50px 0;
  osition: relative;
}

.btn-secondary {
  background-color: #ffffff;
  color: #234974;
  padding: 12.5px 50px;
  border-radius: 50px;
  border: 1px solid #234974;
  font-weight: 600;
}

.btn-center2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0 50px 0;
  position: relative;
}

.img-alur {
  width: 100%;
  align-items: center;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .img-alur {
    width: 100%;
    height: 225px;
  }

  .btn-center2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 20px 0;
    position: relative;
  }
}



.container-wbs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 50px 0 50px;
  background-color: #F4FBFF;
  border-radius: 15px;
  gap: 30px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  /* padding-top: 30px;      tambahan agar ada spasi vertikal */
  /* margin: 50px 0; */
  /* margin: 50px 0;   agar rata tengah */
}

@media (max-width: 768px) {
  .container-wbs {
    padding: 30px 20px;
    /* padding kiri kanan */
  }
}

.career-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: start;
  justify-content: center;
  width: 100%;
  gap: 50px;
  margin: 50px 0 50px 0;
}

.card-career {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  padding: 30px 30px;
  border-radius: 15px;
  /* border: 1px solid #4AA48D; */
  background-color: #F4F9FC;
  gap: 30px;
  width: auto;
}

.name-career {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.name-career h2 {
  font-size: 24px;
  font-weight: 700;
  color: #234974;
}

.position-career {
  font-size: 16px;
  color: #4AA48D;
  line-height: 1.6;
}

.btn-career {
  position: center;
  background-color: #234974;
  color: white;
  padding: 10px 30px;
  border-radius: 50px;
  border: none;
  font-weight: 500;
}

.btn-career:hover {
  background-color: #234974;
  color: white;
  opacity: 0.9;
}

.line-karir {
  width: 100%;
  height: 1px;
  background-color: #adadad;
  border-radius: 5px;
  margin-bottom: 15px;
}

.desc-career {
  font-size: 16px;
  color: #121926;
  line-height: 1.6;
  pad: 10px 0;
}

.btn-next {
  display: flex;
  align-items: center;
  justify-content: end;
  width: 100%;
  margin: 30px 0 30px 0;
  position: relative;
}

.info-career {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: start;
  font-size: 16px;
  font-weight: 600;
  color: #234974;
  line-height: 1.6;
  gap: 10px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .career-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 30px;
    margin: 30px 20px 20px 20px;
  }

  .card-career {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    padding: 20px 20px 0 20px;
    border-radius: 15px;
    background-color: #F4F9FC;
    gap: 30px;
    width: 100%;
  }

  .desc-career {
    font-size: 14px;
    color: #121926;
    line-height: 1.3;
    pad: 10px 0;
  }
}


/* Kegiatan */

.container-kegiatan {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 35px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  padding: 0 0 50px 0;
  /* tambahan agar ada spasi vertikal */
}

.card-kegiatan {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  /* padding: 30px 30px; */
  border-radius: 15px;
  background-color: #ffffff;
  /* border: 1px solid #adadad; */
  width: 400px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
}


.kategori {
  background-color: #F4F9FC;
  color: #234974;
  text-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 15px;
  width: fit-content;
  border-radius: 15px;
  margin: 0px 20px 10px 20px;
}

.judul-kegiatan {
  color: #234974;
  font-size: 24px;
  font-weight: 700;
  width: fit-content;
  margin: 0px 20px 10px 20px;

  /* Solusi 1: Menggunakan line-clamp (rekomendasi) */
  /* display: -webkit-box;
  -webkit-line-clamp: 3; Maksimal 3 baris
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; */

  /* Solusi 2: Alternatif jika line-clamp tidak bekerja di beberapa browser */
  height: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.subtext-kegiatan {
  font-size: 14px;
  color: #4AA48D;
  margin: 0px 0px 0px 20px;
}

.desc-kegiatan {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Jumlah baris maksimal */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Truncate Enabled (Tambahkan '...') */
  max-height: 3.2em;
  /* Sesuaikan dengan baris dan line-height */
  font-size: 16px;
  color: #121926;
  line-height: 1.6;
  width: fit-content;
  margin: 20px 20px 15px 20px;
}

.btn-card {
  display: flex;
  align-items: center;
  justify-content: end;
  width: 100%;
  position: relative;
}

.btn-activity {
  position: center;
  background-color: #234974;
  color: white;
  font: 14px;
  padding: 10px 15px;
  border-radius: 50px;
  border: none;
  font-weight: 500;
  margin: 20px 20px 20px 20px;
}

.btn-activity:hover {
  background-color: #234974;
  color: white;
  opacity: 0.9;
}

.img-kegiatan {
  width: 400px;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 15px 15px 0 0;
  margin-bottom: 15px;
}

.img-kgt {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.kategoridetail {
  background-color: #F4F9FC;
  color: #234974;
  text-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 15px;
  width: fit-content;
  border-radius: 15px;
  margin-bottom: 10px;
}

.judul-kegiatandetail {
  color: #234974;
  font-size: 36px;
  font-weight: 700;
  width: fit-content;
}

.subtext-kegiatandetail {
  font-size: 16px;
  color: #4AA48D;
  margin-bottom: 50px
}

@media (max-width: 768px) {
  .container-kegiatan {
    justify-content: center;
    margin-top: 20px;
    padding: 0;
    /* tambahan agar ada spasi vertikal */
  }

  .card-kegiatan {
    width: 100%;
    max-width: 400px;
    /* batas maksimal lebar card */
    margin-bottom: 20px;
    /* jarak antar card */
    border-radius: 10px;
  }

  .judul-kegiatan {

    font-size: 20px;
    /* ukuran font judul */
    margin: 0px 20px 10px 20px;
    /* margin judul */
    height: 50px;
  }

  .img-kegiatan {
    width: 100%;
    /* lebar gambar */
    height: 200px;
    /* tinggi gambar */
  }

  .img-kgt {
    width: 100%;
    height: auto;
    /* ganti dari 600px ke 400px */
  }

}

/* Pagination */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
}

@media (max-width: 768px) {
  .pagination {
    align-items: center;
    margin: 30px 20px 50px 20px;
  }
}

.pagination a,
.pagination .page-link {
  color: #234974;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  background-color: #fff;
}

.pagination a:hover,
.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: #234974;
  color: white;
  border-color: #234974;
}

.pagination a.active,
.pagination .page-item.active .page-link {
  background-color: #234974 !important;
  color: white !important;
  border-color: #234974 !important;
  font-weight: bold;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
  opacity: 0.6;
  cursor: not-allowed;
}

.pagination a.prev,
.pagination a.next,
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  font-weight: bold;
}

.container-kontak {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 50px 0 50px;
  background-color: #F4FBFF;
  border-radius: 15px;
  gap: 30px;
  /* jarak antar card */
  flex-wrap: wrap;
  /* agar responsif turun ke bawah di layar kecil */
  /* padding-top: 30px;      tambahan agar ada spasi vertikal */
  /* margin: 50px 0; */
  /* margin: 50px 0;   agar rata tengah */
  margin-bottom: 50px;
}

.sendfeedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 50px 0;
}

.btn-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.subtitle-feedback {
  font-size: 16px;
  /* color: #4AA48D; */
  color: #4AA48D;
  line-height: 1.6;
  max-width: 100%;
  /* ganti dari max-width ke width */
  text-align: justify;
  text-justify: inter-word;
  /* membantu untuk browser yang mendukung */
}

.btn-section2 {
  background-color: #4CAF50;
  color: white;
  padding: 12.5px 50px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
}

.btn-section2:hover {
  background-color: #4CAF50;
  color: white;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .container-kontak {
    padding: 30px 20px;
    /* padding kiri kanan */
  }

  .subtitle-feedback {
    font-size: 14px;
    text-align: center;
  }

  .btn-section2 {
    padding: 12.5px 30px;
  }
}

.loket {
  background-color: #EEF5FE;
  padding: 30px;
  border-radius: 15px;
  margin: 30px 0 50px 0;
}

.frame-loket {
  background-color: #ffffff;
  padding: 10px;
  position: relative;
  min-height: 1000px;
  border-radius: 20px;
  border: 1px solid #F4FBFF;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 1px solid #F4F9FC;
}


/* Atasi overflow horizontal seluruh halaman */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Loading Gambar dengan Lazy Load */

.lazyload,
.lazyloading {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazyloaded {
  opacity: 1;
}

/* --- Section Socmed Beranda --- */

/* .sosmed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.sosmed-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 10px;
}

.sosmed-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
}


.sosmed-card blockquote {
  max-height: 200px;
  overflow: hidden; /* potong kelebihan */
/* } */

.container-socmed {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 30px;
  /* jarak antar card */
  /* flex-wrap: wrap;      agar responsif turun ke bawah di layar kecil */
  padding: 20px 0;
  /* tambahan agar ada spasi vertikal */
}

.card-socmed {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* supaya tombol tetap di bawah */
  border-radius: 15px;
  background-color: #ffffff;
  min-width: 600px;
  max-width: 600px;
  /* biar sejajar */
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  /* supaya gambar tidak keluar dari card */
  gap: 5px;
  border: 1px solid #4AA48D;
}

.img-socmed {
  width: 100%;
  height: 400px;
  /* tinggi placeholder sama untuk semua gambar */
  object-fit: cover;
  /* isi gambar menyesuaikan bingkai */
  border-radius: 15px 15px 0 0;
  display: block;
}

.kategori-socmed {
  background-color: #F4F9FC;
  color: #234974;
  text-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 15px;
  width: fit-content;
  border-radius: 15px;
  margin: 10px 20px 10px 20px;
}

.link-title {
  text-decoration-line: none;
}

.judul-socmed {
  color: #234974;
  font-size: 24px;
  font-weight: 700;
  width: fit-content;
  margin: 0px 20px 10px 20px;

}

.subtext-socmed {
  font-size: 14px;
  color: #4AA48D;
  margin: 0px 0px 0px 20px;
}

.btn-cardsocmed {
  display: flex;
  align-items: center;
  justify-content: end;
  width: 100%;
  position: relative;
  margin: 30px 20px 30px 0;
}

.btn-sectionyt {
  background-color: #FF0000;
  color: white;
  padding: 12.5px 30px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  margin-right: 20px;
}

.btn-sectionyt:hover {
  background-color: #ff2f2f;
  color: white;
  opacity: 0.9;
}

.btn-sectionig {
  background-color: #405DE6;
  color: white;
  padding: 12.5px 30px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  margin-right: 20px;
}

.btn-sectionig:hover {
  background-color: #833AB4;
  color: white;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .container-socmed {
    flex-direction: column;
    align-items: center;
    /* biar card tetap center */
    gap: 20px;
    /* jarak antar card lebih kecil */
    padding: 10px 0;
  }

  .card-socmed {
    min-width: 100%;
    /* full width di mobile */
    max-width: 100%;
    border-radius: 12px;
    gap: 10px;
  }

  .img-socmed {
    height: 220px;
    /* tinggi gambar lebih kecil */
    border-radius: 12px 12px 0 0;
  }

  .judul-socmed {
    font-size: 18px;
    /* perkecil judul */
    margin: 0 15px 8px 15px;
  }

  .kategori-socmed {
    font-size: 11px;
    margin: 8px 15px 5px 15px;
  }

  .subtext-socmed {
    font-size: 12px;
    margin: 0 0 0 15px;
  }

  .btn-cardsocmed {
    justify-content: center;
    /* tombol rata tengah */
    margin: 20px 0;
  }

  .btn-sectionyt,
  .btn-sectionig {
    padding: 10px 20px;
    /* tombol lebih kecil */
    font-size: 14px;
    margin: 0;
  }
}

/* Styling untuk notifikasi alert */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-dismissible .close {
  position: relative;
  top: -2px;
  right: -21px;
  color: inherit;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
}

.alert i {
  margin-right: 10px;
}

/* ==========================================================================
   CAROUSEL JADWAL DOKTER Halaman Beranda (Native CSS Scroll Snap)
   ========================================================================== */

.carousel-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.carousel-stage {
  position: relative;
  width: 100%;
  padding: 0 45px;
  /* Berikan ruang untuk tombol prev & next */
  box-sizing: border-box;
}

.carousel-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: start !important;
  /* Mencegah item terpusat ke tengah (center) pada desktop */
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  gap: 24px !important;
  /* padding horizontal 20px agar card pertama dan terakhir memiliki space untuk shadow dan border radius */
  padding: 24px 20px !important;
  margin-top: 10px !important;
  width: 100% !important;
  box-sizing: border-box;
  cursor: grab;
}

.carousel-track.active-dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

.carousel-track::-webkit-scrollbar {
  display: none !important;
}

/* Override properties card di dalam carousel */
.carousel-track .jadwaldokter-card {
  scroll-snap-align: start !important;
  flex: 0 0 100% !important;
  min-width: 0 !important;
  max-width: unset !important;
  width: 100% !important;
  margin: 0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid #E2E8F0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.carousel-track .jadwaldokter-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 25px rgba(35, 73, 116, 0.15) !important;
  border-color: #234974 !important;
}

/* Tombol Navigasi Prev dan Next diposisikan di tengah vertikal track */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(35, 73, 116, 0.15);
  color: #234974;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  padding: 0;
  line-height: 1;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #234974;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(35, 73, 116, 0.25);
  transform: translateY(-50%) scale(1.08);
  border-color: #234974;
}

.carousel-prev:active,
.carousel-next:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev:disabled,
.carousel-next:disabled,
.carousel-prev.disabled,
.carousel-next.disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Dots Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  min-height: 12px;
  position: static !important;
  /* Override absolute position bawaan bootstrap */
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.carousel-indicators button {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: rgba(35, 73, 116, 0.2) !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  opacity: 1 !important;
  /* Override opacity bawaan bootstrap */
}

.carousel-indicators button.active {
  width: 20px !important;
  border-radius: 4px !important;
  background-color: #234974 !important;
}

/* Breakpoint Responsif */
@media (max-width: 575.98px) {
  .carousel-stage {
    padding: 0 5px;
    /* Margin kecil di mobile */
  }

  .carousel-track {
    padding: 24px 10px !important;
    /* Padding lebih kecil pada mobile */
    gap: 16px !important;
  }

  .carousel-prev,
  .carousel-next {
    display: none !important;
    /* Sembunyikan tombol di mobile (gunakan swipe touch) */
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .carousel-track .jadwaldokter-card {
    flex: 0 0 calc(50% - 12px) !important;
    /* 2 card */
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .carousel-track .jadwaldokter-card {
    flex: 0 0 calc(33.333% - 16px) !important;
    /* 3 card */
  }
}

@media (min-width: 1200px) {
  .carousel-track .jadwaldokter-card {
    flex: 0 0 calc(25% - 18px) !important;
    /* 4 card */
  }
}


/* Custom styles for doctor practice label */
.doctor-practice-label {
    display: inline-block;
    max-width: 100%;
    word-break: break-word; /* allow breaking long words */
    white-space: normal;   /* wrap text */
    font-size: 0.9rem;
    color: #555;
}

/* Ensure the container can wrap its children when needed */
.doctor-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Badge for schedule – allow wrapping */
.doctor-badge {
    flex: 0 1 auto; /* allow shrinking and wrap */
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Responsif Jadwal Dokter mobile padding */
@media (max-width: 768px) {
  .jadwaldokter {
    padding: 30px 10px 0 10px !important;
  }
  .jadwaldokter .tab-content {
    padding: 0 !important;
  }
  .jadwaldokter .container.my-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ====================================================
   ONLINE REGISTRATION & SCHEDULE OPTIMIZATION
   ==================================================== */

/* CSS Variables for Online Registration */
:root {
  --primary-color: #234974;
  --success-color: #4CAF50;
  --bg-card-color: #F8FBFF;
  --border-color: #D8E7F5;
  --text-secondary-color: #666666;
  --badge-bg-color: #e6f4ea;
}

/* Base Desktop Styles for Online Registration Section */
.online-registration-section .online-card {
  background: var(--bg-card-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding-top: 10px;
  padding-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.online-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.online-left {
  flex: 0 0 calc(33.333% - 13.33px);
  max-width: calc(33.333% - 13.33px);
}

.online-right {
  flex: 0 0 calc(66.666% - 6.67px);
  max-width: calc(66.666% - 6.67px);
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0 !important;
}

.icon-box {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.online-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.benefit-badge {
  background: var(--badge-bg-color);
  color: var(--success-color);
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 0.8rem;
  display: inline-block;
  font-weight: 500;
}

.app-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.app-logo {
  max-height: 80px;
  width: auto;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.app-desc {
  font-size: 0.875rem;
  color: var(--text-secondary-color);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.app-badge {
  max-width: 120px;
  margin-top: 0.5rem;
  transition: transform 0.2s;
}

.app-badge:hover {
  transform: scale(1.05);
}

.app-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hide mobile-only day/date header on desktop */
.mobile-day-header {
  display: none;
}

/* Hide status wrapper inside empty schedule cells on desktop */
.no-schedule .schedule-status-wrapper {
  display: none;
}

/* ====================================================
   MOBILE OPTIMIZATION (MAX-WIDTH: 768px)
   ==================================================== */
@media (max-width: 768px) {
  
  /* 1. JADWAL PRAKTIK: Transform table into vertical cards list */
  .table-responsive {
    overflow-x: visible !important; /* Disable horizontal scrolling */
  }

  .table-responsive table.table {
    display: block;
    border: none !important;
    width: 100% !important;
  }

  .table-responsive table.table thead {
    display: none !important; /* Hide desktop table header */
  }

  .table-responsive table.table tbody {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .table-responsive table.table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: none !important;
    width: 100%;
  }

  .table-responsive table.table tbody tr td.schedule-td {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #F8FBFF;
    border: 1px solid #D8E7F5 !important;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(35, 73, 116, 0.05);
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Header inside each mobile schedule card */
  .mobile-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px dashed #D8E7F5;
    width: 100%;
    padding-bottom: 10px;
  }

  .mobile-day-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #234974;
  }

  .mobile-day-date {
    font-size: 0.875rem;
    color: #666666;
    margin-top: 4px;
    font-weight: 500;
  }

  /* Schedule card body details */
  .schedule-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .schedule-time {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333333;
  }

  .schedule-poli {
    font-size: 0.9rem;
    color: #666666;
  }

  .schedule-status-wrapper {
    margin-top: 8px;
  }

  /* Proportional status badge sizes on mobile cards */
  .status-praktek, 
  .status-libur {
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    display: inline-block;
    margin-top: 0 !important;
  }

  /* 2. CARD PENDAFTARAN ONLINE: Stack layout in one column */
  .online-flex {
    flex-direction: column !important;
    gap: 25px;
  }

  .online-left {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    padding: 10px 0 !important;
  }

  .online-left .icon-box {
    margin: 0 auto 15px auto;
  }

  .online-left .benefit-badges {
    align-items: center !important;
    gap: 10px;
  }

  .online-right {
    flex: 0 0 100%;
    max-width: 100%;
    flex-direction: column !important; /* Stack app cards vertically */
    padding: 0 !important;
    gap: 20px;
  }

  .app-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 24px 20px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
  }

  .app-logo {
    max-height: 80px;
    margin-bottom: 12px;
  }

  .app-desc {
    font-size: 0.9rem;
    margin-bottom: 12px;
    max-width: 90%;
  }

  .app-badge {
    margin-top: 8px;
    max-width: 130px;
  }

  .app-badges {
    gap: 12px;
  }
}