/*
 * Success Stories Page Specific Styles
 */

/* 1. Filter Buttons */
.filter-btn-group .btn {
    transition: all 0.3s ease;
}

/* 2. Testimonial Card */
.testimonial-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-trigger:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07) !important;
}

/* 3. Modal Player */
.modal-body iframe {
    border-radius: 8px;
}

/*
 * Success Stories — brand uplift (no HTML/JS changes)
 */

/* 1) Page head */
section.py-5:first-of-type {
  background: transparent !important;
}
section.py-5:first-of-type .lead {
  color: rgba(0,0,0,0.72);
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* 2) Filter buttons */
.filter-btn-group .btn {
  transition: all .2s ease;
  font-weight: 600;
  border-radius: 999px;
  padding: .5rem 1rem;
}
.filter-btn-group .btn-outline-primary {
  background: rgba(255,217,102,.18);
  border-color: rgba(74,134,232,.35);
}
.filter-btn-group .btn-outline-primary:hover {
  background: rgba(255,217,102,.28);
}
.filter-btn-group .btn.btn-primary {
  background: var(--chai-clarity-blue);
  border-color: var(--chai-clarity-blue);
  box-shadow: 0 8px 18px rgba(74,134,232,.25);
}

/* 3) Cards */
#testimonial-grid .card {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff; /* no blur per site preference */
}
#testimonial-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,.08);
}

/* Thumb image */
#testimonial-grid .card-img-top {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Name + subtle gold underline */
#testimonial-grid .card-title {
  position: relative;
  display: inline-block;
}
#testimonial-grid .card-title::after {
  content: "";
  display: block;
  height: 4px;
  width: 56px;
  margin-top: .35rem;
  background: linear-gradient(90deg, var(--chai-insight-gold, #FFD966), transparent);
  border-radius: 999px;
}

/* Watch button */
#testimonial-grid .card-footer .btn {
  border-radius: .6rem;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(74,134,232,.25);
}

/* Make the whole card obviously clickable */
.testimonial-trigger { cursor: pointer; }

/* 4) Modal */
#testimonialModal .modal-content {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
#testimonialModal .modal-body iframe {
  border-radius: 10px;
}

/* Softer modal backdrop */
.modal-backdrop.show {
  background: rgba(33,37,41,.2) !important; /* faint charcoal */
  backdrop-filter: blur(1.5px);
}

/* Segmented filter group */
.filter-btn-group {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,217,102,.14); /* insight gold tint */
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.filter-btn-group .btn {
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600;
  padding: .5rem 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.filter-btn-group .btn-outline-primary {
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 1px rgba(74,134,232,.25);
}

.filter-btn-group .btn-outline-primary:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(74,134,232,.15), inset 0 0 0 1px rgba(74,134,232,.35);
}

.filter-btn-group .btn.btn-primary {
  background: linear-gradient(180deg, var(--chai-clarity-blue), #2a62bc);
  box-shadow: 0 10px 24px rgba(74,134,232,.28);
  color: #fff;
}

/* Glassy Watch button */
#testimonial-grid .card-footer .btn {
  border-radius: 999px;
  font-weight: 700;
  padding: .55rem 1rem;
  background: rgba(255,255,255,.7);
  color: var(--chai-clarity-blue);
  border: 1px solid rgba(74,134,232,.35);
  box-shadow: 0 8px 18px rgba(74,134,232,.18);
  backdrop-filter: blur(4px);
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* add play chevron via CSS (no Blade edits) */
#testimonial-grid .card-footer .btn::before {
  content: "▶";
  display: inline-block;
  margin-right: .4rem;
  font-size: .9em;
  line-height: 1;
}

#testimonial-grid .card-footer .btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 26px rgba(74,134,232,.25);
}

/* Ensure Bootstrap modal stacks above its backdrop */
.modal      { z-index: 1065 !important; }
.modal-backdrop { z-index: 1060 !important; }

/* keep the softer backdrop */
.modal-backdrop.show {
  background: rgba(33,37,41,.2) !important;
  backdrop-filter: blur(1.5px);
}

/* Fade/slide animation for cards */
.testimonial-card {
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}
.testimonial-card.is-hiding { opacity: 0; transform: translateY(6px); pointer-events: none; }
.testimonial-card.is-showing { opacity: 1; transform: translateY(0); }

/* success-stories.css */
#testimonial-grid .testimonial-card {
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}
#testimonial-grid .testimonial-card.is-hiding {
  opacity: 0;
  transform: translateY(6px);
}
#testimonial-grid .testimonial-card.is-showing {
  opacity: 1;
  transform: translateY(0);
  display: block;
}
