/* =================================================================
   Cornerstone Echo — custom styles
   Tailwind utilities handle most layout; this file holds reusable
   component classes, gradients, glassmorphism and scroll animations.
   ================================================================= */
 
/* ---------- Base ---------- */
:root {
  --brand-blue: #2563eb;
  --brand-indigo: #4f46e5;
  --brand-cyan: #38bdf8;
}
 
html { scroll-behavior: smooth; }
 
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
 
/* Pleasant text rendering */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
 
/* ---------- Typography helpers ---------- */
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.15;
  color: #0f172a;
}
 
.label-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ea7c3c;
}
.label-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
 
/* ---------- Buttons ---------- */
.btn-gradient {
  background-image: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.btn-gradient:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-gradient:active { transform: translateY(0); }
 
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
 
.btn-gold {
  background-image: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #3b2400;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
  box-shadow: 0 10px 25px -8px rgba(245, 158, 11, .55);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
 
.btn-pill {
  background-image: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  transition: transform .25s ease, filter .25s ease;
}
.btn-pill:hover { transform: translateY(-1px); filter: brightness(1.08); }
 
/* ---------- Navbar ---------- */
.nav-link { position: relative; padding: 0.25rem 0; transition: color .25s ease; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, #38bdf8, #4f46e5);
  transition: width .3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
 
/* Header background states (toggled by JS) */
#site-header { background: transparent; }
#site-header.scrolled {
  background: rgba(10, 14, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .6);
}
 
/* ---------- Side-drawer overlay menu ---------- */
.menu-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
 
/* dimmed backdrop over the page behind the drawer */
.menu-backdrop {
  background: rgba(7, 11, 31, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
 
/* left drawer panel — navy with subtle radial accents */
.menu-panel {
  background:
    radial-gradient(circle at 90% 0%, rgba(79, 70, 229, .28), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, .12), transparent 42%),
    #0a0e2a;
  box-shadow: 12px 0 50px -12px rgba(0, 0, 0, .6);
  transform: translateX(-100%);
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
}
.menu-overlay.open .menu-panel { transform: translateX(0); }
 
/* "COMING SOON" section label */
.menu-soon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
}
 
/* slide-up entrance for the items */
.menu-overlay .menu-item {
  transform: translateY(14px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .45s ease, background .25s ease, color .25s ease;
}
.menu-overlay.open .menu-item { transform: none; opacity: 1; }
.menu-overlay.open .menu-item:nth-child(1) { transition-delay: .06s; }
.menu-overlay.open .menu-item:nth-child(2) { transition-delay: .11s; }
.menu-overlay.open .menu-item:nth-child(3) { transition-delay: .16s; }
.menu-overlay.open .menu-item:nth-child(4) { transition-delay: .21s; }
.menu-overlay.open .menu-item:nth-child(5) { transition-delay: .26s; }
.menu-overlay.open .menu-item:nth-child(6) { transition-delay: .31s; }
 
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #cbd5e1;
}
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item.is-active {
  background-image: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(37, 99, 235, .8);
}
.menu-chevron { width: 1.25rem; height: 1.25rem; opacity: .8; transition: transform .25s ease; }
.menu-item:hover .menu-chevron { transform: translateX(4px); }
 
/* lock background scroll while the overlay is open */
body.menu-open { overflow: hidden; }
 
/* ---------- About feature pills ---------- */
.about-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}
.about-feature-icon {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.7rem;
  color: #4f46e5;
  background: linear-gradient(135deg, rgba(56,189,248,.15), rgba(79,70,229,.15));
  flex: none;
}
 
/* ---------- Music cards ---------- */
.music-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  background: #0a0e2a;
  box-shadow: 0 20px 45px -25px rgba(15, 23, 42, .6);
  transition: transform .4s ease, box-shadow .4s ease;
}
.music-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(37, 99, 235, .45); }
.music-card-img {
  position: absolute; inset: 0;
  height: 100%; width: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.music-card:hover .music-card-img { transform: scale(1.07); }
.music-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,42,.15) 0%, rgba(10,14,42,.55) 45%, rgba(10,14,42,.92) 100%);
}
.music-card-body { position: relative; padding: 1.75rem; z-index: 1; }
.music-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(4px);
}
 
/* ---------- Podcast cards ---------- */
.podcast-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 30px -22px rgba(15, 23, 42, .5);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.podcast-card:hover { transform: translateY(-5px); box-shadow: 0 24px 45px -25px rgba(37, 99, 235, .4); border-color: #dbe4f3; }
.podcast-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.podcast-thumb img { transition: transform .6s ease; }
.podcast-card:hover .podcast-thumb img { transform: scale(1.08); }
.podcast-ep {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: .05em;
  padding: 0.25rem 0.6rem; border-radius: 9999px;
  color: #fff; background: linear-gradient(135deg, #2563eb, #4f46e5);
}
.podcast-play {
  position: absolute; inset: 0; margin: auto;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  color: #2563eb;
  background: rgba(255,255,255,.92);
  border-radius: 9999px;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
  transform: scale(.9);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.podcast-card:hover .podcast-play { transform: scale(1); background: #2563eb; color: #fff; }
.podcast-meta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: #64748b;
}
 
/* ---------- Voice cards (resources) ---------- */
.voice-card {
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.voice-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.14); border-color: rgba(56,189,248,.45); }
.voice-icon {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 0.7rem;
  color: #38bdf8; background: rgba(56,189,248,.16);
  margin-bottom: 0.7rem;
}
.voice-name { color: #fff; font-weight: 600; }
.voice-sub { color: #bfdbfe; font-size: 0.72rem; margin-top: 0.1rem; }
 
/* ---------- Testimonials ---------- */
.testimonial-slide { flex: 0 0 100%; padding: 0 0.5rem; }
.testimonial-card {
  text-align: center;
  border-radius: 1.5rem;
  padding: 2.5rem 1.75rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #eef2f7;
  box-shadow: 0 25px 60px -35px rgba(15, 23, 42, .45);
}
@media (min-width: 640px) { .testimonial-card { padding: 3rem 3.5rem; } }
 
.carousel-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: #cbd5e1; cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.carousel-dot.active { width: 26px; background: linear-gradient(90deg, #2563eb, #4f46e5); }
 
/* ---------- Footer ---------- */
.footer-heading {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #f59e0b; margin-bottom: 1.25rem;
}
.footer-link { color: #94a3b8; transition: color .25s ease, padding-left .25s ease; }
.footer-link:hover { color: #fff; padding-left: 0.25rem; }
.social-icon {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.6rem;
  color: #cbd5e1; background: rgba(255,255,255,.06);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.social-icon:hover { color: #fff; background: linear-gradient(135deg, #2563eb, #4f46e5); transform: translateY(-3px); }
 
/* ---------- About page ---------- */
/* Eyebrow with a gold rule on both sides (centered headings) */
.eyebrow-center {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f59e0b;
}
.eyebrow-center::before,
.eyebrow-center::after {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
 
/* Left-aligned eyebrow in the brand gold (rule before only) */
.eyebrow-gold { color: #f59e0b; }
 
/* "What We Stand For" vision cards */
.vision-card {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  padding: 2rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px -28px rgba(37, 99, 235, .4);
  border-color: #dbe4f3;
}
.vision-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  color: #fff;
  background-image: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .6);
}
.vision-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0f172a;
}
 
/* Mission quote cards (image + solid blue quote panel) */
.quote-card {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 55px -30px rgba(15, 23, 42, .55);
}
.quote-panel {
  background-image: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}
 
/* About hero badge pill */
.about-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  color: #bfdbfe;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(4px);
}
 
/* ---------- Solid header for light pages (no dark hero) ---------- */
body.header-solid #site-header {
  background: rgba(10, 14, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .55);
}
 
/* ---------- Liturgical Music — toolbar (filters + search) ---------- */
.filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background-image: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 12px 28px -12px rgba(37, 99, 235, .55);
  transition: transform .25s ease, filter .25s ease;
}
.filters-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
 
.search-wrap { position: relative; flex: 1 1 auto; }
.search-input {
  width: 100%;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #e8edf5;
  padding: 0.9rem 1.25rem 0.9rem 3.1rem;
  font-size: 0.95rem;
  color: #334155;
  box-shadow: 0 12px 30px -22px rgba(15, 23, 42, .5);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.search-input::placeholder { color: #94a3b8; }
.search-input:focus {
  outline: none;
  border-color: #bfdbfe;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.search-icon {
  position: absolute;
  left: 1.15rem; top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
 
/* ---------- Liturgical Music — hymn cards ---------- */
.hymn-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 38px -24px rgba(15, 23, 42, .5);
  transition: transform .35s ease, box-shadow .35s ease;
}
.hymn-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px -26px rgba(37, 99, 235, .42);
}
.hymn-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.hymn-card-media img {
  height: 100%; width: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hymn-card:hover .hymn-card-media img { transform: scale(1.06); }
.hymn-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10, 14, 42, .28);
  opacity: 0;
  transition: opacity .35s ease;
}
.hymn-card:hover .hymn-card-media::after { opacity: 1; }
 
.hymn-play {
  position: absolute; inset: 0; margin: auto;
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  border-radius: 9999px;
  color: #2563eb;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s ease, transform .3s ease, background .3s ease, color .3s ease;
  z-index: 1;
}
.hymn-card:hover .hymn-play { opacity: 1; transform: scale(1); }
.hymn-card:hover .hymn-play:hover { background: #2563eb; color: #fff; transform: scale(1.08); }
 
.hymn-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.hymn-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
}
.hymn-desc {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.55;
  font-weight: 500;
  color: #94a3b8;
}
 
/* ---------- Hymn player page ---------- */
.player-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 35px 70px -40px rgba(15, 23, 42, .45);
}
.track-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  color: #334155;
}
.track-dl { color: #2563eb; flex: none; transition: transform .2s ease; }
.track-row:hover .track-dl { transform: translateY(2px); }
.track-time {
  margin-left: auto;
  font-size: 0.8rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
 
.player-progress {
  position: relative;
  height: 4px;
  border-radius: 9999px;
  background: #e2e8f0;
}
.player-progress-fill {
  position: absolute; left: 0; top: 0;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}
.player-progress-knob {
  position: absolute; top: 50%;
  width: 14px; height: 14px;
  border-radius: 9999px;
  background: #1d4ed8;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
 
.player-ctrl { color: #64748b; transition: color .2s ease, transform .2s ease; }
.player-ctrl:hover { color: #2563eb; transform: translateY(-1px); }
.player-play {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 9999px;
  color: #fff;
  background-image: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 30px -10px rgba(37, 99, 235, .6);
  transition: transform .2s ease, filter .2s ease;
}
.player-play:hover { transform: scale(1.06); filter: brightness(1.05); }
 
/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
 
/* Graceful image fallback: if a remote image fails, show a soft gradient */
img.img-failed { display: none; }
.img-fallback-bg {
  background-image: linear-gradient(135deg, #0d1330 0%, #2563eb 60%, #38bdf8 100%) !important;
}
 
/* ============================================================
   Podcast page — episode list rows
   ============================================================ */
.episode-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 18px 45px -30px rgba(15, 23, 42, .55);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.episode-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 55px -28px rgba(37, 99, 235, .4);
  border-color: #dbe4f3;
}
 
.episode-thumb {
  position: relative;
  flex: none;
  width: 8rem;
  height: 8rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.episode-thumb img {
  position: absolute; inset: 0;
  height: 100%; width: 100%;
  object-fit: cover;
  opacity: .85;
  transition: transform .6s ease;
}
.episode-row:hover .episode-thumb img { transform: scale(1.07); }
.episode-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,42,.15), rgba(10,14,42,.5));
}
.episode-thumb-icon {
  position: absolute; inset: 0; margin: auto;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  color: #fff; z-index: 1;
  opacity: .92;
}
 
.episode-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  color: #4f46e5;
  background: #eef2ff;
}
.episode-meta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; color: #64748b;
}
.episode-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0f172a;
}
.episode-desc {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}
.episode-host {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.82rem; color: #94a3b8;
}
.episode-play {
  flex: none;
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 9999px;
  color: #fff;
  background-image: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 30px -10px rgba(37, 99, 235, .6);
  transition: transform .25s ease, filter .25s ease;
}
.episode-play:hover { transform: scale(1.08); filter: brightness(1.05); }
 
/* Subscribe / coming-up card */
.subscribe-card {
  text-align: center;
  border-radius: 1.5rem;
  padding: 2.75rem 1.75rem;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px solid #e5eaf5;
}
 
/* Stack the episode row on small screens */
@media (max-width: 640px) {
  .episode-row { flex-wrap: wrap; gap: 1rem 1.1rem; }
  .episode-thumb { width: 4.5rem; height: 4.5rem; border-radius: 1rem; }
  .episode-thumb-icon { width: 2rem; height: 2rem; }
  .episode-content { order: 3; flex-basis: 100%; }
  .episode-play { margin-left: auto; }
}
 
/* ============================================================
   Contact page — "How would you like to connect" cards
   ============================================================ */
.connect-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 55px -30px rgba(15, 23, 42, .5);
  transition: transform .4s ease, box-shadow .4s ease;
}
.connect-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 65px -28px rgba(37, 99, 235, .42);
}
.connect-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.connect-media img {
  height: 100%; width: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.connect-card:hover .connect-media img { transform: scale(1.06); }
.connect-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,42,.1), rgba(10,14,42,.35));
}
.connect-icon {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 1;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.connect-body { padding: 2rem; }
.connect-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0f172a;
}
.connect-desc {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
}