/* Swiper container styling */
.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 320px;
    background-color: #fff;
    overflow: hidden;
    border-radius: 8px;
    position: relative; /* Ensure the images are positioned inside this */
  }
  
  /* Styling for the image container and images */
  .picture {
    width: 320px;
    height: 320px;
    overflow: hidden;
  }
  
  .picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Ensure the image container fills the card */
  .image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  
  /* Position images inside the container and set opacity */
  .image-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  /* Initial state: base image visible */
  .image-container img.base {
    opacity: 1;
  }
  
  /* Hover states: images switch on hover */
  .car-card:hover .image-container img.base {
    opacity: 0;
  }
  
  .car-card:hover .image-container img.hover-1 {
    opacity: 1;
  }
  
  .car-card.hovering.step-2 .image-container img.hover-1 {
    opacity: 0;
  }
  
  .car-card.hovering.step-2 .image-container img.hover-2 {
    opacity: 1;
  }
  
  .car-card.hovering.step-3 .image-container img.hover-2 {
    opacity: 0;
  }
  
  .car-card.hovering.step-3 .image-container img.hover-3 {
    opacity: 1;
  }
  
  /* Details Section */
  .detail {
    padding: 25px 20px;
    font-weight: 600;
    text-align: center;
  }
  
  .detail h3 {
    margin: 0;
    font-size: 20px;
  }
  
  .detail span {
    display: block;
    font-size: 16px;
    color: #f44336;
  }
  
  .car-card {
    background-color: #99D7F7;
    transition: background-color 0.2s ease;
  }

  .car-card:active {
    background-color: #90BFE7;
  }