.testimonial-section {
    padding: 60px 20px;
    padding-bottom: 45px;
    text-align: center;
    background: #f9f9f9;
  }

/* Mobile responsive styling */
@media (max-width: 768px) {
    .testimonial-section {
        padding-top: 3rem;
        padding-bottom: 2.3rem; /* Remove padding-bottom for mobile */
    }
}
  
  .testimonial-title-container {
    margin-bottom: 10px;
  }
  
  .testimonial-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .testimonial-subtitle {
    font-size: 16px;
    color: #666;
  }
  
  .testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .testimonial-box {
    background: #fff;
    padding: 40px;
    margin: 60px auto;
    border-radius: 15px;
    position: relative;
    height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 30px;
}

  .testimonial-image-container {
    width: 530px; /* Full width of the box */
    height: 400px; /* Adjust height as needed */
    background-size: cover; /* Ensure the image fits properly */
    border-radius: 8px;
    margin-bottom: 20px; /* Space below the image */
    overflow: hidden;
    align-self: center;
  }


  
.testimonial-image-top {
    position: absolute;
    top: -35px; /* Moves the image above the box */
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    height: 70px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .testimonial-image-top img {
    width: 95%;
    height: 100%;
    object-fit: contain;
    justify-self: center;
  }
  
  .testimonial-quote {
    font-size: 18px;
    font-style: italic;
    margin: 30px 0 30px 0; /* Adjusted for top image */
    color: #333;
    flex-grow: 1; /* Allows the quote to take up available space */
}
  
  .testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .testimonial-author-name {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-top: 20px; /* Adds spacing above */
  }
  
  .testimonial-trip-name {
    font-size: 15px;
    color: #555;
    margin-top: 5px; /* Adjust space between name and trip name */
  }
  
  
  .testimonial-author-role {
    font-size: 12px;
    color: #777;
  }
  
  .swiper-pagination-custom {
    margin-top: 15px;
  }
  
  .swiper-pagination-custom .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgb(166 166 166);
    opacity: 1;
  }
  
  .swiper-pagination-custom .swiper-pagination-bullet-active {
    background: #000;
  }
  
  .swiper-container-custom {
    overflow: hidden;
    padding: 20px 0; /* Add padding for better alignment */
  }
  
  .testimonial-rating {
    display: flex;
    justify-content: center;
    margin-top: -5px;
    gap: 8px;
  }
  
  .star {
    font-size: 40px; /* Larger size */
    color: #FFC107; /* Gold color */
    opacity: 0.2; /* Start with dim opacity */
    transform: scale(1); /* Initial scale */
    text-shadow: none; /* No glow initially */
    transition: transform 0.3s ease, text-shadow 0.3s ease; /* Smooth hover effect */
  }
  
  .testimonial-rating .star:nth-child(1) {
    animation: fuel-up 2s ease-in-out infinite;
    animation-delay: 0s;
  }
  
  .testimonial-rating .star:nth-child(2) {
    animation: fuel-up 2s ease-in-out infinite;
    animation-delay: 0.3s;
  }
  
  .testimonial-rating .star:nth-child(3) {
    animation: fuel-up 2s ease-in-out infinite;
    animation-delay: 0.6s;
  }
  
  .testimonial-rating .star:nth-child(4) {
    animation: fuel-up 2s ease-in-out infinite;
    animation-delay: 0.9s;
  }
  
  .testimonial-rating .star:nth-child(5) {
    animation: fuel-up 2s ease-in-out infinite;
    animation-delay: 1.2s;
  }
  
  @keyframes fuel-up {
    0% {
      opacity: 0.2; /* Dim state */
      transform: scale(1); /* Normal size */
      text-shadow: none;
    }
    50% {
      opacity: 1; /* Fully bright */
      transform: scale(1); /* Slightly larger */
      text-shadow: 0 0 10px rgba(255, 193, 7, 0.8); /* Glow effect */
    }
    100% {
      opacity: 0.2; /* Reset to dim */
      transform: scale(1); /* Back to normal size */
      text-shadow: none; /* No glow */
    }
  }
  
  /* Hover effect for interactivity */
  .star:hover {
    transform: rotate(360deg) scale(1.5); /* Rotate 360 degrees and enlarge */
    text-shadow: 0 0 20px rgba(255, 193, 7, 1), 0 0 30px rgba(255, 255, 255, 0.6); /* Pulsating glow */
    background: linear-gradient(45deg, #FFC107, #FF4500, #FFD700); /* Gradient shimmer */
    -webkit-background-clip: text; /* Makes gradient apply to text only */
    -webkit-text-fill-color: transparent; /* Transparent fill for gradient */
    transition: transform 0.6s ease, text-shadow 0.6s ease, background 0.6s ease; /* Smooth animation */
  }

  
  

  /* Mobile responsive styling */
@media (max-width: 768px) {
    .testimonial-box {
        margin-bottom: 0; /* Remove bottom margin on mobile */
        height: 900px; /* Allow height to adjust automatically */
        padding-top: 0px;
    }
    .testimonial-title {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }
    .swiper-container-custom {
      padding: 0px 0; /* Add padding for better alignment */
    }
    .testimonial-quote {
      font-size: 1rem;
  }
  .testimonial-image-container {
    width: 275px; /* Full width of the box */
    height: 250px; /* Adjust height as needed */
  }

  .testimonial-rating {
    margin-top: 5px;
  }

  .star {
    font-size: 32px; /* Larger size */
  }
  .testimonial-author-name {
    margin-top: 60px; /* Adds spacing above */
  }
  
}