.about-hero {
  position: relative;
  width: 100%;
  height: 400px; /* Adjust hero height */
}

.about-hero .hero-img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

/* White box overlapping the bottom of the hero */
.hero-text-container {
  position: absolute;
  bottom: 140px; /* overlaps the hero image */
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 20px 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  text-align: center;
  z-index: 10;
  width: 30%;
  max-width: 1000px;
  height: 100px;
  display: flex; /* center content vertically */
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.hero-text-container h1 {
  font-size: 2rem;
  color: #333;
}

/* ================= */
/* Responsive scaling */
/* ================= */

/* Medium screens (tablets) */
@media (max-width: 992px) {
  .hero-text-container {
    width: 50%;
    height: 110px; /* slightly taller */
  }
  .hero-text-container h1 {
    font-size: 1.7rem;
  }
}

/* Small screens (phones) */
@media (max-width: 600px) {
  .hero-text-container {
    width: 80%;
    height: 120px; /* more space for text */
    padding: 20px;
  }
  .hero-text-container h1 {
    font-size: 1.4rem;
  }
}

/* SERVICE__________________________________________________ */
/* grid sec */
.service {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* slightly smaller gap */
    max-width: 1000px; /* reduce overall width */
    margin: auto;
    padding: 0 20px;
}

.service_card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 280px; /* reduced height */
}

.service_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service_card img {
    width: 100%;
    height: 120px; /* reduced image height */
    object-fit: cover;
}
/* Container for image + overlay */
.img_container {
    position: relative;
    width: 100%;
    height: 120px; /* same as card image height */
    overflow: hidden;
    border-radius: 8px 8px 0 0; /* round top corners */
}

.img_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
     background: rgba(0,0,0,0.6); /* dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* hidden by default */
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 1.8rem;
}

.img_container:hover .overlay {
    opacity: 1;
}

.img_container:hover img {
    transform: scale(1.1); /* optional zoom effect */
}

.description {
    padding: 15px; /* reduced padding */
}

.description .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.description h4 {
    font-size: 1.1rem; /* smaller heading */
    color: #2c3e50;
    margin: 0;
    font-weight: 900;
}

.icon_container {
    font-size: 1rem; /* smaller arrow */
    color: #fff;
    background-color: #e32d2d;
    padding: 2px 6px;
    font-weight: 600;
    border-radius: 3px;
}

.description p {
    font-size: 0.875rem; /* smaller paragraph */
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .service {
        grid-template-columns: repeat(2, 1fr);
    }
    .description h4{
      font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .service {
        grid-template-columns: 1fr;
    }
}

