.networks-directory-hero {
  position: relative;
  isolation: isolate;
  min-height: 350px;
  padding-block: 40px;
  display: flex;
  align-items: center;
  border-radius: 0;
  border-bottom: 1px solid #cbd4df;
  background: #d8dee3;
}

.networks-directory-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(100%, 1050px);
  background: url('/assets/brand/casino-operator-network-20260923.png') right center / auto 100% no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 25%);
}

.networks-directory-hero .hero-inner {
  justify-items: start;
  text-align: left;
  gap: 18px;
}

.networks-directory-hero .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #465671;
}

.networks-directory-hero .meta::before {
  content: '';
  width: 28px;
  height: 3px;
  flex: 0 0 28px;
  background: #1c48cc;
}

.networks-directory-hero h1 {
  max-width: 62%;
  margin: 0;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.networks-directory-hero .networks-hero-description {
  max-width: 55%;
  margin: 0;
  color: #354760;
  font-size: 18px;
  line-height: 1.55;
}

.networks-directory-hero .hero-actions {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 4px;
}

#network-cards-title {
  scroll-margin-top: 100px;
}

.networks-directory-hero ~ .section:not(.author-section) {
  padding-block: 32px;
}

.networks-directory-hero + .section:not(.author-section) {
  padding-top: 24px;
}

.networks-directory-hero ~ .section .rg-signoff {
  margin-top: 32px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .networks-directory-hero::before {
    background-size: auto 270px;
    mask-image: linear-gradient(to right, transparent, #000 35%), linear-gradient(to bottom, transparent calc(50% - 135px), #000 calc(50% - 100px), #000 calc(50% + 100px), transparent calc(50% + 135px));
    mask-composite: intersect;
  }

  .networks-directory-hero h1 {
    max-width: 57%;
    font-size: 38px;
  }
}

@media (max-width: 760px) {
  .networks-directory-hero ~ .section:not(.author-section) {
    padding-block: 24px;
  }

  .networks-directory-hero ~ .section .rg-signoff {
    margin-top: 24px;
  }

  .networks-directory-hero {
    min-height: 320px;
    padding-block: 32px;
    background: #f3f5f8;
  }

  .networks-directory-hero::before {
    opacity: 0.12;
  }

  .networks-directory-hero h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.18;
  }

  .networks-directory-hero .networks-hero-description {
    max-width: 520px;
    font-size: 17px;
  }

  .networks-directory-hero .btn {
    padding-inline: 16px;
  }
}
