/**
 * @file
 * Conference page banner.
 */

.rn-conference-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  background: linear-gradient(105.94deg, #192e5e 30.731%, #285ea9 61.987%, #44a4ed 96.114%);
  color: #fff;
}

/* Header image: right 65% of the banner, darkened, with the gradient
   fading over its left edge. */
.rn-conference-hero__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  background: center / cover no-repeat;
}

.rn-conference-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.rn-conference-hero--has-image::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -45px;
  bottom: -74px;
  left: 0;
  width: 54%;
  background: linear-gradient(95.98deg, #192e5e 35.901%, #285ea9 70.894%, rgba(68, 164, 237, 0.39) 96.114%);
  filter: blur(57px);
}

.rn-conference-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  box-sizing: border-box;
  max-width: 1440px;
  min-height: 250px;
  margin: 0 auto;
  padding: 26px 50px;
}

.rn-conference-hero__text {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  word-break: break-word;
}

.rn-conference-hero__heading {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  gap: 8px;
  min-width: min(496px, 100%);
  padding-bottom: 16px;
  border-bottom: 4px solid #285ea9;
}

/* custom.css forces its own heading font and weight with !important. */
.rn-conference-hero .rn-conference-hero__title {
  margin: 0;
  padding: 0;
  font-family: Poppins, sans-serif !important;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.1026;
  font-weight: 700 !important;
  color: #fff;
}

.rn-conference-hero .rn-conference-hero__dates {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 18px;
  line-height: 20px;
  font-weight: 400;
  color: #fff;
}

.rn-conference-hero .rn-conference-hero__summary {
  max-width: 463px;
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: #f6f6f6;
}

.rn-conference-hero .rn-conference-hero__summary strong {
  font-weight: 600;
}

/* Badge ------------------------------------------------------------------- */

.rn-conference-hero__badge {
  position: relative;
  flex: 0 0 269px;
  width: 269px;
  height: 302px;
  margin: -54px 0 -74px 36px;
}

.rn-conference-hero__badge-part {
  position: absolute;
  display: block;
  max-width: none;
}

.rn-conference-hero__badge-clip {
  transform: rotate(-8.79deg);
}

.rn-conference-hero__badge-card {
  position: absolute;
  top: 75.82px;
  left: 77.71px;
  display: flex;
  box-sizing: border-box;
  width: 157.829px;
  height: 215.222px;
  flex-direction: column;
  align-items: center;
  border-radius: 11.478px;
  background: #eef2f8;
  transform: rotate(-8.94deg);
}

.rn-conference-hero__badge-slot {
  display: block;
  box-sizing: border-box;
  width: 47.263px;
  height: 15.487px;
  margin-top: 7.891px;
  border: solid #c9d0db;
  border-width: 4.222px 4.043px;
  border-radius: 5.381px;
  background: #fff;
}

.rn-conference-hero__badge-logo {
  display: block;
  width: 77.437px;
  height: 77.437px;
  margin-top: 9.62px;
  border-radius: 7.446px;
  object-fit: cover;
}

.rn-conference-hero__badge-brand {
  margin-top: 13.67px;
  font-family: Montserrat, Poppins, sans-serif;
  font-size: 22.45px;
  line-height: 21.522px;
  font-weight: 800;
  letter-spacing: -0.5381px;
  color: #123a8c;
  white-space: nowrap;
}

.rn-conference-hero__badge-brand span {
  color: #2f9be8;
}

.rn-conference-hero__badge-label {
  margin-top: 7.612px;
  font-family: Montserrat, Poppins, sans-serif;
  font-size: 12.997px;
  line-height: 16.542px;
  font-weight: 700;
  letter-spacing: 1.7935px;
  text-align: center;
  text-transform: uppercase;
  color: #123a8c;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .rn-conference-hero__inner {
    padding: 24px 20px;
  }

  .rn-conference-hero__badge {
    display: none;
  }

  .rn-conference-hero__image {
    width: 100%;
    opacity: 0.35;
  }
}

/* Phones: the badge comes back at a smaller size on the right, and the
   photo steps aside for it. */
@media (max-width: 600px) {
  .rn-conference-hero,
  .rn-conference-hero__inner {
    min-height: 0;
  }

  .rn-conference-hero__image,
  .rn-conference-hero--has-image::before {
    display: none;
  }

  .rn-conference-hero__inner {
    padding: 20px 16px 24px;
  }

  /* Above the badge, whose lanyard reaches in behind the text. */
  .rn-conference-hero__text {
    position: relative;
    z-index: 1;
    flex: 0 1 205px;
    gap: 12px;
  }

  .rn-conference-hero__heading {
    min-width: 0;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom-width: 3px;
  }

  .rn-conference-hero .rn-conference-hero__title {
    font-size: 32px;
  }

  .rn-conference-hero .rn-conference-hero__dates {
    font-size: 14px;
  }

  .rn-conference-hero .rn-conference-hero__summary {
    font-size: 14px;
    line-height: 20px;
  }

  .rn-conference-hero__badge {
    position: absolute;
    top: 6px;
    right: 0;
    display: block;
    margin: 0;
    transform: scale(0.62);
    transform-origin: top right;
  }
}
