.headcore-services-custom {
  width: 100%;
  max-width: var(--container-max, 1400px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding, clamp(1.5rem, 4vw, 3rem));
  padding-right: var(--container-padding, clamp(1.5rem, 4vw, 3rem));
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.headcore-services-custom__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
}

.headcore-services-custom__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-base, 8px);
  padding: 2rem;
  height: 100%;
  min-height: 240px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.headcore-services-custom__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.headcore-services-custom__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: #080808;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.headcore-services-custom__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.headcore-services-custom__icon span {
  display: block;
  width: 100%;
  height: 100%;
}

.headcore-services-custom__title {
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: #080808;
  margin: 0 0 0.75rem 0;
  text-align: left;
}

.headcore-services-custom__description {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: #444;
  margin: 0;
  text-align: left;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .headcore-services-custom__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .headcore-services-custom {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .headcore-services-custom__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .headcore-services-custom__card {
    min-height: 200px;
    padding: 1.5rem;
  }
}

