/* =========================================================
   service.php only: page banner + services grid
   Scoped so homepage slider CSS cannot leak here.
   ========================================================= */

.homebanner.bst-page-hero {
  position: relative !important;
  display: block !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 380px !important;
  min-height: 320px !important;
  overflow: hidden !important;
  background: #003366;
  font-family: var(--bst-font);
}

.homebanner.bst-page-hero .bst-page-hero-inner {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.homebanner.bst-page-hero img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.homebanner.bst-page-hero .bst-page-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 51, 102, 0.88) 0%, rgba(27, 57, 147, 0.55) 42%, rgba(0, 51, 102, 0.12) 100%);
}

.homebanner.bst-page-hero .bst-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--bst-gold-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.homebanner.bst-page-hero .bst-hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bst-gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.22);
}

.homebanner.bst-page-hero .bst-page-hero-copy .container {
  position: relative;
  z-index: 1;
  padding-left: 15px;
  padding-right: 15px;
}

.homebanner.bst-page-hero .bst-page-hero-copy h1 {
  color: #fff !important;
  font-size: clamp(32px, 4vw, 52px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.15 !important;
  margin: 12px 0 12px !important;
  text-align: left !important;
}

.homebanner.bst-page-hero .bst-page-hero-copy h1 em {
  font-style: normal;
  color: var(--bst-gold-2);
}

.homebanner.bst-page-hero .bst-page-hero-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  max-width: 520px;
  margin: 0 0 18px;
  line-height: 1.6;
}

.contentarea.bst-service-page {
  background:
    radial-gradient(800px 240px at 0% 0%, rgba(64, 97, 193, 0.08), transparent 55%),
    #f4f7fd;
  padding: 56px 0 88px;
  font-family: var(--bst-font);
}

.contentarea.bst-service-page .container.servicespage {
  max-width: 1140px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  float: none;
}

.contentarea.bst-service-page .bst-services-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.contentarea.bst-service-page .bst-services-head .bst-hero-kicker {
  margin-bottom: 14px;
  background: rgba(64, 97, 193, 0.1);
  border-color: rgba(64, 97, 193, 0.16);
  color: #4061c1;
}

.contentarea.bst-service-page .bst-services-head h1,
.contentarea.bst-service-page h1.text-center {
  color: #003366 !important;
  font-size: clamp(26px, 3vw, 38px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 0 10px !important;
}

.contentarea.bst-service-page .bst-services-head h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--bst-blue), var(--bst-gold));
}

.contentarea.bst-service-page .bst-services-head p {
  color: var(--bst-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 12px 0 0;
}

.contentarea.bst-service-page .servicespage.bst-services > .row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}

.contentarea.bst-service-page .servicespage.bst-services > .row > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

.contentarea.bst-service-page .sercbox,
.contentarea.bst-service-page .sercbox:hover {
  background: #0b1f4a;
  border-radius: 18px;
  overflow: hidden;
  border: 0 !important;
  box-shadow: none !important;
  height: 240px !important;
  min-height: 240px !important;
  margin: 0 !important;
}

.contentarea.bst-service-page .sercbox {
  transition: transform 0.22s ease;
}

.contentarea.bst-service-page .sercbox:hover {
  transform: translateY(-4px);
}

.contentarea.bst-service-page .sercbox a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  height: 100% !important;
}

.contentarea.bst-service-page .sercbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #12305f;
  border-bottom: 0;
}

.contentarea.bst-service-page .sercbox h2 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 42px 16px 14px !important;
  margin: 0 !important;
  text-align: left !important;
  display: block !important;
  flex-direction: unset;
  justify-content: unset !important;
  align-items: unset !important;
  line-height: 1.3;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 51, 102, 0.94) 72%);
}

.contentarea.bst-service-page .sercbox h2::after {
  content: "View service \00a0\2192";
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--bst-gold-2);
}

@media (max-width: 991px) {
  .homebanner.bst-page-hero {
    height: 320px !important;
    min-height: 300px !important;
  }

  .homebanner.bst-page-hero .bst-page-hero-copy {
    padding-top: 32px;
    padding-bottom: 32px;
    box-sizing: border-box;
  }

  .homebanner.bst-page-hero .bst-page-hero-copy .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .homebanner.bst-page-hero .bst-page-hero-copy h1 {
    font-size: 32px !important;
  }

  .homebanner.bst-page-hero .bst-page-hero-copy p {
    font-size: 14.5px;
    margin-bottom: 14px;
  }

  .contentarea.bst-service-page {
    padding: 36px 0 72px;
  }

  .contentarea.bst-service-page .servicespage.bst-services > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .contentarea.bst-service-page .sercbox,
  .contentarea.bst-service-page .sercbox:hover {
    height: 220px !important;
    min-height: 220px !important;
  }
}

@media (max-width: 575px) {
  .homebanner.bst-page-hero {
    height: 300px !important;
    min-height: 280px !important;
  }

  .homebanner.bst-page-hero .bst-page-hero-copy {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .homebanner.bst-page-hero .bst-page-hero-copy h1 {
    font-size: 28px !important;
  }

  .contentarea.bst-service-page .servicespage.bst-services > .row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contentarea.bst-service-page .sercbox h2 {
    font-size: 15px !important;
    padding: 36px 14px 12px !important;
  }
}
