.past-offerings-filters {
  margin: 4px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(20, 31, 48, 0.06);
}

.past-offerings-filters__controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.past-offerings-filters__field {
  display: grid;
  gap: 6px;
}

.past-offerings-filters__field-label {
  color: var(--site-muted);
  font: 700 0.73rem/1.2 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.past-offerings-filters__field-label a {
  color: #1c4fb6;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.past-offerings-filters__field-label a:hover {
  color: #153d8b;
}

.past-offerings-filters__field select {
  height: 40px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: #fff;
  color: var(--site-text);
  padding: 0 10px;
  font: 600 0.9rem/1 "Manrope", "Segoe UI", sans-serif;
}

.past-offerings-filters__reset {
  height: 40px;
  border: 1px solid rgba(17, 75, 122, 0.24);
  border-radius: 10px;
  background: rgba(17, 75, 122, 0.08);
  color: #114b7a;
  font: 700 0.82rem/1 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.past-offerings-filters__status {
  margin: 10px 0 0;
  color: var(--site-muted);
  font: 600 0.84rem/1.45 "Manrope", "Segoe UI", sans-serif;
}

.past-offerings-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.past-offerings-grid.past-offerings-grid--single .content-card:not([hidden]) {
  width: min(100%, 320px);
  justify-self: start;
}

.past-offerings-grid .content-card {
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border-color: rgba(16, 48, 82, 0.14);
  box-shadow: 0 13px 28px rgba(20, 31, 48, 0.09);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.past-offerings-grid .content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(20, 31, 48, 0.14);
}

.past-offerings-grid .content-card__media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.past-offerings-grid .content-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.past-offerings-grid .content-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 186px;
  padding-top: 14px;
}

.past-offerings-grid .content-card__desc {
  margin-bottom: 6px;
  color: #4d6073;
  font-size: 0.84rem;
  line-height: 1.4;
}

.past-offerings-grid .content-card__links {
  display: flex;
  flex-wrap: nowrap;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.past-offerings-grid .content-card__link {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 0.48rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(17, 75, 122, 0.34);
  background: rgba(17, 75, 122, 0.15);
  color: #0e436c;
  box-shadow: 0 2px 8px rgba(17, 75, 122, 0.16);
}

.past-offerings-grid .content-card__link:hover {
  background: rgba(17, 75, 122, 0.23);
  border-color: rgba(17, 75, 122, 0.58);
  color: #083754;
}

.past-offerings-grid .content-card__links .content-card__link:nth-child(2) {
  border-color: rgba(119, 49, 94, 0.4);
  background: rgba(119, 49, 94, 0.15);
  color: #5f2149;
  box-shadow: 0 2px 8px rgba(119, 49, 94, 0.14);
}

.past-offerings-grid .content-card__links .content-card__link:nth-child(2):hover {
  background: rgba(119, 49, 94, 0.24);
  border-color: rgba(119, 49, 94, 0.6);
  color: #4f1739;
}

.offering-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  min-height: 22px;
}

.offering-year-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(20, 55, 90, 0.24);
  background: rgba(20, 55, 90, 0.08);
  color: #123d63;
  font: 800 0.66rem/1.2 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.course-track-tag {
  margin: 0;
}

.course-track-tag a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(17, 75, 122, 0.26);
  background: rgba(17, 75, 122, 0.08);
  color: #114b7a;
  font: 800 0.66rem/1.2 "Manrope", "Segoe UI", sans-serif;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.course-track-tag a:hover {
  background: rgba(17, 75, 122, 0.16);
}

.offering-institution {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.offering-institution__logo {
  width: auto;
  height: 18px;
  max-width: 56px;
  border-radius: 4px;
  border: 1px solid rgba(17, 75, 122, 0.2);
  background: #fff;
  object-fit: contain;
  flex: 0 0 auto;
}

.offering-institution__logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(17, 75, 122, 0.2);
  background: rgba(17, 75, 122, 0.08);
  color: #114b7a;
  font: 800 0.5rem/1 "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.offering-institution__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.25;
  min-width: 0;
}

@media (max-width: 1240px) {
  .past-offerings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .past-offerings-filters__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .past-offerings-filters__controls {
    grid-template-columns: 1fr;
  }

  .past-offerings-grid {
    grid-template-columns: 1fr;
  }

  .past-offerings-grid .content-card__links {
    flex-wrap: wrap;
  }
}
