@import "bootstrap-icons/font/bootstrap-icons.css";
@import "plus-jakarta-sans/PlusJakartaSans.css";
@import "bootstrap/dist/css/bootstrap.min.css";


/* 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: 50px 0 0 0;
  position: relative;
}

/* ---Header Top Bar Section--- */

.header-top-bar {
  background: #234974;
  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 */
  min-height: 700px; /* fallback untuk device kecil */
  overflow: hidden;
}

.hero-slide {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.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: 150px;
}

.hero-title {
  font-size: 56px;
  font-weight: bold;
  color: #234974;
}

.hero-subtitle {
  font-size: 24px;
  color: #4CAF50;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 20px;
}

.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.4), rgba(255, 255, 255, 1));
  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: 20px;
  margin-top: 20px;
}
  .hero-title {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    color: #234974;
  }

  .hero-subtitle {
    text-align: center;
    font-size: 18px;
    color: #00d807;
    font-style: italic;
    font-weight: 600;
    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: #F4FBFF;
  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;
}

@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 */
}

.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;
  padding: 50px 0;
  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;
}

/* -- 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-color: #234974;
  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: 70px;

}

.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;
}

.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;
}

@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;
  }
}


/* --- 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;
}
