/* Media + Text Hero */
.media-text-hero {
  background-image: url("../images/components/heroes/media-text-hero/hero-wave.svg");
  background-repeat: no-repeat;
  background-position: bottom;
  padding: var(--flow-space-xl) 0;
}

.media-text-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title media"
    "introduction media";
  column-gap: var(--flow-space-xl);
  max-width: var(--content-wide);
  width: 80%;
  margin: 0 auto;
}

.background-img-hero__introduction {
  width: 80% !important;
  margin: 10px auto !important;
  max-width: 1000px !important;
}
.media-text-hero__page-title {
  grid-area: title;
  align-self: flex-end;
}

.media-text-hero__page-title h1 {
  line-height: 1.1;
  margin: 0;
}

/* .media-text-hero__introduction {
  grid-area: introduction;
} */

.media-text-hero__links {
  display: flex;
  gap: var(--flow-space);
}

.media-text-hero__media {
  grid-area: media;
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  justify-content: center;
}

.media-text-hero__embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.media-text-hero__embed iframe,
.media-text-hero__embed object,
.media-text-hero__embed embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Photo cropping — Solid Logo + Full Logo (w/ Spaces). */
.media-text-hero__image.frame {
  width: 100%;
  max-height: 330px;
}

.media-text-hero__image--crop-border.frame,
.media-text-hero__image--crop-logo.frame {
  width: fit-content;
  max-width: 100%;
  max-height: 330px;
  height: auto;
}

.media-text-hero__image.frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-text-hero__image--crop-border.frame {
  aspect-ratio: 576 / 463;
  -webkit-mask-image: url("../images/logo-mask.svg");
  mask-image: url("../images/logo-mask.svg");
  mask-size: 100% 100%;
  mask-position: center;
  mask-repeat: no-repeat;
}

.media-text-hero__image--crop-logo.frame {
  aspect-ratio: 540 / 440;
  -webkit-mask-image: url("../images/logo-mask-spaced.svg");
  mask-image: url("../images/logo-mask-spaced.svg");
  mask-size: 100% 100%;
  mask-position: center;
  mask-repeat: no-repeat;
}

@media (max-width: 1200px) {
  .media-text-hero__inner {
    grid-template-areas: "introduction media";
    row-gap: var(--flow-space);
    column-gap: var(--flow-space-l);
  }

  .media-text-hero__introduction p {
    margin-top: 0;
  }

  .media-text-hero__links {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .media-text-hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "introduction";
  }
}

/* Background Image hero */
.background-img-hero {
  /* image w/ gradient set in markup */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 12rem 0;
  display: flex;
  flex-direction: column;
  gap: var(--flow-space);
  align-items: center;
  justify-content: center;
}

.background-img-hero__page-title {
  color: var(--color-white);
  margin: 0;
  text-align: center;
}

.background-img-hero__introduction {
  color: var(--color-white);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1200px) {
  .background-img-hero {
    padding: 10rem 0;
  }
}

@media (max-width: 768px) {
  .background-img-hero {
    padding: 6rem 0;
  }
}

/* About Us Hero */
.about-us-hero {
  padding: var(--flow-space-xl) 0;
  background-image: url("../images/components/heroes/about-us-hero/hero-wave-bp.svg");
  background-repeat: no-repeat;
  background-position: top center !important;
}

.about-us-hero__text {
  max-width: var(--content-narrow);
  width: 80%;
  margin: 0 auto var(--flow-space-xl) auto;
  display: flex;
  flex-direction: column;
  gap: var(--flow-space);
  align-items: center;
  justify-content: center;
}

.about-us-hero__eyebrow {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.0875rem;
  text-transform: uppercase;
  display: flex;
  gap: var(--flow-space-xs);
  align-items: center;
}

.about-us-hero__icon--rainbow {
  display: inline-block;
  height: 16px;
  width: 16px;
  background-image: url("../images/components/heroes/about-us-hero/rainbow.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.about-us-hero__page-title {
  text-align: center;
  margin: 0;
  line-height: 1.1;
}

.about-us-hero__testimonial {
  text-align: center;
}

.about-us-hero__quotes {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.about-us-hero__icon--quote-l,
.about-us-hero__icon--quote-r {
  display: inline-block;
  width: 31px;
  height: 24px;
  background-image: url("../images/components/heroes/about-us-hero/quote.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.about-us-hero__icon--quote-r {
  transform: rotate(180deg);
}

.about-us-hero__testimonial blockquote {
  font-size: 1.3rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015rem;
  /* override global blockquote styles */
  padding-left: 0;
  border: 0;
  text-align: center;
}

.about-us-hero__testimonial blockquote::before {
  display: none;
}

.about-us-hero__attribution {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
  justify-content: center;
}

.about-us-hero__headshot {
  height: 114px;
  width: 114px;
  margin-bottom: 10px !important;
  border-radius: 50%;
}

.about-us-hero__name {
  font-weight: 600;
}

.about-us-hero__media {
  max-width: unset;
  margin: 0 auto;
  display: flex;
  justify-content:center;
  align-items: center;
  gap: var(--flow-space-l);
}

.about-us-hero__image {
  aspect-ratio: 4/5;
  height: 384px;
}

.about-us-hero__video {
  aspect-ratio: 16/9;
  height: 482px;
}

.about-us-hero__video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about-us-hero__video video {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Overlay: full area, centered play icon */
.about-us-hero__video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(14 62 78 / 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background var(--transition-timing) var(--transition-easing),
    opacity var(--transition-timing) var(--transition-easing);
}

.about-us-hero__video-overlay:hover {
  background: rgb(14 62 78 / 0.3);
}

.about-us-hero__play-icon {
  pointer-events: none;
  width: 80px;
  height: 80px;
}

/* Hide overlay when video is playing */
.about-us-hero__video-wrapper.is-playing .about-us-hero__video-overlay {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .about-us-hero__text {
    margin-bottom: var(--flow-space-l);
  }

  .about-us-hero__media {
    gap: var(--flow-space);
  }

  .about-us-hero__image {
    height: 280px;
  }

  .about-us-hero__video {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .about-us-hero__image {
    height: 200px;
  }

  .about-us-hero__video {
    height: auto;
  }
}

@media (max-width: 600px) {
  .about-us-hero__image {
    display: none;
  }
}

h1 {
  line-height: 1;
}
.background-img-hero__page-title {
  margin: 0 auto;
  max-width: 1000px;
  width: 90%;
}
/* Event Hero */
.event-hero {
  padding: var(--flow-space-xl) 0;
  background-image: url("../images/components/heroes/event-hero/hero-wave-bp.svg");
  background-repeat: no-repeat;
  background-position: center top 50px;
}

.event-hero__inner {
  max-width: var(--content-wide);
  width: 80%;
  margin: 0 auto;
}

.event-hero__text-metas {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: flex-start;
  gap: var(--flow-space-xl);
}

.event-hero__page-title h1 {
  margin: 0;
  line-height: 1.1;
}

.event-hero__metas {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--flow-space-s);
  align-items: center;
  margin-bottom: 10px;
}

.event-hero__label {
  color: #a1aaa8;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.0875rem;
  text-transform: uppercase;
  line-height: 1;
}

.event-hero__value {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.0125rem;
}

.event-hero__links {
  display: flex;
  gap: var(--flow-space);
}

.event-hero__sponsors {
  margin: var(--flow-space-xl) 0 0 0;
  display: flex;
  align-items: center;
  gap: var(--flow-space-s);
}

.event-hero__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--flow-space);
  align-items: center;
}
@media (min-width: 1200px) {
  .event-hero__label {
    max-width: 130px;
    width: fit-content;
  }
}

.event-hero__logo {
  max-height: 70px;
}

.event-hero__logo.frame {
  margin-bottom: 0px !important;
}

/* Add to Calendar dropdown */
.event-hero__cal {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.event-hero__cal > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: currentColor;
}

.event-hero__cal > summary::-webkit-details-marker {
  display: none;
}

.event-hero__ical-icon {
  display: block;
}

/* Label hidden on wide screens; shown at <=1200px */
.event-hero__ical-label {
  display: none;
}

/* Menu floats below the icon as an overlay */
.event-hero__cal-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.event-hero__cal-option {
  padding: 0.55rem 1rem;
  color: var(--color-purple, #4f3894);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.8rem;
}

.event-hero__cal-option:hover {
  background: #f2f2f2;
}

.event-hero__ical-label {
  display: inline;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .event-hero {
    padding: var(--flow-space-l) 0;
  }

  .event-hero__text-metas {
    grid-template-columns: 1fr;
    gap: var(--flow-space-l);
  }

  .event-hero__links {
    flex-direction: column;
  }

  .event-hero__sponsors {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Take Action Hero */
.take-action-hero {
  background-color: var(--color-yellow);
  overflow: hidden;
}

.take-action-hero__inner {
  max-width: var(--content-wide);
  width: 80%;
  margin: 0 auto;
  position: relative;
  padding: 7rem 0 0 0;
}

@keyframes take-action-hero-wobble {
  0%,
  100% {
    transform: rotate(12deg);
  }
  50% {
    transform: rotate(18deg);
  }
}

.take-action-hero__inner::after {
  content: "";
  position: absolute;
  top: -7px;
  right: 0;
  height: 350px;
  width: 350px;
  background-image: url("../images/components/heroes/take-action-hero/take-action.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(15deg);
  animation: take-action-hero-wobble 10.4s ease-in-out infinite;
  opacity: 1;
}

.take-action-hero__page-title {
  font-size: 8rem;
  line-height: 0.78;
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 1200px) {
  .event-hero__sponsors {
    margin-top: 30px;
  }
  .take-action-hero__page-title {
    font-size: 8rem;
  }

  .take-action-hero__inner::after {
    top: 5%;
    height: 300px;
    right: 0;
    width: 300px;
  }
  .take-action-hero__inner h1::after {
    opacity: 0;
    background-image: url("../images/components/heroes/take-action-hero/take-action.png");
    content: "";
  }
}

@media (max-width: 1000px) {
  .take-action-hero__inner::after {
    /* content: unset; */
  }
  .take-action-hero__inner::after {
    opacity: 0;
  }
  .take-action-hero__inner h1 {
    width: fit-content;
    position: relative;
  }
  .take-action-hero__inner h1::after {
    content: "";
    position: absolute;
    bottom: 7px;
    right: -107px;
    height: 95px;
    width: 95px;
    opacity: 1;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(12deg);
    transition: 0.5s ease-in-out;
    transform-origin: left;

    background-image: url("../images/components/heroes/take-action-hero/take-action.png");
  }
}

@media (max-width: 768px) {
  .take-action-hero__page-title {
    font-size: 4rem;
  }
  .take-action-hero__inner::after {
    content: unset;
  }
}
@media (max-width: 480px) {
  .take-action-hero__inner h1::after {
    height: 55px;
    bottom: 4px;
    width: 55px;
    right: -65px;
  }
}

@media (max-width: 768px) {
  .event-hero__metas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .event-hero__label {
    padding-top: 10px;
  }
}
