.blog-page {
  overflow-x: hidden;
}

.blog-reference-hero {
  --blog-hero-gold: #fabb3f;
  --blog-hero-dark: #164b4d;
  --blog-hero-mid: #2f777a;
  --blog-hero-light: #4b9ea4;
  --blog-hero-line: rgba(13, 68, 70, 0.62);
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: clamp(700px, calc(100svh - 82px), 980px);
  padding-block: 0 !important;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 5% 96%, rgba(108, 196, 203, 0.34), transparent 34%),
    linear-gradient(90deg, var(--blog-hero-light) 0%, var(--blog-hero-mid) 43%, var(--blog-hero-dark) 100%) !important;
}

.blog-reference-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.82;
  background-image:
    radial-gradient(circle 350px at 7% 27%, transparent 99%, var(--blog-hero-line) 99.3%, transparent 100%),
    radial-gradient(circle 370px at 29% 82%, transparent 99%, var(--blog-hero-line) 99.3%, transparent 100%),
    radial-gradient(circle 330px at 74% 42%, transparent 99%, var(--blog-hero-line) 99.3%, transparent 100%),
    radial-gradient(circle 420px at 92% 102%, transparent 99%, var(--blog-hero-line) 99.3%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0 254px, var(--blog-hero-line) 255px 258px),
    repeating-linear-gradient(90deg, transparent 0 238px, var(--blog-hero-line) 239px 242px);
}

.blog-reference-hero::after {
  display: none;
}

.blog-reference-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.59fr) minmax(390px, 0.41fr) !important;
  align-items: center !important;
  gap: clamp(30px, 5vw, 86px) !important;
  min-height: inherit;
  direction: ltr;
}

.blog-reference-hero .page-hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  width: min(100%, 780px);
  margin: 0;
  padding: clamp(40px, 4vw, 72px) clamp(18px, 3.5vw, 62px);
  align-content: center;
  justify-items: center;
  direction: rtl;
  text-align: center !important;
}

.blog-reference-hero .page-hero-copy::after {
  display: none;
}

.blog-reference-hero .eyebrow {
  display: inline-flex;
  width: auto;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0.55rem 1.35rem;
  color: #fff !important;
  background: var(--blog-hero-gold) !important;
  border: 0 !important;
  border-radius: 999px;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

.blog-reference-hero .page-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--blog-hero-gold) !important;
  font-size: clamp(3rem, 4.55vw, 5rem) !important;
  font-weight: 800;
  line-height: 1.2 !important;
  text-shadow: none;
}

.blog-reference-hero .page-hero-copy p {
  max-width: 720px;
  margin: clamp(1.6rem, 3vw, 2.7rem) auto 0;
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  font-weight: 500;
  line-height: 1.9;
  text-align: center !important;
  text-shadow: 0 3px 18px rgba(4, 49, 51, 0.2);
}

.blog-reference-hero .hero-related-actions {
  justify-content: center;
  margin-top: clamp(1.8rem, 3vw, 3rem);
}

.blog-reference-hero .hero-related-link {
  min-width: 150px;
  min-height: 54px;
  color: #164b4d !important;
  background: var(--blog-hero-gold) !important;
  border-color: var(--blog-hero-gold) !important;
  box-shadow: 0 14px 28px rgba(4, 49, 51, 0.18);
}

.blog-reference-hero .hero-related-link:hover {
  color: #164b4d !important;
  background: #ffd16d !important;
  border-color: #ffd16d !important;
}

.blog-reference-hero__mark.page-hero-media {
  position: relative;
  z-index: 2;
  grid-column: 2;
  display: block;
  width: min(100%, 475px);
  height: auto;
  aspect-ratio: 0.62;
  min-height: 0 !important;
  justify-self: end;
  overflow: visible;
  direction: ltr;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.blog-reference-hero__mark.page-hero-media::after {
  display: none;
}

.blog-reference-hero__piece {
  position: absolute;
  display: block;
  background: var(--blog-hero-gold);
}

.blog-reference-hero__piece--wide-one {
  top: 0;
  left: 0;
  width: 65.5%;
  height: 19.7%;
  border-top-right-radius: 100% 100%;
}

.blog-reference-hero__piece--narrow-one {
  top: 0;
  right: 0;
  width: 31.6%;
  height: 28.2%;
  border-bottom-left-radius: 100% 70%;
}

.blog-reference-hero__piece--narrow-two {
  top: 21.3%;
  left: 0;
  width: 31.7%;
  height: 27.9%;
  border-top-right-radius: 100% 70%;
}

.blog-reference-hero__piece--wide-two {
  top: 29.6%;
  right: 0;
  width: 65.6%;
  height: 19.6%;
  border-bottom-left-radius: 100% 100%;
}

.blog-reference-hero__piece--wide-three {
  top: 50.9%;
  left: 0;
  width: 65.5%;
  height: 19.7%;
  border-top-right-radius: 100% 100%;
}

.blog-reference-hero__piece--narrow-three {
  top: 50.9%;
  right: 0;
  width: 31.6%;
  height: 27.7%;
  border-bottom-left-radius: 100% 70%;
}

.blog-reference-hero__piece--narrow-four {
  top: 72.2%;
  left: 0;
  width: 31.7%;
  height: 27.8%;
  border-top-right-radius: 100% 70%;
}

.blog-reference-hero__piece--wide-four {
  top: 80.3%;
  right: 0;
  width: 65.6%;
  height: 19.7%;
  border-bottom-left-radius: 100% 100%;
}

[data-theme="dark"] .blog-reference-hero {
  background:
    radial-gradient(circle at 5% 96%, rgba(108, 196, 203, 0.22), transparent 34%),
    linear-gradient(90deg, #347f83 0%, #225f61 43%, #0f383a 100%) !important;
}

@media (max-width: 980px) {
  .blog-reference-hero {
    min-height: auto;
  }

  .blog-reference-hero__grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-block: 32px 54px;
  }

  .blog-reference-hero .page-hero-copy {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 760px);
    justify-self: center;
    padding: 42px 16px 36px;
  }

  .blog-reference-hero__mark.page-hero-media {
    grid-column: 1;
    grid-row: 2;
    width: min(68vw, 390px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .blog-reference-hero::before {
    background-image:
      radial-gradient(circle 220px at 8% 20%, transparent 99%, var(--blog-hero-line) 99.3%, transparent 100%),
      radial-gradient(circle 250px at 83% 73%, transparent 99%, var(--blog-hero-line) 99.3%, transparent 100%),
      repeating-linear-gradient(0deg, transparent 0 176px, var(--blog-hero-line) 177px 179px),
      repeating-linear-gradient(90deg, transparent 0 164px, var(--blog-hero-line) 165px 167px);
  }

  .blog-reference-hero .page-hero-copy {
    padding: 36px 12px 30px;
  }

  .blog-reference-hero .eyebrow {
    min-height: 44px;
    padding: 0.45rem 1.05rem;
    font-size: 0.95rem;
  }

  .blog-reference-hero .page-hero-copy h1 {
    font-size: clamp(2.45rem, 12vw, 3.65rem) !important;
  }

  .blog-reference-hero .page-hero-copy p {
    margin-top: 1.35rem;
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .blog-reference-hero .hero-related-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .blog-reference-hero .hero-related-link {
    width: 100%;
    min-width: 0;
  }

  .blog-reference-hero__mark.page-hero-media {
    width: min(74vw, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-reference-hero .hero-related-link {
    transition: none;
  }
}
