/* Page: home */
.hero {
  position: relative;
  color: #fff;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item { min-height: 60vh; }

.hero .carousel-item {
  position: relative;
  background: #222 center/cover no-repeat;
}

.hero .carousel-item .hero-inner {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.hero .hero-inner {
  position: relative;
  z-index: 1;
}

.news-compact .thumb { width: 112px; }

.news-compact .thumb .ratio {
  border: 1px solid #dedede;
  background-color: #fff;
  box-sizing: border-box;
}

.news-compact .thumb .ratio > img { object-fit: cover; }

.news-compact .item + .item {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding-top: .5rem;
  margin-top: .5rem;
}

.latest-wide .ratio {
  --bs-aspect-ratio: auto;
  height: 170px;
  border: 1px solid #dedede;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .2rem;
  box-sizing: border-box;
}

.latest-wide .ratio::before { display: none; }

.latest-wide .ratio > img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-meta-sep {
  display: inline-block;
  width: 1px;
  height: 1em;
  background-color: currentColor;
  opacity: .4;
  margin: 0 .5rem;
  vertical-align: middle;
}

.link-hub {
  background: #2f2b2a;
  color: #ffffff80;
}

.link-hub h2 { color: #e2e8f0; }
.link-hub a { color: #ffffff80; }

.link-hub a:hover,
.link-hub a:focus {
  color: var(--bg-hover-global);
  text-decoration: underline;
}

.link-hub .link-hub-list { text-align: center; }

.brand-strip { background: #f8fafc; }

.brand-strip .brand-logo {
  max-height: 72px;
  object-fit: contain;
  filter: grayscale(1) brightness(.85) contrast(.9);
  opacity: .6;
  transition: filter .2s ease, transform .2s ease, opacity .2s ease;
}

.brand-strip a:hover .brand-logo {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}

.brand-strip .brand-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: var(--brand-gap, 24px);
}

.brand-strip .brand-col {
  flex: 0 0 calc((100% - (var(--cols, 2) - 1) * var(--brand-gap, 24px)) / var(--cols, 2));
  max-width: calc((100% - (var(--cols, 2) - 1) * var(--brand-gap, 24px)) / var(--cols, 2));
  display: flex;
  justify-content: center;
}

.brand-strip #brandCarousel { padding-bottom: 1.25rem; }

.brand-strip .carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: .25rem;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  align-items: center;
}

.brand-strip .carousel-indicators button {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--blue-11);
  opacity: .8;
  transition: opacity .2s ease;
}

.brand-strip .carousel-indicators button + button { margin-left: .4rem; }

.brand-strip .carousel-indicators .active {
  background-color: var(--color-carousel-active);
  opacity: 1;
}

.content-pe { padding-inline-end: 0; }

@media (min-width: 992px) {
  .content-pe { padding-inline-end: 40px; }
}

.home-design-stack {
  display: grid;
  gap: 2.2rem;
}

.home-message-card,
.home-links-card {
  height: 100%;
  border-radius: 18px;
}

.home-message-card {
  padding: 1.4rem 1.4rem 1.25rem;
  border: 1px solid #e4ecf3;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  border-left: 5px solid #0d5a93;
}

.home-message-title {
  margin: 0 0 1rem;
  font-size: clamp(1.22rem, 2vw, 1.45rem);
  font-weight: 800;
}

.home-message-copy {
  text-align: justify;
  line-height: 1.74;
}

.home-message-copy p:last-child {
  margin-bottom: 0;
}

.home-links-card {
  display: grid;
  gap: .55rem;
  padding: 1.15rem;
  border: 1px solid #dce5ef;
  background-color: #f4f8fc;
}

.home-links-title {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1d2f49;
}

.home-link-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .62rem .72rem;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid #d5e2f0;
  background-color: #ffffff;
  color: #1f3455;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.home-link-item i {
  width: 1rem;
  text-align: center;
}

.home-link-item:hover,
.home-link-item:focus {
  transform: translateX(3px);
  background-color: var(--bg-hover-global);
  border-color: var(--bg-hover-global);
  color: #fff;
  box-shadow: 0 8px 22px -18px rgba(21, 70, 114, 0.75);
}

@media (min-width: 992px) {
  .home-links-card {
    position: sticky;
    top: 90px;
  }
}

@media (max-width: 767.98px) {
  .home-message-card,
  .home-links-card {
    border-radius: 14px;
  }

  .home-message-card {
    padding: 1.05rem 1rem;
  }

  .home-links-card {
    padding: .95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-link-item {
    transition: none !important;
  }

  .brand-strip .brand-logo { transition: none !important; }
}
