/* Home: hero carousel replaces default page-banner visuals */
.page-banner--carousel {
  padding: 0;
  background: #0f172a;
  display: block;
  min-height: var(--hero-min-height);
}

.page-banner--carousel .hero-carousel {
  min-height: inherit;
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel__track {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-color: #0f172a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-slide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(15, 23, 42, 0.2) 45%,
    rgba(15, 23, 42, 0.35) 100%
  );
}

.hero-slide--award .hero-slide__bg::after,
.hero-slide--event .hero-slide__bg::after {
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.15) 50%
  );
}

.hero-slide__overlay-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  z-index: 2;
}

.hero-slide__overlay-img img {
  max-width: min(94%, 800px);
  max-height: min(78vh, 560px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hero-slide__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 2.25rem;
}

.hero-slide__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero-slide__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  max-width: 40rem;
}

.hero-slide__text {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-carousel__controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero-carousel__dot[aria-current="true"] {
  background: #fff;
  transform: scale(1.15);
}

.hero-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-carousel__btn:hover,
.hero-carousel__btn:focus-visible {
  background: rgba(15, 23, 42, 0.6);
}

.hero-carousel__btn--prev {
  left: 0.75rem;
}

.hero-carousel__btn--next {
  right: 0.75rem;
}

.hero-carousel__btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 767.98px) {
  .hero-carousel__btn {
    display: none;
  }

  .hero-slide__inner {
    padding-bottom: 3.25rem;
  }
}

/* Leadership rows (above Brand story) */
.home-leaders {
  padding: 2.75rem 1rem 0;
  background: var(--color-white);
}

.leader-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: var(--container-max);
  margin: 0 auto 2.75rem;
  min-height: min(52vw, 440px);
  position: relative;
}

.leader-row:last-child {
  margin-bottom: 2.25rem;
}

.leader-row__panel {
  flex: 0 1 40%;
  max-width: 32rem;
  min-width: min(100%, 17rem);
  margin-right: clamp(-5rem, -8vw, -3rem);
  align-self: center;
  z-index: 2;
  padding: 2.25rem 2rem 2.5rem;
  background: #234E70;
  color: #fff;
  border-bottom-left-radius: 48px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}

.leader-row__dash {
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
}

.leader-row__name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.leader-row__role {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.leader-row__quote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 255, 255, 0.95);
}

.leader-row__visual {
  flex: 1;
  min-width: 0;
  min-height: 280px;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  background: #e2e8f0;
}

.leader-row__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
}

/* Odd rows: copy left, photo right (default) */
/* Even rows: photo left, copy right */
.leader-row:nth-child(even) {
  flex-direction: row-reverse;
}

.leader-row:nth-child(even) .leader-row__panel {
  margin-right: 0;
  margin-left: clamp(-5rem, -8vw, -3rem);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 48px;
}

.leader-row:nth-child(even) .leader-row__visual {
  border-radius: 12px 0 0 12px;
}

@media (max-width: 991.98px) {
  .leader-row {
    flex-direction: column;
    min-height: 0;
    margin-bottom: 2.25rem;
  }

  .leader-row:nth-child(even) {
    flex-direction: column;
  }

  .leader-row__visual {
    order: 1;
    border-radius: 12px 12px 0 0;
    min-height: 240px;
  }

  .leader-row:nth-child(even) .leader-row__visual {
    border-radius: 12px 12px 0 0;
  }

  .leader-row__panel {
    flex: none;
    max-width: none;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    border-radius: 0 0 0 40px;
    border-bottom-right-radius: 0;
    order: 2;
  }

  .leader-row:nth-child(even) .leader-row__panel {
    margin-left: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-radius: 0 0 0 40px;
  }

  .leader-row__visual img {
    min-height: 240px;
  }
}

/* Brand & milestones */
.home-brand {
  padding: 3.5rem 1rem 4rem;
  background: var(--color-surface);
}

.home-brand__inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}

.home-brand__intro {
  margin-bottom: 2.25rem;
}

.home-brand__header {
  max-width: 42rem;
  margin: 0 auto 0;
  text-align: center;
  padding: 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.home-brand__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-hover);
}

.home-brand__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.home-brand__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.home-brand__featured {
  margin-bottom: 2.75rem;
}

.home-brand__spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0;
  align-items: stretch;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.home-brand__spotlight-media {
  min-height: 260px;
  background: #0f172a;
}

.home-brand__spotlight-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

.home-brand__spotlight-copy {
  padding: 2rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-brand__spotlight-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.home-brand__spotlight-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.home-brand__spotlight-text {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.home-brand__spotlight-cta {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.home-brand__spotlight-cta:hover,
.home-brand__spotlight-cta:focus-visible {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .home-brand__spotlight {
    grid-template-columns: 1fr;
  }

  .home-brand__spotlight-media img {
    min-height: 220px;
  }

  .home-brand__spotlight-copy {
    padding: 1.65rem 1.35rem 1.85rem;
  }
}

.home-brand__explore {
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--color-border);
}

.home-brand__explore-heading {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.home-brand__explore-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0;
  min-height: 0;
  align-items: stretch;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.home-brand-row:hover,
.home-brand-row:focus-visible {
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.home-brand-row__media {
  min-height: 12rem;
  align-self: stretch;
  background-size: cover;
  background-position: center;
}

.home-brand-row__content {
  padding: 1.5rem 1.65rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.home-brand-row__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.home-brand-row__title {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.home-brand-row__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (max-width: 767.98px) {
  .home-brand__intro {
    margin-bottom: 1.75rem;
  }

  .home-brand__featured {
    margin-bottom: 2rem;
  }

  .home-brand__explore {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .home-brand-row {
    grid-template-columns: 1fr;
  }

  .home-brand-row__media {
    min-height: 11rem;
  }
}

/* Education (after Solutions) */
.home-education {
  padding: 0;
  background: var(--color-white);
}

.home-education__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  min-height: min(52vh, 520px);
  align-items: stretch;
}

.home-education__visual {
  min-height: 280px;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
}

.home-education__panel {
  padding: 2.5rem 2rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  color: #fff;
}

.home-education__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.home-education__text {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.home-education__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.85rem;
  padding: 0 1.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary);
  background: #fff;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.home-education__cta:hover,
.home-education__cta:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
  .home-education__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-education__visual {
    min-height: 220px;
  }

  .home-education__panel {
    padding: 2rem 1.25rem 2.5rem;
  }
}

/* Solutions */
.home-solutions {
  padding: 3rem 1rem 3.5rem;
  background: var(--color-surface);
}

.home-solutions__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.home-solutions__heading {
  margin: 0 0 2rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.home-solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  align-items: stretch;
}

.home-solution-card {
  min-width: 0;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-rows: auto 1fr;
  align-items: stretch;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.home-solution-card__img {
  background-size: cover;
  background-position: center;
}

.home-solution-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 768px) {
  .home-solution-card__img {
    grid-column: 1;
    grid-row: 1 / -1;
    min-height: 11rem;
  }

  .home-solution-card__body {
    grid-column: 2;
    grid-row: 1;
    padding: 1.5rem 1.5rem 0.75rem 1.65rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .home-solution-card__footer {
    grid-column: 2;
    grid-row: 2;
    padding: 0 1.5rem 1.45rem 1.65rem;
    align-self: end;
  }
}

@media (max-width: 767.98px) {
  .home-solutions__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 1.5rem;
  }

  .home-solution-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .home-solution-card__img {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .home-solution-card__body {
    grid-column: 1;
    grid-row: 2;
    padding: 1.4rem 1.5rem 0.75rem;
  }

  .home-solution-card__footer {
    grid-column: 1;
    grid-row: 3;
    padding: 0 1.5rem 1.45rem;
  }
}

.home-solution-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.home-solution-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.home-solution-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.home-solution-card__cta::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 1px;
}

.home-solution-card__cta:hover,
.home-solution-card__cta:focus-visible {
  color: var(--color-primary-hover);
  gap: 0.55rem;
}

/* News */
.home-news {
  padding: 3rem 1rem 3.5rem;
  background: var(--color-white);
}

.home-news__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.home-news__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.home-news__heading {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--color-primary);
}

.home-news__all {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.35);
}

.home-news__all:hover,
.home-news__all:focus-visible {
  border-bottom-color: var(--color-primary);
  outline: none;
}

.home-news__carousel {
  position: relative;
}

.home-news__track-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.home-news__track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.home-news-card {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  min-height: 280px;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
}

a.home-news-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.home-news-card__media {
  background-size: cover;
  background-position: center;
  min-height: 200px;
}

.home-news-card__body {
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-news-card__date {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.home-news-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.home-news-card__excerpt {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.home-news__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.home-news__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--color-primary-rgb), 0.25);
  cursor: pointer;
}

.home-news__dot[aria-current="true"] {
  background: var(--color-primary);
  transform: scale(1.2);
}

@media (max-width: 767.98px) {
  .home-news-card {
    grid-template-columns: 1fr;
  }

  .home-news-card__media {
    min-height: 180px;
  }
}

/* Subscribe */
.home-subscribe {
  position: relative;
  padding: 4rem 1rem;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
}

.home-subscribe__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.home-subscribe__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(var(--color-primary-rgb), 0.92) 0%,
    rgba(var(--color-primary-hover-rgb), 0.78) 100%
  );
}

.home-subscribe__inner {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.home-subscribe__headline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.home-subscribe__text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.home-subscribe__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: stretch;
}

.home-subscribe__form input {
  flex: 1 1 200px;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
}

.home-subscribe__form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.home-subscribe__form button {
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  background: #fff;
  color: var(--color-primary);
  transition: opacity 0.2s ease;
}

.home-subscribe__form button:hover,
.home-subscribe__form button:focus-visible {
  opacity: 0.92;
}
