.page {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding-bottom: 4rem;
  box-sizing: border-box;
}

.hero {
  position: relative;
  min-height: min(62svh, 30rem);
  display: grid;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.heroMedia {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.heroImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  will-change: transform;
  animation: pan-slow 18s ease-in-out alternate infinite;
}

.heroShade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(7, 17, 31, 0.92) 10%,
      rgba(7, 17, 31, 0.6) 55%,
      rgba(7, 17, 31, 0.38) 100%
    ),
    linear-gradient(to top, rgba(7, 17, 31, 0.85), transparent 50%);
}

.heroContent {
  position: relative;
  z-index: 2;
  padding: 5rem 0 3rem;
  animation: rise-in 0.65s ease both;
}

.heroCopy {
  max-width: 42rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: none;
}

.eyebrow,
.eyebrowDark {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.eyebrow {
  color: var(--gold-400);
}

.eyebrowDark {
  color: var(--gold-600);
}

.boardLead {
  color: var(--ink-700);
  margin-top: 0.75rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.7;
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .boardLead {
    white-space: normal;
    max-width: 28rem;
  }
}

.board {
  padding: 4.5rem 0;
}

.boardHead h2,
.sectionHead h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
}

.boardHead {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.filters {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.search input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.2s ease;
}

.search input:focus {
  border-color: var(--gold-500);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip,
.chipActive {
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-700);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.chip:hover {
  border-color: var(--gold-500);
  color: var(--navy-900);
}

.chipActive {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.count {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--ink-500);
}

.cardGrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.4rem 1.3rem;
  background: var(--white);
  border-top: 3px solid var(--gold-500);
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.card:hover {
  border-top-color: var(--gold-400);
  border-inline-color: rgba(196, 154, 60, 0.45);
  border-bottom-color: rgba(196, 154, 60, 0.45);
  background: linear-gradient(
    180deg,
    rgba(255, 252, 245, 1),
    rgba(255, 255, 255, 1)
  );
  transform: translateY(-2px);
}

.cardMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  color: var(--gold-600);
  font-weight: 600;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.35;
  flex: 1;
}

.cardFoot {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.cardFoot p {
  font-weight: 600;
  transition: color 0.22s ease;
}

.card:hover .cardFoot p {
  color: var(--gold-600);
}

.cardFoot a {
  color: var(--navy-800);
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.cardFoot a:hover {
  color: var(--gold-600);
  border-bottom-color: var(--gold-500);
}

.tags {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.moreWrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.moreBtn {
  min-height: 2.85rem;
  min-width: 10rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--navy-900);
  background: transparent;
  color: var(--navy-900);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.moreBtn:hover {
  background: var(--navy-900);
  color: var(--white);
  transform: translateY(-1px);
}

.courses {
  padding: 0 0 5rem;
}

.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.textLink {
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 1px solid var(--gold-500);
  padding-bottom: 0.15rem;
  white-space: nowrap;
}

.courseGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pan-slow {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 1000px) {
  .cardGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .cardGrid,
  .courseGrid {
    grid-template-columns: 1fr;
  }

  .sectionHead {
    flex-direction: column;
    align-items: flex-start;
  }
}
