/* Container utama (Kartu) dengan gaya desain pertama */
.card-container {
  background-color: #ffffff;
  border: 1px solid #2bd97b;
  /* Border hijau terang dari desain pertama */
  border-radius: 16px;
  /* Sudut membulat */
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  /* Diperlebar agar tabel muat */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 0 30px 0px 30px;
}

/* Bagian Atas: Nama Klinik */
.card-header {
  padding: 24px 30px;
  border-bottom: 1px solid #e0e0e0;
  /* Garis pemisah */
  text-align: center;
  background-color: #ffffff;
}

.clinic-name {
  color: #00b894;
  /* Warna toska dari desain pertama */
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Pembungkus Utama untuk mengatur posisi Foto dan Kartu */
.card-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  padding-left: 75px;
  /* Memberi ruang untuk foto yang menonjol keluar */
  margin: 40px 0;
}

/* Kartu Utama (Garis Hijau) */
.main-card {
  display: flex;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #2bd97b;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* --- FOTO PROFIL (Disebelah Kiri Luar) --- */
.profile-wrapper {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  z-index: 2;

  /* Trik CSS untuk membuat cincin gradasi dengan jarak putih */
  /* padding: 6px;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #00b894, #005f73) border-box;
  border: 3px solid transparent;
  box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.06); */
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* --- BAGIAN INFO DOKTER --- */
.doctor-info-section {
  flex: 0 0 32%;
  padding: 30px 20px 30px 95px;
  /* Padding kiri lebih besar agar teks tidak tertutup foto */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid #e0e0e0;
  position: relative;
  /* Menjadi acuan untuk tombol daftar */
}

.clinic-title {
  color: #00b894;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.doctor-name {
  color: #1a426b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.0;
}

/* Tombol melayang menembus garis bawah */
.btn-daftar {
  position: absolute;
  bottom: -22px;
  /* Menarik tombol menembus border bawah */
  left: 50%;
  transform: translateX(-50%);

  background: linear-gradient(to right, #2bd97b, #00b894);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
  white-space: nowrap;
  transition: 0.3s;
}

.btn-daftar:hover {
  box-shadow: 0 6px 14px rgba(0, 184, 148, 0.4);
  filter: brightness(1.05);
}

/* --- BAGIAN TABEL JADWAL --- */
.schedule-section {
  flex: 1;
  padding: 30px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  /* Memungkinkan scroll horizontal di HP */
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 200px;
  /* Mencegah tabel mengerut */
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #e0e0e0;
  padding: 15px 10px;
  text-align: center;
}

.schedule-table th {
  font-size: 14px;
  color: #333;
  font-weight: 700;
  background-color: #ffffff;
}

.schedule-table td {
  font-size: 14px;
  color: #333;
  font-weight: 700;
  line-height: 1.5;
}

/* --- MODE HP / TABLET (RESPONSIF) --- */
@media (max-width: 850px) {
  .card-wrapper {
    padding-left: 0;
    margin-top: 100px;
    /* Memberi ruang agar foto bisa diletakkan di atas */
  }

  .main-card {
    flex-direction: column;
  }

  .profile-wrapper {
    top: -80px;
    /* Memindahkan foto ke atas */
    left: 50%;
    transform: translateX(-50%);
  }

  .doctor-info-section {
    padding: 90px 20px 30px 20px;
    /* Padding atas ditingkatkan untuk ruang foto */
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .btn-daftar {
    /* Di HP, tombol dikembalikan ke aliran normal agar tidak menimpa tabel */
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 25px;
  }

  .schedule-section {
    padding: 20px;
  }
}