/* Homepage hero — approved reference match */

.home-hero {
  position: relative;
  overflow: visible;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  --hero-stack-gap: 1.25rem;
  --hero-africa-gap: 1.5rem;
  --hero-africa-inset: 1rem;
  --hero-benefits-min-gap: 1.75rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .home-hero {
    --hero-stack-gap: 1.5rem;
    --hero-africa-gap: 1.625rem;
    --hero-africa-inset: 2rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .home-hero {
    --hero-stack-gap: 1.75rem;
    --hero-africa-inset: 2.25rem;
    --hero-benefits-min-gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .home-hero {
    --hero-stack-gap: 2rem;
    --hero-africa-gap: 1.75rem;
    --hero-africa-inset: 2.25rem;
    --hero-benefits-min-gap: 2.25rem;
    padding-bottom: 1.625rem;
  }
}

.home-hero__inner {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .home-hero__inner {
    display: grid;
    grid-template-columns: 53% 47%;
    align-items: stretch;
    min-height: 27.5rem;
  }
}

@media (min-width: 1024px) {
  .home-hero__inner {
    grid-template-columns: 53.5% 46.5%;
    min-height: 29rem;
  }
}

@media (min-width: 1280px) {
  .home-hero__inner {
    grid-template-columns: 54% 46%;
    min-height: 30rem;
  }
}

@media (min-width: 1440px) {
  .home-hero__inner {
    min-height: 31rem;
  }
}

/* Left content panel — upper zone + bottom-anchored benefits */
.home-hero__content {
  flex: 0 0 100%;
  order: 1;
  padding: 1.75rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #ffffff;
  box-sizing: border-box;
}

/* Upper zone — natural height only */
.home-hero__content-main {
  display: flex;
  flex-direction: column;
  gap: var(--hero-stack-gap);
  flex: 0 0 auto;
}

@media (min-width: 640px) {
  .home-hero__content {
    padding: 2rem 1.5rem 1.75rem;
  }
}

@media (min-width: 768px) {
  .home-hero__content {
    flex: none;
    width: auto;
    max-width: none;
    order: 1;
    align-self: stretch;
    height: 100%;
    min-height: 27.5rem;
    padding: 2.125rem 1.75rem 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .home-hero__content {
    min-height: 29rem;
    padding: 2.25rem 2rem 1.625rem 2.5rem;
  }
}

@media (min-width: 1280px) {
  .home-hero__content {
    min-height: 30rem;
    padding: 2.375rem 2.25rem 1.75rem 3rem;
  }
}

@media (min-width: 1440px) {
  .home-hero__content {
    min-height: 31rem;
  }
}

/* Right full-height image panel */
.home-hero__visual {
  flex: 0 0 auto;
  order: 2;
  width: 100%;
  height: 14rem;
  overflow: hidden;
  pointer-events: none;
}

@media (min-width: 768px) {
  .home-hero__visual {
    flex: none;
    width: auto;
    max-width: none;
    position: relative;
    height: 100%;
    min-height: 27.5rem;
    align-self: stretch;
  }

  .home-hero__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .home-hero__visual {
    min-height: 29rem;
  }
}

@media (min-width: 1280px) {
  .home-hero__visual {
    min-height: 30rem;
  }
}

@media (min-width: 1440px) {
  .home-hero__visual {
    min-height: 31rem;
  }
}

.home-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 32%;
}

@media (min-width: 768px) {
  .home-hero__visual img {
    object-position: 60% 30%;
  }
}

@media (min-width: 1024px) {
  .home-hero__visual img {
    object-position: 62% 28%;
  }
}

@media (min-width: 1280px) {
  .home-hero__visual img {
    object-position: 64% 26%;
  }
}

@media (min-width: 1440px) {
  .home-hero__visual img {
    object-position: 66% 24%;
  }
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.3125rem 0.6875rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

@media (min-width: 768px) {
  .home-hero__eyebrow {
    font-size: 0.75rem;
  }
}

.home-hero__eyebrow .fa-graduation-cap {
  font-size: 0.8125rem;
}

.home-hero__headline {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

@media (min-width: 1280px) {
  .home-hero__headline {
    font-size: 2.625rem;
  }
}

.home-hero__headline-line {
  display: block;
}

.home-hero__headline-accent {
  color: #2563eb;
}

.home-hero__headline-rotate-wrap {
  display: block;
  min-height: 1.2em;
}

.home-hero__headline-rotate-wrap #hero-rotate-word {
  display: inline-block;
  color: #0f172a;
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.home-hero__copy {
  margin: 0;
  max-width: 36rem;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .home-hero__copy {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (min-width: 1024px) {
  .home-hero__copy {
    font-size: 1.0625rem;
    line-height: 1.62;
  }
}

/* CTA row */
.home-hero__ctas {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 480px) {
  .home-hero__ctas {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
  }
}

.home-hero__btn-primary,
.home-hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

@media (min-width: 768px) {
  .home-hero__btn-primary,
  .home-hero__btn-secondary {
    font-size: 1rem;
    min-height: 3.25rem;
  }
}

.home-hero__btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: none;
}

.home-hero__btn-primary:hover {
  background: #1d4ed8;
}

.home-hero__btn-primary:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.home-hero__btn-secondary {
  background: #fff;
  color: #2563eb;
  border: 2px solid #2563eb;
  cursor: pointer;
}

.home-hero__btn-secondary:hover {
  background: #eff6ff;
  border-color: #1d4ed8;
  color: #1d4ed8;
}

.home-hero__btn-secondary:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Lower anchor zone — pushed to shared bottom edge */
.home-hero__values {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 0.75rem;
  width: 100%;
  margin-top: 1.875rem;
}

@media (min-width: 768px) {
  .home-hero__values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: auto;
    padding-top: var(--hero-benefits-min-gap);
  }
}

.home-hero__value {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4375rem;
}

@media (min-width: 768px) {
  .home-hero__value {
    padding: 0 0.5rem;
  }

  .home-hero__value:not(:last-child) {
    border-right: 1px solid #e2e8f0;
  }

  .home-hero__value:last-child {
    border-right: none;
  }
}

.home-hero__value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .home-hero__value-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.1875rem;
  }
}

.home-hero__value-icon--sky {
  background: #eff6ff;
  color: #2563eb;
}

.home-hero__value-icon--amber {
  background: #fff7ed;
  color: #ea580c;
}

.home-hero__value-icon--cyan {
  background: #ecfeff;
  color: #0891b2;
}

.home-hero__value-icon--teal {
  background: #f0fdfa;
  color: #0d9488;
}

.home-hero__value-label {
  color: #334155;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 6.75rem;
}

@media (min-width: 768px) {
  .home-hero__value-label {
    font-size: 0.6875rem;
    max-width: 5.75rem;
  }
}

@media (min-width: 1024px) {
  .home-hero__value-label {
    font-size: 0.75rem;
    max-width: 6.5rem;
  }
}

/* Africa banner — sibling below split; explicit gap from shared hero bottom */
.home-hero__africa-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: var(--hero-africa-gap) var(--hero-africa-inset) 0;
  width: auto;
  min-height: 3.25rem;
  padding: 0.8125rem 1.25rem;
  border-radius: 0.5rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .home-hero__africa-badge {
    min-height: 3.375rem;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    gap: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .home-hero__africa-badge {
    min-height: 3.5rem;
    font-size: 1.0625rem;
  }
}

.home-hero__africa-badge strong {
  color: #2563eb;
  font-weight: 800;
}

.home-hero__africa-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.home-hero__africa-icon .fa-globe {
  font-size: 1.375rem;
  color: #2563eb;
}

@media (min-width: 768px) {
  .home-hero__africa-icon .fa-globe {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .home-hero__africa-icon .fa-globe {
    font-size: 1.625rem;
  }
}

.home-hero__africa-icon--continent img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .home-hero__africa-icon--continent img {
    width: 1.875rem;
    height: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .home-hero__africa-icon--continent img {
    width: 2rem;
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__headline-rotate-wrap #hero-rotate-word {
    transition: none;
  }
}
