/* Figma: Design Working File — WKmMos0BVKrPV95jSEUBaJ
 * Desktop homepage: https://www.figma.com/design/WKmMos0BVKrPV95jSEUBaJ/Design-Working-File?node-id=446-7556&m=dev
 * Hero carousel desktop: https://www.figma.com/design/WKmMos0BVKrPV95jSEUBaJ/Design-Working-File?node-id=446-7559&m=dev
 * Mobile hero frame + dots: https://www.figma.com/design/WKmMos0BVKrPV95jSEUBaJ/Design-Working-File?node-id=583-16855&m=dev
 * Mobile homepage: https://www.figma.com/design/WKmMos0BVKrPV95jSEUBaJ/Design-Working-File?node-id=583-16698&m=dev
 *
 * Tokens mirror Figma "numbers/*" spacing: page 80px, gap/section 80px,
 * gap/large 24px, gap/medium-large 20px, gap/medium 12px, gap/small 8px,
 * gap/extra-small 4px, padding/card 30px, padding/large 24px, padding/medium-large 20px,
 * CTA horizontal 24px / vertical 12px (desktop), 8px vertical on mobile shells.
 */

.figma-homepage {
  --fh-content: min(1280px, 100%);

  /* Core spacing tokens */
  --fh-space-page: 80px;
  --fh-gap-section: 80px;
  --fh-gap-xl: 80px;
  --fh-gap-lg: 24px;
  --fh-gap-md-lg: 20px;
  --fh-gap-md: 12px;
  --fh-gap-sm: 8px;
  --fh-gap-xs: 4px;

  --fh-pad-card: 30px;
  --fh-pad-lg: 24px;
  --fh-pad-ml: 20px;
  --fh-pad-md: 16px;

  --fh-pad-cta-x: 24px;
  --fh-pad-cta-y: 12px;
  --fh-pad-cta-y-sm: 8px;

  --fh-pad-chip-x: 8px;
  --fh-pad-chip-y: 4px;

  --fh-page-pad: var(--fh-space-page);
  --fh-section-gap: var(--fh-gap-section);

  --fh-brand: #a70e13;
  --fh-preheader: #7b1818;
  --fh-ink: #222;
  --fh-secondary: #434343;
  --fh-tertiary: #656565;

  --fh-stroke: #bbb;
  --fh-stroke-dark: #989898;
  --fh-section-bg: #efefef;

  --fh-carousel-rail-active: #1c0c0c;
  --fh-carousel-stripe-a: #2c0c0c;
  --fh-carousel-stripe-b: #390f0f;
  --fh-carousel-stripe-c: #481414;

  color: var(--fh-ink);
  font-family: "Titillium Web", sans-serif;
  width: 100%;
}

.figma-homepage a,
.figma-homepage button,
.figma-homepage p,
.figma-homepage li {
  font-family: inherit;
}

/* Frame — full viewport width; Figma 1440 is a content reference, not a hard cap (avoids side gutters on ultrawide) */
.figma-homepage .fh-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
}

/* Horizontal rhythm: matches Figma px-[page] until breakpoints downscale */
.figma-homepage .fh-page {
  padding-left: var(--fh-page-pad);
  padding-right: var(--fh-page-pad);
  box-sizing: border-box;
}

.figma-homepage .fh-content {
  max-width: var(--fh-content);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Sections below hero share one vertical rhythm */
.figma-homepage .fh-stack {
  display: flex;
  flex-direction: column;
  gap: var(--fh-gap-section);
  padding-top: var(--fh-gap-section);
  /* Figma gap/section above first gray band: white stripe (gray block keeps its own inset via bottom pad + second gray) */
  padding-bottom: var(--fh-gap-section);
}

.figma-homepage .fh-section {
  display: flex;
  flex-direction: column;
  gap: var(--fh-gap-lg);
  padding-top: 0;
}

.figma-homepage .fh-heading-row {
  display: flex;
  align-items: center;
  gap: var(--fh-gap-md);
  width: 100%;
}

.figma-homepage .fh-heading {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--fh-ink);
}

.figma-homepage .fh-heading-row .fh-heading {
  flex: 1 1 auto;
}

.figma-homepage .fh-cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--fh-gap-sm);
  padding: 6px 4px;
  color: var(--fh-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.figma-homepage .fh-cta-link:hover {
  text-decoration: underline;
}

/* Hero carousel — desktop rail + 632px; mobile 400px + dots + details band (583:16855+) */
.figma-homepage .fh-hero-carousel-wrap {
  position: relative;
  width: 100%;
}

.figma-homepage .fh-hero {
  position: relative;
  height: 632px;
  overflow: hidden;
  background: #111;
}

.figma-homepage .fh-hero-carousel .fh-hero-slides {
  position: absolute;
  inset: 0;
}

.figma-homepage .fh-hero-carousel .fh-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.55s ease,
    visibility 0.55s;
}

@media (prefers-reduced-motion: reduce) {
  .figma-homepage .fh-hero-carousel .fh-hero-slide {
    transition: none;
  }
}

.figma-homepage .fh-hero-carousel .fh-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 0;
}

.figma-homepage .fh-hero-carousel .fh-hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.figma-homepage .fh-hero-carousel .fh-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.52) 30%, rgba(0, 0, 0, 0.08) 68%, rgba(0, 0, 0, 0) 100%);
}

/* Left rail — carousel-caption-active (Figma #1c0c0c / 29px) */
.figma-homepage .fh-hero-carousel-rail {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: none;
  width: 29px;
  height: 632px;
  box-sizing: border-box;
  background: var(--fh-carousel-rail-active);
  padding: 206px var(--fh-gap-xs) 206px;
  align-items: center;
  justify-content: center;
}

.figma-homepage .fh-hero-carousel-rail__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.figma-homepage .fh-hero-carousel-rail__text {
  display: inline-block;
  transform: rotate(-90deg);
  transform-origin: center center;
  white-space: nowrap;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Right navigator stripes (#2c0c0c, #390f0f ~28px, #481414) */
.figma-homepage .fh-hero-carousel-next {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  display: none;
  flex-direction: row;
  height: 632px;
}

.figma-homepage .fh-hero-carousel-next__stripe {
  width: 29px;
  height: 100%;
  box-sizing: border-box;
  padding: 196px 4px;
  border: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fh-carousel-stripe-a);
  color: #fff;
  font: inherit;
}

.figma-homepage .fh-hero-carousel-next__stripe--wa {
  background: var(--fh-carousel-stripe-a);
}

.figma-homepage .fh-hero-carousel-next__stripe--wb {
  background: var(--fh-carousel-stripe-c);
}

.figma-homepage .fh-hero-carousel-next__stripe:nth-child(2) {
  width: 28px;
  padding-left: 3px;
  padding-right: 3px;
  background: var(--fh-carousel-stripe-b);
}

.figma-homepage .fh-hero-carousel-next__stripe-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 220px;
}

.figma-homepage .fh-hero-carousel-next__stripe-text {
  display: inline-block;
  transform: rotate(-90deg);
  transform-origin: center center;
  white-space: nowrap;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
}

.figma-homepage .fh-hero-carousel-next__stripe:hover,
.figma-homepage .fh-hero-carousel-next__stripe:focus-visible {
  filter: brightness(1.12);
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* Pagination — mobile (583:17235, ~47×8) */
.figma-homepage .fh-hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
  pointer-events: auto;
}

.figma-homepage .fh-hero-carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
}

.figma-homepage .fh-hero-carousel-dot:hover,
.figma-homepage .fh-hero-carousel-dot:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.figma-homepage .fh-hero-carousel-dot[aria-selected='true'] {
  width: 22px;
  height: 8px;
  background: var(--fh-brand);
}

@media (min-width: 992px) {
  .figma-homepage .fh-hero-carousel-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .figma-homepage .fh-hero-carousel-next {
    display: flex;
  }

  .figma-homepage .fh-hero-carousel-dots {
    display: none;
  }
}

/* Desktop hero: full-width wiper (stripe stack + active segment) sweeps R→L; mobile unchanged */
.figma-homepage .fh-hero-carousel-wiper {
  display: none;
}

@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .figma-homepage .fh-hero-carousel-wiper {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 12;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
  }

  .figma-homepage .fh-hero-carousel-wrap--wiper-on {
    overflow: hidden;
  }

  .figma-homepage .fh-hero-carousel-wrap--wiper-on .fh-hero-carousel-wiper {
    visibility: visible;
    pointer-events: auto;
  }

  .figma-homepage .fh-hero-carousel-wrap--wiper-on .fh-hero-carousel-rail,
  .figma-homepage .fh-hero-carousel-wrap--wiper-on .fh-hero-carousel-next {
    visibility: hidden;
  }

  .figma-homepage .fh-hero-carousel-wiper__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translateX(100%);
  }

  .figma-homepage .fh-hero-carousel-wiper__bar {
    display: block;
    height: 100%;
    flex-shrink: 0;
  }

  .figma-homepage .fh-hero-carousel-wiper__bar--1 {
    width: 29px;
    background: var(--fh-carousel-stripe-a);
  }

  .figma-homepage .fh-hero-carousel-wiper__bar--2 {
    width: 28px;
    background: var(--fh-carousel-stripe-b);
  }

  .figma-homepage .fh-hero-carousel-wiper__bar--3 {
    width: 29px;
    background: var(--fh-carousel-stripe-c);
  }

  .figma-homepage .fh-hero-carousel-wiper__bar--active {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--fh-carousel-rail-active);
  }

  @keyframes fh-hero-wiper-sweep {
    from {
      transform: translateX(100%);
    }

    to {
      transform: translateX(-100%);
    }
  }

  .figma-homepage .fh-hero-carousel-wiper__inner.is-sweeping {
    animation: fh-hero-wiper-sweep 0.9s cubic-bezier(0.42, 0, 0.2, 1) forwards;
  }

  .figma-homepage .fh-hero-carousel .fh-hero-slide {
    transition:
      opacity 0.5s ease,
      visibility 0.5s;
  }
}

/* Details: desktop overlay bottom; mobile static gray band */
.figma-homepage .fh-hero-carousel-details {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding-bottom: 40px;
  pointer-events: none;
}

/* Caption sits in .fh-hero-carousel-details (sibling of .fh-hero-carousel), not inside the section */
.figma-homepage .fh-hero-carousel-details .fh-hero-caption {
  pointer-events: auto;
  max-width: min(740px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  color: #fff;
}

/* Hero overlay: caption aligns to page gutter (not centered like other .fh-content bands) */
.figma-homepage .fh-hero-carousel-details.fh-page .fh-content {
  margin-left: 0;
  margin-right: auto;
}

.figma-homepage .fh-hero-carousel-details .fh-hero-title {
  margin: 0 0 var(--fh-gap-xs);
  font-size: 42px;
  font-weight: 700;
  line-height: normal;
  color: #fff;
}

.figma-homepage .fh-hero-carousel-details .fh-hero-copy {
  margin: 0 0 var(--fh-gap-lg);
  font-size: 16px;
  line-height: normal;
  color: #fff;
}

.figma-homepage .fh-hero-actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--fh-gap-md);
}

.figma-homepage .fh-hero-carousel-details .fh-btn {
  font-size: 20px;
}

.figma-homepage .fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--fh-pad-cta-y) var(--fh-pad-cta-x);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}

.figma-homepage .fh-btn-primary {
  background: var(--fh-brand);
  border-color: var(--fh-brand);
  color: #fff;
}

.figma-homepage .fh-btn-primary:hover {
  background: #8f0c11;
  border-color: #8f0c11;
}

.figma-homepage .fh-btn-secondary {
  background: #fff;
  border-color: var(--fh-brand);
  color: var(--fh-brand);
}

.figma-homepage .fh-btn-secondary:hover {
  background: #fff5f5;
}

/* Programs */
.figma-homepage .fh-programs {
  display: flex;
  gap: 0;
  width: 100%;
}

.figma-homepage .fh-program-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 300px;
  border: 1px solid var(--fh-stroke);
  padding: var(--fh-pad-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--fh-gap-md);
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.figma-homepage .fh-program-card + .fh-program-card {
  border-left: 0;
}

.figma-homepage .fh-program-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.figma-homepage .fh-program-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--fh-tertiary);
  max-width: 320px;
}

.figma-homepage .fh-card-icon {
  position: absolute;
  top: 19.5px;
  right: 19.5px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

/* News / events grid */
.figma-homepage .fh-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.figma-homepage .fh-news-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: var(--fh-gap-md-lg);
  border: 1px solid var(--fh-stroke);
  padding: var(--fh-pad-card);
  min-height: 349px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.figma-homepage .fh-news-card:nth-child(odd) {
  border-right: 0;
}

.figma-homepage .fh-news-media {
  height: 289px;
  overflow: hidden;
  position: relative;
}

.figma-homepage .fh-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figma-homepage .fh-news-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--fh-gap-md);
  padding: 0 var(--fh-pad-ml);
  min-width: 0;
}

.figma-homepage .fh-news-type {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fh-ink);
  margin: 0;
}

.figma-homepage .fh-news-title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--fh-tertiary);
}

/* Legacy + stats gray band — two sibling bands share one logical 80px band break */
.figma-homepage .fh-section-gray {
  position: relative;
  background: var(--fh-section-bg);
  padding: var(--fh-gap-section) 0;
}

/* First gray section: top inset from browser preview */
.figma-homepage .fh-frame > .fh-section-gray:first-of-type {
  padding-top: 80px;
}

.figma-homepage .fh-section-gray + .fh-section-gray {
  padding-top: 0;
}

.figma-homepage .fh-section-gray .fh-page {
  padding-top: 0;
  padding-bottom: 0;
}

.figma-homepage .fh-legacy {
  display: grid;
  grid-template-columns: minmax(0, 630px) minmax(0, 1fr);
  gap: var(--fh-gap-xl);
  align-items: center;
}

.figma-homepage .fh-video {
  height: 359px;
  overflow: hidden;
  background: #111;
}

.figma-homepage .fh-legacy-title {
  margin: 0 0 var(--fh-gap-xs);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.figma-homepage .fh-legacy-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fh-secondary);
}

/* Text stack next to legacy video — Figma gap 24 within column */
.figma-homepage .fh-legacy > div:last-child {
  display: flex;
  flex-direction: column;
  gap: var(--fh-gap-lg);
}

.figma-homepage .fh-stats {
  display: flex;
  justify-content: space-between;
  gap: var(--fh-gap-md);
  padding-top: var(--fh-pad-md);
  flex-wrap: wrap;
}

.figma-homepage .fh-stat {
  flex: 0 1 auto;
  min-width: 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--fh-gap-xs);
}

.figma-homepage .fh-stat-value {
  color: var(--fh-brand);
  font-family: "Times New Roman", serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
}

.figma-homepage .fh-stat-suffix {
  font-family: "Titillium Web", sans-serif;
  font-size: 14px;
  font-weight: 600;
  vertical-align: top;
}

.figma-homepage .fh-stat-label {
  margin-top: 0;
  color: var(--fh-tertiary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.figma-homepage .fh-stat-note {
  margin-top: var(--fh-gap-xs);
  font-size: 12px;
  color: var(--fh-tertiary);
  text-align: right;
}

/* Heading → Explore cards (gray band): Figma gap ~24 below section title */
.figma-homepage .fh-section-gray .fh-content:has(.fh-explore-grid) {
  display: flex;
  flex-direction: column;
  gap: var(--fh-gap-lg);
}

.figma-homepage .fh-explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.figma-homepage .fh-explore-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 300px;
  border: 1px solid var(--fh-stroke-dark);
  padding: var(--fh-pad-card);
  color: inherit;
  text-decoration: none;
  background: var(--fh-section-bg);
}

.figma-homepage .fh-explore-card + .fh-explore-card {
  border-left: 0;
}

.figma-homepage .fh-explore-card-inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--fh-gap-md-lg);
  width: 100%;
  max-width: 320px;
  min-height: 0;
}

.figma-homepage .fh-explore-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 120px;
  width: 260px;
  max-width: 100%;
  overflow: hidden;
}

.figma-homepage .fh-explore-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figma-homepage .fh-explore-footer {
  display: flex;
  align-items: center;
  gap: var(--fh-gap-md);
  width: 100%;
}

.figma-homepage .fh-explore-arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--fh-ink);
  line-height: 1;
}

.figma-homepage .fh-explore-arrow .iitd-icon {
  width: 30px;
  height: 30px;
}

.figma-homepage .fh-explore-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  color: var(--fh-ink);
}

.figma-homepage .fh-explore-card:hover .fh-explore-title {
  text-decoration: underline;
}

.figma-homepage .fh-explore-card:focus-visible {
  outline: 3px solid var(--fh-brand);
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

/* FAQs band (white) — inset from Explore gray + space above footer */
.figma-homepage > .fh-frame > .fh-page:last-child {
  padding-top: var(--fh-gap-section);
  padding-bottom: var(--fh-gap-section);
}

/* --- Responsive --- */
@media (max-width: 1199.98px) {
  .figma-homepage {
    --fh-space-page: 40px;
    --fh-gap-section: 56px;
    --fh-gap-xl: 56px;
  }

  .figma-homepage .fh-explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figma-homepage .fh-explore-card + .fh-explore-card {
    border-left: 1px solid var(--fh-stroke-dark);
  }
}

@media (max-width: 991.98px) {
  .figma-homepage {
    /* Mobile shell 583 — page horiz medium-large ~20px, vertical section rhythm 60 */
    --fh-space-page: 20px;
    --fh-gap-section: 60px;
    --fh-gap-xl: 48px;
    --fh-page-pad: 20px;
  }

  .figma-homepage .fh-hero-carousel .fh-hero {
    height: 400px;
    min-height: 0;
  }

  .figma-homepage .fh-hero-carousel-rail,
  .figma-homepage .fh-hero-carousel-next {
    display: none !important;
  }

  .figma-homepage .fh-hero-carousel-dots {
    display: flex;
  }

  .figma-homepage .fh-hero-carousel .fh-hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.42) 100%);
  }

  .figma-homepage .fh-hero-carousel-details {
    position: static;
    z-index: auto;
    /* Figma 583:16856 — py padding/large 24, px padding/medium 16 */
    padding-top: var(--fh-pad-lg);
    padding-bottom: var(--fh-pad-lg);
    padding-left: var(--fh-pad-md);
    padding-right: var(--fh-pad-md);
    background: var(--fh-section-bg);
    pointer-events: auto;
  }

  .figma-homepage .fh-hero-carousel-details .fh-content {
    padding-top: 0;
  }

  .figma-homepage .fh-hero-carousel-details .fh-hero-caption {
    color: var(--fh-ink);
  }

  .figma-homepage .fh-hero-carousel-details .fh-hero-title {
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    color: var(--fh-ink);
  }

  .figma-homepage .fh-hero-carousel-details .fh-hero-copy {
    font-size: 14px;
    line-height: normal;
    color: var(--fh-tertiary);
  }

  .figma-homepage .fh-hero-carousel-details .fh-btn {
    font-size: 16px;
    min-height: 40px;
  }

  .figma-homepage .fh-btn {
    padding: var(--fh-pad-cta-y-sm) var(--fh-pad-cta-x);
  }

  /* Figma 583:16862 — actions row, gap/medium 12; secondary CTA flex-grow */
  .figma-homepage .fh-hero-carousel-details .fh-hero-actions {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--fh-gap-md);
  }

  .figma-homepage .fh-hero-carousel-details .fh-hero-actions .fh-btn-primary {
    flex: 0 0 auto;
  }

  .figma-homepage .fh-hero-carousel-details .fh-hero-actions .fh-btn-secondary {
    flex: 1 1 0;
    min-width: 0;
  }

  .figma-homepage .fh-programs {
    flex-direction: column;
  }

  .figma-homepage .fh-program-card {
    height: auto;
    min-height: 240px;
  }

  .figma-homepage .fh-program-card + .fh-program-card {
    border-left: 1px solid var(--fh-stroke);
    border-top: 0;
  }

  .figma-homepage .fh-news-grid {
    grid-template-columns: 1fr;
  }

  .figma-homepage .fh-news-card:nth-child(odd) {
    border-right: 1px solid var(--fh-stroke);
  }

  .figma-homepage .fh-news-card {
    grid-template-columns: 1fr;
    gap: var(--fh-gap-lg);
    min-height: 0;
    height: auto;
    padding-bottom: var(--fh-pad-md);
  }

  .figma-homepage .fh-news-copy {
    padding: 0;
  }

  .figma-homepage .fh-legacy {
    grid-template-columns: 1fr;
    gap: var(--fh-gap-lg);
  }

  .figma-homepage .fh-stat-note {
    text-align: left;
  }

  .figma-homepage .fh-explore-grid {
    grid-template-columns: 1fr;
  }

  .figma-homepage .fh-explore-card + .fh-explore-card {
    border-left: 1px solid var(--fh-stroke-dark);
    border-top: 0;
  }

  .figma-homepage .fh-explore-card {
    height: auto;
    min-height: 240px;
  }
}

@media (max-width: 575.98px) {
  /* Figma mobile hero keeps CTAs in one row (583:16862); stack only outside carousel */
  .figma-homepage .fh-hero-actions:not(.fh-hero-carousel-actions) {
    flex-direction: column;
    align-items: stretch;
  }

  .figma-homepage .fh-hero-actions:not(.fh-hero-carousel-actions) .fh-btn {
    width: 100%;
    justify-content: center;
  }
}
