/* Home page sections. Layout follows the new design; colours stay on the site's own palette
   (navy header gradient, #667eea -> #764ba2 purple, #1890ff blue, gold accents). */
.hm {
  --hm-navy: #263256;
  --hm-navy-2: #1f3a6e;
  --hm-navy-3: #1b4a86;
  --hm-primary: #667eea;
  --hm-primary-2: #764ba2;
  --hm-blue: #1890ff;
  --hm-gold: #ffd700;
  --hm-heading: #1a1a2e;
  --hm-text: #4b5563;
  --hm-line: #e6e8f5;
  --hm-tint: #f5f6ff;
  --hm-radius: 14px;

  background: #fff;
  color: var(--hm-heading);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hm *,
.hm *::before,
.hm *::after {
  box-sizing: border-box;
}

.hm :where(h1, h2, h3, h4, h5) {
  margin: 0;
  color: var(--hm-heading);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hm :where(p) {
  margin: 0;
}

.hm :where(ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm :where(img, svg) {
  max-width: 100%;
}

/* Accent hues for cards / icons */
.hm-tone--purple,
.hm-icon--purple {
  --tone-bg: #ece3f5;
  --tone-fg: #764ba2;
}

.hm-tone--blue,
.hm-icon--blue {
  --tone-bg: #e6f4ff;
  --tone-fg: #1677d6;
}

.hm-tone--green,
.hm-icon--green {
  --tone-bg: #e3f5e3;
  --tone-fg: #2f8a2f;
}

.hm-tone--orange,
.hm-icon--orange {
  --tone-bg: #ffefdc;
  --tone-fg: #c2620a;
}

.hm-tone--cyan,
.hm-icon--cyan {
  --tone-bg: #ddf5f5;
  --tone-fg: #0a8a8f;
}

.hm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--tone-bg);
  color: var(--tone-fg);
  font-size: 20px;
}

.hm-icon--sm {
  width: 36px;
  height: 36px;
  font-size: 17px;
}

.hm-icon--xs {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 13px;
}

/* Layout helpers */
.hm-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.hm-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.hm-section--roomy {
  padding-top: 64px;
  padding-bottom: 60px;
}

/* Full-width bands: every section touches both page edges and is divided from the next by a line */
.hm-band {
  position: relative;
  border-top: 1px solid var(--hm-line);
}

.hm-band--white {
  background: #fff;
}

.hm-band--dark {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, var(--hm-navy) 0%, var(--hm-navy-2) 50%, var(--hm-navy-3) 100%);
}

.hm .hm-band--dark .hm-section__head h2 {
  color: #fff;
}

.hm-band--dark .hm-section__head p {
  color: rgba(255, 255, 255, 0.82);
}

.hm-band--tint {
  background: var(--hm-tint);
}

.hm-center {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.hm-section__head {
  margin-bottom: 22px;
  text-align: center;
}

.hm-section__head h2 {
  font-size: 1.6rem;
}

.hm-section__head p {
  margin-top: 6px;
  color: var(--hm-text);
  font-size: 0.95rem;
}

.hm-section__head--wide p {
  max-width: none;
}

.hm-section__head--narrow p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

#one-ecosystem,
#community-hub,
#programs-events,
#professional-services,
#sponsorship {
  scroll-margin-top: 88px;
}

/* Buttons */
.hm .hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.hm .hm-btn:hover {
  transform: translateY(-2px);
}

.hm .hm-btn--sm {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.hm .hm-btn--block {
  display: flex;
  width: 100%;
  margin-top: 14px;
}

.hm .hm-btn--start {
  align-self: flex-start;
}

/* Buttons use the site's primary button colours (same as the antd primary buttons in App.css) */
.hm .hm-btn--primary,
.hm .hm-btn--gold,
.hm .hm-btn--white,
.hm .hm-btn--tone {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.22);
}

.hm .hm-btn--primary:hover,
.hm .hm-btn--gold:hover,
.hm .hm-btn--white:hover,
.hm .hm-btn--tone:hover {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.hm .hm-btn--primary:active,
.hm .hm-btn--gold:active,
.hm .hm-btn--white:active,
.hm .hm-btn--tone:active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  transform: none;
}

/* on dark or coloured surfaces a light edge keeps the primary blue readable */
.hm-hero .hm-btn--primary,
.hm-hero .hm-btn--gold,
.hm-ignite .hm-btn--white,
.hm-cta .hm-btn--white {
  border-color: rgba(255, 255, 255, 0.75);
}

.hm .hm-btn--tone {
  align-self: flex-start;
}

.hm .hm-btn--outline {
  border-color: #2563eb;
  background: #fff;
  color: #2563eb;
}

.hm .hm-btn--outline:hover {
  background: #2563eb;
  color: #fff;
}

.hm .hm-btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.hm .hm-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ===== Hero ===== */
.hm-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 44px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.hm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hm-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.hm .hm-hero h1 {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.hm .hm-hero h1 .hm-accent {
  color: var(--hm-gold);
}

.hm-hero__lead {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.hm-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hm-hero__art {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ecosystem hub: the student at the centre, supported by everyone around them */
.hm-hub {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.hm-hub__backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 94%;
  height: 94%;
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
  background: rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
}

.hm-hub__lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hm-hub__node {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 32%;
  transform: translate(-50%, -50%);
}

.hm-hub__node img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(15, 20, 60, 0.35);
  object-fit: cover;
}

.hm-hub__label {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 20, 60, 0.2);
  color: var(--hm-navy);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.hm-hub__node--institutions {
  top: 24%;
  left: 24%;
  flex-direction: column-reverse;
}

.hm-hub__node--organizations {
  top: 24%;
  left: 76%;
  flex-direction: column-reverse;
}

.hm-hub__node--mentors {
  top: 76%;
  left: 24%;
}

.hm-hub__node--sponsors {
  top: 76%;
  left: 76%;
}

.hm-hub__node--student {
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 42%;
}

.hm-hub__node--student img {
  border-color: var(--hm-gold);
  border-width: 4px;
}

.hm-hub__node--student .hm-hub__label {
  background: var(--hm-gold);
  color: var(--hm-navy);
}

/* ===== Role strip ===== */
.hm-roles {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, var(--hm-navy) 0%, var(--hm-navy-2) 50%, var(--hm-navy-3) 100%);
}

.hm-roles__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.hm-role {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hm-role:last-child {
  border-right: none;
}

.hm .hm-role h4 {
  color: #fff;
  margin-bottom: 2px;
  font-size: 0.95rem;
  font-weight: 700;
}

.hm-role p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

/* ===== Aspira cover banner ===== */
/* Same full-width layout as .hm-cta, but on a plain white background — overrides
   .hm-cta's white-on-colour text/button styling for dark-on-white instead. The
   combined selector (vs. plain .hm-cta) wins on specificity regardless of source
   order, since .hm-cta's own background rule is declared further down the file. */
.hm-cta.hm-assistant-cta {
  background: #fff;
}

.hm .hm-cta.hm-assistant-cta h2 {
  color: var(--hm-navy);
}

.hm-cta.hm-assistant-cta p {
  color: var(--hm-text);
}

.hm-cta.hm-assistant-cta .hm-btn--white {
  border-color: #2563eb;
}

/* Keep the button pinned to the right edge even when the row wraps onto its own
   line at narrower widths (space-between alone left it stuck on the left once
   the actions block dropped below the text). */
.hm-cta.hm-assistant-cta .hm-cta__actions {
  margin-left: auto;
}

.hm .hm-btn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

/* ===== One ecosystem ===== */
.hm-eco {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hm-eco__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  background: #fff;
}

.hm-eco__photo {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.hm-eco__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-eco__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 14px 16px;
  background: var(--tone-bg);
}

.hm-eco__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: #fff;
  color: var(--tone-fg);
  font-size: 16px;
}

.hm-eco__body h3 {
  margin-bottom: 5px;
  color: var(--tone-fg);
  font-size: 0.95rem;
}

.hm-eco__desc {
  margin-bottom: 10px;
  color: var(--hm-text);
  font-size: 0.78rem;
}

.hm-eco__body ul {
  flex: 1;
  margin-bottom: 12px;
}

.hm-eco__body li {
  position: relative;
  margin-bottom: 5px;
  padding-left: 13px;
  color: var(--hm-text);
  font-size: 0.78rem;
}

.hm-eco__body li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hm-text);
}

/* ===== Cards (community hub, services, news, about/contact) ===== */
.hm-chub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hm-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: var(--hm-radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.06);
}

.hm-card h4 {
  font-size: 0.92rem;
}

.hm-card p {
  color: var(--hm-text);
  font-size: 0.8rem;
}

/* ===== Programs / events ===== */
.hm-programs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.hm-programs .hm-ignite {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.hm-programs .hm-ignite__foot {
  margin-top: auto;
  padding-top: 16px;
}

.hm-programs--single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

.hm-ignite__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hm-ignite--skeleton {
  min-height: 240px;
  background: linear-gradient(100deg, #e4e7f8 30%, #f2f4ff 50%, #e4e7f8 70%) 0 0 / 200% 100%;
  animation: hmShimmer 1.3s linear infinite;
}

@keyframes hmShimmer {
  to {
    background-position: -200% 0;
  }
}

/* ===== Sponsorship ===== */
.hm-spon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hm-spon-card {
  align-items: flex-start;
  gap: 8px;
  padding: 20px 18px;
}

.hm-spon-card h4 {
  font-size: 0.98rem;
}

.hm-ignite {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 22px 20px;
  border-radius: var(--hm-radius);
  background: linear-gradient(135deg, var(--hm-navy) 0%, var(--hm-navy-2) 50%, var(--hm-navy-3) 100%);
  color: #fff;
}

.hm-ignite__logo {
  color: var(--hm-gold);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hm .hm-ignite h3 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 1.4rem;
}

.hm-ignite p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.hm-ignite__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}

.hm-ignite__tags span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
}

.hm-ignite__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.hm-ignite__foot small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

.hm-ignite__foot small strong {
  color: var(--hm-gold);
}

.hm-ignite--alt {
  background: linear-gradient(135deg, #2b1d5e 0%, #4b3a9a 50%, #764ba2 100%);
}

.hm-list {
  flex: 1;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: var(--hm-radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.06);
}

.hm .hm-list__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hm-line);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.hm a.hm-list__row:hover {
  background: var(--hm-tint);
}

.hm-list__row:last-child {
  border-bottom: none;
}

.hm-list__date {
  flex-shrink: 0;
  width: 46px;
  text-align: center;
}

.hm-list__day {
  color: var(--hm-primary-2);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.hm-list__mon {
  color: var(--hm-text);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hm-list__info {
  flex: 1;
  min-width: 0;
}

.hm-list__info h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.hm-list__info p {
  margin-top: 2px;
  color: var(--hm-text);
  font-size: 0.78rem;
}

.hm-list__arrow {
  color: var(--hm-text);
  font-size: 12px;
}

.hm .hm-viewall {
  display: block;
  margin-top: 14px;
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  text-decoration: none;
}

.hm .hm-viewall:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ===== Services / news / about / contact ===== */
/* ===== Professional services ===== */
.hm-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hm-services__card {
  align-items: flex-start;
  gap: 8px;
  padding: 20px 18px;
}

.hm-services__card h4 {
  font-size: 0.98rem;
}

.hm-services__card[data-service-card] {
  cursor: pointer;
}

.hm-services__card--skeleton {
  min-height: 150px;
  background: linear-gradient(100deg, #e4e7f8 30%, #f2f4ff 50%, #e4e7f8 70%) 0 0 / 200% 100%;
  animation: hmShimmer 1.3s linear infinite;
}

/* ===== CTA banner ===== */
.hm-cta {
  padding: 26px 0;
  background: linear-gradient(135deg, var(--hm-navy) 0%, var(--hm-navy-2) 50%, var(--hm-navy-3) 100%);
  color: #fff;
}

.hm-cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hm .hm-cta h2 {
  color: #fff;
  font-size: 1.4rem;
}

.hm-cta p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.hm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hm-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hm-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hm .hm-hero h1 {
    font-size: 2.3rem;
  }

  .hm-eco,
  .hm-chub,
  .hm-spon-grid,
  .hm-services {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hm-hero__grid {
    grid-template-columns: 1fr;
  }

  .hm-hero__copy {
    text-align: center;
  }

  .hm-hero__ctas {
    justify-content: center;
  }

  .hm-hero__art {
    padding: 10px;
  }

  .hm-hub {
    max-width: 380px;
  }

  .hm-roles__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hm-role {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

}

@media (max-width: 640px) {
  .hm-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hm-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hm-section--roomy {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .hm-hero {
    padding: 36px 0 32px;
  }

  .hm .hm-hero h1 {
    font-size: 1.85rem;
  }

  .hm-hero__lead {
    font-size: 0.95rem;
  }

  .hm-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hm-hub {
    max-width: 320px;
  }

  .hm-hub__label {
    padding: 2px 8px;
    font-size: 0.6rem;
  }

  .hm-roles__grid {
    grid-template-columns: 1fr;
  }

  .hm-role {
    padding: 20px 4px;
  }

  .hm-section__head h2 {
    font-size: 1.3rem;
  }

  .hm-eco,
  .hm-chub,
  .hm-spon-grid,
  .hm-services {
    grid-template-columns: 1fr;
  }

  .hm-ignite__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .hm-ignite__foot .hm-btn {
    width: 100%;
  }

  .hm-cta__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hm-cta__actions {
    width: 100%;
  }

  .hm-cta__actions .hm-btn {
    flex: 1;
  }
}

@media (max-width: 400px) {
  .hm .hm-hero h1 {
    font-size: 1.6rem;
  }
}

/* ===== Polish: headings, hover states, hero motion ===== */
/* short gradient rule under every section heading */
.hm-section__head h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--hm-primary), var(--hm-primary-2), var(--hm-gold));
}

/* roles: icon lifts on hover */
.hm-role .hm-icon {
  transition: transform 0.2s ease;
}

.hm-role:hover .hm-icon {
  transform: translateY(-3px) scale(1.06);
}/* cards: soft lift */
.hm-card,
.hm-eco__card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(102, 126, 234, 0.2);
}

.hm-eco__card:hover {
  transform: translateY(-4px);
  border-color: var(--tone-fg);
  box-shadow: 0 16px 30px rgba(26, 26, 46, 0.16);
}

.hm-eco__photo img {
  transition: transform 0.5s ease;
}

.hm-eco__card:hover .hm-eco__photo img {
  transform: scale(1.08);
}

.hm-card.hm-action {
  border-left: 4px solid var(--tone-fg, var(--hm-primary));
}

.hm-card.hm-action:has(.hm-icon--orange) {
  --tone-fg: #c2620a;
}

.hm-card.hm-action:has(.hm-icon--purple) {
  --tone-fg: #764ba2;
}

/* hero: soft glows behind the content */
.hm-hero::after {
  content: '';
  position: absolute;
  right: -140px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.24), transparent 65%);
  pointer-events: none;
}

.hm-hero__glow {
  position: absolute;
  top: -120px;
  left: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  pointer-events: none;
}

/* CTA banner: subtle light sweep */
.hm-cta {
  position: relative;
  overflow: hidden;
}

.hm-cta::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -5%;
  width: 420px;
  height: 220%;
  background: radial-gradient(ellipse, rgba(102, 126, 234, 0.3), transparent 65%);
  pointer-events: none;
}

.hm-cta__row {
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  .hm-hero__copy > * {
    animation: hmFadeUp 0.7s ease both;
  }

  .hm-hero__copy > *:nth-child(2) {
    animation-delay: 0.08s;
  }

  .hm-hero__copy > *:nth-child(3) {
    animation-delay: 0.16s;
  }

  .hm-hero__copy > *:nth-child(4) {
    animation-delay: 0.24s;
  }

  .hm-hub {
    animation: hmFadeUp 0.9s ease 0.15s both;
  }

  .hm-hub__node:not(.hm-hub__node--student) {
    animation: hmFloat 5s ease-in-out infinite;
  }

  .hm-hub__node--organizations {
    animation-delay: -1.2s;
  }

  .hm-hub__node--mentors {
    animation-delay: -2.4s;
  }

  .hm-hub__node--sponsors {
    animation-delay: -3.6s;
  }
}

@keyframes hmFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hmFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}



/* ===== Our associate partners: a single-line strip card ===== */
.hm-section--compact {
  padding-top: 24px;
  padding-bottom: 26px;
}

.hm-section--compact .hm-section__head {
  margin-bottom: 16px;
}

.hm-assoc__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
}

.hm-assoc__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.hm-assoc__region-name {
  margin-bottom: 8px;
  color: var(--hm-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hm-assoc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hm .hm-card.hm-assoc__card {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 250px;
  max-width: 100%;
  padding: 7px 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hm-assoc__card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.hm-assoc__who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.hm-assoc__who strong {
  color: var(--hm-heading);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.hm-assoc__who small {
  color: var(--hm-text);
  font-size: 0.72rem;
}

.hm-assoc__arrow {
  color: var(--hm-text);
  font-size: 10px;
}

/* details popup (rendered outside .hm, so colours are explicit) */
.assoc-modal .ant-modal-content {
  padding: 24px;
  border-radius: 14px;
}

.assoc-modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-right: 24px;
}

.assoc-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e6f4ff;
  color: #1677d6;
  font-size: 20px;
}

.assoc-modal__head h3 {
  margin: 0;
  color: #1a1a2e;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.assoc-modal__head p {
  margin: 2px 0 0;
  color: #4b5563;
  font-size: 0.85rem;
}

.assoc-modal__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assoc-modal__details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.assoc-modal__details .anticon {
  flex-shrink: 0;
  margin-top: 4px;
  color: #2563eb;
}

.assoc-modal__details a {
  color: #2563eb;
}
