/* components/organisms/resource-hero/resource-hero.css */
.c-resource-hero {
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.c-resource-hero__inner {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  min-height: 440px;
  width: 100%;
}

/* ── Left: content ───────────────────────────────────────────────── */
.c-resource-hero__content {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 61%;
  flex-direction: column;
  justify-content: center;
  max-width: 61%;
  padding: 40px 60px 40px max(20px, calc((100% - 1240px) / 2 + 20px));
  padding-bottom: 0;
}

.c-resource-hero__title {
  color: #2c3e50;
  font-family: var(--font-family-mmc-bold);
  font-size: 38px;
  letter-spacing: -0.3px;
  line-height: 50px;
  margin: 0 0 16px;
  padding-right: inherit;
  position: relative;
}

.c-resource-hero__divider {
  background: #002d54;
  border-radius: 2px;
  height: 4px;
  margin-bottom: 16px;
  width: 48px;
}

.c-resource-hero__body {
  color: #727b83;
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 0;
  padding-right: inherit;
}

.c-resource-hero__body p {
  margin: 0 0 16px;
}
.c-resource-hero__body p:last-child {
  margin-bottom: 0;
}

.c-resource-hero__btn {
  background: transparent linear-gradient(108deg, #008cd0 0%, #00ac41 100%) 0% 0% no-repeat padding-box;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-family-mmc-bold);
  height: 48px;
  line-height: 48px;
  margin-top: 20px;
  padding: 0 10px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  width: 180px;
}

/* ── Right: gradient + image ─────────────────────────────────────── */
.c-resource-hero__visual {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Gradient drawn via ::after so the image can overlap its top edge */
.c-resource-hero__visual::after {
  background: linear-gradient(45deg, #008cd0 0%, #00ac41 100%);
  bottom: 0;
  content: '';
  left: 0;
  position: absolute;
  right: 0;
  top: 60px;
  z-index: 0;
  width: 76%;
  left: 24%;
}

.c-resource-hero__image-wrap {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 20px 20px 0;
  position: absolute;
  right: 0;
  top: 60px;
  z-index: 1;
}

/* Drupal field wrappers — make transparent so img inherits height */
.c-resource-hero__image-wrap .media,
.c-resource-hero__image-wrap .field,
.c-resource-hero__image-wrap .field__item {
  display: contents;
}

.c-resource-hero__image-wrap img {
  display: block;
  height: 100%;
  max-width: 90%;
  object-fit: contain;
  width: auto;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .c-resource-hero__inner {
    flex-direction: column;
    min-height: auto;
  }
  .c-resource-hero__content {
    flex: none;
    max-width: 100%;
    padding: 40px 24px;
  }
  .c-resource-hero__visual {
    min-height: 300px;
  }
}
