/* ─── Journey Slider Styles ─── */

/* Section Heading */
.journey-heading {
    text-align: center;
    margin-bottom: 24px;
  }
  
  .journey-heading h2 {
    font-size: 2.4rem;
    color: #00d4ff;
    margin: 0;
  }
  
  /* Container & hidden overflow */
  .journey-slider {
    position: relative;
    max-width: 900px;
    width: 100%;
    height: 450px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 10px; /* reduce bottom margin for caption */
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.15);
  }
  
  /* Slide image base style */
  .journey-slider .slides img {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
  }
  
  /* Active slide fade in */
  .journey-slider .slides img.active {
    display: block;
    opacity: 1;
    z-index: 2;
  }
  
  /* Caption area */
  .slide-caption {
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #00d4ff;
    font-style: italic;
    min-height: 28px; /* reserve space */
    user-select: none;
  }
  
  /* Prev/Next buttons */
  .journey-slider .prev,
  .journey-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 29, 61, 0.7);
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
    transition: background 0.3s ease;
  }
  
  .journey-slider .prev:hover,
  .journey-slider .next:hover {
    background: rgba(0, 212, 255, 0.7);
  }
  
  .journey-slider .prev:active,
  .journey-slider .next:active {
    transform: translateY(-50%) scale(0.95);
  }
  
  .journey-slider .prev {
    left: 12px;
  }
  
  .journey-slider .next {
    right: 12px;
  }
  
  /* Scrollable thumbnails container with arrows */
  .thumbnails-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  /* Thumbnail scroll container */
  .thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #00d4ff transparent;
    flex-wrap: nowrap;
    flex: 1 1 auto;
  }
  
  /* Hide default scrollbar for Webkit browsers */
  .thumbnails::-webkit-scrollbar {
    height: 8px;
  }
  
  .thumbnails::-webkit-scrollbar-thumb {
    background-color: #00d4ff;
    border-radius: 4px;
  }
  
  /* Thumbnails */
  .thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s, border 0.3s;
    border: 2px solid transparent;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
  
  .thumbnails img.active-thumb,
  .thumbnails img:hover {
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid #00d4ff;
  }
  
  /* Thumbnail arrow buttons */
  .thumbnails-wrapper button.thumb-prev,
  .thumbnails-wrapper button.thumb-next {
    background: rgba(0, 29, 61, 0.7);
    color: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    flex-shrink: 0;
    user-select: none;
    z-index: 4;
  }
  
  .thumbnails-wrapper button.thumb-prev:hover,
  .thumbnails-wrapper button.thumb-next:hover {
    background: rgba(0, 212, 255, 0.7);
  }
  
  .thumbnails-wrapper button.thumb-prev:active,
  .thumbnails-wrapper button.thumb-next:active {
    transform: scale(0.95);
  }
  
  /* Mobile adjustments */
  @media (max-width: 768px) {
    .journey-heading h2 {
      font-size: 2rem;
    }
  
    .journey-slider {
      height: 240px;
      aspect-ratio: auto;
      margin-bottom: 8px;
    }
  
    .slide-caption {
      font-size: 1rem;
      margin-bottom: 16px;
    }
  
    .journey-slider .prev,
    .journey-slider .next {
      font-size: 1.2rem;
      padding: 6px 10px;
    }
  
    .thumbnails img {
      width: 60px;
      height: 45px;
    }
  
    .thumbnails-wrapper button.thumb-prev,
    .thumbnails-wrapper button.thumb-next {
      font-size: 1.2rem;
      padding: 5px 8px;
    }
  }
