/**
 * ICHA HOMEPAGE EVENT HERO v1
 *
 * Scope: homepage current-opportunity/event-announcement section only.
 * Direction: same visual language as the rebuilt Airbus page hero,
 * scaled appropriately for a homepage section.
 */

.homepage-event-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(360px, 32vw, 500px);
  padding: clamp(44px, 5vw, 64px) 0;
  margin-block: 0;

  background-image:
    linear-gradient(
      90deg,
      rgba(8, 8, 10, 0.82) 0%,
      rgba(8, 8, 10, 0.74) 32%,
      rgba(8, 8, 10, 0.56) 50%,
      rgba(8, 8, 10, 0.22) 72%,
      rgba(8, 8, 10, 0.06) 100%
    ),
    url('images/campaigns/airbus/airbus-event-background.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.homepage-event-hero__inner {
  width: 100%;
}

.homepage-event-hero__copy {
  max-width: 760px;
}

.homepage-event-hero .eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.84) !important;
}

.homepage-event-hero h2 {
  max-width: 740px;
  margin: 0;
  color: #fff !important;
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.homepage-event-hero__lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
}

.homepage-event-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin-top: 26px;
  color: #fff;
}

.homepage-event-hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.homepage-event-hero__meta-label {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.homepage-event-hero__meta strong {
  color: #fff !important;
  font-size: 0.96rem;
  line-height: 1.3;
}

.homepage-event-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.homepage-event-hero__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 0 !important;
  background: var(--ifrc-red) !important;
  border: 1px solid var(--ifrc-red) !important;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.homepage-event-hero__primary:hover,
.homepage-event-hero__primary:focus-visible {
  background: var(--ifrc-dark-red) !important;
  border-color: var(--ifrc-dark-red) !important;
  color: #fff !important;
}

.homepage-event-hero__secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,0.75);
  font-weight: 800;
  text-decoration: none;
}

.homepage-event-hero__secondary:hover,
.homepage-event-hero__secondary:focus-visible {
  color: #fff !important;
  border-bottom-color: #fff;
}

@media (max-width: 960px) {
  .homepage-event-hero {
    min-height: 380px;
    padding: 52px 0;
    background-position: 58% center;
  }

  .homepage-event-hero__copy {
    max-width: 700px;
  }
}

@media (max-width: 640px) {
  .homepage-event-hero {
    min-height: 0;
    padding: 48px 0;
    background-position: 62% center;
    background-image:
      linear-gradient(
        90deg,
        rgba(8, 8, 10, 0.88) 0%,
        rgba(8, 8, 10, 0.80) 58%,
        rgba(8, 8, 10, 0.38) 100%
      ),
      url('images/campaigns/airbus/airbus-event-background.png');
  }

  .homepage-event-hero h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .homepage-event-hero__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .homepage-event-hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}



/* ICHA HOMEPAGE EVENT INLINE KICKER FIX v1 */
.homepage-current-opportunities-heading {
  display: none !important;
}

.homepage-event-hero {
  position: relative;
}

.homepage-event-kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 0;
  color: #ffffff;
  font-size: clamp(0.8rem, 0.9vw, 0.92rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

@media (max-width: 768px) {
  .homepage-event-kicker {
    margin-bottom: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    max-width: 100%;
  }
}

/* Project rule: all homepage event kickers must render as a single-line 'Current Opportunity' label with high contrast against the event background image. */
