.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1em;
    padding: 1em;
  }
  
  .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 1em;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
  }
  
  .service-card img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    margin-bottom: 1em;
  }
  
  .service-card h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
  }
  
  .service-card p {
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 1em;
  }
  
  .service-card .btn {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #3d6277;
    color: white;
    text-decoration: none;
    border-radius: 5px;
  }
  
  /* Media query for devices with a maximum width of 768px */
  @media only screen and (max-width: 768px) {
    /*.service-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }*/
  
    .service-card img {
      max-width: 100px;
      margin-bottom: 0;
    }
  
    .service-card h3 {
      font-size: 1em;
      margin-bottom: 0.2em;
    }
  
    .service-card p {
      font-size: 0.8em;
      margin-bottom: 0.5em;
    }
  
    .service-card .btn {
      padding: 0.2em 0.5em;
      font-size: 0.8em;
      border-radius: 3px;
    }
  }
  #google_translate_element {
    float: right;
  }

  .car-s {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
  }
  
/* Slideshow container */


.slideshow-container {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  background-color: #26272b;
}

/* Slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide h2{
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Lexend Deca', sans-serif; 
  width: 100%;
  height: 50px;
  text-align: center;
  display: flex; /* add this */
  align-items: center; /* add this */
  justify-content: center; /* add this */
  color: white;
}
.slide h1{
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Lexend Deca', sans-serif; 
  width: 100%;
  height: 30px;
  text-align: center;
  display: flex; /* add this */
  align-items: center; /* add this */
  justify-content: center; /* add this */
  color: white;
}
.slide p{
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Lexend Deca', sans-serif; 
  width: 100%;
  height: 30px;
  text-align: center;
  display: flex; /* add this */
  align-items: center; /* add this */
  justify-content: center; /* add this */
  color: white;
}


.slide.active {
  opacity: 1;
}

.bg-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Car image */
.car-image {
  position: absolute;
  top: 25%;
  right: -300px;
  transform: translateY(-50%);
  max-height: 262px;
  max-width: 326px;
  transition: transform 1s ease-in-out, right 1s ease-in-out;
}

.slide.active .car-image {
  right: 5%;
  transform: translateY(-50%);
}
@media only screen and (max-width: 767px) {
  .slide h2{
    font-size: 1.2rem;
  }
  .slide  h1{
    font-size: 1.2rem;
  }
  .slide p{
    font-size: 1.2rem;
  }
}



/* Slide info */
.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
  color: #fff;
  transform: translateY(100%);
  transition: transform 1s ease-in-out;
}

.slide.active .slide-info {
  transform: translateY(0);
}

.slide-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.slide-info p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.call{
  width: 160px;
  height: 150px;
  /* margin-right: 60rem; */
  display: inline-block;
  vertical-align: middle;
  text-align: left;  
 

}

.small-image {
  width: 90px;
  height: 70px;
  /* margin-right: 10rem; */
  display: inline-block;
  vertical-align: middle;
  text-align: left;  
  
}

/* Navigation buttons */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  outline: none;
  cursor: pointer;
}

.prev-btn {
  left: 0;
  padding: 0.5rem 1rem;
}

.next-btn {
  right: 0;
  padding: 0.5rem 1rem;
}

/* Media queries for mobile devices */
@media only screen and (max-width: 767px) {
  .car-image {
    max-height: 160px;
    max-width: 194px;
    right: 0;
    left: auto;
  }
  
  .slide-info {
    padding: 1rem;
  }
  
  .slide-info h2 {
    font-size: 1.5rem;
  }
  .slide-info p {
    font-size: 1rem;
  }
  .call {
    margin-right: -4px;
    margin-bottom: -54px;
    text-align: left;
  }
  .small-image {
    margin-right: -4px;
    margin-bottom: -54px;
    text-align: left;
  }
  
  .prev-btn,
  .next-btn {
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
  }
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1em;
    padding: 0.5em;
  }
  
  .car-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;

  }
  
  .car-card img {
    width: 100%;
    max-width: 250px;
    border-radius: 20px;
    margin-bottom: 1em;
  }
  .car-card h3 {
    font-size: 1.5em;
    margin-bottom: 0.2em;
  
  }
  /* class for contact */
  .mb-0 {
    font-size: 1.5em;
    font-style: italic;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    margin-bottom: 0.2em;
    
  }

  
  /* Media query for devices with a maximum width of 768px */
  @media only screen and (max-width: 768px) {
    .car-grid {
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
  
    .car-card img {
      max-width: 100px;
      margin-bottom: 0;
    }
    .car-card h3 {
      font-size: 1em;
      margin-bottom: 0.2em;
    }
  
  

    
  }
