/*-------------------  Explore Features ----------------*/
.explore-features {
  display: flex;
  background: var(--color-bg-secondary); /* your light gray */
  padding: 7rem 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5rem;
}

.explore-features .container {
  display: flex;
  max-width: 70rem;
  background-color: var(--color-white);
  margin: 0 1rem;
  padding: 3rem;
  text-align: left;
  align-items: center;
  border-radius: 1rem;
  outline: 3px solid hsl(0, 0%, 85%);
  outline-offset: -1px;
  justify-content: space-between;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4rem);
}

/* keep the text block narrow and left-aligned */
.text {
  min-width: 50%;
  text-align: left;
}

/* headings & paragraph spacing */
.text h2,
.text .h2-subtitle,
.text p {
  margin: 1rem 0 2rem;
  padding-left: 0;
  width: 100%;
}

/* list: tidy indent + proper bullet alignment */
.text ul {
  list-style: disc outside; /* hanging bullets */
  padding-left: 1.25rem; /* small, consistent indent */
  margin: 0.5rem 0 1rem;
  width: 100%;
}

/* list items: no extra padding */
.text li {
  padding-left: 0; /* reset the 2rem */
  margin: 0.35rem 0;
}

/* optional: style the bullets */
.text li::marker {
  color: var(--color-black);
  font-size: 1em;
}

.gif-container img {
  display: flex;
  max-height: auto;
  max-width: 20rem;
  min-width: none;
  flex-shrink: 1;
}

/*------------------- Video Container cta ----------------*/

/* Video card: keep poster and video the same height/box */
.video-wrapper {
  --card-width: 20rem; /* adjust if you want a different card width */
  width: var(--card-width);
  max-width: 100%;
  position: relative;
  aspect-ratio: 359 / 720; /* match poster ratio (width / height) */
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-white); /* fallback while loading */
}

/* fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1/1) {
  .video-wrapper { height: calc(var(--card-width) * 720 / 359); }
}

.video-wrapper img.video-poster,
.video-wrapper video.deferred-video {
  position: absolute;
  inset: 0;               /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* fill box without stretching */
  border-radius: 8px;
}

/* start with video hidden; JS will remove .hidden when playing */
.video-wrapper .deferred-video.hidden {
  display: none !important;
}

/* poster hidden when playing */
.video-wrapper .video-poster.hidden {
  display: none !important;
}

/* centered play button */
.video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 56px;
  height: 56px;
  font-size: 20px;
  display: flex;
  align-items: center;
  padding-left: 22px;
  cursor: pointer;
}

/* keep poster/video sizing consistent with your .gif-container usage */
.gif-container {
  flex-shrink: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive tweak: reduce card width on small screens */
@media (max-width: 700px) {
  .video-wrapper { --card-width: 16rem; aspect-ratio: 359 / 720; }
}

.video-play-btn:focus { outline: 2px solid #dc9949; outline-offset: 3px; }

/*------------------- Section cta ----------------*/
.cta {
  background: url(/images/pages/why-jewish/jesus-teaching-img.png), rgba(0, 0, 0, 0.5);
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: auto;
  padding: 7.5rem 0;
}

.cta .container {
  max-width: 40rem;
  text-align: center;
  margin: 0 auto;
  color: var(--color-white);
  padding: 0 1rem;
}

.title-wrap h2 {
  margin-bottom: 5rem;
}

/*------------------- Section faq ----------------*/
.faq-link {
  display: inline-flex; /* keeps text + icon together inline */
  align-items: center; /* vertically center text with icon */
  gap: 0.25rem; /* space between text and icon */
  font-weight: 500;
}

/* Make .h3 utility text look like an h3 (used inside <summary>) */
summary {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  padding: 0;
}

.faq-link.faq-link:hover {
  text-decoration: underline;
}

.explore-features hr {
  height: 2px;
  width: 50%;
  background: var(--color-border, #0000003b);
  margin: 1rem 0;
}

@media (max-width: 700px) {
  .explore-features .container {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 1rem;
    padding: 2rem;
    text-align: center;
    align-items: center;
    border-radius: 1rem;
    justify-content: center;
  }

  .explore-features {
    padding: 3rem 0; /* was 4rem */
    gap: 3rem; /* was 3rem */
  }

  .explore-features hr {
    height: 2px;
    width: 50%;
    background: var(--color-border, #0000003b);
    margin: 0;
  }

}

@media (max-width: 600px) {
  .cta {
    background: url(/images/pages/why-jewish/jesus-teaching-mobile-img.png), rgba(0, 0, 0, 0.5);
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    padding: 7.5rem 0;
  }

  .explore-features .container {
    width: 95%;
    padding: 1rem 1rem 3rem;
  }

}
