/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #1e632d;
  --navy-mid:   #045e2a;
  --accent:     #038022;
  --text-muted: #6b7280;
  --bg:         #ffffff;
  --pill-border:#d1d5db;
  --radius:     999px;
  --card-radius:22px;
  --transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--navy);
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0 80px;
  gap: 0;
}

/* =============================================
   HEADER
   ============================================= */
.gallery-header {
  text-align: center;
  margin-bottom: 45px;
  animation: fadeUp 0.7s ease both;
}

.gallery-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gallery-title {
  font-family: 'Poppins', serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.gallery-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* =============================================
   TABS
   ============================================= */
.tabs-wrapper {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 48px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.tabs-wrapper::-webkit-scrollbar { display: none; }

.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 48px;
  width: max-content;
  margin: 0 auto;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--pill-border);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  text-decoration: none;
}

.tab:hover {
  border-color: var(--navy);
  background: rgba(29, 90, 60, 0.151);
}

.tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 500;
}

.tab-more {
  border-width: 1.5px;
  font-weight: 500;
  padding-right: 24px;
}

/* =============================================
   CAROUSEL WRAPPER
   ============================================= */
.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  animation: fadeUp 0.7s 0.2s ease both;
}

/* Left / Right fade overlays */
.fade-left,
.fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  pointer-events: none;
  z-index: 10;
}

.fade-left {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.fade-right {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

/* =============================================
   CAROUSEL TRACK
   ============================================= */
.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
  position: relative;
  transition: none; /* JS handles positioning */
}

/* =============================================
   SLIDES
   ============================================= */
.slide {
  position: absolute;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform var(--transition),
    opacity var(--transition),
    z-index 0s,
    box-shadow var(--transition);
  will-change: transform, opacity;
  display: none; /* hidden by default; JS controls visibility */
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Play button overlay */
.play-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.slide:hover .play-btn {
  transform: scale(1.1);
  background: #fff;
}

/* ---- Slot styles (set by JS) ---- */

/* Far left (hidden) */
.slide[data-slot="-2"] {
  transform: translateX(-680px) scale(0.72);
  opacity: 0;
  z-index: 0;
  width: 260px;
  height: 360px;
}

/* Left side */
.slide[data-slot="-1"] {
  transform: translateX(-380px) scale(0.82);
  opacity: 0.85;
  z-index: 1;
  width: 280px;
  height: 380px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* Center / hero */
.slide[data-slot="0"] {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
  width: 380px;
  height: 460px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

/* Right side */
.slide[data-slot="1"] {
  transform: translateX(380px) scale(0.82);
  opacity: 0.85;
  z-index: 1;
  width: 280px;
  height: 380px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* Far right (hidden) */
.slide[data-slot="2"] {
  transform: translateX(680px) scale(0.72);
  opacity: 0;
  z-index: 0;
  width: 260px;
  height: 360px;
}

/* =============================================
   NAV ARROWS
   ============================================= */
.nav-arrows {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  animation: fadeUp 0.7s 0.3s ease both;
}

.arrow-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--pill-border);
  background: transparent;
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  outline: none;
  user-select: none;
}

.arrow-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: scale(1.06);
}

.arrow-btn:active {
  transform: scale(0.97);
}



.slide-overlay{
    position: absolute;
    bottom: 10px;
    color: #ffffff;
    width: 100%;
    text-align: center;
    font-size: 15px;
    line-height: 1;
    background: #00000073;
    padding: 10px 5px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .carousel-wrapper { height: 360px; }

  .slide[data-slot="-1"] { transform: translateX(-220px) scale(0.78); width: 200px; height: 280px; }
  .slide[data-slot="0"]  { transform: translateX(0) scale(1);         width: 270px; height: 340px; }
  .slide[data-slot="1"]  { transform: translateX(220px) scale(0.78);  width: 200px; height: 280px; }
  .slide[data-slot="-2"] { transform: translateX(-420px) scale(0.65); width: 160px; height: 240px; }
  .slide[data-slot="2"]  { transform: translateX(420px) scale(0.65);  width: 160px; height: 240px; }

  .fade-left, .fade-right { width: 80px; }
  .tabs { padding: 0 24px; }
  .gallery-section { padding: 48px 0 60px; }
}

@media (max-width: 480px) {
  .carousel-wrapper { height: 300px; }
  .slide[data-slot="0"] { width: 220px; height: 280px; }
  .slide[data-slot="-1"] { transform: translateX(-170px) scale(0.75); width: 160px; height: 220px; }
  .slide[data-slot="1"]  { transform: translateX(170px) scale(0.75);  width: 160px; height: 220px; }
}