.unit-header {
  z-index: 100;
}

.unit-hero {
  position: relative;
  height: clamp(360px, 29.3vw, 580px);
  min-height: 360px;
  overflow: hidden;
  background: #0a315d;
}

.unit-hero__track,
.unit-hero__slide {
  position: absolute;
  inset: 0;
}

.unit-hero__slide {
  display: block;
  opacity: 0;
  background: #0a315d;
  transition: opacity 420ms ease;
}

.unit-hero__slide.is-active {
  opacity: 1;
}

.unit-hero__slide::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 18, 48, 0.84), rgba(2, 18, 48, 0.50) 48%, rgba(2, 18, 48, 0.18)),
    linear-gradient(180deg, rgba(2, 18, 48, 0.36), rgba(2, 18, 48, 0.18));
  pointer-events: none;
}

.unit-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unit-hero__caption {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
  padding-bottom: 56px;
  color: #ffffff;
}

.unit-hero__caption p {
  margin: 0 0 10px;
  color: #bfefff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.unit-hero__caption h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.38);
}

.unit-hero__content {
  display: contents;
}

.unit-hero__caption {
  display: none;
}

.hero__box {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(36px, 7vw, 132px);
  width: min(1500px, calc(100% - 72px));
  color: #ffffff;
  transform: translateY(-50%);
}

.hero__box .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 0 12px;
  color: #bff3ff;
  background: rgba(0, 74, 106, 0.5);
  border: 1px solid rgba(191, 243, 255, 0.36);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero__box h2 {
  max-width: 150ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.65rem, 2.25vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.38);
  text-wrap: balance;
}

.hero__box p {
  max-width: 150ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.96rem, 1.08vw, 1.12rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding: 0 28px;
  color: #06203e;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.hero__actions .btn:hover,
.hero__actions .btn:focus-visible {
  color: #ffffff;
  background: #0092bf;
  border-color: #bff3ff;
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.unit-hero__controls {
  position: absolute;
  top: 50%;
  right: 5px;
  left: 5px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.unit-hero__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.unit-hero__link:focus-visible {
  outline: 4px solid #ffcc33;
  outline-offset: -8px;
}

.unit-hero__controls button,
.events-block .section-controls button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: rgba(0, 74, 106, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.88);
  opacity: 0.34;
  box-shadow: 0 14px 30px rgba(5, 23, 48, 0.28);
  pointer-events: auto;
  cursor:pointer;
}

.unit-hero__controls button svg {
  display: block;
  width: 28px;
  height: 28px;
}

.unit-hero:hover .unit-hero__controls button,
.unit-hero:focus-within .unit-hero__controls button,
.unit-hero__controls button:hover,
.unit-hero__controls button:focus-visible {
  opacity: 1;
}

.unit-hero__controls button::before,
.section-controls button::before,
.events-block .section-controls button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  border-width: 3px;
  transform: rotate(-45deg);
}

.unit-hero__controls button:last-child::before,
.section-controls button:last-child::before {
  transform: rotate(135deg);
}

.unit-hero__controls button::before,
.unit-hero__controls button:last-child::before {
  display: none;
  content: none;
}

.unit-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
}

.unit-hero__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.48);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  cursor: pointer;
}

.unit-hero__dot.is-active {
  background: #ffffff;
  border-color: #bff3ff;
}

.unit-hero__dot:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.unit-side-column {
  display: grid;
  grid-column: 1;
  gap: 18px;
  align-self: start;
}

.unit-side-column .sidebar-cards {
  grid-column: auto;
}

.unit-side-column .sidebar-card {
  min-height: 72px;
  padding: 14px 16px;
  color: #ffffff;
  background: #0b4774;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(8, 34, 59, 0.14);
}

.unit-side-column .sidebar-card strong {
  color: rgba(255, 255, 255, 0.9);
}

.news-titlebar.section-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.news-titlebar.section-titlebar h2 {
  position: relative;
  padding-left: 18px;
  color: #1a2635;
  background: transparent;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-titlebar.section-titlebar h2::before {
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.08em;
  width: 2px;
  background: #1269c7;
  content: "";
}

.news-titlebar.section-titlebar .all-news-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  min-height: 34px;
  padding: 7px 12px;
  color: #000000;
  background: transparent;
  border: 1px solid rgba(20, 35, 58, 0.14);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.news-titlebar.section-titlebar .all-news-link::after {
  display: none;
  content: none;
}

.news-titlebar.section-titlebar .section-controls {
  margin-left: 0;
}

.news-titlebar.section-titlebar .all-news-link:hover,
.news-titlebar.section-titlebar .all-news-link:focus-visible {
  color: #ffffff;
  background: #0b4774;
  border-color: #0b4774;
  outline: none;
}

.announcements-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
}

.announcements-section .announcements-viewport {
  overflow: hidden;
  box-sizing: content-box;
  padding: 1px 1px 9px;
}

.announcements-section .section-controls {
  display: flex;
}

.announcements-section .announcement-item {
  min-height: 94px;
}

.announcements-section .announcement-card-link {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  grid-template-rows: 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 94px !important;
  height: 100%;
  padding: 0 !important;
  background: #ffffff;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
  margin-left: 0;
}

.announcements-section .announcement-card-link time {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  width: 78px;
  min-height: 94px;
  background: #123f7a;
  border-radius: 0;
}

.announcements-section .announcement-card-link time span {
  font-size: 2.85rem;
  line-height: 0.9;
}

.announcements-section .announcement-card-link > div {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 10px 14px 10px 0;
}

.announcements-section .announcement-card-link strong {
  padding: 0 !important;
  font-size: 0.98rem;
  line-height: 1.2;
}

.announcements-section .announcement-card-link p {
  margin-top: 24px;
  font-size: 0.84rem;
}

.news-list {
  grid-auto-flow: row;
  grid-auto-columns: initial;
  grid-template-columns: 1fr;
  gap: 18px;
}

.unit-news-card__link {
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 132px;
}

.faculty-stats {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(4, 38, 61, 0.92), rgba(10, 71, 116, 0.88)),
    url("../media/hero/hero-campus.jpg") center/cover no-repeat;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(8, 34, 59, 0.16);
}

.faculty-stats__inner {
  padding: 30px 28px 32px;
}

.faculty-stats__kicker {
  margin: 0 0 4px;
  color: #73e6f6;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faculty-stats h2 {
  margin: 0 0 24px;
  color: #25d06f;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.faculty-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.faculty-stats__item {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(115, 230, 246, 0.34);
}

.faculty-stats__item dt {
  color: #aee9ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faculty-stats__item dd {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.events-block {
  position: relative;
}

.events-block .section-titlebar .section-controls {
  position: absolute;
  inset: 50% 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.events-track {
  gap: 80px;
  grid-auto-columns: calc((100% - 80px) / 2);
}

.events-viewport {
  padding-inline: 64px;
}

.event-card,
.event-card__link {
  overflow: hidden;
}

.event-card img {
  display: block;
  width: 100%;
  min-height: 520px;
  aspect-ratio: 0.78;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.event-card span {
  padding: 20px;
}

.event-card time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: #0b4774;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(5, 23, 48, 0.22);
}

.research-systems {
  padding: 56px 0 66px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b3f7e, #0e6ba8);
}

.research-systems__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.research-systems__intro p {
  margin: 0;
  color: #aee9ff;
  font-weight: 900;
  text-transform: uppercase;
}

.research-systems__intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.research-systems__body {
  position: relative;
}

.research-systems__toolbar {
  display: none;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.research-systems__toolbar button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.research-systems__toolbar button:hover,
.research-systems__toolbar button:focus-visible {
  color: #004a6a;
  background: #ffffff;
  border-color: #ffffff;
  outline: none;
}

.research-systems__toolbar button::before {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  content: "";
}

.research-systems__toolbar button:last-child::before {
  transform: rotate(135deg);
}

.research-systems__toolbar button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.research-systems.is-carousel-enabled .research-systems__toolbar {
  display: flex;
}

.research-systems__viewport {
  overflow: visible;
}

.research-systems.is-carousel-enabled .research-systems__viewport {
  overflow: hidden;
}

.research-systems__track {
  --research-systems-columns: 8;
  display: grid;
  grid-auto-flow: initial;
  grid-template-columns: repeat(var(--research-systems-items, var(--research-systems-columns)), minmax(120px, 150px));
  grid-auto-columns: initial;
  gap: 12px;
  transition: transform 240ms ease;
}

.research-systems.is-carousel-enabled .research-systems__track {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - ((var(--research-systems-columns) - 1) * 12px)) / var(--research-systems-columns));
}

.research-systems__track.is-centered {
  justify-content: center;
}

.research-systems__card {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 0;
  aspect-ratio: 1.45;
  padding: 12px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.22;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
}

.research-systems__card:hover,
.research-systems__card:focus-visible {
  color: #ffffff;
  background: #073460;
  border-color: #ffffff;
}

.research-systems__card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}

.research-systems__card img,
.research-systems__card:hover img:first-child,
.research-systems__card:focus-visible img:first-child {
  display: block;
  width: 48px;
  height: 48px;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: brightness(0) invert(1);
}

.research-systems__card:hover img,
.research-systems__card:focus-visible img {
  filter: brightness(0) invert(1);
}

.research-systems__card img + img {
  display: none;
}

@media (max-width: 991.98px) {
  .unit-layout {
    grid-template-columns: 1fr;
  }

  .hero__box {
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    padding-inline: 24px;
  }

  .unit-side-column {
    display: contents;
  }

  .unit-content {
    grid-column: 1;
    order: 2;
  }

  .unit-aside {
    order: 1;
  }

  .sidebar-cards {
    grid-column: 1;
    order: 3;
    margin-top: 24px;
  }

  .research-systems__track {
    --research-systems-columns: 4;
  }

  .faculty-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .unit-layout .unit-aside {
    position: static;
    top: auto;
  }
}

@media (max-width: 767.98px) {
  .unit-header {
    position: sticky;
    top: 0;
  }

  .unit-hero {
    height: auto;
    min-height: 560px;
  }

  .hero__box {
    top: 32px;
    bottom: auto;
    padding-inline: 18px;
    transform: none;
  }

  .hero__box h2,
  .hero__box p {
    max-width: none;
  }

  .hero__box .eyebrow {
    margin-bottom: 12px;
  }

  .hero__box h2 {
    font-size: clamp(1.42rem, 7vw, 2.1rem);
    line-height: 1.12;
  }

  .hero__box p {
    font-size: 0.94rem;
  }

  .hero__actions {
    margin-top: 20px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .unit-hero__controls {
    right: 5px;
    left: 5px;
  }

  .unit-hero__controls button,
  .events-block .section-controls button {
    width: 48px;
    height: 48px;
    cursor:pointer;
  }


    .unit-hero__controls {
        position: absolute;
        top: 94%;
        right: 5px;
        left: 5px;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transform: translateY(-50%);
        pointer-events: none;
    }

  .unit-hero__controls button svg {
    width: 24px;
    height: 24px;
  }

  .announcements-grid {
    grid-template-columns: 1fr;
  }

  .announcements-section .announcement-card-link {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .unit-news-card__link {
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 124px;
  }

  .unit-news-card__media {
    min-height: 124px;
  }

  .unit-news-card__body {
    padding: 12px 14px;
  }

  .unit-news-card h3 {
    font-size: 0.86rem;
  }

  .events-block .section-titlebar .section-controls {
    inset-inline: 0;
  }

  .events-track {
    grid-auto-columns: 100%;
  }

  .events-viewport {
    padding-inline: 52px;
  }

  .event-card img {
    min-height: 430px;
  }

  .faculty-stats__inner {
    padding: 24px 20px 26px;
  }

  .faculty-stats__grid {
    gap: 14px;
  }

  .research-systems__track {
    --research-systems-columns: 2;
  }

  .news-viewport {
    overflow: hidden;
  }
}
