.etp-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.etp-header.etp-header-variant-split {
  flex-direction: row;
  margin-top: var(--space-l);
}

.etp-header .etp-header-right {
  width: calc(50% - 1rem);
  padding-left: var(--spacing-s);
}

.etp-header .etp-header-small-link,
.etp-header .etp-header-content .etp-header-content-labels + p,
.etp-header .etp-header-ctas {
  margin-bottom: var(--space-m);
}

.etp-header .etp-header-small-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.etp-header .etp-header-small-link-content {
  width: auto;
  display: flex;
  align-items: center;
  padding: calc(var(--space-xs) / 2) calc(var(--space-xs) * 1.5) calc(var(--space-xs) / 2) calc(var(--space-xs) * 0.75);
  border-radius: var(--main-border-radius);
  cursor: pointer;
  transition: var(--button-link-transition);
}

.etp-header .etp-header-small-link-content:hover {
  background-color: var(--button-link-hover-color);
}

.etp-header .etp-header-small-link-content:hover a {
  text-decoration: none !important;
}

.etp-header .etp-header-small-link img {
  margin-right: var(--space-xs);
}

/* .etp-header.etp-header-variant-full .etp-header-left {
  height: var(--max-header-height);
} */

.etp-header .etp-header-image-wrapper {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: var(--max-header-height);
  border-radius: var(--main-border-radius);
  position: relative;
}

.etp-header .etp-header-content .etp-header-content-labels {
  display: flex;
  justify-content: flex-start;
}

.etp-header .etp-header-content .etp-header-content-labels p {
  margin-right: var(--space-s);
}

.etp-header .etp-header-content .etp-header-content-labels p a {
  color: var(--grey-disabled);
}

.etp-header .etp-header-content h1 {
  margin-bottom: var(--space-s);
}

{# smaller title for GRIP Cases blog posts ONLY! #}
.grip-page .grip-case .etp-header .etp-header-content h1 {
  font-size: 3rem;
  line-height: 3rem;
}

.etp-header .etp-header-ctas {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: var(--space-m);
  margin-bottom: 0;
}

.etp-header .etp-header-ctas .etp-header-cta {
  margin-right: var(--space-m);
}


@media(max-width: 992px) {
  .etp-header .etp-header-image-wrapper {
    max-height: 480px;
  }
}


@media(max-width: 768px) {
  .etp-header.etp-header-variant-split {
    flex-direction: column-reverse;
  }
  
  .etp-header.etp-header-variant-split .etp-header-left,
  .etp-header.etp-header-variant-split .etp-header-right {
    width: 100% !important;
  }
  
/*   .etp-header.etp-header-variant-full .etp-header-left {
    max-height: 320px;
    height: 320px;
  } */
  
  .etp-header.etp-header-variant-split .etp-header-image-wrapper {
    max-height: 320px;
    height: 320px;
    background-size: cover;
    margin-bottom: var(--space-m);
  }
}


@media(max-width: 640px) {
  .etp-header .etp-header-image-wrapper {
    max-height: 240px;
  }
}

/* ---------- Case detail variant (header_variant = case) ---------- */
.etp-case-hero {
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  isolation: isolate;
}

.etp-case-hero::before {
  content: "";
  position: absolute;
  top: -4rem;
  right: -2rem;
  width: 600px;
  height: 600px;
  max-width: 100vw;
  background: radial-gradient(circle at center, #dfe2e6 0%, #fff 70%);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.etp-case-hero__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.etp-case-hero__title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.etp-case-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #1e1e1e;
  text-decoration: none;
}

.etp-case-hero__back:hover span {
  text-decoration: underline;
}

.etp-case-hero__back:focus-visible,
.etp-case-hero__service:focus-visible {
  outline: 2px solid #1e1e1e;
  outline-offset: 2px;
  border-radius: 2px;
}

.etp-case-hero__title {
  margin: 0;
  max-width: 864px;
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 600;
  color: #1e1e1e;
  overflow-wrap: break-word;
  hyphens: manual;
  text-transform: none;
}

.etp-case-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #595a5b;
}

.etp-case-hero__service {
  font-weight: 400;
  color: inherit;
  text-decoration: underline;
}

.etp-case-hero__service--static {
  text-decoration: none;
}

.etp-case-hero__client {
  font-weight: 500;
}

.etp-case-hero__intro {
  margin: 0;
  font-size: 1.25rem;
  line-height: 2rem;
  color: #1e1e1e;
}

.etp-case-hero__image {
  flex: 1 1 0;
  min-width: 0;
  height: 640px;
  overflow: hidden;
  border-radius: 1rem;
}

.etp-case-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .etp-case-hero {
    flex-direction: column;
    gap: 2rem;
  }

  .etp-case-hero::before {
    top: -4rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    height: 375px;
  }

  .etp-case-hero__image {
    order: -1;
    width: 100%;
    height: 320px;
  }

  .etp-case-hero__content {
    width: 100%;
  }

  .etp-case-hero__title {
    font-size: 2rem;
  }
}
