/* Only the optional homepage carousel; the original static hero is untouched. */
.bci-site .bci-hero-carousel { position: relative; isolation: isolate; background: #122451; color: #fff; }
.bci-site .bci-hero-carousel [data-bci-hero-track] { position: relative; }
.bci-site .bci-hero-carousel.is-enhanced [data-bci-hero-track] { display: grid; grid-template-columns: minmax(0, 1fr); }
.bci-site .bci-hero-carousel.is-enhanced [data-bci-hero-slide] {
  grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .45s ease; position: relative; z-index: 0;
}
.bci-site .bci-hero-carousel.is-enhanced [data-bci-hero-slide].is-active { visibility: visible; opacity: 1; pointer-events: auto; z-index: 1; }
.bci-site .bci-hero-carousel--desktop.is-enhanced .bci-hero--facade { height: 100%; min-height: max(420px, min(60vh, 545px)); }
.bci-site .bci-hero-carousel--desktop.is-enhanced .bci-hero--facade .bci-hero-inner { padding-bottom: 82px; }
/* Featured news uses the same native facade frame and layered fade as the institute.
   Both sections share .bci-hero--facade and .bci-hero-facade from reference-design.css. */
.bci-site .bci-hero-carousel--desktop.is-enhanced [data-bci-hero-track] { height: min(60vh, 545px); min-height: 500px; }
.bci-site .bci-hero-carousel--desktop.is-enhanced [data-bci-hero-slide] { height: 100%; }
.bci-site .bci-hero-carousel--desktop.is-enhanced .bci-hero--facade { height: 100%; min-height: 0; }
.bci-site .bci-hero-carousel .bci-hero-news { margin: 0; color: #fff; }
.bci-site .bci-hero-carousel .bci-hero-news .bci-hero-facade { width: min(57%, 930px); }
.bci-site .bci-hero-carousel .bci-hero-news .bci-hero-facade img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; max-width: none;
}
.bci-site .bci-hero-carousel .bci-hero-news .bci-hero-inner { padding-top: 36px; padding-bottom: 80px; width: min(100% - 48px, 1232px); }
.bci-site .bci-hero-carousel .bci-hero-news .bci-hero-copy { width: min(44%, 580px); max-width: 580px; }
.bci-site .bci-hero-carousel .bci-hero-news .bci-hero-news-kicker {
  display: inline-block; margin: 0 0 15px; border: 1px solid rgba(230,236,255,.55); border-radius: 20px;
  padding: 4px 13px; color: #f3efff; font: 500 11px/1.4 'Montserrat', Arial, sans-serif; letter-spacing: .08em;
}
.bci-site .bci-hero-carousel .bci-hero-news h2 {
  padding: 0; margin: 0; max-width: 21ch; color: #fff;
  font: 400 clamp(34px, 3.1vw, 55px)/1.08 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.015em; text-transform: none; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
}
.bci-site .bci-hero-carousel .bci-hero-news--long-title h2 { font-size: clamp(30px, 2.5vw, 44px); }
.bci-site .bci-hero-news h2 a { color: inherit; text-decoration: none; }
.bci-site .bci-hero-news h2 a:hover { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.bci-site .bci-hero-news-excerpt {
  margin: 16px 0 0; color: #e4e9f7; font: 400 13px/1.6 'Montserrat', Arial, sans-serif;
  max-width: 54ch; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
/* Match the original purple "About the Institute" CTA in the mobile hero.
   Use the same typography, padding, radius, chevron and white-on-purple contrast
   on every featured-news slide, desktop and mobile, regardless of theme mode. */
.bci-site .bci-hero-carousel a.bci-hero-news-link,
.bci-site .bci-hero-carousel a.bci-hero-news-link:visited {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 150px; min-height: 44px; margin-top: 15px; padding: 10px 15px;
  border: 1px solid #7952ab; border-radius: 10px;
  background: #7952ab; color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif; font-size: 11px;
  font-weight: 600; line-height: 1.55; letter-spacing: 0;
  text-decoration: none; text-transform: none; box-shadow: none;
}
.bci-site .bci-hero-carousel a.bci-hero-news-link:hover,
.bci-site .bci-hero-carousel a.bci-hero-news-link:focus-visible {
  background: #684492; border-color: #684492; color: #fff !important;
}
.bci-site .bci-hero-carousel a.bci-hero-news-link svg {
  width: 14px; height: 14px; display: block; flex: 0 0 auto;
  fill: none; stroke: currentColor;
}
/* The first (Institute) slide uses the identical purple CTA as News slides. */
.bci-site .bci-hero-carousel .bci-hero-institute-link { margin-top: 20px; }
.bci-site .bci-hero-news--no-image .bci-hero-copy { width: min(75%, 850px); max-width: 850px; }
.bci-site .bci-hero-news--no-image h2 { max-width: 24ch; }
.bci-site .bci-hero-carousel-controls[hidden] { display: none !important; }
.bci-site .bci-hero-carousel-controls {
  position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 2px; width: max-content; max-width: calc(100% - 24px);
  padding: 3px; border: 1px solid rgba(237,235,255,.28); border-radius: 28px;
  background: rgba(9,19,47,.78); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.bci-site .bci-hero-carousel-controls button {
  appearance: none; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; margin: 0; padding: 0 8px; border: 0; border-radius: 22px;
  background: transparent; color: #fff; box-shadow: none; font: 500 13px/1 'Montserrat', Arial, sans-serif;
  letter-spacing: 0; cursor: pointer; text-transform: none;
}
.bci-site .bci-hero-carousel-controls button:hover { color: #fff; background: rgba(255,255,255,.12); }
.bci-site .bci-hero-carousel-controls button:focus-visible,
.bci-site .bci-hero-news a:focus-visible { outline: 2px solid #ead8ff; outline-offset: 3px; }
.bci-site .bci-hero-carousel-dots { display: flex; align-items: center; }
.bci-site .bci-hero-carousel-controls [data-bci-hero-goto] { min-width: 30px; padding: 0 6px; }
.bci-site .bci-hero-carousel-controls [data-bci-hero-goto]::before { content: ''; display: block; width: 7px; height: 7px; border: 1px solid #d9dff2; border-radius: 10px; }
.bci-site .bci-hero-carousel-controls [data-bci-hero-goto][aria-current="true"]::before { width: 17px; background: #fff; border-color: #fff; }
.bci-site .bci-hero-carousel-controls [data-bci-hero-toggle] { min-width: 62px; padding: 0 11px; border-left: 1px solid rgba(255,255,255,.22); border-radius: 0 22px 22px 0; font-size: 11px; }

@media (min-width: 801px) and (max-height: 720px) {
  .bci-site .bci-hero-carousel .bci-hero-news .bci-hero-inner { padding-top: 18px; padding-bottom: 62px; }
  .bci-site .bci-hero-carousel .bci-hero-news h2 { font-size: clamp(28px, 2.6vw, 43px); line-height: 1.04; -webkit-line-clamp: 4; }
  .bci-site .bci-hero-carousel .bci-hero-news--long-title h2 { font-size: clamp(27px, 2.3vw, 36px); }
  .bci-site .bci-hero-news-excerpt { margin-top: 10px; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.4; }
}
@media (max-width: 800px) {
  .bci-site .bci-hero-carousel--desktop.is-enhanced [data-bci-hero-track] { height: auto; min-height: 500px; }
  .bci-site .bci-hero-carousel--desktop.is-enhanced .bci-hero--facade { min-height: 500px; }
  .bci-site .bci-hero-carousel .bci-hero-news .bci-hero-facade { width: 100%; height: 72%; }
  .bci-site .bci-hero-carousel .bci-hero-news .bci-hero-inner { padding: 38px 0 78px; width: min(100% - 40px, 620px); }
  .bci-site .bci-hero-carousel .bci-hero-news .bci-hero-copy { width: 100%; max-width: 620px; }
  .bci-site .bci-hero-carousel .bci-hero-news h2 { font-size: clamp(31px, 6.8vw, 43px); line-height: 1.12; }
  .bci-site .bci-hero-carousel .bci-hero-news--long-title h2 { font-size: clamp(27px, 6vw, 36px); }
  .bci-site .bci-hero-news-excerpt { font-size: 12px; margin-top: 12px; -webkit-line-clamp: 2; }
  .bci-site .bci-hero-carousel .bci-hero-news .bci-hero-news-kicker { margin-bottom: 10px; }
  .bci-site .bci-hero-carousel--mobile.is-enhanced [data-bci-hero-track] { min-height: 350px; }
  .bci-site .bci-hero-carousel--mobile.is-enhanced [data-bci-hero-slide] { min-height: 350px; }
  .bci-site .bci-hero-carousel--mobile.is-enhanced .bcim-hero { height: 100%; min-height: 350px; display: flex; align-items: center; }
  .bci-site .bci-hero-carousel--mobile.is-enhanced .bcim-hero-copy { padding-bottom: 82px; }
  .bci-site .bci-hero-carousel--mobile.is-enhanced .bci-hero-news { height: 100%; min-height: 350px; }
  .bci-site .bci-hero-carousel--mobile .bci-hero-news-excerpt { display: none; }
  .bci-site .bci-hero-carousel--mobile .bci-hero-news .bci-hero-inner { padding: 32px 0 76px; }
}
@media (max-width: 380px) {
  .bci-site .bci-hero-carousel .bci-hero-news .bci-hero-inner { width: min(100% - 32px, 620px); }
  .bci-site .bci-hero-carousel .bci-hero-news h2 { font-size: clamp(28px, 8vw, 36px); }
  .bci-site .bci-hero-carousel .bci-hero-news--long-title h2 { font-size: clamp(25px, 7vw, 31px); }
  .bci-site .bci-hero-carousel-controls button { min-width: 36px; }
  .bci-site .bci-hero-carousel-controls [data-bci-hero-goto] { min-width: 26px; }
  .bci-site .bci-hero-carousel-controls [data-bci-hero-toggle] { min-width: 58px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .bci-site .bci-hero-carousel.is-enhanced [data-bci-hero-slide] { transition: none; }
}
