/* ===================================================================
   Dynamic Page Hero — Full-viewport hero with featured image
   Works for any Ghost page that has a featured image set
   =================================================================== */

.page-hero {
  position: relative;
  width: 100%;
  /* min-height: 100vh;
  min-height: 100vh; */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
        135deg,
        rgba(10, 15, 36, 0.82) 0%,
        rgba(20, 30, 60, 0.65) 40%,
        rgba(30, 50, 90, 0.45) 70%,
        rgba(40, 60, 120, 0.35) 100%
    ); */
  z-index: 1;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 55vw;
  padding-left: clamp(2rem, 5vw, 5rem);
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Ghost editor content rendered inside the hero */
.page-hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  color: #fff;
}

.page-hero-body h1,
.page-hero-body h2,
.page-hero-body h3,
.page-hero-body h4 {
  font-family:
    "29LT Bukra",
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.page-hero-body h1 {
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4rem);
  text-transform: uppercase;
}

.page-hero-body h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.page-hero-body h3 {
  font-size: clamp(1.5rem, 2.5vw + 0.4rem, 2.25rem);
}

.page-hero-body h4 {
  font-size: clamp(1.25rem, 2vw + 0.3rem, 1.75rem);
}

.page-hero-body p {
  font-family:
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw + 0.4rem, 1.25rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-hero-body a {
  display: inline-block;
  padding: 0.85rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  color: #fff;
  font-family:
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
  margin-top: 0.5rem;
}

.page-hero-body a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.page-hero-body .kg-card,
.page-hero-body figure {
  margin: 0;
}

.page-hero-body img {
  max-width: 100%;
  border-radius: 8px;
}

.page-hero-body ul,
.page-hero-body ol {
  color: rgba(255, 255, 255, 0.9);
  font-family:
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: clamp(0.95rem, 1.1vw + 0.3rem, 1.125rem);
  line-height: 1.75;
  padding-left: 1.25rem;
  margin: 0;
}

.services-hero {
  display: flex;
  justify-content: flex-start;
  width: 91vw !important;
}
.services-hero div {
  margin-top: -17.5rem !important;
}
.revolutionize {
  font-size: 92px;
  font-family: "Inter", Aeonik, "Segoe UI", sans-serif;
  font-weight: 400;
  text-transform: capitalize !important;
}
.service-head {
  font-size: 46px;
  font-family:
    "29LT Bukra",
    "Inter",
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 200;
}

/* ── Tablet page hero ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-hero-content {
    max-width: 65vw;
    padding-left: clamp(2rem, 4vw, 3rem);
  }

  .page-hero-body h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-hero-body h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
  }

  .page-hero-body p {
    max-width: 420px;
  }
}

/* ── Mobile page hero ── */
@media (max-width: 768px) {
  .page-hero {
    min-height: 70vh;
    min-height: 70dvh;
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .page-hero-content {
    max-width: 100%;
    padding-left: clamp(1.25rem, 5vw, 2rem);
    padding-right: clamp(1.25rem, 5vw, 2rem);
    gap: 1rem;
  }

  .services-hero div {
    /* margin-top: -8rem !important; */
    justify-content: center !important;
    align-items: center !important;
  }
  .page-hero-body h1 {
    font-size: clamp(1.75rem, 8vw, 2.75rem);
    text-align: center;
  }
  .revolutionize {
    font-size: 55px;
  }
  .service-head {
    font-size: 28px;
  }

  .page-hero-body h2 {
    font-size: clamp(1.25rem, 6vw, 1.85rem);
    letter-spacing: 0.1em;
  }

  .page-hero-body p {
    font-size: clamp(0.85rem, 2.5vw + 0.2rem, 1rem);
    max-width: 90%;
  }

  .page-hero-body a {
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 300px) and (max-width: 400px) {
  .revolutionize {
    font-size: 37px;
  }
}

/* ── Content below hero (sections moved out by JS) ── */
.page-below-hero {
  width: 100%;
}

.page-below-hero:empty {
  display: none;
}

/* ── Page content below hero (for pages without featured image) ── */
.page-template .article {
  padding-top: 0;
}

.page-template .article .gh-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
