/* Travel Carousel Styles */
:root {
  --carousel-width-desktop: 900px;
  --image-height: 400px;
  --image-width: 500px;
}

.section-travelled {
  overflow: hidden;
  padding: 5rem 0;
  margin-top: 3rem;
  /* Reduced from 8rem based on user feedback */
  background-color: var(--bg-color-light, #f9fafb);
  font-family: 'Poppins', sans-serif;
}

/* Added specific style for section intro padding */
.section-travelled .section-intro {
  padding-bottom: 3rem;
  /* Added bottom padding to text */
}

/* Container for the specific two-column structure */
.carousel-layout-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--carousel-width-desktop);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .carousel-layout-container {
    grid-template-columns: 55% 40%;
    /* Increase image column width slightly */
    gap: 8rem;
    /* Increased gap from 5rem to 8rem for "app space between cards and text" */
    align-items: center;
  }
}

/* Left Column: 3D Image Stack */
.carousel-image-container {
  position: relative;
  height: var(--image-height);
  width: 100%;
  perspective: 1000px;
}

.carousel-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 0.4s ease-in-out;
  transform-origin: bottom center;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  /* Reverted to rounded corners */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* Right Column: Content */
.carousel-content-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0;
}

/* Animations for text */
.carousel-text-wrapper {
  transition: all 0.2s ease-in-out;
}

.carousel-text-wrapper.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.carousel-text-wrapper.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.carousel-title {
  font-size: 1.5rem;
  /* text-2xl */
  font-weight: 700;
  color: #000;
  margin: 0;
}

.carousel-designation {
  font-size: 0.875rem;
  /* text-sm */
  color: #6b7280;
  /* text-gray-500 */
  margin-top: 0.25rem;
}

.carousel-quote {
  margin-top: 2rem;
  font-size: 1.125rem;
  /* text-lg */
  line-height: 1.8;
  /* Increased line height */
  color: #6b7280;
  letter-spacing: 0.01em;
  /* Slight spacing improvement */
}

/* Word-by-word animation helpers */
.word-span {
  display: inline-block;
  opacity: 0;
  transform: translateY(5px);
  filter: blur(10px);
  transition: all 0.2s ease-in-out;
}

.word-span.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Navigation Buttons */
.carousel-nav {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  /* h-10 w-10 */
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  /* bg-gray-100 */
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover {
  background-color: #e5e7eb;
}

.nav-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #000;
  transition: transform 0.3s;
}

.nav-btn.prev:hover svg {
  transform: rotate(12deg);
}

.nav-btn.next:hover svg {
  transform: rotate(-12deg);
}