/* =========================
   SERVICES GRID
========================= */
.services-grid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;

  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; */
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  padding: 20px;
}

/* =========================
   SERVICE CARD
========================= */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;

  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;

  text-decoration: none !important;

  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);

  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* hover effect */
.service-card:hover {
  transform: translateY(-8px);
  border-color: #166534;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* optional subtle accent instead of thick border-bottom */
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #166534, #22c55e);
  opacity: 0.8;
}

/* =========================
   IMAGE WRAPPER
========================= */
.service-img-wrap {
  display: flex;
  align-items: normal;
  position: relative;
  height: 300px;
  overflow: hidden;
  line-height: 0;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;


  transition: transform 0.4s ease;
}
.service-img-wrap::after{
    content: '';
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,.30),
        rgba(0,0,0,0)
    );
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

/* =========================
   TITLE
========================= */
.service-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: #1d6821;
  /* margin: 14px 16px 10px; */
  margin: 20px 0px;
  line-height: 1.3;
  align-self: center;
}

/* =========================
   BUTTON GROUP
========================= */
.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;

  padding: 0 16px 18px;
}

/* base button */
.service-btn,
.learn-more-btn {
  flex: 1;
  min-width: 120px;

  padding: 10px 14px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 500;

  text-align: center;
  text-decoration: none !important;

  cursor: pointer;
  transition: all 0.2s ease;
}

/* =========================
   PRIMARY BUTTON
========================= */
.service-btn {
  background: #166534;
  color: #ffffff;
  border: 1px solid #166534;
}

.service-btn:hover {
  background: #14532d;
  border-color: #14532d;
}

/* =========================
   SECONDARY BUTTON
========================= */
.learn-more-btn {
  background: transparent;
  color: #166534;
  border: 1px solid #166534;
}

.learn-more-btn:hover {
  background: #166534;
  color: #ffffff;
}

/* =========================
   ELEMENTOR CLEANUP
========================= */
.elementor-shortcode {
  backdrop-filter: blur(10px);
  background: #f8fafc;
}


/* TABLET */

@media (max-width: 1024px){

    .services-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .service-img-wrap{
        height: 260px;
    }

}

/* MOBILE */

@media (max-width: 768px){

    .services-grid{
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 60px 20px;
    }

    .section-heading h2{
        font-size: 32px;
    }

    .service-img-wrap{
        height: 220px;
    }

}

    

