/*
 * Course-category pages intentionally use a simple editorial treatment. The
 * page is a catalogue of majors and courses; university cards belong to the
 * University route and are not rendered here.
 */
.course-category-page {
  --course-ink: #081633;
  --course-muted: #627089;
  min-height: 100vh;
  color: var(--course-ink);
  background: #fff;
}

/* The shared non-home hero layer is deliberately overridden for this route. */
body.course-category-page .course-category-hero {
  position: relative;
  isolation: isolate;
  min-height: 0 !important;
  overflow: visible;
  padding: clamp(46px, 3.4vw, 62px) 0 clamp(62px, 4vw, 76px) !important;
  color: #070707;
  text-align: center;
  background: #fff !important;
}

body.course-category-page .course-category-hero::before,
body.course-category-page .course-category-hero::after {
  display: none;
}

.course-category-page .course-category-hero .shell,
.course-category-page .course-category-content .shell {
  width: min(calc(100% - 72px), 1380px);
  margin-inline: auto;
}

/* Let long category names follow the single-line desktop reference while the
 * program list below keeps its narrower editorial measure. */
.course-category-page .course-category-hero .shell {
  width: min(calc(100% - 72px), 1760px);
}

.course-category-page .course-category-eyebrow,
.course-category-page .course-category-hero p:not(.course-category-eyebrow),
.course-category-page .course-category-hero .home-button {
  /* Keep the existing copy in the document for assistive technology and SEO,
     while keeping the visual hierarchy of the supplied title/list reference. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.course-category-page .course-category-hero h1 {
  max-width: 1500px;
  margin: 0 auto;
  color: #050505 !important;
  font: 700 clamp(50px, 4vw, 68px) / 1.12 var(--font-reference-heading, Arial, sans-serif) !important;
  letter-spacing: -.035em;
  white-space: normal;
  text-wrap: balance;
}

.course-category-page .course-category-content {
  padding: clamp(24px, 2.2vw, 34px) 0 clamp(82px, 7vw, 132px);
  background: #f5f7fa;
}

.course-category-page .course-category-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.course-category-page .course-program-grid {
  width: min(100%, 1140px);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 auto;
}

.course-category-page .course-program-card {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: clamp(8px, .72vw, 13px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: color .2s ease, transform .2s ease;
}

.course-category-page .course-program-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: translateX(4px);
}

.course-category-page .course-program-card__number {
  color: #0a1b38;
  font: 400 clamp(28px, 2.1vw, 37px) / 1.2 var(--font-reference-heading, Arial, sans-serif);
}

.course-category-page .course-program-card h3 {
  margin: 0;
  color: #0a1b38;
  font: 400 clamp(28px, 2.1vw, 37px) / 1.2 var(--font-reference-heading, Arial, sans-serif);
  letter-spacing: -.012em;
}

/* Application links remain available by keyboard and on hover, without
   interrupting the clean reference-style list at rest. */
.course-category-page .course-program-card a {
  position: absolute;
  right: 0;
  top: 50%;
  margin: 0;
  padding: 8px 0 8px 18px;
  color: #164b9b;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}

.course-category-page .course-program-card:hover a,
.course-category-page .course-program-card:focus-within a {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.course-category-page .course-program-card a:hover,
.course-category-page .course-program-card a:focus-visible {
  color: #092d70;
}

.course-category-page .course-program-card a span {
  display: inline-block;
  margin-left: 4px;
  transition: transform .2s ease;
}

.course-category-page .course-program-card a:hover span,
.course-category-page .course-program-card a:focus-visible span {
  transform: translate(3px, -3px);
}

.course-category-page .course-category-more {
  margin-top: clamp(54px, 6vw, 92px);
  padding-top: clamp(26px, 3vw, 42px);
  border-top: 1px solid rgba(20, 58, 126, .14);
}

.course-category-page .course-category-more h2 {
  margin: 0;
  color: #0a1b38;
  font: 600 clamp(22px, 2vw, 30px) / 1.25 var(--font-reference-heading, Arial, sans-serif);
}

.course-category-page .course-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 20px;
}

.course-category-page .course-category-links a {
  padding: 10px 14px;
  border: 1px solid rgba(22, 75, 155, .24);
  border-radius: 999px;
  color: #164b9b;
  background: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.course-category-page .course-category-links a:hover,
.course-category-page .course-category-links a:focus-visible {
  color: #fff;
  border-color: #164b9b;
  background: #164b9b;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .course-category-page .course-category-hero .shell,
  .course-category-page .course-category-content .shell {
    width: min(calc(100% - 48px), 720px);
  }

  .course-category-page .course-program-grid {
    width: 100%;
  }

  .course-category-page .course-program-card {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .course-category-page .course-program-card a {
    position: static;
    grid-column: 2;
    padding: 4px 0 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 560px) {
  .course-category-page .course-category-hero .shell,
  .course-category-page .course-category-content .shell {
    width: calc(100% - 28px);
  }

  body.course-category-page .course-category-hero {
    padding-block: 52px 64px !important;
  }

  body.course-category-page .course-category-hero h1 {
    font-size: clamp(42px, 11vw, 58px) !important;
    line-height: 1.12;
    white-space: normal;
  }

  .course-category-page .course-category-content {
    padding-block: 24px 72px;
  }

  .course-category-page .course-program-card {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 8px;
    padding-block: 9px;
  }

  .course-category-page .course-program-card__number {
    font-size: 29px;
  }

  .course-category-page .course-program-card h3 {
    font-size: 28px;
    line-height: 1.3;
  }

  .course-category-page .course-program-card a {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-category-page .course-program-card,
  .course-category-page .course-program-card a,
  .course-category-page .course-category-links a {
    transition: none;
  }
}
