/* Success Stories Carousel Styles */

.c-success-stories {
  padding: 64px 20px 80px;
  background: #f8fafc;
  max-width: 1240px;
  margin: 0 auto;
  font-family: var(--font-family, sans-serif);
  box-sizing: border-box;
}

.c-success-stories__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.c-success-stories__heading {
  font-size: 28px;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 8px;
  line-height: 1.3;
}

.c-success-stories__subtitle {
  font-size: 15px;
  color: #666666;
  margin: 0;
  line-height: 1.5;
}

/* ---- Nav Buttons ---- */
.c-success-stories__nav {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.c-success-stories__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.c-success-stories__nav-btn.is-active {
  color: #ffffff;
  background: #1a2744;
  border-color: #1a2744;
}

.c-success-stories__nav-btn.is-active:hover {
  background: #009be3;
  border-color: #009be3;
  transform: scale(1.05);
}

/* ---- Carousel Track ---- */
.c-success-stories__track-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding-bottom: 24px;
}

.c-success-stories__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-success-stories__item {
  flex: 0 0 calc((100% - 3 * 24px) / 4);
  width: calc((100% - 3 * 24px) / 4);
  box-sizing: border-box;
}

/* ---- Card Styles ---- */
.c-success-stories__card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  height: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.c-success-stories__card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.c-success-stories__card-image-wrap {
  height: 180px;
  overflow: hidden;
  background: #edf2f7;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 1;
}

.c-success-stories__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-success-stories__card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-success-stories__card-title {
  font-size: 19px;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 10px;
  line-height: 1.3;
}

.c-success-stories__card-subtitle {
  font-size: 13px;
  color: #718096;
  margin: 0 0 20px;
  line-height: 1.45;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-success-stories__card-link {
  font-size: 14px;
  font-weight: 700;
  color: #009be3;
  margin-top: auto;
  line-height: 1.2;
}

.c-success-stories__card-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
  display: flex;
  gap: 16px;
}

.c-success-stories__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #718096;
  font-size: 12.5px;
}

.c-success-stories__meta-icon {
  color: #a0aec0;
  flex-shrink: 0;
}

.c-success-stories__meta-label {
  color: #4a5568;
  font-weight: 500;
}

/* ---- Drawer (Hover View) ---- */
.c-success-stories__drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #009be3;
  color: #ffffff;
  padding: 24px;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  height: 240px;
  display: flex;
  flex-direction: column;
}

.c-success-stories__drawer-pointer {
  position: absolute;
  top: -8px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #009be3;
}

.c-success-stories__drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.c-success-stories__drawer-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #ffffff;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-success-stories__drawer-action {
  margin-top: auto;
  margin-bottom: 12px;
}

.c-success-stories__drawer-pill {
  display: inline-block;
  width: 36px;
  height: 18px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.c-success-stories__drawer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 0 12px;
}

.c-success-stories__drawer-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-success-stories__drawer-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.c-success-stories__avatar-svg {
  width: 14px;
  height: 14px;
}

.c-success-stories__drawer-author {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
}

/* ---- Hover Animations ---- */
.c-success-stories__card:hover .c-success-stories__card-image-wrap {
  height: 0;
  opacity: 0;
  border-bottom-width: 0;
}

.c-success-stories__card:hover .c-success-stories__card-body {
  padding: 24px 24px 12px;
}

.c-success-stories__card:hover .c-success-stories__drawer {
  transform: translateY(0);
}

/* ---- Indicator Dots ---- */
.c-success-stories__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.c-success-stories__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.c-success-stories__dot.is-active {
  background: #1a2744;
  width: 20px;
  border-radius: 4px;
}

/* ---- Responsive Breakpoints ---- */
@media (max-width: 1024px) {
  .c-success-stories__item {
    flex: 0 0 calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 600px) {
  .c-success-stories__heading {
    font-size: 24px;
  }
  .c-success-stories__item {
    flex: 0 0 100%;
    width: 100%;
  }
}
