/* =========================================================
   SAMMARIE - JADWAL DOKTER STYLING (LENGKAP)
   ========================================================= */

:root {
    --warna-utama: #91298d;
    --warna-hover: #c03192;
    --warna-latar: #fdf3f9;
    --warna-divider: #e6bde0;
    --font-judul: 16px;
    --font-isi: 14px;
    --font-kecil: 13px;
  }

  .filter-container {
    text-align: center;
    margin-bottom: 20px;
  }

#scrollUpBtn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    background: #91298d;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
  }

  #scrollUpBtn .arrow-icon {
    width: 26px;
    height: 26px;
  }

  #scrollUpBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Hover */
  #scrollUpBtn:hover {
    background: #c03192;
  }

  /* Responsive mobile size */
  @media (max-width: 480px) {
    #scrollUpBtn {
      width: 40px;
      height: 40px;
      bottom: 16px;
      right: 16px;
    }

    #scrollUpBtn .arrow-icon {
      width: 22px;
      height: 22px;
    }
  }

  #filterCabang {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: var(--font-isi);
  }

  .pesan-default {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: var(--warna-utama);
    font-weight: 600;
  }

  .kategori-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--warna-utama);
    margin: 0;
    border-left: 5px solid var(--warna-utama);
    padding: 20px 20px;
    background: linear-gradient(90deg, #91298d, #c03192);
    color: #fff;
    text-align: center;
		border-radius: 6px;
  }

/* === Sunday Clinic Colors Only === */
  .sunday-clinic .kategori-title {
    background: linear-gradient(90deg, #00b050, #a9d08e);
    color: #fff;
    text-align: center;
    padding: 20px 20px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
  }

.sunday-clinic .doctor-schedule th {
    background: #00b050;
    color: #fff;
    padding: 8px;
    text-align: left;
    font-size: 13px;
    white-space: nowrap; /* supaya header tidak pecah */
  }

  .sunday-clinic .dokter-container {
    margin-top: 30px; /* ubah nilainya sesuai selera, misalnya 40px kalau mau lebih longgar */
  }

  /* Ubah warna aksen pada card */
  .sunday-clinic .dokter-card {
    border: 2px solid #00b050;
  }

  .sunday-clinic .dokter-info h3 {
    color: #006b3c; /* hijau tua */
  }

  .sunday-clinic .divider {
    background-color: #00b050;
  }

  .sunday-clinic .toggle-btn {
    
    color: #00b050;
  }

  .sunday-clinic .toggle-btn:hover {
    color: #00b050;
  }

  .sunday-clinic .cta-btn {
    background-color: #00b050;
    color: #fff;
  }

  .sunday-clinic .cta-btn:hover {
    background-color: #009045;
  }

  /* Opsional: ubah warna garis pemisah jadwal */
  .sunday-clinic .inner-divider {
    background-color: #a9d08e;
  }

  .dokter-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
		margin-top: 30px; /* ubah nilainya sesuai selera, misalnya 40px kalau mau lebih longgar */
		margin-bottom: 30px; /* ubah nilainya sesuai selera, misalnya 40px kalau mau lebih longgar */
  }

  .dokter-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    transition: transform 0.3s ease;
		border: 1px solid #91298d;
  }

  .dokter-card:hover {
    transform: translateY(-4px);
  }

  .dokter-info h3 {
    font-size: var(--font-judul);
    color: var(--warna-utama);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
		font-size : 14px ;
  }

  .divider {
    border-top: 1px solid var(--warna-divider);
    margin-bottom: 10px;
  }

  .toggle-btn {
    background: none;
    border: none;
    color: var(--warna-utama);
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
    font-size: var(--font-isi);
  }

  .toggle-btn::before {
    content: "+ ";
    font-weight: bold;
  }

  .toggle-btn.active::before {
    content: "– ";
  }

  .jadwal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: var(--font-isi);
    color: #333;
    background-color: var(--warna-latar);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 0 12px;
  }

  .jadwal.show {
    max-height: 300px;
    padding: 12px;
  }

  .inner-divider {
    border-top: 1px solid var(--warna-divider);
    margin-bottom: 10px;
  }

  .jadwal p {
    margin: 6px 0;
  }

/* Wrapper untuk membuat tabel bisa di-scroll di layar kecil */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Tabel */
  .doctor-schedule table {
    width: 100%;
    border-collapse: collapse;
    background: #fdf2fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
  }

  .doctor-schedule th {
    background: #91298d;
    color: #fff;
    padding: 8px;
    text-align: left;
    font-size: 10px;
    white-space: nowrap; /* supaya header tidak pecah */
  }

  .doctor-schedule td {
    padding: 8px;
    border-bottom: 1px solid #ebc6e6;
    font-size: 12px;
  }

  td:empty::after {
    content: "-";
    color: #777;
  }

  .doctor-schedule tr:last-child td {
    border-bottom: none;
  }

  .doctor-schedule p {
    font-size: 10px; /* atau 11px kalau mau lebih kecil */
    color: #91298d; /* opsional: biar matching dengan tema */
    margin-top: 6px; /* biar jaraknya rapi dari tabel */
  }

  /* Responsive (mobile) */
  @media (max-width: 480px) {
    .doctor-schedule th,
    .doctor-schedule td {
      padding: 6px;
      font-size: 12px; /* font lebih kecil */
    }
  }

  .note {
    color: var(--warna-hover);
    font-size: var(--font-kecil);
  }

  .cta-btn {
    display: inline-block;
    background: var(--warna-utama);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
    margin-top: auto;
  }

  .cta-btn:hover {
    background: var(--warna-hover);
    color: #fff;
  }

/* === POPUP MODAL STYLE === */
  .modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 2px;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: slideIn 0.3s ease-out;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 32px;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #91298d;
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* CTA untuk di atas Jadwal Dokter */
  .cta-card-section {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  scroll-behavior: smooth;
  padding: 0 16px 12px;
		justify-content: center;
}

  .cta-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15); /* bayangan lebih kuat */
    text-align: center;
    width: 240px;
    padding: 24px 10px 16px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none; /* hapus underline default link */
    color: inherit; /* biar warna teks tetap sama */
    display: block; /* supaya link menutupi card */
    flex-wrap: wrap; /* agar di desktop bisa berjajar beberapa baris */
  }

  .cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  .cta-card i {
    font-size: 32px;
    color: #555;
    margin-bottom: 10px;
  }

  .cta-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 14px;
    font-weight: 600;
  }

  .underline {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
  }

  /* warna bawah card */
  .yellow {
    background-color: #91298d;
  }
  .green {
    background-color: #44546a;
  }
  .teal {
    background-color: #009688;
  }
  .blue {
    background-color: #c03192;
  }

  @media (max-width: 768px) {
  .cta-card-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cta-card {
    width: auto;
  }
}

  /* Responsif */
  @media (max-width: 992px) {
    .dokter-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 576px) {
    .dokter-container {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 768px) {
    .section-title {
      font-size: 1rem;
      padding: 20px 20px;
    }
  }
  @media (max-width: 768px) {
    .dokter-card h3 {
      font-size: 1rem; /* sedikit lebih kecil di tablet dan mobile */
    }

    .dokter-card p {
      font-size: 0.8rem;
    }

    .toggle-btn,
    .cta-btn {
      font-size: 0.9rem;
      padding: 8px 12px;
    }
  }