{{-- Bridge marketing chrome with classic Bootstrap page content --}}
body.has-marketing-chrome {
  font-family: "Cairo", system-ui, sans-serif !important;
}

body.has-marketing-chrome main#main.marketing-main {
  padding-top: 7.5rem;
  overflow: visible;
  min-height: 40vh;
}

@media (width >= 768px) {
  body.has-marketing-chrome main#main.marketing-main {
    padding-top: 8.5rem;
  }
}

/* Auth pages (login / forgot / reset): the header offset already comes from
   .marketing-main padding-top, so only the footer gap is added here. */
body.has-marketing-chrome main#main .auth-page {
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

/* Keep Bootstrap grid containers inside page content */
body.has-marketing-chrome main#main .container {
  width: 100%;
  max-width: 1140px;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 1199.98px) {
  body.has-marketing-chrome main#main .container {
    max-width: 960px;
  }
}

@media (max-width: 991.98px) {
  body.has-marketing-chrome main#main .container {
    max-width: 720px;
  }
}

@media (max-width: 767.98px) {
  body.has-marketing-chrome main#main .container {
    max-width: 540px;
  }
}

@media (max-width: 575.98px) {
  body.has-marketing-chrome main#main .container {
    max-width: 100%;
  }
}

/* Header/footer keep marketing container sizing */
body.has-marketing-chrome .header .container,
body.has-marketing-chrome .footer .container {
  width: min(100% - 2rem, var(--container-max, 1200px));
  max-width: var(--container-max, 1200px);
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Hide legacy floats when marketing social strip is present */
body.has-marketing-chrome .whatsapp_float {
  display: none !important;
}

/* CMS topic heroes stay on homepage only */
body.has-marketing-chrome main .bg-home,
body.has-marketing-chrome main section.pro,
body.has-marketing-chrome main .page-cover,
body.has-marketing-chrome .preloadernew {
  display: none !important;
}

/* Compact subpage intro — gradient extends behind floating menu */
.subpage-intro {
  position: relative;
  margin-top: -7.5rem;
  padding: calc(7.5rem + 0.75rem) 0 2.75rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

@media (width >= 768px) {
  .subpage-intro {
    margin-top: -8.5rem;
    padding-top: calc(8.5rem + 1rem);
    padding-bottom: 3.25rem;
  }
}

.subpage-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 38%,
      color-mix(in srgb, var(--color-white, #fff) 70%, transparent) 62%,
      var(--color-white, #fff) 100%
    ),
    radial-gradient(
      ellipse 55% 80% at 12% 8%,
      color-mix(in srgb, var(--color-white, #fff) 22%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 45% 70% at 90% 18%,
      var(--color-accent-light, #2d93f333) 0%,
      transparent 52%
    ),
    var(--header-gradient, linear-gradient(125deg, #0f3d66, #155089 40%, #2d93f3));
  pointer-events: none;
}

.subpage-intro .container {
  position: relative;
  z-index: 1;
}

.subpage-intro__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  /* color: var(--color-gray-500, #868e96); */
  color: #fff;
}

.subpage-intro__breadcrumb a {
  /* color: var(--color-primary, #155089); */
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.subpage-intro__breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-intro__title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--color-dark, #343a40);
}

.subpage-intro__lead {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  color: var(--color-light, #495057);
  font-size: 1.05rem;
  line-height: 1.7;
}

.topic-cms-content {
  padding-bottom: 3rem;
}

/* Soften leftover CMS spacing after hero removal */
body.has-marketing-chrome .topic-cms-content > section:first-child {
  padding-top: 1.5rem !important;
  margin-top: 0 !important;
}
