/* ==========================================================================
   FutureSeed Earth Foundation - Products For Donation Interactive Carousel
   Theme: Hero Cream (#F8F7EC), Forest Ink (#17402B), Emerald Green (#1bbd36)
   ========================================================================== */

.fs-carousel-section {
  position: relative;
  background-color: #F8F7EC;
  background: linear-gradient(180deg, #F8F7EC 0%, #F2EFE2 100%);
  padding: 5.5rem 0 6rem;
  overflow: hidden;
  width: 100%;
}

.fs-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(27, 189, 54, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Header */
.fs-carousel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(23, 64, 43, 0.08);
  border: 1px solid rgba(23, 64, 43, 0.15);
  color: #17402B;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.fs-carousel-badge i {
  color: #1bbd36;
}

.fs-carousel-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #17402B;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.fs-carousel-subtitle {
  font-family: 'Roboto', sans-serif;
  color: rgba(23, 64, 43, 0.7);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Category Filter Tabs */
.fs-carousel-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.75rem;
}

.fs-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 24px;
  border-radius: 50px;
  background: #FFFFFF;
  border: 1.5px solid rgba(23, 64, 43, 0.15);
  color: #17402B;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(23, 64, 43, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.fs-filter-btn:hover {
  border-color: #1bbd36;
  color: #159c2c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 189, 54, 0.12);
}

.fs-filter-btn.active {
  background: #17402B;
  border-color: #17402B;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(23, 64, 43, 0.25);
  transform: translateY(-2px);
}

.fs-filter-btn.active i {
  color: #1bbd36;
}

.fs-filter-count {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(23, 64, 43, 0.1);
  color: inherit;
  font-weight: 700;
}

.fs-filter-btn.active .fs-filter-count {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Infinite Marquee Auto-Sliding Carousel
   ========================================================================== */

.fs-marquee-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 50px 0; /* Vertical padding so lifted card translateY(-14px) scale(1.08) is not clipped */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.fs-marquee-track {
  display: flex;
  width: max-content;
  gap: 24px;
  align-items: center;
  animation: fsMarqueeLeftToRight 30s linear infinite;
  will-change: transform;
}

/* Pause whole slider when hovering over slider, track or any card */
.fs-marquee-slider:hover .fs-marquee-track,
.fs-marquee-track:hover,
.fs-marquee-card:hover {
  animation-play-state: paused !important;
}

/* Continuous Left-to-Right Animation */
@keyframes fsMarqueeLeftToRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Individual Card (Fixed width ~280px desktop, ~240px mobile) */
.fs-marquee-card {
  flex: 0 0 280px;
  width: 280px;
  background: #FFFFFF;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid rgba(23, 64, 43, 0.1);
  box-shadow: 0 10px 30px rgba(23, 64, 43, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  user-select: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Hover Pop-out & Zoom Effect */
.fs-marquee-card:hover {
  transform: translateY(-16px) scale(1.10) !important;
  z-index: 100 !important;
  border-color: #22c55e !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 30px rgba(34, 197, 94, 0.3) !important;
}

/* Card Image */
.fs-card-top {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ECE8D9;
}

.fs-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.fs-card-item:hover .fs-card-top img {
  transform: scale(1.06);
}

/* Tag */
.fs-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.fs-card-badge--vraksham {
  background: rgba(23, 64, 43, 0.92);
}

.fs-card-badge--bhavti {
  background: rgba(189, 27, 95, 0.92);
}

/* Card Body */
.fs-card-content {
  padding: 1.35rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fs-card-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #17402B;
  margin-bottom: 0.45rem;
}

.fs-card-text {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(23, 64, 43, 0.7);
  margin-bottom: 1.1rem;
  min-height: 2.6em;
}

/* Progress bar */
.fs-card-progress-wrap {
  margin-bottom: 1.1rem;
}

.fs-card-progress-bg {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: rgba(23, 64, 43, 0.08);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.fs-card-progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #1bbd36, #4ade80);
  transition: width 1s ease-out;
}

.fs-card-progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(23, 64, 43, 0.6);
}

.fs-card-progress-labels strong {
  color: #17402B;
}

/* Footer Action Row */
.fs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 64, 43, 0.08);
  margin-top: auto;
}

.fs-card-unit {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(23, 64, 43, 0.65);
}

.fs-card-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  background: #17402B;
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  cursor: pointer;
}

.fs-card-cta-btn:hover {
  background: #1bbd36;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(27, 189, 54, 0.3);
}

.fs-card-cta-btn i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.fs-card-cta-btn:hover i {
  transform: translateX(3px);
}

/* Prev / Next Navigation Arrows */
.fs-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2.25rem;
}

.fs-carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(23, 64, 43, 0.15);
  color: #17402B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(23, 64, 43, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.fs-carousel-arrow:hover:not(:disabled) {
  background: #17402B;
  color: #FFFFFF;
  border-color: #17402B;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(23, 64, 43, 0.2);
}

.fs-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Dots Indicator */
.fs-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(23, 64, 43, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fs-carousel-dot.active {
  width: 28px;
  border-radius: 20px;
  background: #1bbd36;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (2 Cards visible) */
@media (max-width: 991px) {
  .fs-carousel-section {
    padding: 4.5rem 0 5rem;
  }

  .fs-card-item {
    flex: 0 0 calc((100% - 22px) / 2);
    max-width: calc((100% - 22px) / 2);
  }

  .fs-carousel-track {
    gap: 22px;
  }
}

/* Mobile (1 Card with sneak peek + touch swipe) */
@media (max-width: 639px) {
  .fs-carousel-section {
    padding: 3.5rem 0 4rem;
  }

  .fs-carousel-title {
    font-size: 2rem;
  }

  .fs-carousel-wrap {
    padding: 0 0.75rem;
  }

  .fs-carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0.25rem 20px;
  }

  .fs-carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .fs-carousel-track {
    gap: 16px;
    width: max-content;
  }

  .fs-card-item {
    flex: 0 0 calc(100vw - 3rem);
    max-width: 320px;
    scroll-snap-align: center;
  }

  .fs-filter-btn {
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  .fs-marquee-card {
    flex: 0 0 240px;
    width: 240px;
  }

  .fs-marquee-slider {
    padding: 36px 0;
  }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .fs-marquee-track {
    animation: none !important;
    transform: none !important;
  }
}
