/* Section */
.service-page-cards-section {
  padding: 60px 16px;
  max-width: 1400px;
  margin: auto;
}

/* Grid */
.service-page-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.service-page-cards-item {
  position: relative;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

.service-page-cards-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Default dark overlay */
.service-page-cards-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Hover gradient overlay */
.service-page-cards-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--accent) 0%, rgba(250, 204, 21, 0.7) 40%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.6s ease;
  z-index: 2;
}

.service-page-cards-item:hover .service-page-cards-hover-overlay {
  transform: translateY(0);
}

/* Icon */
.service-page-cards-icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 3;
}

.service-page-cards-icon span {
    padding: 7px;
  position: relative;
  font-size: 26px;
  color: #ffffff;
  z-index: 2;
}

/* Icon background spread animation */
.service-page-cards-icon-bg {
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.5s ease;
  z-index: 1;
}

.service-page-cards-item:hover .service-page-cards-icon-bg {
  transform: scale(1);
}

.service-page-cards-item:hover .service-page-cards-icon span {
  color: #000;
}

/* Content */
.service-page-cards-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  color: #ffffff;
  transition: color 0.4s ease;
}

.service-page-cards-item:hover .service-page-cards-content {
  color: #000000;
}

.service-page-cards-number {
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.service-page-cards-content h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .service-page-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .service-page-cards-grid {
    grid-template-columns: 1fr;
  }

  .service-page-cards-item {
    height: 300px;
  }
}
