.about {
  padding: 100px 130px;
  display: flex;
}

.about-img {
  width: 50%;
  position: relative;
  overflow: hidden;
}
.slide {
  width: 100%;
  float: left;
  transition: transform 0.5s ease-in-out;
}
.about-img img {
  width: 100%;
  float: left;
  transition: transform 0.5s ease-in-out;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}
.about-img img {
  width: 500px;
  height: 300px;
  border-radius: 15px;
}

.about-txt {
  width: 50%;
  margin-left: 25px;
}

.about-txt h2 {
  color: #07bb3d;
  font-size: 40px;
  margin-bottom: 15px;
  font-family: "Roboto", sans-serif;
  text-align: center;
}

.about-txt p {
  font-size: 17px;
  color: #0f0f0f;
  font-family: "Roboto", sans-serif;
  text-align: justify;
}

.con {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
  .about {
    flex-direction: column; /* Stack elements vertically */
    padding: 50px 20px; /* Reduce padding */
  }

  .about-img {
    width: 100%; /* Make image full width */
    margin-bottom: 20px; /* Add spacing below image */
  }

  .about-img img {
    width: 100%; /* Make image responsive */
    height: auto; /* Maintain aspect ratio */
  }

  .about-txt {
    width: 100%; /* Make text full width */
    margin-left: 0; /* Remove left margin */
    text-align: center; /* Center text on mobile */
  }

  .prev,
  .next {
    top: 10px; /* Adjust button position */
  }
}
