/* Service Highlights Section - Centered Cards with Background Image */
.core-services--service-highlights {
  position: relative;
  padding: 4rem 0;
  min-height: 500px;
  margin-top: calc(var(--header-offset, 190px) + var(--header-wave-height, 40px)) !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove white backgrounds from parent containers */
.service-page-template .main-content-gradient {
  background-color: transparent !important;
}

.service-page-template .unified-gradient-wrapper {
  background-color: transparent !important;
}


/* Override any section background rules from globals.css */
.service-page-template section,
.service-page-template .core-services,
.core-services--service-highlights {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.core-services--service-highlights__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(0px);
  z-index: 1;
  pointer-events: none;
}

.core-services--service-highlights .container {
  position: relative;
  z-index: 2;
}

/* Header styles for title, eyebrow, and subtitle */
.core-services--service-highlights__header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.core-services--service-highlights__eyebrow {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #374151; /* Muted dark gray instead of bright blue */
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.core-services--service-highlights__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.core-services--service-highlights__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: #1e293b;
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Make cards semi-transparent and darken the backdrop so white text stands out */
.core-services--service-highlights .core-service-card {
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.35) !important;
}

.core-services--service-highlights .core-service-card__content {
  background: transparent !important;
}

.core-services--service-highlights .core-service-card__header {
  background: rgba(15, 23, 42, 0.58) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35) !important;
}

/* Ensure text in cards is crisp and bright */
.core-services--service-highlights .core-service-card,
.core-services--service-highlights .core-service-card * {
  color: #f8fafc !important;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.55);
}

.core-services--service-highlights .core-service-card__service-item {
  color: #e2e8f0 !important;
}

/* Center 2 cards */
.core-services__grid--centered {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  justify-items: center;
}

.core-services__grid--centered .core-services__item {
  max-width: 450px;
  width: 100%;
}

/* Tablet: keep 2 columns but ensure centering */
@media (max-width: 1024px) {
  .core-services__grid--centered {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 900px !important;
  }
  
  .core-services__grid--centered .core-services__item {
    max-width: 100%;
  }
}

/* Mobile: single column */
@media (max-width: 640px) {
  .core-services__grid--centered {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  
  .core-services__grid--centered .core-services__item {
    max-width: 100%;
  }
}

