/* ═══════════════════════════════════════════════════════════
   KnowYourGujarat — RECENT CONTRIBUTIONS PHOTO CAROUSEL
   Exact Reference Specification:
   - Full-width horizontal photo carousel
   - Center featured large photo with left/right previews
   - Clean white background, no cards, no dark overlays
   - Dynamic metadata strip below active photo
   - Subtle 01 / 06 counter with spanning horizontal lines
   - Smooth 5s auto-slide, touch swipe, hover pause
   ═══════════════════════════════════════════════════════════ */

.recent-carousel-section {
  position: relative;
  z-index: 10;
  width: 100%;
  background: #FFFFFF;
  padding: 68px 0 60px;
  overflow: hidden;
}

.recent-carousel-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Section Header ── */
.recent-carousel-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  padding: 0 24px;
}

/* Top Pill Badge */
.recent-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.recent-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.recent-badge-dot.dot-blue {
  background: #0A4FCD;
}

.recent-badge-bar {
  width: 32px;
  height: 3px;
  border-radius: 2px;
}

.recent-badge-bar.bar-orange {
  background: #FF7A00;
}

.recent-badge-bar.bar-green {
  background: #16A34A;
}

.recent-badge-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0A4FCD;
  text-transform: uppercase;
}

/* Main Heading */
.recent-main-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0A1C3E;
  margin: 0 0 10px;
  line-height: 1.15;
}

/* Subtitle */
.recent-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  color: #64748B;
  margin: 0 0 16px;
  font-weight: 400;
}

/* Decorative Tricolor Divider */
.recent-accent-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* ── Carousel Stage ── */
.recent-carousel-stage {
  position: relative;
  width: 100%;
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
}

.recent-carousel-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
}

.recent-carousel-track {
  display: flex;
  align-items: center;
  gap: 24px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* ── Individual Slide ── */
.recent-slide {
  flex: 0 0 760px;
  max-width: 66vw;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transform: scale(0.94);
  opacity: 0.78;
  filter: brightness(0.96);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 20px rgba(10, 28, 62, 0.05);
}

.recent-slide.active {
  transform: scale(1);
  opacity: 1;
  filter: brightness(1);
  cursor: default;
  box-shadow: 0 14px 40px rgba(10, 28, 62, 0.1);
  border-radius: 20px;
}

.recent-photo-frame {
  width: 100%;
  height: 100%;
  background: #F1F5F9;
}

.recent-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Floating Circular Navigation Arrows ── */
.carousel-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  color: #0A1C3E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-arrow-btn:hover {
  background: #FFFFFF;
  color: #0A4FCD;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 25px rgba(10, 79, 205, 0.2);
  border-color: #CBD5E1;
}

.carousel-arrow-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-arrow-btn.prev-btn {
  left: max(16px, calc(50% - 380px - 24px));
}

.carousel-arrow-btn.next-btn {
  right: max(16px, calc(50% - 380px - 24px));
}

/* ── Metadata Strip (Below Featured Photo) ── */
.recent-metadata-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 6px 0 28px;
  padding: 0 16px;
}

.metadata-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.metadata-divider {
  width: 1px;
  height: 16px;
  background: #E2E8F0;
}

.meta-val {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0A1C3E;
  letter-spacing: -0.01em;
}

.meta-cat-val {
  font-weight: 700;
}

.meta-time-val {
  font-weight: 500;
  color: #64748B;
}

/* ── Bottom Counter with Spanning Lines ── */
.recent-counter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 680px;
  padding: 0 24px;
}

.counter-line {
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.counter-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #0A1C3E;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1200px) {
  .recent-slide {
    flex: 0 0 680px;
    max-width: 72vw;
    height: 410px;
  }
  .carousel-arrow-btn.prev-btn {
    left: calc(50% - 340px - 20px);
  }
  .carousel-arrow-btn.next-btn {
    right: calc(50% - 340px - 20px);
  }
}

@media (max-width: 900px) {
  .recent-slide {
    flex: 0 0 540px;
    max-width: 82vw;
    height: 340px;
  }
  .carousel-arrow-btn.prev-btn {
    left: 12px;
  }
  .carousel-arrow-btn.next-btn {
    right: 12px;
  }
  .recent-main-title {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .recent-carousel-section {
    padding: 48px 0 40px;
  }
  .recent-main-title {
    font-size: 28px;
  }
  .recent-slide {
    flex: 0 0 88vw;
    max-width: 88vw;
    height: 250px;
    border-radius: 14px;
  }
  .recent-slide.active {
    border-radius: 16px;
  }
  .carousel-arrow-btn {
    width: 38px;
    height: 38px;
  }
  .recent-metadata-bar {
    gap: 14px;
    flex-wrap: wrap;
  }
  .meta-val {
    font-size: 13.5px;
  }
  .recent-counter-wrap {
    max-width: 90%;
  }
}
