/* ==========================================================================
   videos.css
   Styles for the "Patient Reviews & Experiences" and
   "Doctor's Advice & Health Guidance" video sections.

   Colors/fonts intentionally mirror the variables already defined in
   index.html's inline <style> (--accent, --canvas-deep, --line, etc.)
   so these sections match the rest of the site. Values are duplicated
   here (rather than relying on the inline <style>) so this file also
   renders correctly on its own if ever reused elsewhere.
   ========================================================================== */

.video-section {
  --v-canvas-deep: #EAF1EE;
  --v-panel: #FFFFFF;
  --v-ink: #10251F;
  --v-ink-soft: #48605A;
  --v-accent: #0F6E5C;
  --v-accent-hover: #0B5A4B;
  --v-line: #D6E3DE;
  --v-radius: 14px;
}

.video-section.alt {
  background: var(--v-canvas-deep);
}

/* Responsive grid: 1 column on mobile, 2 on tablet, 3 on desktop */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

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

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  background: var(--v-panel);
  border: 1px solid var(--v-line);
  border-radius: var(--v-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -18px rgba(15, 110, 92, 0.35);
}

/* 16:9 responsive video frame, no layout shift while metadata loads */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0B1F1A;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0B1F1A;
  object-fit: cover;
}

.video-info {
  padding: 14px 18px 18px;
}

.video-info h3 {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  color: var(--v-ink);
}

.video-info p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--v-ink-soft);
}

/* Extra patient-review cards, collapsed by default and revealed by JS.
   If JavaScript fails to load, this rule never applies and every card
   stays visible — the section still works without JS. */
.video-card.video-extra.js-hidden {
  display: none;
}

.video-toggle {
  display: none;
  margin: 32px auto 0;
}

.video-toggle.js-visible {
  display: inline-flex;
}
