
body {
  position: relative;
  background: none;
  color: #333;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(200, 200, 200, 0.7), rgba(180, 180, 180, 0.7)),
              url('/storage/img/pilihan/ku.webp') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.3; /* Tingkatkan jika ingin lebih gelap */
  z-index: -1;
}


/* ========== TYPOGRAPHY GLOBAL ========== */
body {
  font-family: 'Poppins', 'Open Sans', sans-serif;
  line-height: 1.6;
  font-weight: 400;
  color: #333;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.btn-custom, .bg-custom {
  background-color: #5EB28F; /* ganti dengan warna yang kamu mau */
  color: white;
  border: none;
}

.btn-custom:hover {
  background-color: red; /* warna saat hover */
  color: white;
}

.bg-customcard {
  background-color: #F1901B;
}





/*Bagian Navigasi */
    .top-bar {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      z-index: 1030;
      background-color: #F1901B;
      padding: 0.5rem 1rem;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .navbar {
      position: fixed;
      top: 40px; /* tepat di bawah top-bar */
      width: 100%;
      z-index: 1025;
    }
    .navbar-custom {
      background-color: white;
    }

/*Bagian heading wellcome*/
    .welcome-heading {
      padding-top: 110px;
      font-family: 'Satisfy', cursive;
      font-size: 1.8rem;
      color: #000;
    }

    .hospital-name {
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 1.9rem;
      color: #d2242b; /* Warna merah sesuai contoh */
    }

    /* Responsif */
    @media (max-width: 768px) {
      .welcome-heading,
      .hospital-name {
        font-size: 1.3rem;
      }
    }




/*Bagian Slider */
/*    .carousel {
      padding-top: 110px;
    }
*/
    /* Pastikan carousel bisa jadi area hover */
    .custom-carousel-wrapper {
      position: relative;
    }

    .custom-carousel-wrapper:hover .custom-carousel-btn {
      opacity: 1;
      visibility: visible;
    }

    /* Tombol prev/next defaultnya disembunyikan */
    .custom-carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      bottom: auto;
      background: transparent;
      border: none;
      z-index: 10;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease;
    }

    .carousel-control-prev {
      left: 1rem;
    }

    .carousel-control-next {
      right: 1rem;
    }

    /* Lingkaran ikon */
    .carousel-circle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background-color: rgba(0, 0, 0, 0.4);
      color: #fff;
      font-size: 20px;
      transition: background-color 0.3s;
    }

    .carousel-circle:hover {
      background-color: rgba(0, 0, 0, 0.6);
    }

    /* Responsive */
    @media (max-width: 768px) {

      .carousel-circle {
        /* width: 30px;
        height: 30px; */
        width: 120%;
        height: 120%;
        font-size: 18px;
      }
    }

    @media (max-width: 576px) {

      .carousel-circle {
        /* width: 28px;
        height: 30px; */
        width: 120%;
        height: 120%;
        font-size: 14px;
      }
    }




/*Bagian Card Layanan */

    /*garis pada heading layanan*/

    .section-title .line {
      width: 6px;
      height: 32px;
      background-color: #20c997; /* warna garis sesuai tema teal */
      border-radius: 4px;
      animation: grow 0.6s ease-out;
    }

    @keyframes grow {
      from {
        height: 0;
        opacity: 0;
      }
      to {
        height: 32px;
        opacity: 1;
      }
    }

    .section-title h2 {
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 1.6rem;
      color: #212529;
    }


    /* Responsif */
@media (max-width: 768px) {
    .section-title h2 {
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 1.3rem;
      color: #212529;
    }

    .card-layanan h5{
      font-weight: 600;
      font-size: 1.1rem;
    }

    .card-layanan .card-text {
      font-family: 'Open Sans', sans-serif;
      font-weight: 330; /* light */
      font-size: 0.75rem; /* sedikit lebih kecil agar nyaman */
      line-height: 1.6; /* spasi baris agar tidak rapat */
      color: #F8F9FA;
    }
}

@media (max-width: 375px) {

    .section-title h2 {
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 1.1rem;
      color: #212529;
    }

    .card-layanan h5{
      font-weight: 600;
      font-size: 0.85rem;
    }

    .card-layanan .card-text {
      font-family: 'Open Sans', sans-serif;
      font-weight: 330; /* light */
      font-size: 0.55rem; /* sedikit lebih kecil agar nyaman */
      line-height: 1.6; /* spasi baris agar tidak rapat */
      color: #F8F9FA;
    }

}


    /*akhir garis*/

    .layanan-section {
      background-color: #f8f9fa;
      padding: 2rem 0;
      text-align: center;
    }

    .layanan-section h2 {
      color: #c82333;
      margin-bottom: 2rem;
    }

    .card-layanan {
      transition: transform 0.3s ease;
    }

    .card-layanan:hover {
      transform: translateY(-5px);
    }

    .btn-layanan {
      margin-top: 2rem;
    }

    .bg-teal {
      background-color: #30A96A;
    }

    .opacity-layer {
      opacity: 0.2;
      object-fit: cover;
      background-color: #30c96a;
    }

    .dark-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4); /* Semitransparan gelap */
      z-index: 1;
    }

    .icon-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2; /* Di atas overlay */
    }

    .card-layanan .card-text {
      font-family: 'Open Sans', sans-serif;
      font-weight: 330; /* light */
      font-size: 0.85rem; /* sedikit lebih kecil agar nyaman */
      line-height: 1.6; /* spasi baris agar tidak rapat */
      color: #F8F9FA;
    }


/* Sesi partner */

.partner-box {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: white;
  border: 1px solid #1c6ea4; /* Border biru */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.75rem;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* lebih ringan */
}

.partner-box:hover {
  transform: scale(1.05);
}

.partner-box img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: 3 / 2;
}

/* Safari */
@supports not (aspect-ratio: 1) {
  .partner-box {
    padding-top: 66.66%; /* 3:2 rasio fallback */
    height: 0;
    position: relative;
  }

  .partner-box > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/*Akhir sesi partner*/


/*Sesi pilih layanan*/

  .rs-card {
    min-height: 220px;
    position: relative;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .rs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.3;
  }

  .bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* background-color: rgba(30, 169, 106, 0.7); Hijau transparan */
    background-color: #5EB28F;
    z-index: 1;
  }

  .logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }

  .logo-img1 {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

/*Akhir Sesi pilih layanan*/


/*Sesi promo*/
  .promo-img {
    transition: all 0.4s ease-in-out;
    filter: blur(4px);
    opacity: 0.6;
    transform: scale(1);
    
  }

  .swiper-slide-active .promo-img {
    filter: none;
    opacity: 1;
    transform: scale(1.21);
  }

  .swiper-wrapper {
    padding: 23px 0; /* beri ruang vertikal agar gambar tidak kepotong saat scale */
  }

  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important; /* agar gambar tidak terpotong */

  }

  @media (max-width: 768px) {
    .swiper-slide .promo-img {
    transform: scale(1.05);
    }
    .swiper-wrapper {
      padding: 20px 0;
    }
  }




/*Akhir Sesi promo*/

/* Sesi artikel */

.artikel-item {
  border-bottom: 1px solid #F1901B;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.artikel-img {
  width: 180px;
  max-height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

.artikel h5 {
  font-size: 1.05rem;
  line-height: 1.3;
}


@media (max-width: 768px) {
  .artikel-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
  }

  .artikel-content {
    display: none;
  }

  .artikel-text {
    flex: 1;
    margin-right: 8px;
  }

  .artikel-img {
    width: 82px;
    max-height: 102px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    margin-left: 0;
  }

  .artikel h5{
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .artikel-item small {
    font-size: 0.75rem;
    color: #666;
  }
}

@media (min-width: 578px) and (max-width: 1924px) {
  .row {
    display: flex;
    flex-wrap: wrap;
  }

  .row > .col-12.col-sm-6.col-md-6 {
    display: flex;
  }

  .artikel-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid #F1901B;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .artikel-item .artikel-img {
    width: 120px;
    max-height: 150px;
    object-fit: cover;
  }

  /* Tambahkan ini agar semua artikel-item tingginya seragam */
  .artikel-item > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* sesi akhir artikel */




/* sesi video */
  .object-fit-cover {
    object-fit: cover;
  }

  .card h6 {
    font-size: 0.95rem;
  }

  .modal-content iframe {
    width: 100%;
    height: 100%;
  }

 /*Sesi akhirvideo*/

/*Sesi tebtang kami*/

  .tentang-kami img{
    max-width: 800px;

  }

  .tentang-kami p{
    font-family: 'Open Sans', sans-serif;
  }

  .visi p{
    text-align: center;
  }


.profil-text p {
  text-align: justify;
  hyphens: auto;
  word-spacing: 1px;
  line-height: 1.7;
}
  .tentang-kami .justify-container {
    max-width: 720px;
    margin: auto;
  }




      /* Responsive */
    @media (max-width: 768px) {

      .tentang-kami img {
        max-width: 350px;
      }
    }

    @media (max-width: 576px) {

      .tentang-kami img {
        max-width: 250px;
      }
    }


/*Akhir sesi tentang kami*/



/* Sesi Testimoni */

    .testimonial-section h2 {
      font-weight: 600;
      font-size: 1.6rem;
    }


    .testimonial-section p {
      font-family: 'Open Sans', sans-serif;
      font-size: 1rem; 
      line-height: 1.6;
      font-weight: 400;
      color: #000000;
    }


    .testimonial-card {
      height: 100%;
      transition: transform 0.3s ease-in-out;
      }
      .testimonial-card:hover {
        transform: translateY(-5px);
      }
      .testimonial-img {
        width: 40px;
        height: 40px;
        object-fit: cover;
      }
      .swiper-slide {
        display: flex;
        height: auto;
      }

      @media (max-width: 768px){
        .testimonial-section h2 {
          font-weight: 600;
          font-size: 1.3rem;
        }


        .testimonial-section p {
          br{
              display: none;
          }
          font-family: 'Open Sans', sans-serif;
          font-size: 0.87rem; /* sedikit lebih kecil agar nyaman */
          line-height: 1.6; /* spasi baris agar tidak rapat */
          color: #000000;
        }
        
      }

    /* avatar testimoni */
    .avatar-initial {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: #007bff; /* ganti jika ingin warna lain */
      color: white;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      text-transform: uppercase;
    }

    /* Warna avatar */
    .avatar-initial {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      color: white;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      text-transform: uppercase;
    }

    .bg-red { background-color: #dc3545; }
    .bg-blue { background-color: #007bff; }
    .bg-green { background-color: #28a745; }
    .bg-orange { background-color: #fd7e14; }
    .bg-teal { background-color: #20c997; }
    .bg-purple { background-color: #6f42c1; }
    .bg-pink { background-color: #e83e8c; }
    .bg-indigo { background-color: #6610f2; }

/* akhir sesi testimoni */



/*Sesi lebih dekat*/
      /* Responsive */
    @media (max-width: 768px) {

      .lebih-dekat h6 {
        font-size: 18px;
      }
    }

    @media (max-width: 576px) {

      .lebih-dekat h6 {
        font-size: 14px;
      }
    }

/*Modal pop up home*/
  .modal-backdrop.show {
    backdrop-filter: blur(570px);
    background-color: rgba(0, 0, 0, 0.3);
  }

  .popup-container {
  width: 100%;
  max-width: 370px; /* setengah dari 731px agar responsif */
  aspect-ratio: 731 / 920; /* menjaga rasio */
  margin: auto;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 10px;
}

  .popup-poster {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Menjaga isi poster tampil utuh */
    border-radius: 10px;
  }

  /*Modal contact*/
  .modalc-content {
    background-color: #f8f9fa;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  .modalct-body a {
    color: #0d6efd;
    font-weight: 500;
  }
  

  @media (max-width: 768px) {
    .modalct-dialog {
      max-width: 90% !important;
      margin: auto;
    }
  }

/*Akhir sesi modal contact*/

/*Sesi semua layanan*/
  .allayanan {
    margin-top: 100px;
  }

  .alllayanan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease-in-out;
  }

  .alllayanan-card {
    background-color: red;
    max-height : 135px; 
    margin-top: 0px;
  }


/*akhir sesi semua layanan*/

/*Sesi Detail layanan*/
  .detaillayanan {
    margin-top: 100px;
  }

  .detaillayanan img{
    max-width: 550px;

  }

  .detaillayanan p, ul {
  text-align: justify;
  hyphens: auto;
  font-family: 'Open Sans', sans-serif;
  }

  /*akhir sesi detail layanan*/


  /*sesi all partner*/
  .allpartner {
    margin-top: 100px;
  }

/*akhir sesi all partner*/

/*sesi all promo*/

  .allpromo {
    padding-top: 100px;
  }

  .allpromo-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
  }

  .allpromo-card:hover {
    transform: scale(1.02);
  }

  .allpromo-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }

  .allpromo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 8px;
  }

  .allpromo-card:hover .allpromo-overlay {
    opacity: 1;
  }

    /* Responsive */
    @media (max-width: 768px) {

      .allpromo h6 {
        font-size: 24px;
      }
    }

    @media (max-width: 576px) {

      .lebih-dekat h6 {
        font-size: 14px;
      }
    }

/*akhir akhir all promo*/

/* sesi detail promo */
/* Rsponsive */
@media (min-width: 768px) and (max-width: 1024px) {
  .gambar-detail-promo {
    display: flex;
    justify-content: center;
  }

  .gambar-detail-promo img {
    max-width: 100%;
    height: auto;
  }
}

/* akhir sesi detail promo */

/*secsion all artikel*/
/*  .allartikel {
    padding-top: 100px;
  }
*/
  .artikel-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
  }

  .artikel-card:hover {
    transform: scale(1.02);
  }

  .artikel-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background-color: #e0e0e0;
  }

  .artikel-category {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
  }

  .artikel-date {
    font-size: 0.8rem;
    color: #fa4c4c;
  }

  .artikel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
  }

  .artikel-link {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
  }

  .artikel-link:hover {
    text-decoration: underline;
  }

@media (min-width: 768px) and (max-width: 1024px) {
  .imgdetail-artikel {
    display: flex;
    justify-content: center;
  }

  .imgdetail-artikel img {
    max-width: 100%;
    height: auto;
  }
}

  /*section filter artikel*/
  .filterartikel {
    padding-top: 100px;
  }
  .filter-bar {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
  }

  .form-select,
  .form-control {
    border-radius: 30px;
  }

  .btn-filter {
    border-radius: 30px;
    padding: 6px 20px;
  }

  @media (max-width: 576px) {
    .filter-bar .row > div {
      margin-bottom: 10px;
    }
  }
  

/*Section Form*/

/* alert require form */
.alertrequire-custom {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 1rem;
  animation: fadeInSlide 0.4s ease-out;
}

.d-none {
  display: none;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* akhir alert require form */

.form-section {
  margin-top: 90px;
  min-height: 100vh;
  padding: 2rem;
}

.form-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-card label{
  font-weight: 600;
}

.form-control,
.form-select {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none !important;
}


.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: none;
}

.btn-gradient {
  background: linear-gradient(to right, #f000ff, #00f0ff);
  border: none;
  color: white;
  padding: 0.6rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-gradient:hover {
  opacity: 0.9;
}

@media (max-width: 576px) {
  .form-card {
    padding: 1.5rem;
  }
}

/*Akhir Section Form*/


/* Loading spinner */
  /* Loading Wrapper Fullscreen */
  .loading-wrapper {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    transition: all 0.6s ease;
  }

  /* Spinner Container */
  .spinner-container {
    position: relative;
    width: 120px;
    height: 120px;
  }

  /* Logo di tengah spinner */
  .logo-center {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  /* Spinner Styles (dari kamu) */
  .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    color: #5EB28F;
    z-index: 1;
  }
  .loader:before,
  .loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
  }
  .loader:after {
    color: #F1901B;
    transform: rotateY(70deg);
    animation-delay: .4s;
  }

  @keyframes spin {
    0%, 100% {
      box-shadow: .2em 0px 0 0px currentcolor;
    }
    12% {
      box-shadow: .2em .2em 0 0 currentcolor;
    }
    25% {
      box-shadow: 0 .2em 0 0px currentcolor;
    }
    37% {
      box-shadow: -.2em .2em 0 0 currentcolor;
    }
    50% {
      box-shadow: -.2em 0 0 0 currentcolor;
    }
    62% {
      box-shadow: -.2em -.2em 0 0 currentcolor;
    }
    75% {
      box-shadow: 0px -.2em 0 0 currentcolor;
    }
    87% {
      box-shadow: .2em -.2em 0 0 currentcolor;
    }
  }

  /* Tambahan untuk efek kedip pada logo */
  .blink-logo {
    animation: blink 1.5s ease-in-out infinite;
    opacity: 1;
  }

  @keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
  }

/* Akhir loading spinner */
