:root {
  --pr-color: #3e8e41;
}

#jadwal h2,
#layanan h2,
#paket h2,
#kegiatan h2,
#about h2,
#sertifikat h2,
#list-dokter h2 #yandmed h2 {
  font-size: 48px;
  font-weight: 500;
  color: var(--pr-color);
}

#jadwal,
#layanan,
#paket,
#kegiatan,
#about,
#sertifikat,
#list-dokter {
  padding: 100px 0;
}

#visimisi,
#falsafah,
#nilaitujuan {
  padding: 40px 0;
}

#layanan,
#kegiatan {
  background-color: #f5f5f5;
}

.card-visi,
.card-misi,
.card-nilai,
.card-tujuan {
  background-color: var(--pr-color);
  color: #f5f5f5;
  border-radius: 20px;
  padding: 35px;
}

/* Navbar Style */
body {
  font-family: "Poppins", sans-serif;
  padding-top: 0;
  margin: 0;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

/* Navbar Color */
.nav-color {
  background-color: var(--pr-color);
  transition: all ease-in-out 0.8s;
}

.bg-transparent {
  transition: all ease-in-out 0.8s;
}

.navbar-brand {
  font-weight: 700;
  font-size: 20px;
}

.nav-link {
  font-weight: 300;
  font-size: 14px;
}

.nav-link.active {
  font-weight: 700;
  font-size: 14px;
}

/* Hero Section */

#hero {
  background-image: url("../img/rs-1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

.button-lg-primary {
  color: #f5f5f5;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 30px;
  padding: 15px 20px;
  border: 1px solid #f5f5f5;
  transition: 0.4s ease-in-out;
}

.button-lg-primary:hover {
  background-color: var(--pr-color);
  border: 2px solid transparent;
}

#hero-about,
#dokter {
  height: 100vh;
  position: relative;
}

#hero-about img,
#dokter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero-about::after,
#dokter::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Jadwal Dokter */
.card-jadwal {
  background-color: var(--pr-color);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20px;
}
.card-jadwal:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Layanan Section */
.sub-title {
  font-size: 18px;
  color: #000;
}

.card-layanan {
  width: 100%;
  height: 313px;
  border-radius: 25px;
  background-color: #f5f5f5;
  padding: 25px;
  box-shadow: 0 0 7px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in;
}

.circle-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--pr-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6 auto;
  margin-bottom: 15px;
  transition: all 0.2s ease-in;
}

.card-layanan h3 {
  color: var(--pr-color);
  font-size: 18px;
  transition: all 0.2s ease-in;
}

.card-layanan p {
  color: #000;
  font-size: 12px;
}

/* Hover */
.card-layanan:hover {
  background: linear-gradient(160deg, var(--pr-color), rgb(5, 5, 5));
}

.card-layanan:hover .circle-icon {
  background-color: #f5f5f5;
  transition: 0.4s ease-in-out;
}

.card-layanan:hover h3,
.card-layanan:hover p {
  color: #f5f5f5;
  transition: 0.4s ease-in-out;
}

.card-layanan:hover a {
  color: #f5f5f5;
  border: none;
}

.card-layanan a {
  color: var(--pr-color);
  font-size: 14px;
  text-decoration: none;
  border-radius: 20px;
  padding: 10px 15px;
  border: 1px solid var(--pr-color);
}

.card-layanan:hover a {
  background-color: #f5f5f5;
  color: var(--pr-color);
  transition: 0.4s ease-in-out;
}

/* Search */
#search {
  background-image: linear-gradient(rgba(0, 60, 0, 0.4), rgba(0, 60, 0, 0.4)),
    url(../img/operation.png);
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
}

#search h2 {
  font-size: 48px;
  font-style: normal;
  font-weight: 600;
  line-height: 72px;
  letter-spacing: 0em;
  text-align: center;
  color: #f5f5f5;
}

#search p {
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  color: #f5f5f5;
}

.search-input {
  max-width: 100%;
  height: 50px;
  margin: 0 auto;
  align-items: center;
}

.button-search {
  width: 60px;
  height: 50px;
  background-color: var(--pr-color);
  color: #f5f5f5;
  border: none;
  border-radius: 5px;
}

.nav-tabs {
  border: none;
}

.nav-tabs .nav-link.active {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--pr-color);
  border-radius: 5px 5px 0 0;
  font-weight: 500;
  transition: 0.4s ease-in-out;
}

.nav-tabs .nav-link {
  background-color: rgba(255, 255, 255, 0.5);
  color: #2e2e2e;
  border: none;
}

/* Paket Section */

.card {
  height: 425px;
  border: none;
  border-radius: 20px;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-title {
  color: #2e2e2e;
  font-weight: 600;
  font-size: 18px;
}

.card-text {
  color: #2e2e2e;
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
}

.card a {
  color: var(--pr-color);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  padding: 10px 15px;
  border: 1px solid var(--pr-color);
}

.card-body p {
  color: #2e2e2e;
  font-weight: 400;
  font-size: 12px;
}

.card:hover {
  background: linear-gradient(
    170deg,
    var(--pr-color),
    #007245,
    #007245,
    #2e2e2e
  );
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: 0.4s ease-in-out;
}

.card:hover .card-title,
.card:hover p {
  color: #f5f5f5;
  transition: 0.2s ease-in-out;
}

.card:hover a {
  background-color: #f5f5f5f2;
  color: var(--pr-color);
  transition: 0.4s ease-in-out;
}

/* Fitur Kegiatan Section */
.button-fitur {
  width: 238px;
  height: 63px;
  background-color: var(--pr-color);
  border: none;
  font-size: 20px;
  font-weight: 500;
  color: #f5f5f5;
  border-radius: 25px;
}

#kegiatan h2 {
  font-size: 48px;
  font-weight: 500;
}

.card-fitur h5 {
  color: #f5f5f5;
  font-weight: 600;
  font-size: 36px;
}

.card-fitur span {
  color: #f5f5f5;
  font-size: 14px;
}

.card-fitur h6 {
  color: #f5f5f5f2;
  font-weight: 600;
  font-size: 24px;
}

.card-fitur button {
  background-color: var(--pr-color);
  color: #f5f5f5;
  border: none;
  width: 200px;
  height: 45px;
  font-size: 14px;
  font-weight: 500;
}

.card-fitur .overlay {
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: all ease-in-out 0.3s;
}

.card-fitur .overlay:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transition: 0.4s ease-in-out;
  opacity: 1;
}

.button-arrow-left,
.button-arrow-right {
  border: none;
  border-radius: 50%;
  width: 61px;
  height: 61px;
  background-color: var(--pr-color);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#about p {
  font-size: 14px;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

/* Visi Misi Section */
.card-falsafah {
  background-color: #f5f5f5;
  color: var(--pr-color);
  border-radius: 20px;
  padding: 30px;
}

/* Card Sertifikat */
.card-sertifikat {
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}

.card-sertifikat img {
  width: 100%;
  transition: transform 0.5s ease;
  object-fit: cover;
}

.card-sertifikat:hover img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.card-sertifikat .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  border-radius: 20px;
  transition: opacity 0.4s ease-in-out;
}

.card-sertifikat:hover .overlay {
  opacity: 1;
}

.card-sertifikat h5 {
  color: #f5f5f5;
  font-weight: 600;
  font-size: 18px;
}

.card-sertifikat span {
  color: #f5f5f5;
  font-size: 14px;
}

.card-dokter {
  background-color: var(--bs-card-bg, #fff);
  border: var(--bs-card-border-width, 1px) solid
    var(--bs-card-border-color, rgba(0, 0, 0, 0.125));
  border-radius: 30px;
  box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5));
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.card-dokter img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-dokter:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-box-shadow, 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15));
}

.card-dokter .row {
  align-items: center;
}

.card-dokter .col-md-8 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-dokter .card-body {
  padding: var(--bs-card-spacer-y, 1rem) var(--bs-card-spacer-x, 1rem);
}

.card-dokter .card-title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.card-dokter .card-text {
  margin-bottom: 0.75rem;
  color: var(--bs-card-color, #212529);
}

#list-dokter ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#list-dokter li {
  font-size: 12px;
  margin-bottom: 3px;
}

#fasilitas .card-fasilitas {
  height: 400px;
  border: none;
  border-radius: 20px;
}

.card-fasilitas .carousel-inner {
  border-radius: 20px 20px 0 0;
}

#fasilitas .card-fasilitas img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

#btnScrollTop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#btnScrollTop.show {
  opacity: 1;
  visibility: visible;
}

#footer {
  background-color: var(--pr-color);
}

/* Breakpoints */
@media (max-width: 768px) {
  .card-dokter .row {
    flex-wrap: nowrap;
  }

  .card-dokter .col-4,
  .card-dokter .col-md-8 {
    flex: 0 0 auto;
    width: auto;
  }

  .card-dokter img {
    width: 120px;
    height: 100%;
    object-fit: cover;
  }

  .card-dokter .card-body {
    flex: 1;
  }
}

@media screen and (max-width: 576px) {
  #dokter,
  #hero-about {
    height: 50vh;
  }

  #dokter img,
  #hero-about img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #hero h1,
  #jadwal h2,
  #search h2,
  #paket h2,
  #layanan h2,
  #list-dokter h2,
  #kegiatan h2,
  #about h2 {
    font-size: 25px;
  }

  #layanan .sub-title {
    font-size: 12px;
  }

  .card-dokter .card-title {
    font-size: 12px;
  }

  .card-dokter .card-text {
    font-size: 10px;
  }

  .card-dokter li {
    font-size: 10px;
    line-height: 1.3;
  }

  #search p {
    font-size: 12px;
    font-weight: 600;
  }

  #hero h4 {
    font-size: 16px;
  }
}
