/* Alumni public home (/en/alumni/) — revamped layout */

.ah {
  --ah-maroon: #551516;
  --ah-maroon-deep: #3a0d0e;
  --ah-gold: #cb892c;
  --ah-ink: #1d1517;
  --ah-muted: #6b5f60;
  --ah-line: #ece4e1;
  --ah-soft: #faf6f3;
}

/* Shared section head */
.ah-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.ah-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: var(--ah-ink);
  letter-spacing: -0.01em;
}

.ah-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ah-gold);
}

.ah-head__lead {
  margin: 0.55rem 0 0;
  max-width: 40rem;
  color: var(--ah-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ah-head__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ah-maroon);
  text-decoration: none;
  white-space: nowrap;
}

.ah-head__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.ah-head__link:hover svg {
  transform: translateX(3px);
}

/* Live numbers strip */
.ah-impact {
  position: relative;
  z-index: 2;
  padding-top: 1.5rem;
}

.ah-impact__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(58, 13, 14, 0.14);
  overflow: hidden;
}

.ah-impact__inner--1 { grid-template-columns: 1fr; }
.ah-impact__inner--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ah-impact__inner--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ah-impact__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: var(--ah-ink);
  border-left: 1px solid var(--ah-line);
  transition: background 0.18s ease;
}

.ah-impact__item:first-child {
  border-left: 0;
  background: linear-gradient(135deg, var(--ah-maroon), var(--ah-maroon-deep));
  color: #fff;
}

.ah-impact__item:hover {
  background: var(--ah-soft);
}

.ah-impact__item:first-child:hover {
  background: linear-gradient(135deg, #641a1b, var(--ah-maroon-deep));
}

.ah-impact__item strong {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ah-maroon);
}

.ah-impact__item:first-child strong {
  color: #fff;
}

.ah-impact__item span {
  font-size: 0.8rem;
  color: var(--ah-muted);
  line-height: 1.35;
}

.ah-impact__item:first-child span {
  color: rgba(255, 255, 255, 0.82);
}

/* Start here tiles */
.ah-start {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.ah-start__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ah-start__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.3rem 1.25rem 1.2rem;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  background: #fff;
  color: var(--ah-ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ah-start__tile:hover,
.ah-start__tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(85, 21, 22, 0.28);
  box-shadow: 0 14px 30px rgba(58, 13, 14, 0.1);
}

.ah-start__tile--primary {
  background: linear-gradient(140deg, var(--ah-maroon) 0%, var(--ah-maroon-deep) 100%);
  border-color: transparent;
  color: #fff;
}

.ah-start__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(203, 137, 44, 0.14);
  color: var(--ah-maroon);
}

.ah-start__tile--primary .ah-start__icon {
  background: rgba(255, 255, 255, 0.14);
  color: #f3c27a;
}

.ah-start__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ah-start__body strong {
  font-size: 1.02rem;
}

.ah-start__body span {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ah-muted);
}

.ah-start__tile--primary .ah-start__body span {
  color: rgba(255, 255, 255, 0.8);
}

.ah-start__go {
  position: absolute;
  top: 1.3rem;
  right: 1.2rem;
  color: var(--ah-gold);
  opacity: 0.7;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ah-start__go svg {
  width: 18px;
  height: 18px;
}

.ah-start__tile:hover .ah-start__go {
  opacity: 1;
  transform: translateX(3px);
}

/* Spotlight tabs */
.ah-spot {
  padding-bottom: 1rem;
}

.ah-spot__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--ah-soft);
  border: 1px solid var(--ah-line);
}

.ah-spot__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ah-muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.ah-spot__tab:hover {
  color: var(--ah-maroon);
}

.ah-spot__tab.is-active {
  background: var(--ah-maroon);
  color: #fff;
  box-shadow: 0 6px 16px rgba(85, 21, 22, 0.22);
}

.ah-spot__tab:focus-visible {
  outline: 2px solid var(--ah-gold);
  outline-offset: 2px;
}

.ah-spot__panel > .alumni-section {
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.ah-spot .aspire-leaders-promo__media {
  min-height: 360px;
}

.ah-spot .aspire-leaders-promo__media img {
  position: absolute;
  inset: 0;
  object-position: center;
}

.ah-spot.is-tabbed .ah-spot__panel:not(.is-active) {
  display: none;
}

.ah-spot.is-tabbed .ah-spot__panel.is-active {
  animation: ah-fade 0.28s ease;
}

@keyframes ah-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Events */
.ah-events__where {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ah-maroon);
}

/* Pillars */
.ah-pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ah-pillar {
  --ah-pillar: var(--ah-maroon);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.3rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ah-line);
  border-top: 4px solid var(--ah-pillar);
  color: var(--ah-ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ah-pillar--2 { --ah-pillar: #8a5a12; }
.ah-pillar--3 { --ah-pillar: #2f5d50; }
.ah-pillar--4 { --ah-pillar: var(--ah-gold); }

.ah-pillar:hover,
.ah-pillar:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(58, 13, 14, 0.1);
}

.ah-pillar__num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ah-pillar);
}

.ah-pillar h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.ah-pillar p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ah-muted);
  flex: 1;
}

.ah-pillar__contact {
  font-size: 0.76rem;
  color: var(--ah-muted);
  padding-top: 0.6rem;
  border-top: 1px dashed var(--ah-line);
}

.ah-pillar__go {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ah-pillar);
}

.ah-pillar__go svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.ah-pillar:hover .ah-pillar__go svg {
  transform: translateX(3px);
}

/* News */
.ah-news__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

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

.ah-news__featured-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #efe5e1, #f8f1ec);
  overflow: hidden;
}

.ah-news__featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.4s ease;
}

.ah-news__featured:hover .ah-news__featured-media img {
  transform: scale(1.03);
}

.ah-news__featured-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.ah-news__featured-body small,
.ah-news__item small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ah-gold);
}

.ah-news__featured-body h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

.ah-news__featured-body h3 a {
  color: var(--ah-ink);
  text-decoration: none;
}

.ah-news__featured-body h3 a:hover {
  color: var(--ah-maroon);
}

.ah-news__featured-body p {
  margin: 0 0 0.75rem;
  color: var(--ah-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ah-news__byline {
  font-size: 0.8rem;
  color: var(--ah-muted);
}

.ah-news__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ah-news__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ah-line);
  color: var(--ah-ink);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  flex: 1;
}

.ah-news__item:hover {
  border-color: rgba(85, 21, 22, 0.25);
  box-shadow: 0 10px 22px rgba(58, 13, 14, 0.08);
}

.ah-news__item img {
  width: 96px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 25%;
  background: linear-gradient(135deg, #efe5e1, #f8f1ec);
}

.ah-news__item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.25rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Areas */
.ah-areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.ah-area {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ah-line);
  color: var(--ah-ink);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.ah-area:hover,
.ah-area:focus-visible {
  border-color: rgba(85, 21, 22, 0.3);
  transform: translateY(-2px);
}

.ah-area img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f1e4dc, #e9d3c4);
}

.ah-area__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ah-area__body strong {
  font-size: 0.95rem;
}

.ah-area__body span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ah-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .ah-start__grid,
  .ah-pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-impact__inner,
  .ah-impact__inner--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-impact__item:nth-child(3) {
    border-left: 0;
  }

  .ah-impact__item:nth-child(n + 3) {
    border-top: 1px solid var(--ah-line);
  }

  .ah-news__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ah-impact {
    padding-top: 1rem;
  }

  .ah-start__grid,
  .ah-pillars__grid {
    grid-template-columns: 1fr;
  }

  .ah-start__tile {
    flex-direction: row;
    align-items: center;
    padding: 1rem;
  }

  .ah-start__go {
    position: static;
    margin-left: auto;
  }

  .ah-spot__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: 14px;
    scrollbar-width: none;
  }

  .ah-spot__tab {
    white-space: nowrap;
  }

  .ah-impact__item {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-start__tile,
  .ah-pillar,
  .ah-area,
  .ah-news__featured-media img,
  .ah-spot.is-tabbed .ah-spot__panel.is-active {
    transition: none;
    animation: none;
  }
}
