/* Education & Knowledge Hub (/education-hub), and its notices and jobs pages. Green theme; text in
   the site's Inter, big headings in Manrope. */
.eh-page {
  --eh-green: #16a34a;
  --eh-green-dark: #15803d;
  --eh-green-deep: #14532d;
  --eh-nav-bg: #166534;
  --eh-blue: #1d4ed8;
  --eh-blue-strong: #1e40af;
  --eh-navy: #0f172a;
  --eh-text: #334155;
  --eh-muted: #64748b;
  --eh-line: #e2e8f0;
  --eh-card: #ffffff;
  --eh-radius: 14px;
  --eh-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding-bottom: 2.5rem;
  background: #f6f8f7;
  color: var(--eh-text);
  /* never wider than the screen: nothing inside can make the page slide sideways */
  overflow-x: clip;
}

/* Full width on every screen, with side padding */
.eh-container {
  --eh-gutter: 24px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--eh-gutter);
}

@media (min-width: 1600px) {
  .eh-container {
    --eh-gutter: 40px;
  }
}

/* ---------- Tones (icon chips and counts) ---------- */
.eh-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.95rem;
}

.eh-icon--square {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.05rem;
}

.eh-icon--blue { background: #dbeafe; color: #2563eb; }
.eh-icon--green { background: #dcfce7; color: #16a34a; }
.eh-icon--purple { background: #ede9fe; color: #7c3aed; }
.eh-icon--orange { background: #ffedd5; color: #ea580c; }
.eh-icon--pink { background: #fce7f3; color: #db2777; }
.eh-icon--teal { background: #ccfbf1; color: #0d9488; }
.eh-icon--amber { background: #fef3c7; color: #d97706; }
.eh-icon--slate { background: #f1f5f9; color: #475569; }

.eh-tone--blue { color: #2563eb; }
.eh-tone--green { color: #16a34a; }
.eh-tone--purple { color: #7c3aed; }
.eh-tone--orange { color: #ea580c; }

.eh-empty {
  margin: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--eh-muted);
  text-align: center;
}

.eh-card {
  background: var(--eh-card);
  border: 1px solid var(--eh-line);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

/* ---------- Sections ---------- */
.eh-section {
  margin-top: 1.75rem;
}

.eh-section__head,
.eh-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.eh-section__title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--eh-navy);
}

.eh-section__more,
.eh-panel__more {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--eh-green-dark);
  text-decoration: none;
  white-space: nowrap;
}

.eh-section__more i,
.eh-panel__more i {
  margin-left: 0.2rem;
  font-size: 0.72rem;
}

.eh-section__more:hover,
.eh-panel__more:hover {
  color: var(--eh-green-deep);
}

/* ---------- Explore by Category: one row of coloured tiles ---------- */
.eh-categories {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.75rem;
}

.eh-category {
  --eh-cat-bg: #eff6ff;
  --eh-cat-fg: #2563eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 14px;
  background: var(--eh-cat-bg);
  color: var(--eh-navy);
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eh-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  color: var(--eh-navy);
}

.eh-category__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--eh-cat-fg);
  font-size: 2.1rem;
}

/* a small icon on the big one's screen (the play button on the laptop) */
.eh-category__badge {
  position: absolute;
  top: 37%;
  left: 50%;
  font-size: 0.32em;
  transform: translate(-40%, -50%);
}

.eh-category strong {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.eh-category--blue { --eh-cat-bg: #e6f2fd; --eh-cat-fg: #1d6fd8; }
.eh-category--green { --eh-cat-bg: #e8f8ee; --eh-cat-fg: #16a34a; }
.eh-category--purple { --eh-cat-bg: #f1ecff; --eh-cat-fg: #7c3aed; }
.eh-category--orange { --eh-cat-bg: #fff2e6; --eh-cat-fg: #f97316; }
.eh-category--sky { --eh-cat-bg: #e6f2fd; --eh-cat-fg: #2563eb; }
.eh-category--rose { --eh-cat-bg: #ffecef; --eh-cat-fg: #dc2626; }
.eh-category--amber { --eh-cat-bg: #fff7e0; --eh-cat-fg: #f59e0b; }
.eh-category--teal { --eh-cat-bg: #e3f7f4; --eh-cat-fg: #0d9488; }

/* ---------- Trending Study Materials: icon tabs across the width, then a sliding row of cards ---------- */
.eh-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.eh-tabs::-webkit-scrollbar {
  display: none;
}

.eh-tab {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--eh-line);
  border-radius: 10px;
  background: #fff;
  color: var(--eh-navy);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.eh-tab i {
  color: var(--eh-green);
  font-size: 0.95rem;
}

.eh-tab:hover {
  border-color: #86efac;
  color: var(--eh-green-dark);
}

.eh-tab.is-active {
  border-color: var(--eh-green);
  background: var(--eh-green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.22);
}

.eh-tab.is-active i {
  color: #fff;
}

.eh-slider {
  --eh-slide-gap: 1.1rem;
  --eh-slide-cols: 6;
  position: relative;
}

.eh-materials {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--eh-slide-cols) - 1) * var(--eh-slide-gap)) / var(--eh-slide-cols));
  gap: var(--eh-slide-gap);
  margin: -6px -4px -14px;
  padding: 6px 4px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 4px;
  scrollbar-width: none;
}

.eh-materials::-webkit-scrollbar {
  display: none;
}

.eh-material {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid var(--eh-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eh-material:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  color: inherit;
}

.eh-material__media {
  --eh-tint-a: #e0ecff;
  --eh-tint-b: #f3f7ff;
  --eh-tint-fg: #3b82f6;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.85) 0 18%, transparent 19%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.6) 0 14%, transparent 15%),
    linear-gradient(135deg, var(--eh-tint-a), var(--eh-tint-b));
  color: var(--eh-tint-fg);
  font-size: 2.6rem;
}

.eh-material__media i {
  opacity: 0.55;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.08));
}

.eh-material__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eh-material__media--blue { --eh-tint-a: #dbeafe; --eh-tint-b: #eff6ff; --eh-tint-fg: #3b82f6; }
.eh-material__media--green { --eh-tint-a: #d1fae5; --eh-tint-b: #f0fdf4; --eh-tint-fg: #16a34a; }
.eh-material__media--purple { --eh-tint-a: #ede9fe; --eh-tint-b: #f7f5ff; --eh-tint-fg: #7c3aed; }
.eh-material__media--orange { --eh-tint-a: #ffedd5; --eh-tint-b: #fff8ef; --eh-tint-fg: #ea580c; }
.eh-material__media--pink { --eh-tint-a: #fce7f3; --eh-tint-b: #fff5fa; --eh-tint-fg: #db2777; }
.eh-material__media--teal { --eh-tint-a: #ccfbf1; --eh-tint-b: #f0fdfa; --eh-tint-fg: #0d9488; }
.eh-material__media--sky { --eh-tint-a: #e0f2fe; --eh-tint-b: #f5fbff; --eh-tint-fg: #0284c7; }

.eh-material__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 0.2rem 0.1rem;
}

.eh-material__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.eh-material__file {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 46px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.eh-material__file--doc { background: #2563eb; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25); }
.eh-material__file--ppt { background: #ea580c; box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25); }
.eh-material__file--xls { background: #16a34a; box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25); }
.eh-material__file--img { background: #7c3aed; box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25); }
.eh-material__file--file { background: #64748b; box-shadow: 0 4px 10px rgba(100, 116, 139, 0.25); }

.eh-material__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.75em;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--eh-navy);
}

.eh-material:hover .eh-material__title {
  color: var(--eh-green-dark);
}

.eh-material__meta {
  overflow: hidden;
  font-size: 0.78rem;
  color: var(--eh-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eh-material__meta span + span::before {
  content: "\2022";
  margin: 0 0.4rem;
}

.eh-material__foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--eh-line);
  font-size: 0.78rem;
  color: var(--eh-muted);
}

.eh-material__foot i {
  margin-right: 0.2rem;
}

.eh-slider__arrow {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--eh-line);
  border-radius: 50%;
  background: #fff;
  color: var(--eh-navy);
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.eh-slider__arrow--prev {
  left: -18px;
}

.eh-slider__arrow--next {
  right: -18px;
}

.eh-slider__arrow:hover:not(:disabled) {
  border-color: var(--eh-green);
  color: var(--eh-green);
}

.eh-slider__arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.eh-slider.is-static .eh-slider__arrow {
  display: none;
}

@media (max-width: 1199px) {
  .eh-slider {
    --eh-slide-cols: 4;
  }

  .eh-tab {
    flex-grow: 0;
  }
}

@media (max-width: 991px) {
  .eh-slider {
    --eh-slide-cols: 3;
  }
}

@media (max-width: 767px) {
  .eh-tabs {
    gap: 0.5rem;
    margin-bottom: 0.8rem;
  }

  .eh-tab {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .eh-slider {
    --eh-slide-gap: 0.75rem;
  }

  .eh-materials {
    grid-auto-columns: 62%;
  }

  .eh-slider__arrow {
    display: none;
  }

  .eh-material__title {
    font-size: 0.84rem;
  }
}

/* ---------- Teachers, institutions, announcements: three columns ---------- */
.eh-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.eh-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 16px;
}

.eh-panel__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--eh-navy);
}

.eh-panel__title i {
  font-size: 1.1rem;
  color: var(--eh-green);
}

/* teachers: a row each (photo, name and check, subject, qualification | experience), Contact on the right */
.eh-people {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eh-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
}

.eh-person:first-child {
  padding-top: 0.2rem;
}

.eh-person:last-child {
  padding-bottom: 0;
}

.eh-person + .eh-person {
  border-top: 1px solid var(--eh-line);
}

.eh-person__photo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border: 3px solid #f1f5f9;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.eh-person__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.eh-person__name {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--eh-navy);
  white-space: nowrap;
  text-decoration: none;
  text-overflow: ellipsis;
}

.eh-person__name i {
  margin-left: 0.2rem;
  font-size: 0.85rem;
  color: var(--eh-green);
}

.eh-person__name:hover {
  color: var(--eh-green-dark);
}

.eh-person__subject {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eh-person__body small {
  overflow: hidden;
  font-size: 0.75rem;
  color: var(--eh-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eh-contact {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #f0fdf4;
  color: var(--eh-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eh-contact:hover {
  border-color: var(--eh-green);
  background: var(--eh-green);
  color: #fff;
}

/* institutions: a card each with a building photo */
.eh-places {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eh-places > li {
  display: flex;
  flex: 1;
  min-width: 0;
}

.eh-place {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  gap: 0.9rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border: 1px solid var(--eh-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.eh-place:hover {
  border-color: #bbf7d0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
  color: inherit;
}

.eh-place__photo {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 104px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
  font-size: 1.4rem;
}

.eh-place__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eh-place__photo--blue { background: #dbeafe; color: #2563eb; }
.eh-place__photo--purple { background: #ede9fe; color: #7c3aed; }
.eh-place__photo--orange { background: #ffedd5; color: #ea580c; }

.eh-place__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.eh-place__body strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--eh-navy);
}

.eh-place__body small {
  overflow: hidden;
  font-size: 0.78rem;
  color: #475569;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eh-place__arrow {
  font-size: 0.85rem;
  color: var(--eh-navy);
}

.eh-place:hover .eh-place__arrow {
  color: var(--eh-green);
}

/* announcements: a row each with a line under it (tinted icon by topic, title, who | when),
   moving upward when there are more than five (see the ticker) */
.eh-announcements {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eh-announcements > li {
  border-bottom: 1px solid #e9eef3;
}

.eh-announcement {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  color: inherit;
  text-decoration: none;
}

.eh-announcements > li:first-child .eh-announcement {
  padding-top: 0.15rem;
}

.eh-announcement .eh-icon--square {
  flex-shrink: 0;
  width: 48px;
  height: 42px;
  border-radius: 11px;
  font-size: 1.2rem;
}

.eh-announcement__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.eh-announcement__body strong {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e2a6e;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eh-announcement__body small {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
}

.eh-announcement__source {
  overflow: hidden;
  text-overflow: ellipsis;
}

.eh-announcement__body time,
.eh-announcement__sep {
  flex-shrink: 0;
}

.eh-announcement__sep {
  color: #94a3b8;
}

.eh-announcement:hover strong {
  color: var(--eh-green-dark);
}

/* ---------- Courses, jobs, projects, scholarships: four tinted cards with an illustration ---------- */
.eh-features {
  display: grid;
  /* one column per card (three now: Courses, Jobs, Scholarships) */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.eh-feature {
  --eh-f-bg: #e6f3fd;
  --eh-f-fg: #1d6fd8;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  padding: 1.2rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, var(--eh-f-bg) 0, transparent 70%),
    linear-gradient(135deg, var(--eh-f-bg) 0%, #fbfcfe 100%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  color: var(--eh-navy);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eh-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  color: var(--eh-navy);
}

.eh-feature__art {
  flex-shrink: 0;
  width: 66px;
  height: 72px;
  object-fit: contain;
  object-position: center top;
}

.eh-feature__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  align-self: stretch;
}

.eh-feature__body strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1e2a6e;
}

.eh-feature__body small {
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}

.eh-feature__btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  background: var(--eh-f-fg);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--eh-f-fg) 30%, transparent);
}

.eh-feature__btn i {
  margin-left: 0.3rem;
  font-size: 0.74rem;
}

.eh-feature--blue { --eh-f-bg: #e3f1fd; --eh-f-fg: #1d6fd8; }
.eh-feature--purple { --eh-f-bg: #f1ebfe; --eh-f-fg: #7c3aed; }
.eh-feature--orange { --eh-f-bg: #fff1e1; --eh-f-fg: #ea580c; }
.eh-feature--green { --eh-f-bg: #e8f7ec; --eh-f-fg: #15803d; }

/* ---------- Ask & discuss, join the community: one strip, two halves with a line between ---------- */
.eh-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: linear-gradient(90deg, #ecf8f2 0%, #f1f8fb 50%, #eaf3fd 100%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.eh-banner {
  --eh-b-fg: #15803d;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
  padding: 1.15rem 1.6rem;
}

.eh-banner + .eh-banner::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 0;
  width: 1px;
  background: #cbd5e1;
}

.eh-banner--blue { --eh-b-fg: #1d6fd8; }

.eh-banner__art {
  flex-shrink: 0;
  width: 68px;
  height: 64px;
  object-fit: contain;
}

.eh-banner__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.eh-banner__body strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1e2a6e;
}

.eh-banner__body strong span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

.eh-banner__body small {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #334155;
}

.eh-banner__btn {
  flex-shrink: 0;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: var(--eh-b-fg);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--eh-b-fg) 30%, transparent);
}

.eh-banner__btn:hover {
  filter: brightness(0.92);
  color: #fff;
}

.eh-banner__btn i {
  margin-left: 0.3rem;
  font-size: 0.74rem;
}

/* ---------- Small laptops and tablets ---------- */
@media (max-width: 1199px) {
  /* features: one row that slides sideways, like the categories */
  .eh-features {
    gap: 1.25rem;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 1fr);
    margin-right: calc(-1 * var(--eh-gutter));
    margin-left: calc(-1 * var(--eh-gutter));
    padding: 0.3rem var(--eh-gutter) 0.9rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--eh-gutter);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .eh-feature {
    scroll-snap-align: start;
  }

  .eh-feature:hover {
    transform: none;
  }

  .eh-banners {
    grid-template-columns: minmax(0, 1fr);
  }

  .eh-banner + .eh-banner::before {
    top: 0;
    right: 1.4rem;
    bottom: auto;
    left: 1.4rem;
    width: auto;
    height: 1px;
  }

  /* categories: one row that slides sideways (edge to edge, a thin scrollbar under it) */
  .eh-categories {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(108px, 1fr);
    margin: 0 calc(-1 * var(--eh-gutter));
    padding: 0.15rem var(--eh-gutter) 0.6rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--eh-gutter);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .eh-categories::-webkit-scrollbar {
    height: 5px;
  }

  .eh-categories::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #cbd5e1;
  }

  .eh-category {
    scroll-snap-align: start;
  }

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

  .eh-columns > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .eh-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Phones: the menu as a dropdown, everything tighter ---------- */
@media (max-width: 767px) {
  .eh-container {
    --eh-gutter: 16px;
  }

  .eh-section,
  .eh-columns,
  .eh-features {
    margin-top: 1.1rem;
  }

  .eh-section__head,
  .eh-panel__head {
    margin-bottom: 0.6rem;
  }

  .eh-section__title {
    font-size: 1.1rem;
  }

  .eh-categories {
    grid-auto-columns: minmax(92px, 1fr);
    gap: 0.5rem;
  }

  .eh-category {
    gap: 0.35rem;
    padding: 0.6rem 0.25rem 0.55rem;
    border-radius: 12px;
  }

  .eh-category__icon {
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }

  .eh-category strong {
    font-size: 0.66rem;
  }

  .eh-columns,
  .eh-banners {
    gap: 0.75rem;
  }

  .eh-features {
    gap: 1rem;
  }

  .eh-panel {
    padding: 0.85rem 0.85rem 0.9rem;
  }

  .eh-panel__title {
    gap: 0.45rem;
    font-size: 0.98rem;
  }

  .eh-person {
    gap: 0.65rem;
  }

  .eh-person__photo {
    width: 48px;
    height: 48px;
    border-width: 2px;
  }

  .eh-person__name {
    font-size: 0.9rem;
  }

  .eh-person__subject {
    font-size: 0.76rem;
  }

  .eh-person__body small {
    font-size: 0.7rem;
  }

  .eh-contact {
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.74rem;
  }

  .eh-places {
    gap: 0.6rem;
  }

  .eh-place {
    gap: 0.7rem;
    padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  }

  .eh-place__photo {
    width: 84px;
    height: 50px;
  }

  .eh-place__body strong {
    font-size: 0.88rem;
  }

  .eh-place__body small {
    font-size: 0.72rem;
  }

  .eh-announcement .eh-icon--square {
    width: 46px;
    height: 40px;
    font-size: 1.05rem;
  }

  /* features: a sliding row of narrow cards, the picture on top */
  .eh-features {
    grid-auto-columns: minmax(200px, 62%);
  }

  .eh-feature {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0.8rem;
  }

  .eh-feature__art {
    width: 46px;
    height: 50px;
    object-position: left top;
  }

  .eh-feature__body {
    gap: 0.25rem;
  }

  .eh-feature__body strong {
    font-size: 0.92rem;
  }

  .eh-feature__body small {
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
  }

  .eh-feature__btn {
    align-self: stretch;
    padding: 0.5rem 0.5rem;
    font-size: 0.76rem;
    text-align: center;
    white-space: normal;
  }

  .eh-banners {
    gap: 0;
  }

  .eh-banner {
    flex-wrap: wrap;
    gap: 0.6rem 0.85rem;
    padding: 1rem 0.95rem;
  }

  .eh-banner__art {
    width: 54px;
    height: 52px;
  }

  .eh-banner__body strong {
    font-size: 1rem;
  }

  .eh-banner__body small {
    font-size: 0.78rem;
  }

  .eh-banner__btn {
    width: 100%;
    text-align: center;
  }

  .eh-banner + .eh-banner::before {
    right: 0.95rem;
    left: 0.95rem;
  }

  .eh-page {
    padding-bottom: 1.5rem;
  }
}

/* ---------- Announcements & Events: every active notice moving upward ----------
   The list twice in a track that slides up by half its height, so it loops without a jump;
   paused on hover or keyboard focus; still (and scrollable) for reduced motion. */
.eh-ticker {
  position: relative;
  max-height: 345px;
  overflow: hidden;
}

.eh-ticker.is-moving {
  height: 345px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.eh-ticker:not(.is-moving) {
  overflow-y: auto;
}

/* (each notice carries its own line and padding, so the two copies are exactly the same height) */

.eh-ticker.is-moving .eh-ticker__track {
  animation: eh-ticker-up var(--eh-ticker-time, 20s) linear infinite;
}

.eh-ticker.is-moving:hover .eh-ticker__track,
.eh-ticker.is-moving:focus-within .eh-ticker__track {
  animation-play-state: paused;
}

@keyframes eh-ticker-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .eh-ticker.is-moving {
    overflow-y: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .eh-ticker.is-moving .eh-ticker__track {
    animation: none;
  }

  .eh-ticker__copy {
    display: none;
  }
}

/* ---------- All notices page (/education-hub/notices) ---------- */
.eh-notices-page {
  padding-top: 1.25rem;
}

.eh-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  color: var(--eh-muted);
}

.eh-crumbs a {
  color: var(--eh-green-dark);
  text-decoration: none;
}

.eh-crumbs .fa-chevron-right {
  font-size: 0.6rem;
}

.eh-notices-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.eh-notices-head__icon {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}

.eh-notices-head__title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--eh-navy);
}

.eh-notices-head__text {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--eh-muted);
}

.eh-notice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.eh-notice-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--eh-line);
  border-radius: 999px;
  background: #fff;
  color: var(--eh-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.eh-notice-tab span {
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.75rem;
}

.eh-notice-tab:hover {
  border-color: #bfdbfe;
  color: var(--eh-blue);
}

.eh-notice-tab.is-active {
  border-color: var(--eh-green);
  background: var(--eh-green);
  color: #fff;
}

.eh-notice-tab.is-active span {
  background: rgba(255, 255, 255, 0.22);
}

.eh-notice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.eh-notice-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--eh-line);
  border-radius: var(--eh-radius);
  background: #fff;
  box-shadow: var(--eh-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eh-notice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.eh-notice-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  font-size: 2rem;
}

.eh-notice-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eh-notice-card__media--blue { background: #dbeafe; color: #2563eb; }
.eh-notice-card__media--purple { background: #ede9fe; color: #7c3aed; }
.eh-notice-card__media--green { background: #dcfce7; color: #16a34a; }
.eh-notice-card__media--orange { background: #ffedd5; color: #ea580c; }

.eh-notice-card__kind {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.eh-notice-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 0.9rem 0.9rem;
}

.eh-notice-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--eh-navy);
}

.eh-notice-card:hover .eh-notice-card__title {
  color: var(--eh-blue);
}

.eh-notice-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--eh-text);
}

.eh-notice-card__source {
  margin-top: auto;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--eh-navy);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eh-notice-card__source i {
  color: #94a3b8;
}

.eh-notice-card__dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--eh-line);
  font-size: 0.72rem;
  color: var(--eh-muted);
}

.eh-notice-pages {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.eh-notices-empty a {
  margin-left: 0.35rem;
  color: var(--eh-blue);
}

@media (max-width: 1199px) {
  .eh-notice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .eh-notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .eh-notices-head__title {
    font-size: 1.35rem;
  }
}

@media (max-width: 479px) {
  .eh-notice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===================== Top section: the hub's menu and the hero =====================
   A dark green menu bar ("All Categories" on a darker block, the rest across the width); the hero
   with a campus photo across the right fading into a light background behind the text, a
   search, four chips and one card of numbers on the right. */
.eh-nav {
  position: relative;
  z-index: 40;
  background: linear-gradient(180deg, #17703a 0%, #145f32 100%);
  box-shadow: 0 2px 6px rgba(20, 83, 45, 0.25);
}

.eh-nav__toggle {
  display: none;
}

.eh-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eh-nav__item {
  position: relative;
  display: flex;
}

.eh-nav__dropdown {
  display: flex;
}

.eh-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.eh-nav__link::-webkit-details-marker {
  display: none;
}

.eh-nav__link:hover,
.eh-nav__dropdown[open] > .eh-nav__link {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* "All Categories": the darker block at the start of the bar */
.eh-nav__link--all,
.eh-nav__link--all:hover,
.eh-nav__dropdown[open] > .eh-nav__link--all {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  background: #0f4d27;
  font-weight: 700;
}

.eh-nav__link--all .fa-bars {
  font-size: 1.05rem;
}

.eh-nav__caret {
  font-size: 0.62rem;
  transition: transform 0.15s ease;
}

.eh-nav__dropdown[open] .eh-nav__caret {
  transform: rotate(180deg);
}

.eh-nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 230px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--eh-line);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.eh-nav__menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--eh-text);
  text-decoration: none;
}

.eh-nav__menu a i {
  width: 1rem;
  color: var(--eh-green);
  text-align: center;
}

.eh-nav__menu a:hover,
.eh-nav__menu a:focus-visible {
  background: #f0fdf4;
  color: var(--eh-green-dark);
}

/* Hero */
.eh-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #ffffff 0%, #f3fbf5 35%, #e6f5ea 60%, #dff1e4 100%);
}

/* the banner: the panorama across the whole hero (students on the right), a white veil on the
   left under the heading and search so they stay easy to read */
.eh-hero__bg {
  /* the photo is 2172 x 422: shown at the hero's height (never above 422px, so never enlarged on
     screens up to 2172px wide), moved a little left so the students sit clear of the numbers card;
     the strip it leaves on the right fades into the background */
  --eh-hero-shift: clamp(90px, 6vw, 160px);
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.35) 44%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(270deg, #e2f2e6 0, #e2f2e6 var(--eh-hero-shift), rgba(226, 242, 230, 0) calc(var(--eh-hero-shift) + 80px)),
    var(--eh-hero-photo) right var(--eh-hero-shift) center / auto 100% no-repeat;
}

/* screens wider than the photo (2172px plus the shift): its left edge fades into the white too */
@media (min-width: 2300px) {
  .eh-hero__bg {
    background:
      linear-gradient(90deg, #fff 0, #fff calc(100% - var(--eh-hero-shift) - 2172px), rgba(255, 255, 255, 0) calc(100% - var(--eh-hero-shift) - 2050px)),
      linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.35) 44%, rgba(255, 255, 255, 0) 54%),
      linear-gradient(270deg, #e2f2e6 0, #e2f2e6 var(--eh-hero-shift), rgba(226, 242, 230, 0) calc(var(--eh-hero-shift) + 80px)),
      var(--eh-hero-photo) right var(--eh-hero-shift) center / auto 100% no-repeat;
  }
}

.eh-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  /* taller on wide screens, so the photo (at the hero's height) grows with it */
  /* no taller than the photo (422px), so it is never stretched */
  min-height: clamp(340px, 24vw, 422px);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.eh-hero__copy {
  flex: 0 1 640px;
  min-width: 0;
}

.eh-hero__title {
  margin: 0 0 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0b2a6b;
}

.eh-hero__title span {
  display: block;
  color: #15803d;
}

.eh-hero__text {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  color: #1e293b;
}

.eh-search {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border: 1px solid #d7e3dc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.eh-search__icon {
  margin: 0 0.6rem 0 0.75rem;
  color: #475569;
}

.eh-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.25rem;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  color: var(--eh-navy);
  outline: none;
}

.eh-search__input::placeholder {
  color: #475569;
}

.eh-search__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 8px;
  background: #15803d;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.eh-search__btn:hover {
  background: #166534;
}

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

.eh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  white-space: nowrap;
  border: 1px solid #edf1ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
  color: var(--eh-navy);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.eh-chip i {
  font-size: 0.95rem;
}

.eh-chip--blue i { color: #2563eb; }
.eh-chip--purple i { color: #7c3aed; }
.eh-chip--indigo i { color: #4338ca; }
.eh-chip--orange i { color: #ea580c; }

.eh-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  color: var(--eh-navy);
}

/* the numbers: one white card, a row each */
.eh-stats {
  flex: 0 0 225px;
  margin: 0;
  padding: 0.35rem 0.9rem;
  list-style: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.eh-stats li + li {
  border-top: 1px solid #e5e7eb;
}

.eh-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: inherit;
  text-decoration: none;
}

.eh-stat__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.1rem;
}

.eh-stat__icon--blue { background: #dbeafe; color: #1d4ed8; }
.eh-stat__icon--green { background: #dcfce7; color: #15803d; }
.eh-stat__icon--purple { background: #ede9fe; color: #6d28d9; }
.eh-stat__icon--orange { background: #ffedd5; color: #ea580c; }

.eh-stat__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.eh-stat__text strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0b2a6b;
}

.eh-stat__text small {
  font-size: 0.76rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}

.eh-stat:hover strong {
  color: #15803d;
}

/* big screens: the heading, text, search and buttons grow with the screen, so they fill the
   left side instead of leaving a gap before the photo */
@media (min-width: 1400px) {
  .eh-hero__copy {
    flex-basis: clamp(640px, 46vw, 1120px);
  }

  .eh-hero__inner {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .eh-hero__title {
    margin-bottom: 0.9rem;
    font-size: clamp(2.75rem, 3.15vw, 3.6rem);
  }

  .eh-hero__text {
    max-width: 36em;
    margin-bottom: 1.5rem;
    font-size: clamp(1.02rem, 1.12vw, 1.3rem);
  }

  .eh-search {
    max-width: clamp(520px, 36vw, 940px);
    margin-bottom: 1.15rem;
    padding: 0.45rem;
    border-radius: 12px;
  }

  .eh-search__input {
    padding: 0.7rem 0.25rem;
    font-size: clamp(0.9rem, 0.85vw, 1.15rem);
  }

  .eh-search__btn {
    padding: 0.8rem 1.6rem;
    font-size: clamp(0.92rem, 0.85vw, 1.15rem);
  }

  .eh-chips {
    gap: 0.65rem;
  }

  .eh-chip {
    padding: 0.65rem 0.95rem;
    font-size: clamp(0.82rem, 0.8vw, 1.1rem);
  }

  .eh-stats {
    flex-basis: clamp(225px, 15vw, 340px);
    padding: 0.45rem 1.1rem;
  }

  .eh-stat {
    gap: 0.9rem;
    padding: 0.6rem 0;
  }

  .eh-stat__icon {
    width: clamp(42px, 2.6vw, 52px);
    height: clamp(42px, 2.6vw, 52px);
    font-size: clamp(1.1rem, 1.1vw, 1.55rem);
  }

  .eh-stat__text strong {
    font-size: clamp(1.3rem, 1.4vw, 1.7rem);
  }

  .eh-stat__text small {
    font-size: clamp(0.76rem, 0.75vw, 1.05rem);
  }
}

/* Small laptops: a tighter menu */
@media (max-width: 1399px) {
  .eh-nav__link {
    padding: 0.75rem 0.6rem;
    font-size: 0.84rem;
  }

  .eh-hero__title {
    font-size: 2.4rem;
  }
}

/* Tablets: the menu on two lines, the banner as a strip on top */
@media (max-width: 1199px) {
  .eh-nav__list {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  /* the banner as a clear strip across the top (the students), the heading, search and numbers
     under it on the light background */
  .eh-hero__bg {
    position: relative;
    inset: auto;
    height: clamp(130px, 26vw, 260px);
    background:
      linear-gradient(180deg, rgba(243, 251, 245, 0) 70%, #f3fbf5 100%),
      var(--eh-hero-photo) 84% center / cover no-repeat;
  }

}

@media (max-width: 991px) {
  .eh-hero__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .eh-hero__copy {
    flex-basis: auto;
  }

  .eh-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-basis: auto;
    column-gap: 1rem;
  }

  .eh-stats li + li {
    border-top: 0;
  }
}

/* Phones: the menu behind one button, a compact hero */
@media (max-width: 767px) {
  .eh-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
  }

  .eh-nav__toggle-label i {
    margin-right: 0.5rem;
  }

  .eh-nav.is-open .eh-nav__toggle .eh-nav__caret {
    transform: rotate(180deg);
  }

  .eh-nav__list {
    display: none;
  }

  .eh-nav.is-open .eh-nav__list {
    position: absolute;
    top: 100%;
    left: var(--eh-gutter, 16px);
    right: var(--eh-gutter, 16px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid var(--eh-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  }

  .eh-nav__item,
  .eh-nav__dropdown {
    display: block;
    width: 100%;
  }

  .eh-nav__link,
  .eh-nav__link--all,
  .eh-nav__link--all:hover,
  .eh-nav__dropdown[open] > .eh-nav__link--all {
    justify-content: flex-start;
    width: 100%;
    padding: 0.6rem 0.65rem;
    border-radius: 8px;
    background: transparent;
    color: var(--eh-navy);
  }

  .eh-nav__link:hover,
  .eh-nav__dropdown[open] > .eh-nav__link {
    background: #f0fdf4;
    color: var(--eh-green-dark);
  }

  .eh-nav__link .eh-nav__caret {
    margin-left: auto;
  }

  .eh-nav__menu {
    position: static;
    min-width: 0;
    margin: 0 0 0.25rem 1rem;
    padding: 0.15rem 0 0.15rem 0.5rem;
    border: 0;
    border-left: 2px solid #bbf7d0;
    border-radius: 0;
    box-shadow: none;
  }


  .eh-hero__inner {
    gap: 1rem;
    min-height: 0;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .eh-hero__title {
    margin-bottom: 0.5rem;
    font-size: 1.7rem;
  }

  .eh-hero__text {
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
  }

  .eh-search__icon {
    display: none;
  }

  .eh-search__input {
    padding-left: 0.6rem;
    font-size: 0.84rem;
  }

  .eh-search__btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.84rem;
  }

  .eh-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .eh-chip {
    justify-content: center;
    padding: 0.5rem 0.4rem;
    font-size: 0.76rem;
  }

  .eh-stats {
    padding: 0.25rem 0.75rem;
  }

  .eh-stat {
    gap: 0.55rem;
  }

  .eh-stat__icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .eh-stat__text strong {
    font-size: 1.05rem;
  }

  .eh-stat__text small {
    font-size: 0.68rem;
    white-space: normal;
    line-height: 1.2;
  }
}

/* ---------- Big screens: teachers, institutions and announcements grow with the screen ----------
   (the boxes get wide; their photos, text, tiles and buttons grow with them, so there is no empty
   band between the text and the button or arrow) */
@media (min-width: 1400px) {
  .eh-columns {
    gap: clamp(1.1rem, 1.3vw, 1.75rem);
  }

  .eh-panel {
    padding: clamp(1.1rem, 1.3vw, 1.6rem) clamp(1.2rem, 1.45vw, 1.85rem);
  }

  .eh-panel__head {
    margin-bottom: clamp(0.85rem, 0.9vw, 1.2rem);
  }

  .eh-panel__title {
    font-size: clamp(1.08rem, 1.12vw, 1.45rem);
  }

  .eh-panel__title i {
    font-size: 1.05em;
  }

  .eh-panel__more {
    font-size: clamp(0.82rem, 0.82vw, 1.05rem);
  }

  /* teachers */
  .eh-person {
    gap: clamp(0.85rem, 1vw, 1.3rem);
    padding: clamp(0.65rem, 0.75vw, 1rem) 0;
  }

  .eh-person__photo {
    width: clamp(60px, 4.2vw, 88px);
    height: clamp(60px, 4.2vw, 88px);
  }

  .eh-person__body {
    gap: 0.2rem;
  }

  .eh-person__name {
    font-size: clamp(0.95rem, 1.02vw, 1.3rem);
  }

  .eh-person__subject {
    font-size: clamp(0.8rem, 0.86vw, 1.1rem);
  }

  .eh-person__body small {
    font-size: clamp(0.75rem, 0.8vw, 1.02rem);
  }

  .eh-contact {
    gap: 0.5rem;
    padding: clamp(0.45rem, 0.5vw, 0.65rem) clamp(0.8rem, 0.95vw, 1.25rem);
    border-radius: 10px;
    font-size: clamp(0.8rem, 0.82vw, 1.05rem);
  }

  /* institutions */
  .eh-places {
    gap: clamp(0.75rem, 0.75vw, 1rem);
  }

  .eh-place {
    gap: clamp(0.9rem, 1vw, 1.35rem);
    padding: clamp(0.55rem, 0.55vw, 0.75rem) clamp(0.9rem, 1vw, 1.3rem) clamp(0.55rem, 0.55vw, 0.75rem) clamp(0.55rem, 0.55vw, 0.75rem);
    border-radius: 14px;
  }

  .eh-place__photo {
    width: clamp(104px, 7.6vw, 165px);
    height: auto;
    aspect-ratio: 104 / 58;
    border-radius: 10px;
  }

  .eh-place__body {
    gap: 0.25rem;
  }

  .eh-place__body strong {
    font-size: clamp(0.95rem, 1.02vw, 1.3rem);
  }

  .eh-place__body small {
    font-size: clamp(0.78rem, 0.84vw, 1.08rem);
  }

  .eh-place__arrow {
    font-size: clamp(0.85rem, 0.85vw, 1.1rem);
  }

  /* announcements */
  .eh-announcement {
    gap: clamp(0.8rem, 1vw, 1.3rem);
    padding: clamp(0.7rem, 0.85vw, 1.1rem) 0;
  }

  .eh-announcement .eh-icon--square {
    width: clamp(48px, 3.4vw, 70px);
    height: clamp(42px, 2.95vw, 60px);
    border-radius: 12px;
    font-size: clamp(1.2rem, 1.25vw, 1.65rem);
  }

  .eh-announcement__body {
    gap: 0.3rem;
  }

  .eh-announcement__body strong {
    font-size: clamp(0.86rem, 1vw, 1.25rem);
  }

  .eh-announcement__body small {
    font-size: clamp(0.78rem, 0.84vw, 1.05rem);
  }

  /* room for five notices at the bigger size */
  .eh-ticker {
    max-height: clamp(345px, 25vw, 520px);
  }

  .eh-ticker.is-moving {
    height: clamp(345px, 25vw, 520px);
  }
}

/* Big screens: the three feature cards (Courses, Jobs, Scholarships) grow with the screen too */
@media (min-width: 1400px) {
  .eh-feature {
    gap: clamp(1rem, 1.3vw, 1.75rem);
    padding: clamp(1.2rem, 1.45vw, 1.9rem) clamp(1.15rem, 1.6vw, 2.1rem);
  }

  .eh-feature__art {
    width: clamp(66px, 5vw, 104px);
    height: clamp(72px, 5.4vw, 112px);
  }

  .eh-feature__body {
    gap: 0.45rem;
  }

  .eh-feature__body strong {
    font-size: clamp(1.12rem, 1.3vw, 1.65rem);
  }

  .eh-feature__body small {
    margin-bottom: 0.6rem;
    font-size: clamp(0.82rem, 0.92vw, 1.15rem);
  }

  .eh-feature__btn {
    padding: clamp(0.55rem, 0.6vw, 0.8rem) clamp(1.15rem, 1.3vw, 1.7rem);
    font-size: clamp(0.82rem, 0.85vw, 1.08rem);
  }
}

/* Tablets: the three feature cards side by side (the picture on top), no sliding */
@media (min-width: 768px) and (max-width: 1199px) {
  .eh-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 1.1rem;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
    overflow: visible;
  }

  .eh-feature {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.1rem 1rem;
  }

  .eh-feature:hover {
    transform: translateY(-3px);
  }

  .eh-feature__art {
    width: 58px;
    height: 62px;
    object-position: left top;
  }

  .eh-feature__btn {
    align-self: stretch;
    text-align: center;
  }
}

/* ===================== Hub listing pages (courses, jobs, scholarships): the shared listing layout ===================== */
.hub-listing__eyebrow {
  text-decoration: none;
}

.hub-listing__eyebrow:hover {
  text-decoration: underline;
}

.hub-listing .vendors-hero--compact {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hub-listing .vendors-hero--compact .vendors-hero__intro {
  flex: 1;
}

.hub-listing__art {
  flex-shrink: 0;
  width: 92px;
  height: auto;
  margin-right: 0.75rem;
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.12));
}

.hub-listing__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: #475569;
}

.hub-listing__stats i {
  margin-right: 0.15rem;
  color: #1d6fd8;
}

.hub-listing__stats strong {
  color: #0f2a4a;
}

/* smaller cards than the schools: about four a row on a laptop */
@media (min-width: 576px) {
  .institutes-page.hub-listing .hub-listing__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

.hub-listing .hub-listing__grid {
  transition: opacity 0.2s ease;
}

.hub-listing.is-loading .hub-listing__grid {
  opacity: 0.55;
}

.course-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card:hover {
  transform: translateY(-2px);
}

/* (a course without a photo: its icon on the tint of who offers it) */
.course-card__media {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.85) 0 16%, transparent 17%),
    linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #2563eb;
}

.course-card__media--purple {
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.85) 0 16%, transparent 17%),
    linear-gradient(135deg, #ede9fe, #f7f5ff);
  color: #7c3aed;
}

.course-card__media--orange {
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.85) 0 16%, transparent 17%),
    linear-gradient(135deg, #ffedd5, #fff8ef);
  color: #ea580c;
}

.course-card__media img {
  position: absolute;
  inset: 0;
}

.course-card__icon {
  font-size: 2rem;
  opacity: 0.6;
}

.course-card__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  color: #2563eb;
  font-size: 0.6rem;
  font-weight: 700;
}

.course-card__badge--purple { color: #7c3aed; }
.course-card__badge--orange { color: #ea580c; }

.course-card .vendors-compact-card__category i {
  margin-right: 0.15rem;
}

.course-card__org {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  font-weight: 600;
  color: #334155;
}

.course-card__org span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.course-card__verified {
  flex-shrink: 0;
  color: #16a34a;
}

.course-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #64748b;
}

.hub-listing__loading {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  text-align: center;
  color: #64748b;
}

@media (max-width: 767px) {
  .hub-listing__art {
    width: 58px;
    margin-right: 0;
  }

  .course-card__text {
    display: none;
  }

  /* phones: a shorter picture, the institution on a line of its own (the place is left out) */
  .course-card .vendors-compact-card__media {
    aspect-ratio: 4 / 3;
  }

  .course-card .vendors-compact-card__location {
    flex: 0 0 100%;
  }

  .course-card .vendors-compact-card__location:not(.course-card__org) {
    display: none;
  }

  .course-card__icon {
    font-size: 1.6rem;
  }
}

/* the jobs' and scholarships' cards: text cards (no photo), as compact as the courses' */
.hub-listing .hub-card {
  gap: 0.4rem;
  padding: 0.8rem 0.85rem 0.75rem;
  border-top: 3px solid #8b5cf6;
}

.hub-listing .hub-card--scholarship {
  border-top-color: #16a34a;
}

.hub-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
}

.hub-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.14rem 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hub-card__chip--purple { background: #f3e8ff; color: #6d28d9; }
.hub-card__chip--green { background: #dcfce7; color: #15803d; }

.hub-card__when {
  flex-shrink: 0;
  font-size: 0.64rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.hub-card__when--near {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #fff1e6;
  color: #c2410c;
}

.hub-card__when--soon {
  color: #1d6fd8;
}

.hub-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.1rem 0 0;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
}

.hub-card__title a {
  color: #0f2a4a;
  text-decoration: none;
}

.hub-card__title a:hover {
  color: #15803d;
}

.hub-card__sub {
  margin: -0.15rem 0 0;
  font-size: 0.68rem;
  color: #64748b;
}

.hub-card__amount {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.3rem;
  max-width: 100%;
  margin: 0;
  padding: 0.18rem 0.5rem;
  overflow: hidden;
  border-radius: 8px;
  background: #fff8e6;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hub-card__amount i {
  color: #d4a017;
}

.hub-card__org {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.hub-card__logo {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  font-size: 0.62rem;
}

.hub-card__org-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hub-card__verified {
  flex-shrink: 0;
  font-size: 0.66rem;
  color: #16a34a;
}

.hub-card__facts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  color: #64748b;
}

.hub-card__facts li {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hub-card__facts i {
  width: 0.9rem;
  color: #94a3b8;
}

.hub-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #edf2f7;
}

.hub-card__deadline {
  min-width: 0;
  overflow: hidden;
  font-size: 0.66rem;
  color: #64748b;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hub-card__cta {
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hub-card__cta i {
  margin-left: 0.15rem;
  font-size: 0.6rem;
}

.hub-card__cta--purple { background: #f5f3ff; color: #6d28d9; }
.hub-card__cta--purple:hover { background: #7c3aed; color: #fff; }
.hub-card__cta--green { background: #ecfdf3; color: #15803d; }
.hub-card__cta--green:hover { background: #15803d; color: #fff; }

/* text cards a little wider than the courses' (about three a row on a laptop) */
@media (min-width: 576px) {
  .institutes-page.hub-listing--jobs .hub-listing__grid,
  .institutes-page.hub-listing--scholarships .hub-listing__grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* phones: one card a row (they are text, two would be too narrow) */
@media (max-width: 575px) {
  .institutes-page.hub-listing--jobs .hub-listing__grid,
  .institutes-page.hub-listing--scholarships .hub-listing__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .hub-listing .hub-card {
    border: 1px solid #e6eef8;
    border-top: 3px solid #8b5cf6;
    border-radius: 10px;
    padding: 0.8rem 0.85rem;
  }

  .hub-listing .hub-card--scholarship {
    border-top-color: #16a34a;
  }
}

/* the header's colour line by page */
.hub-listing--purple .vendors-hero--compact { border-left-color: #7c3aed; }
.hub-listing--blue .vendors-hero--compact { border-left-color: #1d6fd8; }
.hub-listing--purple .hub-listing__stats i { color: #7c3aed; }
.hub-listing--green .hub-listing__stats i { color: #15803d; }

/* (the site's stylesheet sizes every list item; these lists keep their own size) */
.hub-listing .hub-card__facts li,
.hub-listing .hub-listing__stats li {
  font-size: inherit;
  line-height: 1.45;
}
