/* ═══════════════════════════════════════════════════
   patient-stories.css
   BestDoctorsIn — Patient Stories Video Section
   <link rel="stylesheet" href="patient-stories.css"/>
═══════════════════════════════════════════════════ */

/* ── Section ── */
.ps-section {
  padding: 64px 0 72px;
  background: #ffffff;
  position: relative;
}

/* ── Header ── */
.ps-header {
  text-align: center;
  margin-bottom: 36px;
}

.ps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e63946;
  margin-bottom: 10px;
}

.ps-eyebrow i {
  font-size: 13px;
}

.ps-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
  font-style: italic;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.35;
  max-width: 700px;
  margin-inline: auto;
}

.ps-city {
  color: #1a6b4a;
}

/* ── Grid — 3 columns ── */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1020px;
  margin: 0 auto 32px;
}

/* ── Card ── */
.ps-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  border: 1px solid #e9ecef;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  outline: none;
}

.ps-card:hover,
.ps-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.15);
}

.ps-card:focus-visible {
  outline: 3px solid #1a6b4a;
  outline-offset: 2px;
}

/* ── Thumbnail ── */
.ps-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.ps-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease, filter 0.38s ease;
}

.ps-card:hover .ps-thumb {
  transform: scale(1.05);
  filter: brightness(0.65);
}

/* ── Overlay ── */
.ps-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.26s ease;
}

.ps-card:hover .ps-overlay {
  background: rgba(0,0,0,0.38);
}

/* ── Play button ── */
.ps-play-btn {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.45));
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ps-card:hover .ps-play-btn {
  transform: scale(1.18);
}

/* ── YouTube-style channel bar at top of thumb ── */
.ps-channel-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 7px;
}

.ps-channel-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a6b4a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ps-channel-name {
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-weight: 500;
  opacity: 0.92;
}

.ps-more {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  flex-shrink: 0;
}

/* ── Card body ── */
.ps-card-body {
  padding: 12px 14px 14px;
}

.ps-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

/* ── Footer CTA ── */
.ps-footer-cta {
  text-align: center;
}

.ps-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF0000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease;
}

.ps-yt-link:hover {
  background: #cc0000;
  transform: translateY(-2px);
  color: #fff;
}

.ps-yt-link i {
  font-size: 18px;
}

/* ══════════════════════════════════════
   LIGHTBOX MODAL
══════════════════════════════════════ */
.ps-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ps-modal[hidden] {
  display: none;
}

.ps-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.90);
  cursor: pointer;
  animation: ps-fade 0.2s ease;
}

.ps-modal-box {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.75);
  animation: ps-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.ps-modal-close {
  position: absolute;
  top: -13px;
  right: -13px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ps-modal-close:hover {
  transform: scale(1.12);
  background: #f0f0f0;
}

.ps-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.ps-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes ps-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ps-pop {
  from { transform: scale(0.86); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .ps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 16px;
  }

  .ps-section {
    padding: 44px 0 52px;
  }

  .ps-play-btn {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .ps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* hide 3rd card on tablet — or keep, your call */
  /* .ps-card:nth-child(3) { display: none; } */
}
