/* ===============================
   IPS About – Services Grid
   =============================== */

/* Keep left text & right grid aligned at the top */
.about-content .row.align-items-start {
  align-items: flex-start;
}

/* Grid wrapper for the four boxes */
.services-grid {
  display: grid;
  grid-template-columns: repeat(
    4,
    minmax(0, 1fr)
  ); /* 4 across on large screens */
  gap: 18px;
}

/* Clickable card */
.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.service-card:focus {
  outline: 2px solid #9f8054;
  outline-offset: 2px;
}

/* Icon pill */
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(159, 128, 84, 0.12);
  margin-bottom: 10px;
}

.service-icon i {
  font-size: 18px;
  color: #9f8054; /* your theme accent */
}

/* Headline + body */
.service-card h5 {
  margin: 0 0 4px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  font-size: 16px;
}

.service-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
  font-size: 14px;
}

/* ============ Responsive ============ */
/* Tablets & normal phones: 2×2 grid */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Small phones: still keep 2×2 so it doesn't get too tall */
@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .service-card {
    padding: 14px 12px;
    border-radius: 12px;
  }
  .service-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .service-card h5 {
    font-size: 15px;
  }
  .service-card p {
    font-size: 13px;
  }
}

/* Ultra-narrow screens: single column fallback */
@media (max-width: 360px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== TESTIMONIAL CAROUSEL ===== */
#testimonials {
  padding: 60px 0;
  background-color: #fff;
}
#testimonials h3 {
  font-weight: 800;
  color: #1e293b;
  text-transform: capitalize;
}
.testimonial-slider {
  padding-bottom: 40px;
}
.testimonial-slider .swiper-slide {
  display: flex;
  justify-content: center;
}
.testimonial-slider .card {
  border-radius: 12px;
  border: none;
  max-width: 480px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
.testimonial-slider .testimonial-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}
.testimonial-slider .quote {
  font-size: 17px;
  color: #374151;
  line-height: 1.6;
  font-style: italic;
}
.swiper-pagination-bullet {
  background: #9f8054 !important;
  opacity: 0.6;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}
/* ===== About > Services grid (right column) ===== */
.about-content .row.align-items-start {
  align-items: flex-start;
}

/* Base: use 2×2 because the grid sits in a col-lg-5 (narrow) */
#about-ips .services-grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  ); /* 2 columns on desktop too */
  gap: 18px;
  align-items: stretch;
}

/* Card */
#about-ips .service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 200px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
#about-ips .service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Icon */
#about-ips .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(159, 128, 84, 0.12);
  margin-bottom: 10px;
}
#about-ips .service-icon i {
  font-size: 18px;
  color: #9f8054;
}

/* Text */
#about-ips .service-card h5 {
  margin: 0 0 4px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  font-size: 16px;
}
#about-ips .service-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
  font-size: 14px;
}
