/* Page Services — Safecheck RDC */

.services-page-hero {
  position: relative;
  background: #1a2b4b;
  overflow: hidden;
  padding: 2.75rem 0;
  min-height: 120px;
  display: flex;
  align-items: center;
}

.services-hero-shape {
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  background: var(--green-primary);
  border-radius: 50%;
  pointer-events: none;
}

.services-page-title {
  position: relative;
  z-index: 2;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: rgb(255, 255, 255);
  margin: 0;
  line-height: 1.2;
}

.services-page-content {
  background: var(--white);
}

.service-image-link {
  display: block;
  border-radius: inherit;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-image-link:hover {
  opacity: 0.92;
}

.service-image-link:hover .service-detail-image {
  transform: scale(1.02);
}

.service-image-link:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 4px;
  border-radius: 8px;
}

.service-detail-image-wrap .service-detail-image {
  transition: transform 0.25s ease;
}

.service-detail-block {
  padding: 4rem 0;
}

.service-detail-block--alt {
  background: #fafafa;
}

.service-detail-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 540px;
}

.service-detail-image {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.service-detail-accent {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 56px;
  height: 56px;
  background: var(--green-primary);
  border-radius: 4px;
  z-index: 2;
}

.service-detail-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.service-detail-text {
  margin-bottom: 1.75rem;
  max-width: 520px;
  text-align: justify;
}

.btn-service-more {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: rgb(255, 255, 255) !important;
  background: var(--green-primary);
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  transition: background 0.2s ease;
}

.btn-service-more:hover {
  background: var(--green-dark);
  color: rgb(255, 255, 255) !important;
}

@media (max-width: 991.98px) {
  .services-hero-shape {
    width: 200px;
    height: 200px;
    right: -50px;
    top: -60px;
  }
}

@media (max-width: 767.98px) {
  .service-detail-block {
    padding: 2.5rem 0;
  }

  .service-detail-block .row {
    row-gap: 1.5rem;
  }

  .service-detail-text {
    text-align: left;
    margin-bottom: 1.25rem;
  }

  .btn-service-more {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
  }

  .services-page-hero {
    padding: 2rem 0;
  }

  .service-detail-accent {
    width: 44px;
    height: 44px;
    right: -8px;
    bottom: -8px;
  }

  .service-detail-image-wrap {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .services-hero-shape {
    width: 140px;
    height: 140px;
  }

  .service-detail-block {
    padding: 2rem 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .services-page-hero {
    padding: 2.35rem 0;
  }

  .service-detail-block {
    padding: 3rem 0;
  }

  .service-detail-block .row > .col-lg-6 {
    flex: 0 0 50%;
    width: 50%;
  }

  .service-detail-image-wrap {
    max-width: 100%;
  }

  .btn-service-more {
    display: inline-flex;
    width: auto;
    min-height: 46px;
    align-items: center;
  }
}
