/* ============================================================
   Homepage — Featured Video Teaching
   ------------------------------------------------------------
   Replaces the old three/four-tile generic "Video Teachings"
   category grid inside the existing homepage Video Teachings
   section (same <section class="section bg-gray"> — heading,
   intro paragraph, and both "watch/explore" buttons are
   untouched) with ONE calm, compact featured-video card: a
   design-only poster (no YouTube thumbnail image, no embedId
   duplicated from js/data/videos-data.js) beside the native
   video's real title, description, and two CTAs.

   Visual language intentionally echoes the sibling components
   used elsewhere on the site — .related-video-card
   (css/pages/letter-page.css), .study-related-video
   (css/pages/study-page.css), .blog-related-video
   (css/pages/blog-page.css) — but implemented natively here so
   the homepage keeps its own stylesheet rather than importing
   any of those page families.

   RTL: `display:flex` with no explicit `flex-direction` follows
   the container's inline direction automatically, so under
   `dir="rtl"` the poster (first DOM child) renders on the
   visual right and the text column on the visual left with zero
   Arabic-specific overrides — the same "logical by default"
   approach as `border-inline-start` elsewhere on the site. No
   thumbnail image is used, so there is nothing to mirror or
   crop for RTL either.
   ============================================================ */

.featured-video-card {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(2, 8, 20, 0.06);
  padding: 1.5rem;
  margin-top: 0.25rem;
}

/* Design-only poster: a soft brand-tinted panel with a decorative
   play glyph, standing in for a video thumbnail without loading
   or cropping an actual 9:16 Shorts image. aspect-ratio (not a
   fixed height) keeps it reliably vertical at any card width
   without layout shift while it renders. */
.featured-video-poster {
  flex: 0 0 130px;
  aspect-ratio: 9 / 16;
  max-height: 220px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(74, 144, 226, 0.16), rgba(53, 122, 189, 0.26));
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-video-poster:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 8, 20, 0.12);
}

.featured-video-poster:focus-visible {
  outline: 2px solid var(--brand-blue-dark, #357abd);
  outline-offset: 3px;
}

.featured-video-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue-dark, #357abd);
  font-size: 1.1rem;
}

.featured-video-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-video-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-blue-dark, #357abd);
  margin-bottom: 0.4rem;
}

.featured-video-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
}

.featured-video-title a {
  color: var(--ink, #2c3e50);
  text-decoration: none;
}

.featured-video-title a:hover {
  color: var(--brand-blue-dark, #357abd);
  text-decoration: underline;
}

.featured-video-desc {
  margin: 0 0 1rem;
  font-size: 0.97rem;
  color: #4a5568;
  line-height: 1.65;
}

.featured-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-video-title a:focus-visible {
  outline: 2px solid var(--brand-blue-dark, #357abd);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .featured-video-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }

  .featured-video-poster {
    flex-basis: auto;
    width: 96px;
    max-height: 170px;
  }

  .featured-video-content {
    align-items: center;
  }

  .featured-video-actions {
    justify-content: center;
  }
}
