/* ==========================================================================
   Shared Service Detail — Hero, Icon, CTA Pill
   Scoped under #service-category-detail so it applies to both
   .short-form-page and .long-form-page.
   ========================================================================== */

#service-category-detail {
  --sd-blue: #1D4288;
  --sd-green: #3EB049;
  --sd-body: #444;
  --sd-transition: 0.25s ease;
  overflow-x: hidden;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */

/* Break hero out of .container to stretch full viewport width */
#service-category-detail .header-carousel {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

#service-category-detail .angle {
  display: none;
}

#service-category-detail .header-title {
  background: transparent !important;
  width: auto;
  padding: 0;
}

#service-category-detail .header-title.points-blue-background {
  background: transparent !important;
}

#service-category-detail .header-carousel .header-article {
  background: #1D4288 !important;
  background-size: cover !important;
  background-position: center !important;
  min-height: unset;
  height: unset;
  padding: 48px 5% 52px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #1D4288, #3EB049) 1;
  position: relative;
  overflow: hidden;
}

#service-category-detail .header-carousel .header-article .header-article__background {
  background-image: none !important;
}

/* Ensure all hero content sits above decorative orbs */
#service-category-detail .header-title,
#service-category-detail .header-article__paragraph {
  position: relative;
  z-index: 1;
}

#service-category-detail .header-title h1 {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.2;
}

#service-category-detail .header-title h1 small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* Description parent — override flex-row so icon doesn't squeeze text */
#service-category-detail .header-article__paragraph > section {
  display: block !important;
}

#service-category-detail .desc-banner-service,
#service-category-detail .desc-banner-service p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  margin-top: 12px !important;
  max-width: none;
}

/* Hero icon — blue-to-green gradient circle with white ring */
#service-category-detail .hero-service-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sd-blue), var(--sd-green));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 8px 28px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  z-index: 1;
}

#service-category-detail .hero-service-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Hide legacy stock image */
#service-category-detail img.service-category-image {
  display: none !important;
}

/* ==========================================================================
   2. SHARED CTA BAR + STOCK IMAGE
   ========================================================================== */

#service-category-detail .hero-cta-bar {
  position: relative;
  z-index: 10;
  margin-top: -22px;
  text-align: center;
}

#service-category-detail .hero-stock-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 12px;
}

#service-category-detail .hero-stock-image img {
  max-width: 180px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   3. HEADER BANNER / CTA PILL
   ========================================================================== */

#service-category-detail .header-banner {
  position: relative;
  top: 0;
  max-height: none;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  padding: 0;
}

#service-category-detail .header-banner.mb-5 {
  margin-bottom: 0 !important;
}

#service-category-detail .header-banner .header-banner__container {
  margin: 0;
  max-width: 100%;
  border: none;
  box-shadow: none;
  justify-content: center;
}

#service-category-detail .header-banner__left-section {
  display: none !important;
}

#service-category-detail .header-banner__right-section {
  background-color: transparent;
  max-width: none;
  width: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1;
  text-transform: none;
  overflow: visible;
}

#service-category-detail .header-banner__right-section a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--sd-blue) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  background: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background var(--sd-transition), box-shadow var(--sd-transition), transform var(--sd-transition);
  cursor: pointer;
  white-space: nowrap;
}

#service-category-detail .header-banner__right-section a:hover {
  background: #f0f4fb;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

#service-category-detail .header-banner__right-section img {
  display: none;
}

/* ==========================================================================
   4. RESPONSIVE — Hero, Icon, CTA
   ========================================================================== */

@media (max-width: 1200px) {
  #service-category-detail .header-carousel .header-article {
    padding: 40px 4% 44px;
  }
}

@media (max-width: 767px) {
  #service-category-detail .header-carousel .header-article {
    padding: 32px 16px 36px;
  }

  #service-category-detail .header-title h1 {
    font-size: 1.75rem;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  #service-category-detail .desc-banner-service p {
    margin-left: 0 !important;
  }

  #service-category-detail .desc-banner-service {
    font-size: 1rem;
  }

  #service-category-detail .hero-service-icon {
    width: 72px;
    height: 72px;
  }

  #service-category-detail .hero-service-icon img {
    width: 40px;
    height: 40px;
  }

  #service-category-detail .header-banner__right-section a {
    padding: 11px 26px;
    font-size: 0.875rem;
  }

  #service-category-detail .hero-stock-image {
    height: 100px;
    margin-bottom: 8px;
  }

  #service-category-detail .hero-stock-image img {
    max-width: 150px;
    max-height: 90px;
  }
}

@media (max-width: 575px) {
  #service-category-detail .header-carousel .header-article {
    padding: 26px 16px 30px;
  }

  #service-category-detail .header-title h1 {
    font-size: 1.5rem;
    padding: 0 !important;
  }

  #service-category-detail .desc-banner-service {
    font-size: 1rem;
  }

  #service-category-detail .hero-service-icon {
    width: 56px;
    height: 56px;
  }

  #service-category-detail .hero-service-icon img {
    width: 30px;
    height: 30px;
  }

  #service-category-detail .header-banner__right-section a {
    padding: 10px 22px;
    font-size: 0.825rem;
  }

  #service-category-detail .hero-stock-image {
    height: 80px;
    margin-bottom: 4px;
  }

  #service-category-detail .hero-stock-image img {
    max-width: 120px;
    max-height: 70px;
  }
}
