/* Compact Services Grid Styles */

@media screen and (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
  }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

@media screen and (max-width: 479px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

/* Service Card Compact Styles */
.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: #fcfcfc;
}

.service-card:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.service-card:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

.service-image {
  height: 180px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--secondary);
  position: relative;
  padding-bottom: 10px;
}

.service-content h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.service-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  flex-grow: 1;
}
