.afifa-community {
  --afifa-eye-x: 0%;
  --afifa-eye-y: 0%;
  --afifa-navy: #13294e;
  --afifa-navy-deep: #081a36;
  --afifa-gold: #f1b51c;
  --afifa-green: #097443;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 20%, rgba(241, 181, 28, 0.2), transparent 30%),
    linear-gradient(135deg, var(--afifa-navy-deep), var(--afifa-navy));
  color: #fff;
  box-shadow: 0 28px 70px rgba(8, 26, 54, 0.2);
}

.afifa-community .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.afifa-community__copy {
  position: relative;
  z-index: 2;
}

.afifa-community__eyebrow {
  margin: 0 0 18px;
  color: var(--afifa-gold);
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.afifa-community__copy h2 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: clamp(2.5rem, 5vw, 5.25rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.afifa-community__copy > p:last-child {
  max-width: 500px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.7;
}

.afifa-community__stage {
  position: relative;
  min-height: 380px;
  perspective: 1000px;
}

.afifa-community__halo {
  position: absolute;
  inset: 4% 4% 1%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.afifa-community__halo::before,
.afifa-community__halo::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.afifa-community__halo::before {
  inset: 11%;
  border: 1px dashed rgba(241, 181, 28, 0.3);
}

.afifa-community__halo::after {
  width: 12px;
  height: 12px;
  right: 13%;
  top: 3%;
  background: var(--afifa-gold);
  box-shadow: 0 0 0 8px rgba(241, 181, 28, 0.12);
}

.afifa-character {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 170px;
  height: 205px;
  padding-top: 14px;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 49% 51% 46% 54% / 43% 45% 55% 57%;
  color: var(--afifa-navy-deep);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.22);
  transform-origin: center bottom;
}

.afifa-character--1 {
  left: 1%;
  top: 28%;
  background: var(--afifa-gold);
  transform: rotate(-7deg) translateZ(32px);
}

.afifa-character--2 {
  z-index: 3;
  left: 34%;
  top: 9%;
  background: var(--afifa-green);
  color: #fff;
  transform: rotate(2deg) translateZ(80px) scale(1.08);
}

.afifa-character--3 {
  right: 0;
  top: 31%;
  background: #fffdf7;
  transform: rotate(7deg) translateZ(35px);
}

.afifa-character__eyes {
  display: flex;
  gap: 9px;
}

.afifa-character__eye {
  display: grid;
  place-items: center;
  width: 34px;
  height: 43px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(8, 26, 54, 0.08);
}

.afifa-character__eye i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--afifa-navy-deep);
  transform: translate(var(--afifa-eye-x), var(--afifa-eye-y));
  transition: transform 70ms linear;
}

.afifa-character__brow {
  position: absolute;
  top: 54px;
  width: 31px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.88;
}

.afifa-character__brow--left {
  left: 45px;
  transform: rotate(-8deg);
}

.afifa-character__brow--right {
  right: 45px;
  transform: rotate(8deg);
}

.afifa-character__smile {
  width: 34px;
  height: 15px;
  margin-top: 13px;
  border-bottom: 4px solid currentColor;
  border-radius: 50%;
}

.afifa-character strong {
  margin-top: 23px;
  font-family: "Barlow", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.afifa-community__clover {
  position: absolute;
  z-index: 5;
  right: 10%;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 4px solid #fff;
  border-radius: 45% 55% 50% 50%;
  background: var(--afifa-green);
  color: var(--afifa-gold);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  transform: rotate(8deg);
}

.afifa-community__clover span {
  font-size: 1.35rem;
}

@media (max-width: 900px) {
  .afifa-community {
    grid-template-columns: 1fr;
  }

  .afifa-community__stage {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .afifa-community {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .afifa-community__stage {
    min-height: 275px;
  }

  .afifa-character {
    width: 112px;
    height: 150px;
    border-width: 3px;
  }

  .afifa-character--1 { left: -2%; top: 29%; }
  .afifa-character--2 { left: 34%; top: 9%; }
  .afifa-character--3 { right: -2%; top: 31%; }
  .afifa-character__eye { width: 24px; height: 31px; }
  .afifa-character__eye i { width: 10px; height: 10px; }
  .afifa-character__brow { top: 38px; width: 21px; height: 3px; }
  .afifa-character__brow--left { left: 30px; }
  .afifa-character__brow--right { right: 30px; }
  .afifa-character__smile { width: 25px; height: 11px; margin-top: 8px; border-bottom-width: 3px; }
  .afifa-character strong { margin-top: 15px; font-size: 0.72rem; }
  .afifa-community__clover { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .afifa-character__eye i {
    transform: none;
    transition: none;
  }
}

/* Family illustration direction selected for the Afifa campaign. */
.afifa-community__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  perspective: none;
}

.afifa-community__stage .afifa-community__halo {
  inset: 7% 3% 4%;
  z-index: 0;
  background: radial-gradient(circle, rgba(241, 181, 28, 0.13), transparent 65%);
  filter: blur(1px);
}

.afifa-family-figure {
  position: relative;
  z-index: 2;
  width: min(610px, 100%);
  margin: 0;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.24));
  transform: rotate(1.5deg);
}

.afifa-family-figure > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.afifa-family-eye {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.35%;
  aspect-ratio: 1.15 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(8, 26, 54, 0.08);
}

.afifa-family-eye i {
  display: block;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--afifa-navy);
  transform: translate(var(--afifa-eye-x), var(--afifa-eye-y));
  transition: transform 70ms linear;
}

.afifa-family-eye--1 { left: 20.65%; top: 29.55%; transform: rotate(-5deg); }
.afifa-family-eye--2 { left: 24.00%; top: 29.35%; transform: rotate(4deg); }
.afifa-family-eye--3 { left: 33.45%; top: 32.20%; transform: rotate(-3deg); }
.afifa-family-eye--4 { left: 36.85%; top: 32.05%; transform: rotate(3deg); }
.afifa-family-eye--5 { left: 41.40%; top: 17.25%; transform: rotate(-2deg); }
.afifa-family-eye--6 { left: 45.75%; top: 17.35%; transform: rotate(2deg); }
.afifa-family-eye--7 { left: 56.45%; top: 20.70%; transform: rotate(-2deg); }
.afifa-family-eye--8 { left: 60.00%; top: 20.85%; transform: rotate(3deg); }
.afifa-family-eye--9 { left: 71.25%; top: 29.75%; transform: rotate(-4deg); }
.afifa-family-eye--10 { left: 74.55%; top: 29.55%; transform: rotate(4deg); }

@media (max-width: 900px) {
  .afifa-family-figure {
    width: min(620px, 96%);
  }
}

@media (max-width: 560px) {
  .afifa-community__stage {
    min-height: 0;
  }

  .afifa-family-figure {
    width: 108%;
    max-width: none;
    margin-inline: -4%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .afifa-family-figure {
    transform: none;
  }

  .afifa-family-eye i {
    transform: none;
    transition: none;
  }
}
