body {
  zoom: 85%; /* atau 0.8 */
}

.container {
  max-width: 1280px;
}

.hero-section {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero img {
  max-height: 900px;
}

.logo img {
  padding: 0;
  margin: 0;
  max-height: 40px;
}

.certificate img {
  padding: 0;
  margin: 0;
  max-height: 90px;
}

.quality-section {
  position: relative;
  padding: 100px 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("../assets/images/pagination-footer.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Konten berada di atas background */
.quality-section .container {
  position: relative;
  z-index: 1;
}

.quality-section h2 {
  color: #172b46;
  font-weight: 700;
}

.quality-section p {
  color: #4b5563;
}

/* Background area carousel */
#medicloudCarousel {
  border-radius: 24px;
  overflow: hidden;
}

/* Tinggi setiap slide dibuat konsisten */
#medicloudCarousel .carousel-item {
  min-height: 520px;
}

/* Konten slide memiliki tinggi yang sama */
#medicloudCarousel .carousel-item > .row {
  min-height: 520px;
}

/* Ukuran gambar konsisten, tanpa merusak proporsi */
#medicloudCarousel .carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  object-position: center;
}

/* Tampilan di layar HP */
@media (max-width: 767.98px) {
  #medicloudCarousel .carousel-item,
  #medicloudCarousel .carousel-item > .row {
    min-height: 680px;
  }

  #medicloudCarousel .carousel-item > .row {
    padding: 30px 24px 55px;
  }

  #medicloudCarousel .carousel-item img {
    height: 280px;
  }
}

/* Warna teks menu saat hover */
.navbar .nav-link:hover {
  color: #871c40 !important;
}

/* Warna teks menu yang aktif */
.navbar .nav-link.active {
  color: #871c40 !important;
}

/* Pengaturan posisi menu */
.navbar-nav .nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

/* Teks menu sebagai acuan garis */
.navbar .navbar-nav .nav-link span {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

/* Garis bawah mengikuti lebar teks */
.navbar .navbar-nav .nav-link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #871c40;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Hover */
.navbar .navbar-nav .nav-link:hover span::after {
  transform: scaleX(1);
}

/* Active */
.navbar .navbar-nav .nav-link.active span::after {
  transform: scaleX(1);
}

/* Portfolio section */
.portfolio-section {
  background: #f8fafc;
}

.portfolio-title {
  color: #871c40;
  font-size: clamp(28px, 3vw, 20px);
  font-weight: 700;
}

/* Left tabs */
.portfolio-tabs {
  gap: 8px;
  border-left: 2px solid #e2e8f0;
  padding-left: 12px;
}

.portfolio-tabs .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 8px;
  background: transparent;
  color: #526477;
  text-align: left;
  font-weight: 500;
  transition: all 0.25s ease;
}

.portfolio-tabs .nav-link:hover {
  color: #871c40;
  background: #f3b4c9;
}

.portfolio-tabs .nav-link.active {
  color: #ffffff;
  background: #871c40;
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.12);
}

.portfolio-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-info .text-end {
  margin-top: auto !important;
  padding-top: 15px;
}

.tab-arrow {
  font-size: 20px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.25s ease;
}

.portfolio-tabs .nav-link.active .tab-arrow,
.portfolio-tabs .nav-link:hover .tab-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Portfolio cards */
.portfolio-card {
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(16, 42, 67, 0.1);
}

.portfolio-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #eaf1f6;
}

.portfolio-info {
  padding: 22px;
}

.portfolio-info span {
  color: #079bb9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.portfolio-info h5 {
  margin: 8px 0;
  color: #871c40;
  font-weight: 700;
}

.portfolio-info p {
  margin-bottom: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 767.98px) {
  .portfolio-tabs {
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-left: 0;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 0 10px;
  }

  .portfolio-tabs .nav-link {
    flex: 0 0 auto;
    padding: 11px 15px;
    white-space: nowrap;
  }

  .portfolio-tabs .nav-link .tab-arrow {
    display: none;
  }

  .portfolio-card img {
    height: 200px;
  }
}

@media (max-width: 767.98px) {
  .navbar .navbar-toggler {
    display: block !important;
  }

  .navbar .navbar-collapse:not(.show) {
    display: none;
  }

  .navbar .navbar-collapse.show {
    display: block;
  }
}

.cta {
  padding: 60px 0;
  background:
    linear-gradient(#004c82e0, #004c82e0),
    url(../assets/images/cta-bg.png) fixed center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: contain;
  color: #e2e8f0;
}

.quality-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  background-image: url("../assets/images/qc_bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

.quality-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 165, 171, 0.63) 0%,
    rgba(248, 150, 150, 0.219) 50%,
    rgba(253, 194, 214, 0.03) 100%
  );
  z-index: 1;
}

.quality-hero-container {
  min-height: 480px;
}

.quality-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 50px;
  padding-bottom: 50px;
  color: #03175c;
}

.quality-hero-content h1 {
  max-width: 520px;
  margin-bottom: 20px;
  font-size: 75px;
  line-height: 1.08;
  font-weight: 800;
  color: #03175c;
}

.quality-hero-content p {
  max-width: 440px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: #34415d;
}

.btn-quality {
  padding: 12px 24px;
  border-radius: 4px;
  background-color: #03175c;
  color: #fff;
  font-weight: 600;
}

.btn-quality:hover {
  background-color: #871c40;
  color: #fff;
}

@media (max-width: 767.98px) {
  .quality-hero {
    min-height: 540px;
    background-position: 62% center;
  }

  .quality-hero-container {
    min-height: 540px;
  }

  .quality-hero-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .quality-hero-content p {
    max-width: 100%;
  }
}

/****************/
/*	 BX-SLIDER 	*/
/****************/
.bx-controls {
  position: relative;
}
.bx-wrapper .bx-pager {
  text-align: center;
  padding-top: 30px;
}
.bx-wrapper .bx-pager .bx-pager-item,
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
  display: inline-block;
  *zoom: 1;
  *display: inline;
}

.bx-wrapper .bx-pager.bx-default-pager a {
  background: #666;
  text-indent: -9999px;
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  outline: 0;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

/* Ukuran area setiap logo */
.bx-wrapper .client-logo {
  height: 95px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ukuran tampilan logo diseragamkan */
.bx-wrapper .client-logo img {
  width: 100%;
  height: 95px;
  max-width: 110px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 45px;
  height: 45px;

  background-color: #871c40;
  color: #fff;

  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);

  transition: all 0.3s ease;
  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #03175c;
  color: #fff;
}
