.span {
  color: #1370b5;
  font-family: "Poppins", sans-serif;
}

body{
  background-color: white;
}

html{
  scroll-behavior: smooth;
}

.title {
  font-size: 35px;
  font-family: "Poppins", sans-serif;
}

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 500px; /* changed from 100vh */
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  flex: 1 0 100%;
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide-1 {
  background: url("../images/slide.jpg") no-repeat center center / cover;
}

.slide-2 {
  background: url("../images/slider6.JPG") no-repeat center center / cover;
}

.slide-3 {
  background: url("../images/slider1.jpg") no-repeat center center / cover;
}

/* First slide overlay */
.intro-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

/* Centered intro image */
.center-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 2;
}

/* Slide content (text + button) */
.slide-content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: black;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 3;
}

.slide-content h2 {
  font-size: 2rem;
}

.button-52 {
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 1px;
  padding: 13px 20px 13px;
  outline: 0;
  border: 2px solid black;
  cursor: pointer;
  position: relative;
  background-color: rgba(0, 0, 0, 0);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  z-index: 1;
  color: white;
  border-radius: 10px;
  text-transform: uppercase;
}

.button-52:after {
  content: "";
  background-color: #1370b5;
  width: 100%;
  z-index: -1;
  position: absolute;
  height: 100%;
  top: 7px;
  left: 7px;
  transition: 0.2s;
  border-radius: 10px;
}

.button-52:hover:after {
  top: 0px;
  left: 0px;
}

@media (min-width: 768px) {
  .button-52 {
    padding: 13px 50px 13px;
  }
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: transparent;
  border: none;
  z-index: 10;
  cursor: pointer;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  background: white;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  opacity: 0.5;
}

.dot.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .slider-container {
    height: 200px;
  }

  .slide-content {
    bottom: 10%;
    left: 5%;
  }

  .slide-content h2 {
    font-size: 1rem;
  }

  .slide-content button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .center-image {
    width: 100px; /* smaller image for small screen */
  }
}

.top {
  color: #393186;
  font-family: Palatino Linotype;
  text-transform: none;
  font-size: 18px;
}

.text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
}

.about {
  padding: 40px 20px;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

.about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px; /* Minimal gap between content and image */
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-content {
  flex: 1;
  min-width: 300px;
}

.about-heading {
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 15px;
  font-family: Palatino Linotype;
}

.about-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
  text-align: justify;
}

.about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  mix-blend-mode: multiply;
}

/* Responsive Behavior */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .about-heading {
    font-size: 1.5rem;
    text-align: center;
  }

  .about-text {
    text-align: justify;
  }

  .about-image {
    justify-content: center;
  }

  .top {
    display: block;
    text-align: center;
  }
}

.services-slider-section {
  padding: 2rem;
  max-width: 100%;
  margin: auto;
  text-align: center;
  overflow: hidden;
  height: 450px;
}

.services-small-text {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.3rem;
}

.services-heading {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.services-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
  text-align: center;
}

.slider-container {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 1rem;
}

.service-card {
  min-width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  text-align: center;
}

.service-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  mix-blend-mode: multiply;
}

.service-card h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 0.9rem;
}

.slider-btn {
  position: absolute;
  top: 20%;
  transform: translateY(-50%);
  color: black;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
}

@media (max-width: 600px) {
  .slider-track {
    justify-content: center; /* centers flex items horizontally */
  }

  .service-card {
    min-width: auto; /* Let the card size fit content */
    max-width: 400px; /* max width for images */
    margin: 0 auto; /* center each card */
  }
}

@media (min-width: 900px) {
  .service-card {
    min-width: 33.33%;
  }
}

@media (max-width: 760px) {
  .slider-track {
    justify-content: center;
  }

  .service-card {
    min-width: auto;
    max-width: 400px;
    margin: 0 auto;
  }

  .services-description {
    text-align: justify;
  }
}

.image-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
}

.image-wrapper img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}

.why-choose-us {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.why-choose-us .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 35px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.item {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.item img {
  width: 100%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 1rem;
}

.why-choose-us .item-title {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
  font-family: "Poppins", sans-serif;
  color: #1370b5;
}

.why-choose-us .item-desc {
  font-size: 0.8rem;
  color: #444;
  font-family: "Poppins", sans-serif;
  line-height: 1.4;
  margin-top: 0.25rem;
  text-align: justify;
}

/* On larger screens, show exactly 2 items per row */
@media (min-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* On very small screens, single column */
@media (max-width: 480px) {
  .item-title {
    font-size: 1rem;
  }

  .item-desc {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 10px;
  }
}

.testimonial-section {
  max-width: 100%;
  height: 400px;
  margin: 10px auto;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  width: 1000px;
}

.testimonial-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
}

.testimonial img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.testimonial h3 {
  margin: 10px 0 5px;
  font-size: 12px;
}

.testimonial p {
  font-size: 12px;
  color: #444;
}

.nav-buttons {
  text-align: center;
  margin-top: 15px;
}

.nav-buttons button {
  padding: 8px 8px;
  margin: 0 5px;
  font-size: 14px;
  border: none;
  border-radius: 50%;
  background-color: #1370b5;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-buttons button:hover {
  background-color: #0056b3;
}

@media (max-width: 600px) {
  .testimonial-section {
    padding: 15px;
  }
  .testimonial p {
    font-size: 12px;
    text-align: justify;
  }
  .testimonial h3 {
    font-size: 12px;
  }
}
