.mep-modeling-services {
  padding: 60px 40px;
  background-color: #000000; /* Matching overall project dark theme */
  text-align: center;
}

.modeling-container {
  max-width: 1400px;
  margin: 0 auto;
}

.modeling-header {
  margin-bottom: 50px;
}

.modeling-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading, 'Lexend Deca', sans-serif);
  line-height: 1.25;
}

.modeling-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.modeling-card-wrapper {
  position: relative;
  z-index: 1;
}

.modeling-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  height: 100%;
}

.card-img-box {
  width: 100%;
  height: 250px;
  background-color: #e0e0e0;
  overflow: hidden;
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  background-color: #e8f5e9; /* Very light green background like in image */
  padding: 20px;
  text-align: left;
}

.card-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  font-family: var(--font-heading, 'Lexend Deca', sans-serif);
}

.title-underline {
  width: 40px;
  height: 3px;
  background-color: var(--color-primary, #54b248);
  border-radius: 2px;
}

/* Stacked depth effect from image */
.card-shadow-bg {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  height: 100%;
  background-color: #43a047; /* Darker green background layer */
  border-radius: 12px;
  z-index: 0;
}

/* Hover effect */
.modeling-card-wrapper:hover .modeling-card {
  transform: translate(-3px, -3px);
  transition: transform 0.3s ease;
}

.modeling-card-wrapper:hover .card-shadow-bg {
  transform: translate(3px, 3px);
  transition: transform 0.3s ease;
}

@media (max-width: 1100px) {
  .modeling-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .mep-modeling-services {
    padding: 60px 20px;
  }

  .modeling-title {
    font-size: 32px;
  }

  .modeling-header {
    margin-bottom: 40px;
  }

  .modeling-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .card-img-box {
    height: 200px;
  }

  .card-content h3 {
    font-size: 20px;
  }

  .card-shadow-bg {
    top: 8px;
    left: 8px;
  }
}

@media (max-width: 480px) {
  .modeling-title {
    font-size: 26px;
    line-height: 1.3;
  }

  .card-img-box {
    height: 180px;
  }

  .mep-modeling-services {
    padding: 40px 15px;
  }
}
