/**
 * Service Cards Widget Styles
 *
 * @package Hello_Elementor_Child
 */

/* Grid Container */
.service-cards-grid {
  display: grid;
  width: 100%;
}

/* Individual Card */
.service-card {
  display: block;
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: #14167e;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Icon Container */
.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: linear-gradient(to bottom right, #14167e, #040533);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-icon {
  transform: scale(1.1);
}

.service-card-icon i,
.service-card-icon svg {
  color: #ffffff;
  fill: currentColor;
}

/* Title */
.service-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #040533;
  margin: 0 0 8px 0;
  transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
  color: #14167e;
}

/* Description */
.service-card-description {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 16px 0;
}

/* Link Text with Arrow */
.service-card-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #14167e;
  transition: gap 0.3s ease;
}

.service-card:hover .service-card-link {
  gap: 8px;
}

.service-card-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.service-card:hover .service-card-arrow {
  transform: translateX(4px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .service-card-title {
    font-size: 18px;
  }

  .service-card-description {
    font-size: 13px;
  }

  .service-card-icon {
    width: 48px;
    height: 48px;
  }
}

/* Animation on Load */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-card:nth-child(5) {
  animation-delay: 0.5s;
}

.service-card:nth-child(6) {
  animation-delay: 0.6s;
}

.service-card:nth-child(7) {
  animation-delay: 0.7s;
}

.service-card:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Editor Mode - Disable Animations */
.elementor-editor-active .service-card {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
