/* ============================================================
   PAGE WRAPPER
   ============================================================ */

.osbe-homepage__inner {
  display: flex;
  flex-direction: column;
  gap: var(--osbe-sp-12);
  padding-block: var(--osbe-sp-10) !important;
}

@media (min-width: 640px) {
  .osbe-homepage__inner {
    padding-block: var(--osbe-sp-12);
  }
}


.osbe-hp-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--osbe-radius-xl);
  min-height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .osbe-hp-hero {
    min-height: 30rem;
  }
}

@media (min-width: 1024px) {
  .osbe-hp-hero {
    min-height: 29.1875rem;
  }
}

.osbe-hp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.osbe-hp-hero__bg--placeholder {
  background-color: var(--osbe-color-navy);
}

.osbe-hp-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.osbe-hp-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--osbe-sp-7);
  padding: var(--osbe-sp-12) 20px;
  width: 100%;
  text-align: center;
}

.osbe-hp-hero__heading {
  font-family: var(--osbe-font-display);
  font-size: var(--osbe-fs-4xl);
  font-weight: 700;
  color: #ffffff;
  line-height: var(--osbe-lh-tight);
  margin: 0;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .osbe-hp-hero__heading {
    font-size: var(--osbe-fs-6xl);
  }
}

@media (min-width: 1024px) {
  .osbe-hp-hero__heading {
    font-size: var(--osbe-fs-hero);
    max-width: 65rem;
  }
}

.osbe-hp-hero__search {
  position: relative;
  width: 100%;
  max-width: 22rem;
}

.osbe-hp-hero__search-input {
  width: 100%;
  height: 3rem;
  padding: 0 3rem 0 1.25rem;
  background-color: #ffffff;
  border: none;
  border-radius: var(--osbe-radius-sm);
  font-family: var(--osbe-font-body);
  font-size: var(--osbe-fs-base);
  color: var(--osbe-color-slate);
}

.osbe-hp-hero__search-input::placeholder {
  color: #7b7b7b;
  font-family: var(--osbe-font-body);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.osbe-hp-hero__search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--osbe-color-slate);
  padding: 0;
}

.osbe-hp-hero__search-btn:hover {
  color: var(--osbe-color-navy);
}


.osbe-section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--osbe-sp-4);
  margin-bottom: var(--osbe-sp-8);
}

@media (min-width: 1024px) {
  .osbe-section-heading {
    flex-direction: row;
    align-items: center;
    gap: var(--osbe-sp-5);
  }
}

.osbe-section-heading__title {
  font-family: var(--osbe-font-display);
  font-size: var(--osbe-fs-3xl);
  font-weight: 700;
  color: var(--osbe-color-navy);
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.osbe-section-heading__divider {
  display: none;
}

@media (min-width: 1024px) {
  .osbe-section-heading__divider {
    display: block;
    flex: 1;
    height: 1px;
    background-color: var(--osbe-color-stone);
    min-width: 1rem;
  }
}

.osbe-section-heading__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--osbe-sp-4);
  flex-shrink: 0;
}


.osbe-scroll-row {
  position: relative;
}

.osbe-scroll-row__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--osbe-color-navy);
  border-radius: 50%;
  transition: opacity var(--osbe-transition-fast);
}

.osbe-scroll-row__prev {
  left: -1.25rem;
}

.osbe-scroll-row__next {
  right: -1.25rem;
}

.osbe-scroll-row__arrow:hover {
  color: var(--osbe-color-blue);
}

.osbe-scroll-row__outer {
  width: 100%;
  position: relative;
}

.osbe-scroll-row__track {
  display: flex;
  align-items: stretch;
  gap: var(--osbe-sp-7);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: var(--osbe-sp-3);
  padding-inline: 0;
  list-style: none;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.osbe-scroll-row__track::-webkit-scrollbar {
  display: none;
}

.osbe-scroll-row__item {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  width: 100%;
}

@media (min-width: 640px) {
  .osbe-scroll-row {
    display: flex;
    align-items: center;
  }

  .osbe-scroll-row__arrow {
    position: static;
    transform: none;
    flex-shrink: 0;
  }

  .osbe-scroll-row__outer {
    flex: 1;
    min-width: 0;
    mask-image: linear-gradient(
      to right,
      transparent 0,
      black 4rem,
      black calc(100% - 4rem),
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      black 4rem,
      black calc(100% - 4rem),
      transparent 100%
    );
  }

  .osbe-scroll-row__track {
    padding-block: var(--osbe-sp-5);
    padding-inline: var(--osbe-sp-8);
    gap: var(--osbe-sp-8);
  }

  .osbe-scroll-row__item {
    width: auto;
  }
}

.osbe-hp-events__empty {
  font-size: var(--osbe-fs-base);
  color: var(--osbe-color-slate);
  margin: 0;
}


.osbe-event-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem;
  border-radius: var(--osbe-radius-xl);
  width: 100%;
  text-decoration: none;
  transition:
    background-color var(--osbe-transition-fast),
    box-shadow var(--osbe-transition-fast);
}

@media (min-width: 640px) {
  .osbe-event-card {
    width: auto;
    min-width: 20rem;
    max-width: 22rem;
    height: 7.75rem;
  }
}

.osbe-event-card:hover,
.osbe-event-card:has(.osbe-event-card__link:focus) {
  background-color: var(--osbe-color-gold);
  box-shadow: var(--osbe-shadow-card);
}

.osbe-event-card__date {
  display: grid;
  place-items: center;
  background-color: var(--osbe-color-syringa);
  border: 1px solid var(--osbe-color-navy);
  border-radius: 0.5rem;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
}

.osbe-event-card__day {
  font-weight: 900;
  font-size: var(--osbe-fs-3xl);
  color: var(--osbe-color-navy);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}

.osbe-event-card__month {
  font-weight: 700;
  font-size: var(--osbe-fs-xs);
  color: var(--osbe-color-navy);
  letter-spacing: 0.05em;
  display: block;
  line-height: 1;
}

@media (min-width: 640px) {
  .osbe-event-card__date {
    border-radius: 0.5625rem;
    width: 5.4375rem;
    height: 5.3125rem;
    padding-bottom: 5px;
  }

  .osbe-event-card__day {
    font-size: var(--osbe-fs-6xl);
  }

  .osbe-event-card__month {
    font-size: var(--osbe-fs-xl);
    font-weight: 900;
  }
}

.osbe-event-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.osbe-event-card__title {
  font-family: var(--osbe-font-body);
  font-size: var(--osbe-fs-lg);
  font-weight: 600;
  margin: 0;
  line-height: var(--osbe-lh-snug);
}

.osbe-event-card__link {
  color: var(--osbe-color-blue);
  text-decoration: none;
  background-image: linear-gradient(
    var(--osbe-color-blue),
    var(--osbe-color-blue)
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  padding: 0 0.125rem;
  border-radius: 2px;
  transition:
    background-size var(--osbe-transition-fast),
    color var(--osbe-transition-fast);
}

/* !important overrides parent theme main a:hover { color: var(--color6) !important } */
.osbe-event-card__link:hover {
  background-size: 100% 100%;
  color: var(--osbe-color-gold) !important;
  text-decoration: none;
}

.osbe-event-card__location {
  font-family: var(--osbe-font-body);
  font-size: var(--osbe-fs-sm);
  font-weight: 700;
  color: var(--osbe-color-slate);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osbe-event-card:hover .osbe-event-card__location {
  color: var(--osbe-color-navy);
}


.osbe-news-card {
  display: flex;
  flex-direction: column;
  gap: var(--osbe-sp-5);
  overflow: hidden;
  padding-block: var(--osbe-sp-7);
  border-radius: var(--osbe-radius-xl);
  width: 100%;
  transition:
    background-color var(--osbe-transition-fast),
    box-shadow var(--osbe-transition-fast);
}

@media (min-width: 640px) {
  .osbe-news-card {
    width: 21.5625rem;
    flex-shrink: 0;
    gap: var(--osbe-sp-7);
  }
}

.osbe-news-card:hover {
  background-color: var(--osbe-color-gold);
  box-shadow: var(--osbe-shadow-card);
}

.osbe-news-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--osbe-sp-3);
  padding-inline: var(--osbe-sp-7);
  flex: 1;
}

.osbe-news-card__title {
  font-family: var(--osbe-font-body);
  font-size: var(--osbe-fs-xl);
  font-weight: 600;
  line-height: var(--osbe-lh-snug);
  margin: 0;
}

.osbe-news-card__link {
  color: var(--osbe-color-blue);
  text-decoration: none;
  background-image: linear-gradient(
    var(--osbe-color-blue),
    var(--osbe-color-blue)
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  padding: 0 0.125rem;
  border-radius: 2px;
  transition:
    background-size var(--osbe-transition-fast),
    color var(--osbe-transition-fast);
}

/* !important overrides parent theme main a:hover { color: var(--color6) !important } */
.osbe-news-card__link:hover {
  background-size: 100% 100%;
  color: var(--osbe-color-gold) !important;
  text-decoration: none;
}

.osbe-news-card__date {
  font-size: var(--osbe-fs-sm);
  color: var(--osbe-color-slate);
  margin: 0;
}

.osbe-news-card:hover .osbe-news-card__date {
  color: var(--osbe-color-navy);
}

.osbe-news-card__footer {
  padding-inline: var(--osbe-sp-7);
  display: flex;
  justify-content: flex-end;
}


.osbe-hp-panel {
  border-radius: var(--osbe-radius-xl);
  overflow: hidden;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: stretch;
}

.osbe-hp-panel__content,
.osbe-hp-panel__links {
  align-self: start;
  min-width: 0;
}

.osbe-hp-panel__links a.osbe-btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 640px) {
  .osbe-hp-panel {
    grid-template-columns: 1fr 1fr;
    padding: 34px;
  }
}

@media (min-width: 1024px) {
  .osbe-hp-panel {
    grid-template-columns: 1fr 1fr auto;
  }
}

.osbe-hp-panel--slate .osbe-hp-panel__image-wrap {
  grid-row: 1;
}

.osbe-hp-panel--slate .osbe-hp-panel__content {
  grid-row: 2;
}

@media (min-width: 640px) {
  .osbe-hp-panel--slate {
    grid-template-columns: 1fr;
  }

  .osbe-hp-panel--slate .osbe-hp-panel__image-wrap {
    grid-row: 1;
    grid-column: 1;
  }

  .osbe-hp-panel--slate .osbe-hp-panel__content {
    grid-row: 2;
    grid-column: 1;
  }
}

@media (min-width: 1024px) {
  .osbe-hp-panel--slate {
    grid-template-columns: 40% 45% 1fr;
  }

  .osbe-hp-panel--slate .osbe-hp-panel__image-wrap {
    grid-row: 1;
    grid-column: 1;
  }

  .osbe-hp-panel--slate .osbe-hp-panel__content {
    grid-row: 1;
    grid-column: 2;
  }
}

.osbe-hp-panel--slate .osbe-hp-panel__image-wrap {
  border-radius: 6px;
  box-shadow: 0 14px 4px 0 rgba(0, 0, 0, 0.25) inset;
}

.osbe-hp-panel--stone {
  background-color: var(--osbe-color-stone);
  --surface-color: var(--osbe-color-stone);
}

.osbe-hp-panel--slate {
  background-color: var(--osbe-color-slate);
  --surface-color: var(--osbe-color-slate);
}

.osbe-hp-panel--terracotta {
  background-color: var(--osbe-color-terracotta);
  --surface-color: var(--osbe-color-terracotta);
}

.osbe-hp-panel__image-wrap {
  grid-column: 1 / -1;
  aspect-ratio: unset;
  min-height: 12rem;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--osbe-radius-md);
  margin: 0;
  position: relative;
}

.osbe-hp-panel__image-wrap figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 0.625rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.5rem;
  text-align: right;
  margin: 0;
}

@media (min-width: 640px) {
  .osbe-hp-panel__image-wrap {
    min-height: 20rem;
  }
}

@media (min-width: 1024px) {
  .osbe-hp-panel__image-wrap {
    aspect-ratio: unset;
    height: 100%;
    min-height: 20rem;
    grid-column: auto;
  }

  .osbe-hp-panel--stone .osbe-hp-panel__image-wrap {
    aspect-ratio: unset;
    min-height: unset;
  }
}

.osbe-hp-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--osbe-radius-md);
  display: block;
}

.osbe-hp-panel__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--osbe-sp-6);
}

.osbe-hp-panel__heading {
  font-family: var(--osbe-font-display);
  font-size: var(--osbe-fs-4xl);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

@media (min-width: 640px) {
  .osbe-hp-panel__heading {
    font-size: var(--osbe-fs-5xl);
  }
}

.osbe-hp-panel__heading--navy {
  color: var(--osbe-color-navy);
}

.osbe-hp-panel__heading--light {
  color: var(--osbe-color-syringa);
}

.osbe-hp-panel__body {
  font-size: var(--osbe-fs-base);
  font-weight: 400;
  line-height: 1.5rem;
  color: var(--osbe-color-slate);
  margin: 0;
}

.osbe-hp-panel__body--light {
  color: var(--osbe-color-syringa);
}

.osbe-hp-panel__body a {
  color: var(--osbe-color-blue);
  font-weight: 700;
  line-height: 1.5rem;
  text-decoration: none;
  background-image: linear-gradient(
    var(--osbe-color-blue),
    var(--osbe-color-blue)
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  padding: 0 0.125rem;
  border-radius: 2px;
  transition:
    background-size var(--osbe-transition-fast),
    color var(--osbe-transition-fast);
}

/* !important overrides parent theme main a:hover { color: var(--color6) !important } */
.osbe-hp-panel__body a:hover {
  background-size: 100% 100%;
  color: #ffffff !important;
}

.osbe-hp-panel__body--light a {
  color: var(--osbe-color-gold);
  background-image: linear-gradient(
    var(--osbe-color-gold),
    var(--osbe-color-gold)
  );
}

/* !important overrides parent theme main a:hover { color: var(--color6) !important } */
.osbe-hp-panel__body--light a:hover {
  color: #ffffff !important;
}

/* Data & Research panel (terracotta bg) only: gold-on-terracotta default
   link color read poorly, so set the default state to white + underline. */
.osbe-hp-panel--terracotta .osbe-hp-panel__body a {
  color: #ffffff !important; /* overrides parent theme main a { color: var(--color2) } and .osbe-content a { color: var(--osbe-color-blue) } */
  text-decoration: underline;
}

/* The shared hover rule above sets white text on the gold hover background
   (~1.7:1 contrast — fails WCAG AA). Blue on gold is ~6.1:1, so override to
   blue text here; the gold background-grow effect itself is unchanged. */
.osbe-hp-panel--terracotta .osbe-hp-panel__body a:hover {
  color: var(--osbe-color-blue) !important;
}

/* Scholarships panel (slate bg) shares the same --light gold link + white
   hover text, same ~1.7:1 hover-contrast failure. Default gold-on-slate
   (~5.1:1) already passes AA, so only the hover color needs correcting. */
.osbe-hp-panel--slate .osbe-hp-panel__body a:hover {
  color: var(--osbe-color-blue) !important;
}

.osbe-hp-panel__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--osbe-sp-4);
}

@media (min-width: 640px) {
  .osbe-hp-panel__links {
    grid-column: auto;
  }
}

.osbe-hp-panel__links .osbe-btn {
  display: block;
  max-width: 18.75rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}



.osbe-hp-policies {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--osbe-sp-10);
}

@media (min-width: 1024px) {
  .osbe-hp-policies {
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    align-items: start;
    padding: var(--osbe-sp-8) 0;
  }
}

.osbe-hp-policies__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--osbe-sp-6);
}

@media (min-width: 1024px) {
  .osbe-hp-policies__column:first-of-type {
    padding-right: var(--osbe-sp-8);
  }

  .osbe-hp-policies__column:last-of-type {
    padding-left: var(--osbe-sp-8);
  }
}

.osbe-hp-policies__divider {
  display: none;
}

@media (min-width: 1024px) {
  .osbe-hp-policies__divider {
    display: block;
    width: 1px;
    background-color: var(--osbe-color-stone);
    align-self: stretch;
  }
}

.osbe-hp-policies__heading {
  font-family: var(--osbe-font-display);
  font-size: var(--osbe-fs-4xl);
  font-weight: 700;
  color: var(--osbe-color-navy);
  line-height: var(--osbe-lh-tight);
  margin: 0;
}

@media (min-width: 640px) {
  .osbe-hp-policies__heading {
    font-size: var(--osbe-fs-5xl);
  }
}
