/* Card thumbnail area */
.d-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  Gap:20px;
}
.d-col {
  display: grid;
}
.doctor--video-card {
  margin-bottom: 1.875rem;
}
.doctor-card__thumb {
  position: relative;
  height: 180px;
  background: #111;
  overflow: hidden;
  cursor: pointer;
}
.doctor-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.doctor--video-card:hover .doctor-card__thumb img {
  transform: scale(1.04);
}
.doctor-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doctor-card__play svg {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  padding: 12px;
  color: #c0392b;
  transition: transform 0.2s;
}
.doctor-card:hover .doctor-card__play svg {
  transform: scale(1.12);
}
.doctor-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Modal */
.doctor-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.doctor-modal-overlay.is-open {
  display: flex;
}
.doctor-modal-box {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 720px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.doctor-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.doctor-modal-header h4 {
  margin: 0;
  font-size: 16px;
}
.doctor-modal-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
}
.doctor-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  padding: 4px 8px;
  border-radius: 6px;
}
.doctor-modal-close:hover {
  background: #f5f5f5;
}
.doctor-modal-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}
.doctor-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* ── Outer wrapper ── */
.doctor-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-bottom: 1.8rem;
}

/* ── Clipper: this hides the overflow ── */
.doctor-slider-clipper {
  overflow: hidden;
  width: 100%;
}

/* ── Track: all cards in a row ── */
.doctor-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.35s ease;
  /* no overflow hidden here — clipper handles it */
}

/* ── Each card: exactly half width minus half the gap ── */
.doctor-slider-track .d-col {
  flex: 0 0 calc(50% - 10px);
  min-width: 0;
  cursor: pointer;
}

@media (max-width: 767px) {
  .doctor-slider-track .d-col {
    flex: 0 0 100%;
  }
}

/* ── Nav ── */
.doctor-slider-nav {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

/* ── Buttons ── */
.doctor-slider-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: background 0.2s, border-color 0.2s;
  background: #164D92;
  color: white;
}

.doctor-slider-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.doctor-slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}