/* Custom Bootstrap Colors */
:root {
  --bs-blue: #7DC142;      /* Mengganti warna biru Bootstrap dengan hijau kustom */
  --bs-indigo: #00B6B9;   /* Mengganti warna indigo Bootstrap dengan biru muda kustom */
  --bs-purple: #7DC142;    /* Mengganti warna ungu Bootstrap dengan hijau kustom */
  --bs-primary: #7DC142;   /* Warna primer Bootstrap */
  --bs-secondary: #00B6B9; /* Warna sekunder Bootstrap */
  --bs-success: #7DC142;   /* Warna sukses Bootstrap */
  --bs-info: #00B6B9;      /* Warna info Bootstrap */
  --bs-link-color: #7DC142; /* Warna link Bootstrap */
}

/* Update warna tombol Bootstrap */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #6ba838;
  --bs-btn-hover-border-color: #6ba838;
  --bs-btn-active-bg: #6ba838;
  --bs-btn-active-border-color: #6ba838;
}

/* Update warna link */
a {
  color: var(--bs-primary);
}

a:hover {
  color: #6ba838;
}

/* Hero Section Customization */
.th-hero-wrapper.hero-1 {
  --theme-color: #7DC142;
  --title-color: #1b1d21;
  --body-color: #6f6f6f;
  --light-color: #00B6B9;
  --smoke-color: #f5f5f5;
  --black-color: #1b1d21;
  --white-color: #ffffff;
  --title-font: "Saira", sans-serif;
  --body-font: "Inter", sans-serif;
  --body-font2: "Outfit", sans-serif;
  --transition: all 0.4s ease-in-out;
  --border-color: #e5e5e5;
  --border-color2: #e5e5e5;
  --border-color3: #e5e5e5;
  --border-color4: #e5e5e5;
  --border-color5: #e5e5e5;
  --border-color6: #e5e5e5;
  --border-color7: #e5e5e5;
  --border-color8: #e5e5e5;
  --border-color9: #e5e5e5;
  --border-color10: #e5e5e5;
}

/* Override ungu di hero section */
.th-hero-wrapper .hero-inner .hero-style1 .sub-title,
.th-hero-wrapper .hero-inner .hero-style1 .hero-title .text-theme,
.th-hero-wrapper .hero-inner .hero-style1 .th-btn.style1 {
  color: var(--theme-color) !important;
}

.th-hero-wrapper .hero-inner .hero-style1 .th-btn.style1 {
  background-color: var(--theme-color);
  border-color: var(--theme-color);
}

.th-hero-wrapper .hero-inner .hero-style1 .th-btn.style1:hover {
  background-color: #6ba838;
  border-color: #6ba838;
}

/* Override warna ungu di slider pagination */
.th-hero-wrapper .slider-pagination .swiper-pagination-bullet-active {
  background-color: var(--theme-color) !important;
}

.th-hero-wrapper .slider-pagination .swiper-pagination-bullet {
  border-color: var(--theme-color);
}

/* Overlay hijau di background hero */
.hero-1 .th-hero-bg:before {
  background: linear-gradient(0deg, rgba(70, 120, 30, 0.6), rgba(90, 140, 40, 0.4)) !important;
}

/* Memastikan gambar background terlihat jelas */
.th-hero-bg {
  position: relative;
  z-index: 1;
}

.th-hero-bg:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 100%);
  mix-blend-mode: overlay;
  z-index: 1;
  opacity: 0.9;
}

/* Memastikan konten di atas overlay */
.hero-inner > .container {
  position: relative;
  z-index: 2;
}

/* Gaya untuk FAQ area - ubah warna ungu ke hijau */
.accordion-button:not(.collapsed) {
  color: #7DC142 !important; /* Warna hijau brand */
  background-color: rgba(125, 193, 66, 0.1) !important;
}

/* Menyesuaikan jarak pada accordion FAQ */
.accordion-body {
  padding: 1.5rem 1.25rem !important;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px !important;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  padding: 1.25rem 1.5rem !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.accordion-button:focus {
  border-color: #7DC142 !important;
  box-shadow: 0 0 0 0.25rem rgba(125, 193, 66, 0.25) !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%237DC142'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%237DC142'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Gaya untuk Opening Hours Section */
.opening-hour-content {
  background-color: #7DC142 !important; /* Warna hijau brand */
  background-blend-mode: overlay !important;
  position: relative;
  padding: 60px 40px;
  border-radius: 10px;
  overflow: hidden;
}

.opening-hour-content:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(125, 193, 66, 0.9) 0%, rgba(0, 182, 185, 0.8) 100%) !important;
  z-index: 1;
}

.opening-hour-content > * {
  position: relative;
  z-index: 2;
}

.opening-hour-content .sec-title {
  color: white !important;
}

.opening-hour-content .times-content {
  margin-top: 30px;
}

.opening-hour-content .times-content .day {
  display: flex;
  justify-content: space-between;
  color: white;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.opening-hour-content .times-content .time {
  color: rgba(255, 255, 255, 0.8);
}

.opening-hour-content .th-btn.style1 {
  background-color: white !important;
  color: #7DC142 !important;
  border: 1px solid white !important;
}

.opening-hour-content .th-btn.style1:hover {
  background-color: transparent !important;
  color: white !important;
}

/* Gaya untuk tombol play di bagian .img1 */
.img1 .play-btn i {
  background-color: #7DC142 !important; /* Warna hijau brand */
  color: white !important;
  transition: all 0.3s ease;
}

.img1 .play-btn:before,
.img1 .play-btn:after {
  background-color: rgba(125, 193, 66, 0.4) !important; /* Warna hijau dengan opacity */
  border: none !important;
}

.img1 .play-btn:hover i {
  background-color: white !important;
  color: #7DC142 !important;
  transform: scale(1.1);
}

.img1 .play-btn:hover:before,
.img1 .play-btn:hover:after {
  background-color: rgba(125, 193, 66, 0.6) !important;
}

/* Menghapus overlay ungu dan menambahkan overlay hijau transparan pada gambar about */
.about-wrapper .img1:before {
  background: linear-gradient(0deg, rgba(125, 193, 66, 0.3), rgba(0, 182, 185, 0.2)) !important;
}

/* Efek hover yang lebih halus */
.about-wrapper .img1:hover:before {
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* Memastikan gambar memiliki border radius yang konsisten */
.about-wrapper .img1 img {
  border-radius: 16px !important;
  transition: transform 0.5s ease;
}

/* Efek zoom halus saat hover */
.about-wrapper .img1:hover img {
  transform: scale(1.05);
}

/* Mengganti semua overlay ungu dengan hijau */
[style*='background: linear-gradient(0deg, rgba(26, 33, 89'],
[style*='background:linear-gradient(0deg, rgba(26, 33, 89'],
[style*='background: linear-gradient(0deg,rgba(26, 33, 89'],
[style*='background:linear-gradient(0deg,rgba(26, 33, 89'] {
  background: linear-gradient(0deg, rgba(125, 193, 66, 0.7), rgba(0, 182, 185, 0.6)) !important;
}

/* Override untuk hero section */
.th-hero-wrapper.hero-1 .th-hero-bg:before,
.th-hero-wrapper.hero-2 .th-hero-bg:before,
.th-hero-wrapper.hero-3 .th-hero-bg:before {
  background: linear-gradient(0deg, rgb(63, 82, 60), rgba(10, 50, 50, 0.65)) !important;
}

/* Override untuk gallery */
.gallery-img:before,
.gallery-card:before,
.gallery-box:before {
  background: linear-gradient(0deg, rgba(125, 193, 66, 0.8), rgba(0, 182, 185, 0.6)) !important;
}

/* Override untuk card overlay */
.card:before,
.service-card:before,
.team-card:before,
.blog-card:before {
  background: linear-gradient(0deg, rgba(125, 193, 66, 0.9), rgba(0, 182, 185, 0.7)) !important;
}

/* Override untuk button hover effect */
.th-btn.style1:not(:disabled):not(.disabled):hover,
.th-btn.style2:not(:disabled):not(.disabled):hover {
  background-color: #6ba838 !important;
  border-color: #6ba838 !important;
  color: white !important;
}

/* Override untuk testimonial dan review */
.testimonial-card,
.review-box {
  border-color: rgba(125, 193, 66, 0.2) !important;
}

.testimonial-card:hover,
.review-box:hover {
  border-color: rgba(125, 193, 66, 0.5) !important;
  box-shadow: 0 10px 30px rgba(125, 193, 66, 0.1) !important;
}

/* Override untuk form elements */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #7DC142 !important;
  box-shadow: 0 0 0 0.25rem rgba(125, 193, 66, 0.25) !important;
}

/* Override untuk pagination */
.page-link {
  color: #7DC142;
}

.page-item.active .page-link {
  background-color: #7DC142;
  border-color: #7DC142;
}

.page-link:hover {
  color: #6ba838;
}

/* Override untuk tab dan accordion */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #7DC142 !important;
}

/* Override untuk progress bars */
.progress-bar {
  background-color: #7DC142 !important;
}

/* Override untuk tooltip */
.tooltip-inner {
  background-color: #7DC142;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #7DC142;
}

/* Override untuk popover */
.popover-header {
  background-color: #7DC142;
  color: white;
}

/* Override untuk badge */
.badge.bg-primary {
  background-color: #7DC142 !important;
}

/* Override untuk video area */
.video-area.background-image:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(125, 193, 66, 0.9), rgba(0, 182, 185, 0.8)) !important;
  z-index: 1;
}

.video-area .appointment-form {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-box1 .video-play-btn {
  position: relative;
  z-index: 3;
  background: #7DC142;
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.video-box1 .video-play-btn:hover {
  background: #6ba838;
  transform: scale(1.1);
}

.video-box1 .video-play-btn i {
  color: white;
  font-size: 24px;
}

/* Style untuk video-box2 */
.video-box2 {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-box2:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(125, 193, 66, 0.9), rgba(0, 182, 185, 0.8)) !important;
  z-index: 1;
  opacity: 0.9;
  transition: all 0.4s ease;
  /* mix-blend-mode: multiply; */
}

.video-box2:hover:before {
  opacity: 0.8;
}

.video-box2 img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.video-box2:hover img {
  transform: scale(1.05);
}

.video-box2 .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  background: #7DC142;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  transition: all 0.4s ease;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.video-box2 .video-play-btn:hover {
  background: #6ba838;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Gaya untuk heart rate animation */
.heart-rate {
  position: relative;
  width: 170px;
  height: 73px;
  margin: 20px auto;
}

.heart-rate:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(170, 220, 130, 0.04) 0%, rgba(100, 200, 200, 0.02) 100%);
  z-index: 1;
  border-radius: 8px;
}

.heart-rate .fade-in,
.heart-rate .fade-out {
  background: linear-gradient(90deg, rgba(170, 220, 130, 0.06) 0%, rgba(100, 200, 200, 0.03) 100%);
  z-index: 2;
  border-radius: 8px;
  opacity: 0.6;
}

/* Animasi untuk heart rate */
@keyframes heartRateIn {
  0% {
    width: 100%;
  }
  50% {
    width: 0;
  }
  100% {
    width: 0;
  }
}

@keyframes heartRateOut {
  0% {
    right: -120%;
  }
  50% {
    right: 0;
  }
  100% {
    right: 0;
  }
}

/* Service Section Background Transparency */
#service-sec:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(245, 245, 245, 0.8), rgba(255, 255, 255, 0.7)) !important;
  z-index: -1;
}
