:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #1a1a1a;
  --gap: clamp(18px, 2.2vw, 28px);
  --radius: 10px;
  --maxw: 1200px;

  /* Animation */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.ServiceTitleSec {
  margin-top: 60px;
  position: relative;
  z-index: 9999;
}

.cardContainer {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.cardsServiceSection {
  padding-left: 60px;
  padding-right: 60px;
}

.projectCardCap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Cards */
.servicespage-home {
  padding: 10px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.servicespage-home:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.servicespage-home figure {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 350px !important;
  display: flex;
  align-items: flex-end;
  color: #fff;
  transition: transform 0.3s;
  background-size: cover;
  background-position: center;
}

.servicespage-home:hover figure {
  transform: scale(1.05);
}

.servicespage-home figcaption {
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  width: 100%;
  height: 170px;
}

.servicespage-home h4.title {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.servicespage-home .content {
  font-size: 0.7rem;
  margin-bottom: 15px;
  height: 60px;
}

.servicespage-home .btn-link {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.servicespage-home .btn-link img {
  margin-left: 5px;
  width: 16px;
  height: 16px;
}

.service-header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* .cardSubContainer {
  min-width: 300px;
  min-height: 300px;
} */

@media (min-width: 1800px) {
  .cardContainer {
    max-width: unset !important;
    margin: unset !important;
    padding-left: 45px !important;
    padding-right: 45px !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: var(--gap);
  }
}

/* You asked: 2 products per row (responsive) */
@media (max-width: 1050px) {
  .cardContainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cardsServiceSection {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 600px) {
  .cardsServiceSection {
    padding-left: 20px;
    padding-right: 20px;
  }
  .servicespage-home {
    padding: 0px;
    transition:
      transform 0.3s,
      box-shadow 0.3s;
  }
  .cardContainer {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
