/* Customer Stories Custom Carousel Styles */
.erfc-carousel-wrapper {
  --fc-dark: #121212;
  --fc-white: #ffffff;
  --fc-blue: #1b74e4;
  --fc-muted-on-dark: rgba(255, 255, 255, 0.7);
  --fc-muted-dark: rgba(255, 255, 255, 0.4);
  --fc-font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --fc-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fc-font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fc-radius-lg: 16px;
  --fc-radius-pill: 9999px;
  --fc-radius-md: 8px;

  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.erfc-carousel-wrapper * {
  box-sizing: border-box;
}

.erfc-stories-section {
  background: var(--fc-dark);
  color: var(--fc-white);
  padding: 6rem 0;
  overflow: hidden;
}

.erfc-padding-global {
  padding-left: 5%;
  padding-right: 5%;
}

.erfc-container-large {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.erfc-max-container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.erfc-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.erfc-header-left {
  max-width: 60%;
}

/* Nav Controls */
.erfc-nav-controls {
  display: flex;
  gap: 12px;
}

.erfc-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  line-height: 1;
  outline: none;
}

.erfc-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.erfc-nav-btn:active {
  transform: scale(0.95);
}

/* Carousel Container & Track */
.erfc-carousel-outer {
  position: relative;
  width: 100%;
}

.erfc-carousel-container {
  overflow: visible;
  width: 100%;
}

.erfc-carousel-track {
  display: flex;
  gap: 32px;
  will-change: transform;
}

/* Story Card */
.erfc-card-wrap {
  flex: 0 0 100%;
  width: 100%;
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  filter: blur(0) brightness(1);
}

/* Fade out, blur, and darken inactive cards */
.erfc-card-wrap.inactive {
  opacity: 0.15;
  filter: blur(4px) brightness(0.3);
  pointer-events: none;
}

.erfc-card {
  display: flex;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--fc-radius-lg);
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Left Image Half */
.erfc-card-media {
  position: relative;
  width: 48%;
  min-height: 480px;
  overflow: hidden;
  flex-shrink: 0;
}

.erfc-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.erfc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.erfc-card-wrap:hover .erfc-card-img {
  transform: scale(1.03);
}

.erfc-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.erfc-card-badge-pill {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--fc-radius-pill);
  font-family: var(--fc-font-mono);
  font-size: 11px;
  color: var(--fc-white);
  font-weight: 500;
  letter-spacing: 0.05em;
  z-index: 2;
  text-transform: uppercase;
}

.erfc-author-meta {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 2;
}

.erfc-author-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fc-white);
  margin-bottom: 2px;
}

.erfc-author-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Right Content Half */
.erfc-card-content {
  flex: 1;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.erfc-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fc-font-mono);
  font-size: 11px;
  color: var(--fc-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.erfc-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fc-blue);
  display: inline-block;
}

.erfc-title {
  font-family: var(--fc-font-body);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fc-white);
  margin-top: 0;
  margin-bottom: 1.75rem;
}

.erfc-quote-wrap {
  border-left: 2px solid var(--fc-blue);
  padding-left: 24px;
  margin-bottom: 2rem;
}

.erfc-quote-wrap.no-border {
  border-left: none;
  padding-left: 0;
}

.erfc-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fc-muted-on-dark);
  margin: 0;
}

.erfc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fc-blue);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.erfc-link:hover {
  opacity: 0.85;
}

.erfc-link-arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}

.erfc-link:hover .erfc-link-arrow {
  transform: translateX(4px);
}

/* Indicators */
.erfc-indicators {
  display: flex;
  gap: 8px;
  margin-top: 2.5rem;
  justify-content: center;
}

.erfc-indicator-bar {
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background-color 0.4s ease;
}

.erfc-indicator-bar.active {
  background: var(--fc-blue);
}

/* Responsive Rules */
@media (max-width: 991px) {
  .erfc-stories-section {
    padding: 4.5rem 0;
  }

  .erfc-card-wrap {
    max-width: 100%;
  }
  
  .erfc-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .erfc-card-media {
    width: 100%;
    min-height: 280px;
    height: 280px;
  }
  
  .erfc-card-content {
    padding: 2rem;
  }
  
  .erfc-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .erfc-quote-wrap {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  .erfc-stories-section {
    padding: 3.5rem 0;
  }

  .erfc-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }
  
  .erfc-header-left {
    max-width: 100%;
  }

  .erfc-card-media {
    min-height: 220px;
    height: 220px;
  }
  
  .erfc-card-content {
    padding: 1.5rem;
  }
  
  .erfc-title {
    font-size: 1.3rem;
  }
  
  .erfc-description {
    font-size: 0.95rem;
  }

  .erfc-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .erfc-card-media {
    min-height: 180px;
    height: 180px;
  }

  .erfc-card-content {
    padding: 1.25rem;
  }

  .erfc-title {
    font-size: 1.15rem;
  }
}
