/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: none;
  margin: auto;
  padding: 20px 0;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

.top-bar {
  background-color: #005b8f;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar .left-info,
.top-bar .right-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar i {
  margin-right: 5px;
}

header {
  background-color: #ffffff; /* putih */
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
}
/* Navbar utama */
.navbar {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

/* Link di navbar */
.navbar a {
  color: var(--accent);
  display: inline-block;
  font-size: 1.1rem;
  margin: 0 1rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* Warna saat hover, kecuali .active */
.navbar a:not(.active):hover {
  color: var(--primary);
}

/* Garis bawah default */
.navbar a::after {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

/* Garis bawah saat hover, kecuali .active */
.navbar a:not(.active):hover::after {
  transform: scaleX(1);
}

/* Menu aktif */
.navbar a.active {
  color: var(--primary);
}

.navbar a.active::after {
  border-bottom: 2px solid var(--primary);
  transform: scaleX(1);
}

/* Hotline */
.hotline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotline-icon {
  background-color: var(--primary);
  color: white;
  padding: 10px;
  border-radius: 50%;
  font-size: 18px;
}

.hotline-text {
  font-size: 14px;
  color: #333;
}

.hotline-text span {
  color: var(--accent);
  font-weight: bold;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar a {
    margin: 0.5rem 0;
  }
}

/* Poli */
.poli-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.poli-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poli-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.poli-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* =================================== */
/* FOOTER                            */
/* =================================== */

/* --- Perubahan Utama: Latar Belakang & Warna Dasar --- */
footer {
    background-color: var(--primary); /* Warna dasar hijau tua */
    color: #e0e0e0;            /* Warna teks terang */
    position: relative;
    overflow: hidden;
    padding-top: 60px;

 /* Dibuat dengan radial-gradient, tidak perlu file gambar */
    background-image: 
        /* Lapisan 1: Partikel kecil, cepat */
        radial-gradient(circle at center, var(--accent) 1px, transparent 1px),
        /* Lapisan 2: Partikel medium */
        radial-gradient(circle at center, var(--accent) 2px, transparent 2px),
        /* Lapisan 3: Partikel besar, lambat */
        radial-gradient(circle at center, var(--accent) 3px, transparent 3px);

    background-size: 
        100px 100px, /* Kepadatan partikel kecil */
        200px 200px, /* Kepadatan partikel medium */
        300px 300px; /* Kepadatan partikel besar */
    
    background-repeat: repeat;

    /* Menerapkan 3 animasi berbeda untuk setiap lapisan */
    animation: 
        moveFast 25s linear infinite,
        moveMedium 40s linear infinite,
        moveSlow 55s linear infinite;
}

/* Keyframes untuk setiap lapisan partikel */
@keyframes moveFast {
  from { background-position: 0 0; }
  to { background-position: -200px 400px; } /* Bergerak diagonal kiri-bawah */
}
@keyframes moveMedium {
  from { background-position: 0 0; }
  to { background-position: 400px -200px; } /* Bergerak diagonal kanan-atas */
}
@keyframes moveSlow {
  from { background-position: 0 0; }
  to { background-position: -300px -300px; } /* Bergerak diagonal kiri-atas */
}

/* --- Penyesuaian Layout & Warna --- */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Garis pemisah transparan */
}

/* Kolom Footer */
.footer-col h4 {
    font-size: 1.2rem;
    color: var(--white); /* Judul dibuat putih */
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start; /* Ganti ke flex-start agar ikon sejajar dengan baris pertama teks panjang */
    gap: 12px;
}

.footer-col a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- Perbaikan Ikon Sosial --- */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 1.2rem; /* Ukuran ikon diatur di sini */
    color: var(--white); /* Ikon dibuat putih */
    background-color: rgba(255, 255, 255, 0.1); /* Latar belakang lingkaran transparan */
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Warna hover spesifik untuk tiap ikon */
a[aria-label="YouTube"]:hover { background-color: #FF0000; }
a[aria-label="Instagram"]:hover { background-color: #C13584; }
a[aria-label="TikTok"]:hover { background-color: #010101; }


/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7); /* Warna teks dibuat lebih lembut */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0 20px;
    }
    .footer-col p {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
}


/* HERO SECTION */
.hero {
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* gelap transparan */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
  text-align: left;
}

.hero-subtitle {
  background: white;
  color: #1a3c80;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-btn {
  background-color: #1a3c80;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.hero-btn:hover {
  background-color: orange;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 10px 25px;
  border: none;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s;
}

.btn-primary {
  background-color: #ffffff;
  color: #005b8f;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: #0072b8;
  color: white;
  transform: scale(1.05);
}

/* ===== Modern Interactive CTA ===== */
.cta {
  background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(0, 75, 189,0.1));
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, var(--accent), transparent 70%);
  animation: rotateBg 20s linear infinite;
  z-index: 0;
}

@keyframes rotateBg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-title {
  font-size: 2.25rem;
  color: #004c75;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Base button */
.cta-btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Primary Button */
.btn-primary {
  background-color: #005b8f;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,91,143,0.3);
}

/* Secondary Button */
.btn-secondary {
  background-color: transparent;
  color: #005b8f;
  border: 2px solid #005b8f;
}

.btn-secondary:hover {
  background-color: #005b8f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,91,143,0.3);
}


/* --- Hero Sub Section (Jadwal Dokter) --- */
.hero-sub {
  /* Ganti 'path/ke/asset-gambar-anda.jpg' dengan URL gambar Anda */
  
  /* OPSIONAL: Jika Anda ingin lapisan warna di atas gambar, hapus komentar pada baris di bawah dan sesuaikan path gambarnya. */
  /* background-image: linear-gradient(rgba(var(--primary-rgb), 0.85), rgba(var(--primary-rgb), 0.85)), url('path/ke/asset-gambar-anda.jpg'); */
  
  background-size: contain;
  background-position: center;
  color: var(--white);
  text-align: center;
  position: relative;
  box-shadow: inset 0 -10px 20px var(--accent);
}

.hero-sub .container {
  position: relative;
  z-index: 1; /* Dipertahankan agar konten tetap di atas background */
}

.hero-sub h2 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
  /* Properti 'animation' telah dihapus */
}

.hero-sub p {
  font-size: 1.2rem;
  opacity: 0.9;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
  /* Properti 'animation' telah dihapus */
}

/* Grid Sejarah & Visi Misi */
.grid-2.sejarah,
.grid-2.visi-misi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 60px;  
}

/* Sejarah Image & Text */
.sejarah-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: fadeInLeft 1s ease-out;
}
.sejarah-text {
  animation: fadeInRight 1s ease-out;
  font-size: 26px;
}

.sejarah-text h3 {
  margin-bottom: 16px;
  position: relative;
  color: var(--primary);
}
.sejarah-text h3.hover-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.sejarah-text h3.hover-underline:hover::after {
  transform: scaleX(1);
}
.sejarah-text p {
  line-height: 2.0;
  font-size: 18px;
  color: #000000;
  margin-bottom: 0;
  text-align: justify;
}

/* Visi & Misi Text */
.visi-text {
  padding-left: 20px;
  padding-right: 20px;
  font-size: 26px;
}

.visi-text h2 {
  font-size: 24px;
  margin-top: 15px;
  margin-bottom: 8px;
  color: var(--primary);
}

.visi-text h3.hover-underline {
  position: relative;
  display: block;
  color: #005b8f;
}

.visi-text h3.hover-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: #ff5e00; /* kuning */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.visi-text h3.hover-underline:hover::after {
  transform: scaleX(1);
}


.visi-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
  font-size: 18px;
}

.visi-text ul {
  list-style: none !important; /* Paksa hilangkan bullet */
  padding: 0;
  margin: 0;
}

.visi-text ul li {
  list-style: none !important;
  position: relative;
  padding-left: 20px; /* Spasi untuk panah */
  margin-bottom: 10px;
  color: #333;
}

.visi-text ul li::before {
  content: "➤"; /* Panah */
  position: absolute;
  left: 0;
  color: var(--accent); /* Atau #005b8f */
  font-weight: bold;
}
  
.misi-list {
  list-style: none !important;
  padding-left: 0;
  margin: 0;
}

.misi-list li {
  position: relative;
  padding-left: 28px; /* jarak teks dari panah */
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.misi-list li::before {
  content: "➤";
  position: absolute;
  left: 0;
  top: 0;
  color: #005b8f; /* warna panah */
  font-weight: bold;
  font-size: 18px;
}

/* Play Button Overlay */
.video-thumb {
  position: relative;
}
.play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.8);
  color: var(--primary);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.play-button:hover {
  background: var(--accent);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
} 

/* Modal Lightbox Video */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9; /* Modern aspect ratio control */
  background: transparent;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: #fff;
  color: #333;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
}
.modal-close:hover {
  background: #eee;
}

/* Tablet: kolom berubah 1 */
@media (max-width: 1024px) {
  .grid-2.sejarah,
  .grid-2.visi-misi {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .grid-2.sejarah img,
  .grid-2.visi-misi img {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* HP landscape & tablet kecil */
@media (max-width: 768px) {
  .grid-2.sejarah,
  .grid-2.visi-misi {
    padding: 0 20px;
  }

  .grid-2.sejarah h3,
  .grid-2.visi-misi h3 {
    font-size: 22px;
  }

  .grid-2.sejarah p,
  .grid-2.visi-misi p {
    font-size: 16px;
  }
}

/* HP kecil (≤ 480px) */
@media (max-width: 480px) {
  .grid-2.sejarah img,
  .grid-2.visi-misi img {
    max-width: 100%;
  }

  .grid-2.sejarah h3,
  .grid-2.visi-misi h3 {
    font-size: 20px;
  }

  .grid-2.sejarah p,
  .grid-2.visi-misi p {
    font-size: 15px;
  }

  .grid-2.sejarah,
  .grid-2.visi-misi {
    gap: 25px;
  }
}


/* Animations*/
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Tombol */
.btn {
  display: inline-block;
  background-color: #0072b8;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.btn:hover {
  background-color: #005b8f;
}

.card.poli img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.form-kontak {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

.form-kontak input,
.form-kontak textarea,
.form-kontak select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-kontak button {
  background-color: #2e86de;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.form-kontak button:hover {
  background-color: #1b4f72;
}

/* --- Kontak & Map --- */
.contact-map {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 2rem;
  align-items: flex-start;
}

.map-wrapper {
  flex: 1 1 100%;
  max-width: 100%;
  border-radius: 15px; /* Lebih bulat */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Bayangan lebih kuat */
  animation: fadeInUp 1s ease-out; /* Animasi muncul */
}

.map-wrapper iframe {
  border-radius: 15px; /* Pastikan iframe juga bulat */
}

.contact-details {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* Jarak antar kartu */
  justify-content: center; /* Pusatkan kartu kontak */
  margin-top: 2rem;
}

.contact-card {
  background: var(--white); /* Latar belakang putih */
  border-radius: 18px; /* Lebih bulat */
  box-shadow: 0 12px 35px rgba(0,0,0,0.12); /* Bayangan kuat */
  padding: 2rem;
  flex: 1 1 280px; /* Fleksibel, tapi minimal 280px agar 3-4 kartu bisa muat dalam satu baris di desktop */
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: scaleIn 0.8s ease-out forwards; /* Animasi muncul */
  opacity: 0; /* Mulai dengan opacity 0 */
}

/* Delay animasi untuk kartu kontak (sesuaikan jumlahnya) */
.contact-card:nth-child(1) { animation-delay: 0.2s; }
.contact-card:nth-child(2) { animation-delay: 0.4s; }
.contact-card:nth-child(3) { animation-delay: 0.6s; }
.contact-card:nth-child(4) { animation-delay: 0.8s; }


.contact-card:hover {
  transform: translateY(-8px); /* Sedikit naik saat hover */
  box-shadow: 0 20px 45px rgba(0,0,0,0.2); /* Bayangan lebih kuat saat hover */
}

.contact-card .icon {
  margin-right: 1.5rem; /* Jarak lebih besar */
  background-color: var(--primary); /* Latar belakang ikon biru navy */
  padding: 1.2rem; /* Padding lebih besar */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3); /* Bayangan pada ikon */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card .icon i {
  font-size: 2.2rem; /* Ukuran ikon lebih besar */
  color: var(--white); /* Warna ikon putih */
  transition: transform 0.3s ease;
}

.contact-card:hover .icon {
  background-color: var(--accent); /* Latar belakang ikon oranye saat hover */
  box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.4);
}

.contact-card:hover .icon i {
  transform: scale(1.1); /* Ikon membesar sedikit saat hover */
}

.contact-card .info h3 {
  margin: 0;
  font-size: 1.4rem; /* Ukuran font lebih besar */
  color: var(--primary); /* Warna teks biru navy */
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-card .info a {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem; /* Ukuran font lebih besar */
  color: var(--dark-gray); /* Warna teks nomor/link */
  transition: all 0.3s;
  position: relative;
}

.contact-card .info a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--accent); /* Garis bawah oranye */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-card .info a:hover {
  color: var(--accent); /* Warna teks oranye saat hover */
}

.contact-card .info a:hover::after {
  transform: scaleX(1);
}


.contact-card .icon .fab.fa-whatsapp {
  background-color: #25D366; /* Warna hijau WhatsApp */
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.contact-card:hover .icon .fab.fa-whatsapp {
  background-color: #128C7E; /* Warna hijau WhatsApp lebih gelap saat hover */
  box-shadow: 0 5px 15px rgba(18, 140, 126, 0.4);
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-details {
    flex-direction: column; /* Tumpuk kartu di mobile */
    align-items: center;
  }
  .contact-card {
    flex: 1 1 100%; /* Ambil lebar penuh di mobile */
    max-width: 400px; /* Batasi lebar agar tidak terlalu lebar di tablet */
  }
}


/* --- Modern Schedule Styles --- */

/* --- Modern Schedule Styles --- */

.schedule-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
  justify-content: center;
}

.schedule-controls input[type="text"],
.schedule-controls select {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.schedule-controls input[type="text"]:focus,
.schedule-controls select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
  outline: none;
}

/* Toggle Jadwal (BPJS/Umum) */
.toggle-jadwal {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.toggle-jadwal button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-jadwal button.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.toggle-jadwal button:hover {
  background-color: var(--primary-light);
}

/* Doctor schedule grid */
.doctor-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom tetap */
  gap: 35px;
  padding-bottom: 50px;
}

@media (max-width: 1024px) {
  .doctor-schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .doctor-schedule-grid {
    grid-template-columns: 1fr;
  }
}

.doctor-card-schedule {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.doctor-card-schedule:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.doctor-info {
  background-color: var(--primary);
  color: white;
  padding: 20px;
  text-align: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.doctor-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.doctor-info .specialty {
  font-size: 0.95rem;
  opacity: 0.9;
}

.schedule-details {
  padding: 20px;
  flex-grow: 1; /* Memastikan detail jadwal mengisi ruang yang tersedia */
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #f7f9fb;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.schedule-item .day {
  font-weight: 600;
  color: var(--primary);
}

.schedule-item .time {
  background-color: #e0f2f7;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

.schedule-item.active-day {
  background-color: #d8f0ff;
  font-weight: bold;
  border-radius: 6px;
}

.schedule-item.active-day .day,
.schedule-item.active-day .time {
  color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .schedule-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .schedule-controls input[type="text"],
  .schedule-controls select {
    max-width: 100%;
  }

  .toggle-jadwal {
  margin-top: -20px;
  margin-bottom: 30px;
  justify-content: center;
  gap: 12px;
  }
}

:root {
  --primary: #005b8f; /* Biru Navy */
  --accent: #f75c03; /* Oranye */
  --white: #FFFFFF;
  --light-gray: #F8F8F8; /* Latar belakang umum */
  --medium-gray: #EEEEEE; /* Garis batas, latar belakang sekunder */
  --dark-gray: #333333; /* Teks utama */

  /* Untuk rgba() */
  --primary-rgb: 26, 43, 76;
  --accent-rgb: 255, 127, 0;
}

/* --- Animasi Dasar (Pastikan ini ada) --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Animasi khusus untuk item jadwal */
@keyframes highlightFade {
  from { background-color: rgba(var(--accent-rgb), 0.1); }
  to { background-color: transparent; }
}

@keyframes fadeSlideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* --- Hero Sub Section (Jadwal Dokter) --- */
.hero-sub {
  background-image: url('assets/bg2.png'); 
  background-size: cover; /* mengganti contain */
  background-position: center center;/* mencegah looping */
  padding: 80px 0;
  color: var(--white);
  text-align: center;
  position: relative;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}


.hero-sub .container {
  position: relative;
  z-index: 1; /* Dipertahankan agar konten tetap di atas background */
}

.hero-sub h2 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
  /* Properti 'animation' telah dihapus */
}

.hero-sub p {
  font-size: 1.2rem;
  opacity: 0.9;
  /* Properti 'animation' telah dihapus */
}

/* --- Schedule Controls (Filter dan Pencarian) --- */
.schedule-controls {
  display: flex;
  gap: 20px; /* Jarak antar elemen kontrol */
  margin-bottom: 50px; /* Jarak dari grid jadwal */
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Bayangan lebih halus */
  animation: fadeInUp 1.4s ease-out;
}

.schedule-controls input[type="text"],
.schedule-controls select {
  padding: 14px 25px; /* Padding lebih besar */
  border: 2px solid var(--medium-gray); /* Border abu-abu sedang */
  border-radius: 30px; /* Lebih bulat */
  font-size: 1.05rem;
  width: 100%;
  max-width: 350px; /* Lebar maksimum yang sedikit lebih besar */
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  background-color: var(--white);
  color: var(--dark-gray);
  appearance: none; /* Hapus gaya default select */
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231A2B4C%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.9%204.9-4.6%2011.4-2.1%2017.4l133.7%20163.5c3.9%204.7%209.3%207.5%2015.2%207.5s11.3-2.8%2015.2-7.5L289.1%2094.3c2.5-6%201.8-12.5-2.1-17.4z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow untuk select */
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

.schedule-controls input[type="text"]:focus,
.schedule-controls select:focus {
  border-color: var(--accent); /* Border oranye saat fokus */
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2);
  transform: translateY(-2px);
  outline: none;
}

/* --- Doctor Schedule Grid --- */
.doctor-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Ukuran kartu sedikit lebih besar */
  gap: 35px; /* Jarak antar kartu */
  padding-bottom: 50px;
}

.doctor-card-schedule {
  background-color: var(--white);
  border-radius: 18px; /* Lebih bulat lagi */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12); /* Bayangan lebih dalam dan menyebar */
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.8s ease-out forwards; /* Animasi muncul */
  opacity: 0; /* Mulai dengan opacity 0 */
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.doctor-card-schedule:hover {
  transform: translateY(-12px); /* Lebih tinggi saat hover */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2); /* Bayangan lebih kuat */
}

.doctor-info {
  background-color: var(--primary); /* Biru Navy */
  color: var(--white);
  padding: 30px 25px; /* Padding lebih besar */
  text-align: center;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -5px 15px rgba(0,0,0,0.1); /* Bayangan di bagian bawah header info */
}

.doctor-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(var(--accent-rgb), 0.1), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.doctor-info h3 {
  margin: 0 0 10px 0; /* Jarak lebih besar */
  font-size: 1.8rem; /* Ukuran font lebih besar */
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.doctor-info .specialty {
  font-size: 1.05rem; /* Ukuran font sedikit lebih besar */
  opacity: 0.9;
  font-weight: 400;
}

.schedule-details {
  padding: 25px 30px; /* Padding lebih besar */
  flex-grow: 1;
  background-color: var(--white);
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0; /* Padding lebih besar */
  border-bottom: 1px solid var(--medium-gray); /* Border abu-abu sedang */
  font-size: 1.05rem;
  color: var(--dark-gray);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer; /* Menunjukkan item bisa diklik/interaktif */
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item:hover {
  background-color: rgba(var(--primary-rgb), 0.03); /* Latar belakang biru navy sangat terang saat hover */
  transform: translateX(5px); /* Sedikit bergeser saat hover */
}

.schedule-item .day {
  font-weight: 600;
  color: var(--primary); /* Biru Navy */
  flex-basis: 45%; /* Memberi ruang lebih untuk hari */
  text-transform: uppercase; /* Huruf kapital untuk hari */
  letter-spacing: 0.5px;
}

.schedule-item .time {
  background-color: rgba(var(--accent-rgb), 0.1); /* Latar belakang oranye transparan */
  color: var(--accent); /* Teks oranye */
  padding: 10px 18px; /* Padding lebih besar */
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 130px; /* Pastikan lebar minimum */
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(var(--accent-rgb), 0.1); /* Bayangan halus */
}

/* Highlight untuk hari yang aktif/terfilter */
.schedule-item.active-day {
  background-color: rgba(var(--accent-rgb), 0.08); /* Latar belakang oranye sedikit lebih terang */
  color: var(--dark-gray);
  border-radius: 10px; /* Lebih bulat */
  padding-left: 20px; /* Padding lebih besar */
  padding-right: 20px;
  transform: translateX(8px); /* Lebih bergeser */
  box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2); /* Bayangan lebih kuat */
  animation: highlightFade 1s ease-out; /* Animasi fade saat highlight */
}

.schedule-item.active-day .day,
.schedule-item.active-day .time {
  color: var(--accent); /* Teks oranye */
}

.schedule-item.active-day .time {
  background-color: var(--accent); /* Latar belakang oranye solid */
  color: var(--white); /* Teks putih */
  animation: pulse 1.5s infinite; /* Animasi denyutan */
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.4); /* Bayangan lebih kuat untuk jam aktif */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .schedule-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }
  .schedule-controls input[type="text"],
  .schedule-controls select {
    max-width: 100%;
    padding: 12px 20px;
  }
  .hero-sub h2 {
    font-size: 2.5rem;
  }
  .hero-sub p {
    font-size: 1rem;
  }
  .doctor-schedule-grid {
    grid-template-columns: 1fr; /* Satu kolom di mobile */
    gap: 25px;
  }
  .doctor-card-schedule {
    border-radius: 15px;
  }
  .doctor-info {
    padding: 20px;
  }
  .doctor-info h3 {
    font-size: 1.5rem;
  }
  .schedule-details {
    padding: 20px 25px;
  }
  .schedule-item {
    padding: 14px 0;
    font-size: 1rem;
  }
  .schedule-item .time {
    padding: 8px 15px;
    font-size: 0.9rem;
    min-width: 110px;
  }
}

/* --- Bagian Mitra Kami --- */
.our-partners {
  background-color: transparent;
  backdrop-filter: blur (10px);
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.section-title, .section-subtitle {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.visible, .section-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #ff9800;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: #666;
  margin-bottom: 50px;
  transition-delay: 0.2s;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.partner-item {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
  background-color: transparent;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.partner-item.visible {
  opacity: 1;
  transform: scale(1);
}

.partner-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* === PERUBAHAN EFEK WARNA ADA DI SINI === */
.partner-item img {
  max-width: 100%;
  max-height: 60px;
  
  /* [EFEK LAMA] - Warna dibuat redup, tidak hitam-putih */
  filter: saturate(60%) brightness(95%);
  opacity: 0.8;
  
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.partner-item:hover img {
  /* [EFEK LAMA] - Mengembalikan warna & kecerahan penuh saat hover */
  filter: saturate(100%) brightness(100%);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .partner-item {
    height: 90px;
  }
}

/* ===== About Definition Modern ===== */
.about-definition {
  background-color: transparent;
  padding: 80px 0;
  overflow: hidden; /* Mencegah elemen keluar saat animasi */
}

.grid-definition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px; /* Jarak lebih besar */
}

.def-text h2, .def-text p, .def-btn, .def-image {
  /* Atur kondisi awal sebelum animasi */
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.def-text h2 {
  transform: translateX(-30px);
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
}
.def-text h2.visible {
  opacity: 1;
  transform: translateX(0);
}

.def-text h2::after {
  content: ""; width: 80px; height: 4px; background: #ff9800;
  position: absolute; left: 0; bottom: -10px; border-radius: 2px;
}

.def-text p {
  transform: translateY(20px);
  font-size: 16px; line-height: 1.8; color: #000000;
  margin-bottom: 26px; text-align: justify; font-weight: 600;
  transition-delay: 0.2s; /* Delay agar muncul setelah judul */
}

.def-text p.visible {
  opacity: 1;
  transform: translateY(0);
}

.def-btn {
  transform: translateY(20px);
  display: inline-block; background: #2e4bab; color: #fff;
  font-size: 18px; padding: 12px 28px; border-radius: 50px;
  text-decoration: none; transition: all 0.3s ease;
  transition-delay: 0.4s; /* Delay setelah paragraf */
}
.def-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.def-btn:hover { background: #ff9800; transform: translateY(-3px) scale(1.05); }

.def-image {
  transform: scale(0.9) translateX(30px);
  transition-delay: 0.2s;
}
.def-image.visible {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.def-image img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .grid-definition { grid-template-columns: 1fr; }
  .def-text h2::after { left: 50%; transform: translateX(-50%); }
  .def-text { text-align: center; }
}

/* Profil RS */
.profil-rs-section {
  margin: 60px auto;
}

.profil-rs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: flex-start;
}

.profil-rs-box {
  background-color: white;
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.profil-rs-box h3 {
  margin-bottom: 15px;
  font-size: 26px;
}

.profil-rs-list {
  list-style: none;
  padding: 0;
}

.profil-rs-list li {
  margin-bottom: 10px;
  font-size: 26px;
}

@media (max-width: 768px) {
  .profil-rs-grid {
    grid-template-columns: 1fr;
  }
}

.profil-rs-box h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: var(--accent);
}

.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;
  perspective: 1000px;
  margin: 30px auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.flip-card-front img, .flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  transform: rotateY(180deg);
}


.profil-rs-list li {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(#000000);
}

.profil-rs-list .label {
  font-weight: 600;
  color: var(--primary);
  margin-right: 5px;
}

.flip-card {
  background-color: transparent;
  width: 250px;
  height: 400px;
  perspective: 1000px;
  margin: 30px auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.stats-section {
  background-color: var(--primary); /* biru navy */
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15); 
  background: transparent;
  backdrop-filter: blur(10px);
  background-color: transparent;
  color: #001f3f !important; /* biru navy */
  border-radius: 16px; /* buat sudut melengkung */
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}

.stat-box {
  margin: 20px;
  flex: 1 1 250px;
  color: #001f3f !important; /* biru navy */
}

.icon-circle {
  background-color: var(--accent); 
  color: white;
  width: 60px;
  height: 60px;   
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 2px solid white;
}

.stat-box h2 {  
  font-size: 36px;
  color: var(--accent); /* animasi angka oranye */
  margin: 0;
}

.stat-box p {
  margin-top: 6px;
  font-size: 18px;
  color: var(--primary); /* teks navy */
  font-weight: 750;
}


/* Toggle jadwal (Umum / BPJS) */
.toggle-jadwal {
  display: flex;
  gap: 10px;
}

.toggle-jadwal button {
  padding: 10px 16px;
  border: 1px solid #007BFF;
  background-color: white;
  color: #007BFF;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}

.toggle-jadwal button.active,
.toggle-jadwal button:hover {
  background-color: #007BFF;
  color: white;
}

/* Grid container untuk jadwal dokter */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom desktop */
  gap: 24px;
  margin-top: 30px;
}

/* Responsive: 2 kolom di tablet */
@media (max-width: 992px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 kolom di mobile */
@media (max-width: 600px) {
  .schedule-grid {
    grid-template-columns: 2fr;
  }
}

/* Kartu dokter */
.doctor-card-schedule {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 20px;
  transition: transform 0.2s ease;
}

.doctor-card-schedule:hover {
  transform: translateY(-5px);
}

/* Info dokter */
.doctor-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.doctor-info .specialty {
  font-size: 0.95rem;
  color: #555;
}

/* GENERAL STYLING */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    /* Memberi warna latar belakang agar slider terlihat lebih menonjol */
    /* --- PERUBAHAN DI SINI --- */
    background-image: url('assets/tes.jpg');
    background-size: cover; /* Agar gambar menutupi seluruh layar */
    background-position: center; /* Posisi gambar di tengah */
    background-repeat: no-repeat; /* Jangan ulangi gambar */
    
    /* (Opsional, tapi sangat direkomendasikan) Efek parallax saat scroll */
    background-attachment: fixed; 
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ======================================================= */
/* BAGIAN UTAMA YANG DIUBAH UNTUK SLIDER BARU             */
/* ======================================================= */

/* =======================================================
   DESKTOP (default)
======================================================= */

.hero-slider{
    width: 100%;
    height: 55vh;
    min-height: 500px;
    max-height: 700px;

    padding: 50px 0;
    position: relative;
}

.swiper-slide{
    background-position: center;
    background-size: cover;

    width: 65%;
    height: 100%;

    border-radius: 18px;
    overflow: hidden;
    color: white;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%);
    z-index:1;
}

.hero-content{
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2.5rem;
}

.hero-subtitle{
    background: white;
    color: #1a3c80;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero-title{
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-desc{
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-btn{
    background:#1a3c80;
    padding: 1rem 2rem;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.hero-btn:hover{
    background:#ff9800;
    transform: translateY(-3px);
}

/* warna navigasi swiper */
:root{
    --swiper-theme-color:#ffffff;
    --swiper-pagination-bullet-inactive-color:#ffffff;
    --swiper-pagination-bullet-inactive-opacity:.5;
}



/* =======================================================
   TABLET (≤ 992px)
======================================================= */
@media (max-width: 992px){

    .hero-slider{
        height: 60vh;
        min-height: 450px;
        padding: 40px 0;
    }

    .swiper-slide{
        width: 80%;
        border-radius: 16px;
    }

    .hero-content{
        padding: 2rem;
        max-width: 90%;
    }

    .hero-title{
        font-size: 2rem;
    }

    .hero-desc{
        font-size: 0.95rem;
    }

    .hero-btn{
        padding: 0.9rem 1.6rem;
        font-size: 14px;
    }
}



/* =======================================================
   MOBILE (≤ 768px)
======================================================= */
@media (max-width: 768px){

    .hero-slider{
        height: auto;               /* penting: jangan pakai vh */
        min-height: 380px;
        padding: 24px 0;
    }

    .swiper-slide{
        width: 92%;                /* hampir full biar readable */
        border-radius: 14px;
    }

    .hero-content{
        padding: 18px 16px;
    }

    .hero-subtitle{
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 14px;
    }

    .hero-title{
        font-size: 1.4rem;
        line-height: 1.25;
    }

    .hero-desc{
        font-size: 13px;
        margin-bottom: 22px;
    }

    .hero-btn{
        width: 100%;              /* full width biar gampang tap */
        padding: 12px;
        font-size: 14px;
    }

    /* sembunyikan panah, cukup swipe */
    .swiper-button-next,
    .swiper-button-prev{
        display:none;
    }
}



/* =======================================================
   VERY SMALL PHONE (≤ 420px)
======================================================= */
@media (max-width: 420px){

    .hero-title{
        font-size: 1.2rem;
    }

    .hero-desc{
        font-size: 12px;
    }

    .hero-btn{
        font-size: 13px;
        padding: 10px;
    }
}

/* Penambahan CSS untuk memisahkan kategori mitra */
 .partners-category-title {
            font-size: 1.5rem;
            font-weight: bold;
            color: #f75c03;
            margin-top: 40px;
            margin-bottom: 20px;
            border-bottom: 2px solid #005b8f;
            display: inline-block;
            padding-bottom: 5px;
        }

        .partners-category:first-of-type .partners-category-title {
            margin-top: 0;
        }
        
        /* CSS tambahan untuk animasi masuk elemen */
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }
.animate-on-scroll.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .swiper-container-partners {
            width: 100%;
            height: auto;
            margin-top: 20px;
        }
        .swiper-slide-partners {
            text-align: center;
            font-size: bold;
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .swiper-slide-partners img {
            max-width: 150px;
            height: auto;
            object-fit: contain;
            filter: grayscale(100%);
            transition: filter 0.3s ease;
        }
        .swiper-slide-partners img:hover {
            filter: grayscale(0%);
     filter: grayscale(0%);
        }
        .swiper-pagination-partners {
            position: relative;
            margin-top: 20px;
        }
@media (min-width: 768px) {
            .swiper-slide-partners {
                max-width: 200px;
            }
        }


@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    }
}
@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    }
}
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
        gap: 10px !important;
    }
    .partner-item {
        min-width: 100px !important;
        min-height: 70px !important;
        height: auto !important;
        padding: 5px !important;
    }
}
@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
    }
    .partner-item {
        min-width: 80px !important;
        min-height: 60px !important;
    }
}

/* =====================================================
   TABLET (≤ 992px)
===================================================== */
@media (max-width: 992px){

    .container{
        padding: 0 18px;
    }

    /* Banner */
    .main-banner{
        padding: 60px 40px;
        min-height: 320px;
    }

    .banner-content h1{
        font-size: 34px;
    }

    /* Grid umum */
    .card-grid,
    .testimoni-teks-grid{
        gap: 20px;
    }

    /* Statistik */
    .stats-container{
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }

    /* Profil RS */
    .profil-rs-grid{
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Sertifikat */
    .sertifikat-item{
        flex: 0 1 80%;
    }

    .flip-card-3d{
        height: 300px;
    }
}


/* =====================================================
   MOBILE (≤ 768px)
===================================================== */
@media (max-width: 768px){

    /* ===== container ===== */
    .container{
        width: 100%;
        padding: 0 14px;
    }

    /* ===== banner ===== */
    .main-banner{
        padding: 40px 20px;
        border-radius: 12px;
        min-height: 260px;
    }

    .banner-content{
        text-align: center;
    }

    .banner-content h1{
        font-size: 24px;
        max-width: 100%;
    }

    .banner-button{
        padding: 10px 18px;
        font-size: 14px;
    }


    /* ===== visi misi ===== */
    .visi-misi{
        display: block;
    }

    .visi-text,
    .visi-video{
        width: 100%;
    }

    .video-container iframe{
        height: 220px;
    }


    /* ===== cards ===== */
    .card-grid{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .flip-card-3d{
        height: 260px;
    }


    /* ===== testimoni teks ===== */
    .testimoni-teks-grid{
        grid-template-columns: 1fr;
    }

    .testimoni-card{
        padding: 20px;
        font-size: 14px;
    }


    /* ===== video testimoni ===== */
    .video-testimoni-container{
        max-width: 100%;
        border-radius: 10px;
    }


    /* ===== profil RS ===== */
    .profil-rs-grid{
        display: block;
    }

    .profil-rs-box{
        margin-top: 18px;
        font-size: 14px;
    }

    .profil-rs-list li{
        line-height: 1.6;
    }


    /* ===== statistik ===== */
    .stats-container{
        grid-template-columns: 1fr;
    }

    .stat-box{
        padding: 20px;
    }

    .stat-box h2{
        font-size: 26px;
    }


    /* ===== sertifikat ===== */
    .sertifikat-list{
        flex-direction: column;
        gap: 22px;
    }

    .sertifikat-item{
        width: 100%;
        max-width: 100%;
    }

    .sertifikat-section .flip-card{
        height: auto;
        aspect-ratio: 3/4;
    }


    /* ===== admin floating btn ===== */
    .admin-controls{
        bottom: 14px;
        right: 14px;
    }

    .admin-controls a{
        width: 44px;
        height: 44px;
    }
}


/* =====================================================
   VERY SMALL PHONE (≤ 420px)
===================================================== */
@media (max-width: 420px){

    .banner-content h1{
        font-size: 20px;
    }

    .banner-button{
        font-size: 13px;
        padding: 8px 14px;
    }

    .flip-card-3d{
        height: 220px;
    }

    .testimoni-card{
        padding: 16px;
        font-size: 13px;
    }

    .stat-box h2{
        font-size: 22px;
    }

    .video-container iframe{
        height: 180px;
    }
}

/* ======================================================
   RESPONSIVE SYSTEM – HOMEPAGE
   (TIDAK MENYENTUH HERO SLIDER)
   ====================================================== */


/* ===============================
   TABLET (≤ 1024px)
=============================== */
@media (max-width:1024px){

    .container{
        padding: 0 18px;
    }

    /* doctor search */
    .doctor-search-section .search-wrapper{
        padding: 28px 22px;
    }

    /* bento grid */
    .bento-grid-container{
        grid-template-columns: repeat(2,1fr);
        gap: 18px;
    }

    .card-title{
        font-size: 1.25rem;
    }

    .card-description{
        font-size: 0.95rem;
    }

    /* about */
    .grid-definition{
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .def-image img{
        width: 100%;
        height: auto;
    }

    /* partners */
    .partners-grid{
        grid-template-columns: repeat(auto-fit,minmax(120px,1fr)) !important;
    }

    /* CTA */
    .cta-inner{
        padding: 40px 24px;
        text-align: center;
    }
}



/* ===============================
   MOBILE (≤ 768px)
=============================== */
@media (max-width:768px){

    /* ===== spacing global ===== */
    section{
        padding: 45px 12px !important;
    }

    .container{
        width: 100%;
        padding: 0 14px;
    }


    /* =========================
       POPUP PROMO
    ========================= */
    .popup-content{
        width: 95vw;
        padding: 8px;
    }

    .popup-container .swiper-button-next,
    .popup-container .swiper-button-prev{
        display:none;
    }


    /* =========================
       DOCTOR SEARCH
    ========================= */
    .doctor-search-section h2{
        font-size: 1.5rem;
    }

    .doctor-search-section p{
        font-size: 0.95rem;
    }

    #doctorHomepageSearch{
        padding: 12px 45px 12px 16px;
        font-size: 14px;
    }


    /* =========================
       BENTO GRID
    ========================= */
    .bento-grid-container{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-card{
        padding: 16px;
        min-height: 160px;
        border-radius: 16px;
    }

    /* =========================
   TABLET
========================= */
@media (max-width: 1024px){
    .bento-grid-container{
        grid-template-columns: repeat(2,1fr);
    }

    #card-1,#card-2,#card-3,#card-4,#card-5,#card-6{
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px){
    .bento-grid-container{
        grid-template-columns: 1fr;
    }

    .bento-card{
        min-height: 200px;
    }
}
    .card-title{
        font-size: 1.1rem;
    }

    .card-description{
        font-size: 0.85rem;
    }

    .card-header i{
        font-size: 1.1rem;
    }


    /* =========================
       ABOUT SECTION
    ========================= */
    .grid-definition{
        grid-template-columns: 1fr;
    }

    .def-text h2{
        font-size: 1.6rem;
    }

    .def-text p{
        font-size: 14px;
        line-height: 1.7;
    }

    .def-btn{
        width: 100%;
        text-align: center;
        margin-top: 12px;
    }


    /* =========================
       PARTNERS
    ========================= */
    .partners-grid{
        grid-template-columns: repeat(3,1fr) !important;
        gap: 10px !important;
    }

    .partner-item{
        padding: 8px;
    }

    .partner-item img{
        max-width: 90px;
    }


    /* =========================
       CTA
    ========================= */
    .cta-title{
        font-size: 1.4rem;
    }

    .cta-text{
        font-size: 0.95rem;
    }

    .cta-btn{
        width: 100%;
        padding: 12px;
    }
}



/* ===============================
   VERY SMALL PHONE (≤ 420px)
=============================== */
@media (max-width:420px){

    .partners-grid{
        grid-template-columns: repeat(2,1fr) !important;
    }

    .card-title{
        font-size: 1rem;
    }

    .card-description{
        font-size: 0.8rem;
    }

    .cta-title{
        font-size: 1.2rem;
    }

    .doctor-search-section h2{
        font-size: 1.3rem;
    }
}
