/* Gaya umum */
body {
  font-family: "Poppins", sans-serif;
  padding-top: 5rem;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

/* Header styles */
.header-section {
  background-color: #002d56;
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.header-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Jumbotron styles for desktop */
.jumbotron {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: #002d56;
  background-attachment: fixed; /* Gambar tetap di tempat saat di-scroll */
  height: 500px; /* Tentukan tinggi jumbotron untuk desktop */
}

.jumbotron .container {
  position: relative; /* Untuk memposisikan teks */
  z-index: 1; /* Untuk menempatkan teks di atas gambar */
}

.jumbotron h1 {
  font-size: 3rem; /* Sesuaikan ukuran sesuai kebutuhan */
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Efek bayangan teks */
}

.jumbotron p {
  font-size: 1.1rem; /* Sesuaikan ukuran sesuai kebutuhan */
  margin-bottom: 2rem;
}

#home .btn-primary {
  background-color: #002d56;
  border-color: #002d56;
  color: #ffffff; /* white text color */
}

/* Jumbotron styles for mobile */
@media (max-width: 768px) {
  .jumbotron {
    height: auto; /* Ubah ke auto untuk menyesuaikan dengan konten */
    padding: 3rem 0; /* Tambahkan padding atas dan bawah */
  }

  .jumbotron h1 {
    font-size: 2.5rem;
  }

  .jumbotron p {
    font-size: 1rem;
  }
}

/* Navbar styles for desktop */
.navbar {
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: #f8f9fa;
}

.navbar-brand {
  margin-right: 20px;
}

.navbar-brand img {
  height: 80px;
  margin-right: 25px;
}

.navbar-nav {
  flex-grow: 1;
  justify-content: center;
}

.navbar-nav .nav-link {
  font-size: 1.1rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #007bff;
}

.btn-contact {
  background-color: #002d56;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn-contact:hover {
  background-color: #001f3d;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Navbar styles for mobile */
@media (max-width: 768px) {
  .navbar-nav {
    background-color: #ffffff;
    padding: 10px;
    flex-direction: column; /* Ubah ke kolom untuk tampilan mobile */
    align-items: flex-start; /* Sejajarkan ke kiri untuk tampilan mobile */
  }

  .navbar-nav .nav-link {
    font-size: 1rem; /* Sesuaikan ukuran font */
    margin: 5px 0; /* Tambahkan margin vertikal */
  }

  .btn-contact {
    font-size: 1rem; /* Sesuaikan ukuran font */
    padding: 8px 16px; /* Sesuaikan padding */
  }
}

/* Gaya untuk Layanan */

#services .card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease; /* Efek hover */
}

#services .card:hover {
  transform: translateY(-5px); /* Menaikkan kartu saat hover */
}

#services .card-img-top {
  height: 100px; /* Atur tinggi gambar menjadi 1x1 */
  width: 100px; /* Atur lebar gambar menjadi 1x1 */
  object-fit: cover; /* Mengatur agar gambar terpotong dengan baik */
  margin: 0 auto; /* Membuat gambar berada di tengah */
  display: block; /* Membuat gambar menjadi block element */
}

#services .card-body {
  padding-top: 10px; /* Sesuaikan ukuran tinggi gambar + padding */
  text-align: center; /* Membuat teks berada di tengah */
}

#services .card-title {
  font-weight: bold;
  margin-bottom: 0.1rem;
}

#services .card-text {
  font-size: 0.9rem;
}

.card-deck {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card-deck .card {
  margin: 10px;
}

@media (max-width: 768px) {
  .card-deck .card {
    width: 100%; /* Buat kartu memenuhi lebar layar */
    max-width: 300px; /* Tambahkan batasan lebar maksimum */
    margin: 10px 0; /* Sesuaikan jarak antar kartu */
  }
}

/* why-us section */
#why-us {
  background-color: #f7f7f7;
  padding: 50px 0;
}

.why-us-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.why-us-item i {
  font-size: 24px;
  margin-right: 10px;
  color: #337ab7;
}

.why-us-item div {
  flex: 1;
}

.why-us-item h5 {
  font-weight: bold;
  margin-top: 0;
}

.why-us-item p {
  font-size: 16px;
  color: #666;
}

/* Styles for the slider */
#whyUsSlider {
  max-width: 550px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}

#whyUsSlider .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

/* Optional: Style for carousel controls to match rounded corners */
#whyUsSlider .carousel-control-prev,
#whyUsSlider .carousel-control-next {
  width: 10%;
}

#whyUsSlider .carousel-control-prev-icon,
#whyUsSlider .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 20px;
}

/* articles section */
.articles-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.articles-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
  padding: 10px 0;
}

/* Custom scrollbar styling */
.articles-scroll::-webkit-scrollbar {
  height: 8px;
}

.articles-scroll::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 4px;
}

.articles-scroll::-webkit-scrollbar-thumb {
  background-color: #cbd5e0;
  border-radius: 4px;
}

.articles-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #a0aec0;
}

/* Column sizing */
.col-article {
  flex: 0 0 auto;
  padding: 0 10px;
  width: 300px;
}

@media (max-width: 768px) {
  .col-article {
    width: 260px;
  }
}

/* Article Box Styling */
.article-box {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.article-image {
  position: relative;
  width: 100%;
  padding-top: 125%; /* Default: 4:5 Aspect Ratio */
  overflow: hidden;
}

.article-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto; /* Biarkan lebar auto untuk mempertahankan ukuran asli */
  height: auto; /* Biarkan tinggi auto untuk mempertahankan ukuran asli */
  max-width: 100%; /* Pastikan gambar tidak lebih lebar dari kontainer */
  max-height: 100%; /* Pastikan gambar tidak lebih tinggi dari kontainer */
  transform: translate(-50%, -50%); /* Pusatkan gambar */
  transition: transform 0.3s ease;
}

.article-box:hover .article-image img {
  transform: translate(-50%, -50%) scale(1.05); /* Pusatkan dan besarkan saat hover */
}

/* Content Styling */
.article-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-content p {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Button Styling */
#article .btn-primary {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #4299e1;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  align-self: flex-start;
}

#article .btn-primary:hover {
  background-color: #3182ce;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(66, 153, 225, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .articles-wrapper {
    padding: 0 10px;
  }

  .article-content {
    padding: 1rem;
  }

  .article-content h5 {
    font-size: 1rem;
  }

  .article-content p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .btn-primary {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
  }
}

/* Infinite scrolling */
.logo-container {
  overflow: hidden;
  display: flex;
}

.logo {
  display: flex;
  flex-shrink: 0;
  gap: 2rem;
  padding: 1rem; /* Menambahkan satuan untuk padding */
  animation: infinite-scroll 18s linear infinite;
}

.logo img {
  width: 7rem;
  height: 7rem;
  margin: 10px;
  border-radius: 30%;
  object-fit: cover;
}

@keyframes infinite-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Founder Section */
#founder {
  background-color: #f7f7f7;
  padding: 50px 0;
}

#founder .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

#founder h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
}

#founder .row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

#founder .col-md-4 {
  flex: 0 0 33.33%;
  max-width: 33.33%;
}

#founder .col-md-8 {
  flex: 0 0 66.67%;
  max-width: 66.67%;
}

#founder img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

#founder h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

#founder h5 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #666;
}

#founder p {
  font-size: 14px;
  margin-bottom: 20px;
}

#founder .btn-primary {
  background-color: #002d56;
  border-color: #002d56;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#founder .btn-primary:hover {
  background-color: #001a33;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#founder .row:nth-child(2) {
  flex-direction: row-reverse;
}

#founder .row:nth-child(2) .col-md-4 {
  order: 2;
}

#founder .row:nth-child(2) .col-md-8 {
  order: 1;
}

div > .doctor-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ulasan section */
#ulasan {
  background-color: #f7f7f7;
  padding: 50px 0;
}

#ulasan h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
}

#ulasan p {
  font-size: 16px;
  margin-bottom: 20px;
}

#ulasan img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

#ulasan .lead {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

#ulasan .row {
  margin-bottom: 30px;
}

#ulasan .col-md-6 {
  padding: 20px;
}

/* fasilitas */
section {
  padding: 3rem 0;
}

/* Card styling for facilities */
.card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  height: 100%;
  border: none;
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 45, 86, 0.15) !important;
}

.card-body {
  padding: 1.5rem;
}

.facility-icon {
  font-size: 2.5rem;
  color: #002d56;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.card:hover .facility-icon {
  transform: scale(1.1);
}

.card-title {
  color: #002d56;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-text {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Room types section */
.room-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1.5rem 0;
}

.room {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 45, 86, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.room:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 45, 86, 0.2);
}

.room img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.room:hover img {
  transform: scale(1.05);
}

.room-title {
  padding: 0.75rem;
  font-size: 1.1rem;
  color: #002d56;
  font-weight: 600;
  text-align: center;
  background: #ffffff;
}

.room:hover .room-title {
  background-color: #002d56;
  color: #ffffff;
}

.row {
  margin-bottom: 1.5rem;
}

/* Custom margin for card columns */
.col-md-4 {
  margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }

  .room-types-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0.75rem;
  }

  .facility-icon {
    font-size: 2rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .room img {
    height: 160px;
  }
}

/* Styles for the Doctors section */
#doctors {
  background-color: #f7f7f7;
  padding: 50px 0;
}

#doctors .card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#doctors .card:hover {
  transform: translateY(-5px);
}

#doctors .card-img-top {
  height: 200px;
  width: 200px;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 50%;
}

#doctors .card-body {
  padding-top: 10px;
  text-align: center;
}

#doctors .card-title {
  font-weight: bold;
  margin-bottom: 0.1rem;
}

#doctors .card-text {
  font-size: 0.9rem;
}

/* Responsive Design for Doctors section */
@media (max-width: 768px) {
  #doctors .card {
    margin-bottom: 20px;
  }
}

.hero-about {
    height: 300px;
    background: linear-gradient(rgba(0,45,86,0.4), rgba(127,176,221,0.4)),
                url('img/1234.jpg') center/cover no-repeat;
}

.info-card {
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
