/* ==========================================================================  
   Our Journey Section STYLES – Page Turn Animation
========================================================================== */

.our-journey-section {
  background-color: var(--color-box-bg);
  padding: 4rem 1rem;
  text-align: center;
  overflow: visible;
}

.our-journey-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.our-journey-swiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
  position: relative;
}

.swiper-wrapper {
  padding-bottom: 2rem;
  overflow: visible;
}

.our-journey-swiper .swiper-slide {
  width: auto;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.swiper-slide .polaroid {
  background: white;
  padding: 1rem 1rem 0rem;
  border: 5px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transform: scale(0.66);
  transition: transform 0.4s ease;
  width: clamp(240px, 60vw, 420px);
  height: 100%;
}

.swiper-slide-active .polaroid {
  transform: scale(1);
  z-index: 2;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.polaroid .caption {
  font-family: 'Handlee', cursive;
  font-size: 1.15rem;
  margin-top: 0.5rem;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
/*  flex-grow: 1; */
}

.caption .year {
  display: block;
  margin-top: auto;
}

.caption-animate {
  animation: reveal-text 1.8s ease forwards;
}

@keyframes reveal-text {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0.5% 0 0);
  }
}

@media (max-width: 480px) {
  .polaroid .caption {
    font-size: 1.2rem;
  }
}

.our-journey-swiper .swiper-slide:not(.swiper-slide-active) .polaroid::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1;
  pointer-events: none;
  border-radius: 4px;
}

.swiper-button-next,
.swiper-button-prev {
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  padding: 0.6rem;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
  z-index: 2;
  position: absolute;
}

.swiper-button-next {
  right: -10px;
}

.swiper-button-prev {
  left: -10px;
}

.our-journey-swiper .swiper-button-next,
.our-journey-swiper .swiper-button-prev {
  opacity: 0;
}

.our-journey-swiper:hover .swiper-button-next,
.our-journey-swiper:hover .swiper-button-prev {
  opacity: 1;
}

@media (max-width: 500px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

.our-journey-pagination {
  margin-top: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-divider {
  border: none;
  border-top: 2px solid var(--color-border);
  width: 60%;
  margin: 4rem auto 2rem;
  opacity: 0.6;
}
