/* =========================================================================
   Component: fm-customer-story
   Vertical card featuring a customer testimonial: full-width photo (with
   optional play-button overlay), title, description and CTA button below.
   Grouped inside .fm-customer-stories which lays them out side-by-side.
   ========================================================================= */

.fm-customer-stories {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--fm-sp-4);
}

@media (min-width: 720px) {
  .fm-customer-stories { grid-template-columns: 1fr 1fr; gap: var(--fm-sp-5); }
}

.fm-customer-story {
  display: flex;
  flex-direction: column;
  background: var(--fm-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--fm-gray-200);
}

/* Photo area with an inset play-button in the bottom-left corner */
.fm-customer-story__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--fm-gray-50);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Circular play button — same two-state treatment as the promo-card CTA:
     • passive: orange outline, orange triangle, transparent inside
     • hover:   fills with orange from left-to-right, triangle turns white */
.fm-customer-story__play {
  position: absolute;
  left: var(--fm-sp-4);
  bottom: var(--fm-sp-4);
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--fm-accent);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  color: var(--fm-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(to right, var(--fm-accent) 50%, var(--fm-white) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 320ms var(--fm-ease),
              color 200ms var(--fm-ease) 100ms;
}
.fm-customer-story__play:hover {
  background-position: 0 0;
  color: var(--fm-white);
}
.fm-customer-story__play::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 14px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px; /* nudge the triangle so it visually centers */
}

.fm-customer-story__body {
  padding: var(--fm-sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--fm-sp-3);
  flex: 1;
}

.fm-customer-story__title {
  margin: 0;
  color: var(--fm-black);
  font-size: var(--fm-fs-lg);
  line-height: var(--fm-lh-tight);
  font-weight: var(--fm-fw-bold);
}

.fm-customer-story__desc {
  margin: 0;
  color: var(--fm-text);
  font-size: var(--fm-fs-base);
  line-height: var(--fm-lh-normal);
}

.fm-customer-story__cta {
  margin-top: auto;
  padding-top: var(--fm-sp-4);
}

.fm-customer-story__cta .fm-btn {
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: var(--fm-fs-md);
}
