﻿.service-hero {
  position: relative;
  overflow: hidden;
}

.service-hero::after {
  content: "";
  position: absolute;
  inset: auto -14% -40% auto;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(58, 67, 136, 0.14) 0%, rgba(58, 67, 136, 0) 70%);
  pointer-events: none;
}

.service-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c5cdee;
  border-radius: 999px;
  background: #ffffff;
  color: #30387a;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.45rem 0.86rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.service-chip:hover {
  transform: translateY(-1px);
  border-color: #9facdf;
  box-shadow: 0 12px 22px -19px rgba(58, 67, 136, 0.88);
  background: #f7f8ff;
}

.service-lead {
  margin: 0;
  color: #4d578c;
  font-size: 1.04rem;
  line-height: 1.72;
}

.service-detail-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

.service-detail-card {
  border: 1px solid #d6dcf4;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
  box-shadow: 0 18px 34px -30px rgba(58, 67, 136, 0.86);
}

.service-detail-media {
  height: 16rem;
  border-bottom: 1px solid #d6dcf4;
  overflow: hidden;
}

.service-detail-content {
  padding: 1.1rem 1.15rem 1.2rem;
}

.service-badge {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c68a5;
  font-weight: 800;
}

.service-detail-content h3 {
  margin: 0.34rem 0 0;
  font-size: clamp(1.35rem, 4.5vw, 1.95rem);
  line-height: 1.1;
  color: #1f285f;
}

.service-detail-content p {
  margin: 0.75rem 0 0;
  color: #4b578f;
  line-height: 1.72;
  font-size: 1rem;
}

.service-detail-note {
  margin-top: 0.82rem;
  padding-top: 0.68rem;
  border-top: 1px solid #d6dcf4;
  color: #6070ad;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 67, 136, 0.4), transparent);
  margin: 0;
  border: 0;
}

@media (max-width: 639px) {
  .service-hero::after {
    width: 16rem;
    height: 16rem;
    inset: auto -26% -35% auto;
  }

  .service-lead {
    font-size: 0.97rem;
    line-height: 1.62;
  }

  .service-chip-wrap {
    gap: 0.45rem;
  }

  .service-chip {
    width: calc(50% - 0.26rem);
    padding: 0.5rem 0.55rem;
    font-size: 0.78rem;
  }

  .service-detail-media {
    height: 12.2rem;
  }

  .service-detail-content {
    padding: 0.92rem 0.9rem 1rem;
  }

  .service-detail-content p {
    font-size: 0.94rem;
    line-height: 1.62;
  }
}

@media (min-width: 768px) {
  .service-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .service-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
  }
}
