/* Education & Knowledge Hub (/education-hub). Text in the site's Inter, big headings in Manrope. */
.eh-page {
  --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 6px 20px rgba(15, 23, 42, 0.06);
  padding-bottom: 2.5rem;
  color: var(--eh-text);
}

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

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

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

  .eh-hero__main {
    --eh-hero-img-w: 340px;
  }
}

/* ---------- 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--lg {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.eh-icon--square {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  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--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-card {
  background: var(--eh-card);
  border: 1px solid var(--eh-line);
  border-radius: var(--eh-radius);
  box-shadow: var(--eh-shadow);
}

/* ---------- Hub navigation ---------- */
.eh-nav {
  background: #fff;
  border-bottom: 1px solid var(--eh-line);
}

.eh-nav__list {
  display: flex;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eh-nav__item {
  position: relative;
}

.eh-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eh-text);
  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 {
  color: var(--eh-blue);
}

.eh-nav__link.is-active {
  color: var(--eh-blue);
  border-bottom-color: var(--eh-blue);
}

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

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

/* The last menu opens to the left so it stays on screen */
.eh-nav__item:last-child .eh-nav__menu {
  left: auto;
  right: 0;
}

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

.eh-nav__menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--eh-text);
  text-decoration: none;
}

.eh-nav__menu a:hover,
.eh-nav__menu a:focus-visible {
  background: #eff6ff;
  color: var(--eh-blue);
}

/* ---------- Hero ---------- */
/* The picture's doodle background across the whole banner (the student is cut out and stands on it) */
.eh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  border-radius: 18px;
  background:
    /* a little calmer behind the heading and text */
    linear-gradient(90deg, rgba(232, 241, 253, .6) 0, rgba(232, 241, 253, .45) 38%, rgba(232, 241, 253, 0) 58%),
    url('../images/education-hub/doodles.svg') 0 0 / 840px 400px repeat,
    linear-gradient(180deg, #e5f0fd 0%, #edf4fe 60%, #f4f8fe 100%);
}

/* A soft light behind the student, as in the original picture */
.eh-hero__main {
  background: radial-gradient(circle at calc(100% - var(--eh-hero-img-w, 300px) / 2) 58%, rgba(255, 255, 255, .8) 0, rgba(255, 255, 255, .45) 90px, rgba(255, 255, 255, 0) 170px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.eh-hero__copy {
  flex: 1;
  min-width: 0;
  padding: 1rem 0;
}

.eh-hero__title {
  margin: 0 0 0.85rem;
  font-family: 'Manrope', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--eh-navy);
}

.eh-hero__title span {
  display: block;
  color: var(--eh-blue);
}

.eh-hero__text {
  max-width: 34rem;
  margin: 0 0 1.4rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--eh-text);
}

.eh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.eh-btn--primary {
  background: var(--eh-blue);
  color: #fff;
}

.eh-btn--primary:hover {
  background: var(--eh-blue-strong);
  color: #fff;
}

.eh-btn--outline {
  background: #fff;
  border-color: #93c5fd;
  color: var(--eh-blue);
}

.eh-btn--outline:hover {
  background: #eff6ff;
  color: var(--eh-blue);
}

.eh-stats {
  display: grid;
  /* Each stat as wide as its label, spread across the card */
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  max-width: 40rem;
  padding: 0.8rem 0.9rem;
  background: #fff;
  border: 1px solid var(--eh-line);
  border-radius: 12px;
  box-shadow: var(--eh-shadow);
}

.eh-stat {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.eh-stat .eh-icon {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.eh-stat > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.eh-stat__count {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.eh-stat small {
  font-size: 0.75rem;
  color: var(--eh-muted);
  white-space: nowrap;
}

.eh-hero__image {
  flex-shrink: 0;
  align-self: flex-end;
  width: var(--eh-hero-img-w, 300px);
  height: auto;
  margin-bottom: -1.25rem;
}

/* "I want to…" */
.eh-quick {
  padding: 1.1rem 1rem 0.6rem;
}

.eh-quick__title {
  margin: 0 0 0.5rem;
  padding: 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--eh-navy);
}

.eh-quick__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eh-quick__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.eh-quick__link:hover {
  background: #f8fafc;
}

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

.eh-quick__text strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--eh-navy);
}

.eh-quick__text small {
  font-size: 0.75rem;
  color: var(--eh-muted);
}

.eh-quick__arrow {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ---------- 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-size: 1.15rem;
  font-weight: 700;
  color: var(--eh-navy);
}

.eh-section__more,
.eh-panel__more {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--eh-blue);
  text-decoration: none;
}

.eh-section__more:hover,
.eh-panel__more:hover {
  text-decoration: underline;
}

/* Categories */
.eh-categories {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.85rem;
}

.eh-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1rem 0.35rem 0.85rem;
  background: #fff;
  border: 1px solid var(--eh-line);
  border-radius: 12px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.eh-category:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: var(--eh-shadow);
}

.eh-category .eh-icon {
  margin-bottom: 0.5rem;
}

.eh-category strong {
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--eh-navy);
}

.eh-category small {
  font-size: 0.72rem;
  color: var(--eh-muted);
}

/* Panels */
/* Top teachers and announcements side by side */
.eh-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.eh-panel {
  padding: 1rem 1.1rem 1.1rem;
  min-width: 0;
}

.eh-panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--eh-navy);
}

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

/* Trending study materials: cards with the cover image (or the file-type icon) */
.eh-section__title--icon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

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

.eh-tm {
  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-tm:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.eh-tm__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  font-size: 2.3rem;
}

.eh-tm__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.eh-tm:hover .eh-tm__media img {
  transform: scale(1.04);
}

.eh-tm__media--pdf { background: #fee2e2; color: #dc2626; }
.eh-tm__media--doc { background: #dbeafe; color: #2563eb; }
.eh-tm__media--ppt { background: #ffedd5; color: #ea580c; }
.eh-tm__media--xls { background: #dcfce7; color: #16a34a; }
.eh-tm__media--img { background: #ede9fe; color: #7c3aed; }
.eh-tm__media--file { background: #e2e8f0; color: #475569; }

.eh-tm__type {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  max-width: calc(100% - 1.1rem);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
}

.eh-tm__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.75rem 0.8rem 0.8rem;
}

.eh-tm__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  margin-bottom: 0.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--eh-navy);
}

.eh-tm:hover .eh-tm__title {
  color: var(--eh-blue);
}

.eh-tm__line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--eh-muted);
}

.eh-tm__line i {
  flex: 0 0 0.9rem;
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
}

.eh-tm__line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eh-tm__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid #eef2f7;
  font-size: 0.72rem;
  color: var(--eh-muted);
}

.eh-tm__meta i {
  margin-right: 0.25rem;
}

.eh-tm__star {
  color: #f59e0b;
}

/* Teachers */
.eh-teachers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
}

.eh-teacher {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.eh-teacher__photo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
}

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

.eh-teacher__body strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--eh-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.eh-teacher:hover strong {
  color: var(--eh-blue);
}

.eh-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #f59e0b;
}

.eh-stars .is-empty {
  color: #d1d5db;
}

.eh-stars span {
  margin-left: 0.35rem;
  font-weight: 600;
  color: var(--eh-text);
}

.eh-stars--new {
  font-weight: 600;
  color: var(--eh-muted);
}

/* Announcements */
.eh-announcements {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.eh-announcement__body strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--eh-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.eh-announcement__date {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--eh-muted);
}

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

/* Colourful panels, as the homepage's education sections: a gradient shell per section (light at
   the top-left to vivid at the bottom-right), dark heading with one accented word, white cards
   whose picture sits inset inside a white border */
.eh-cpanels {
  display: grid;
  gap: 24px 28px;
  margin-top: 1.75rem;
}

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

.eh-cpanels--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.eh-cp {
  --eh-cp-bg: linear-gradient(115deg, #bfdbfe 0%, #60a5fa 45%, #2563eb 100%);
  --eh-cp-accent: #1e3a8a;
  --eh-cp-tint: #eff6ff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: var(--eh-cp-bg);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  color: #0f1111;
  font-family: 'Inter', sans-serif;
}

.eh-cp--study {
  --eh-cp-bg: linear-gradient(115deg, #ddd6fe 0%, #a78bfa 45%, #7c3aed 100%);
  --eh-cp-accent: #4c1d95;
  --eh-cp-tint: #f5f3ff;
}

.eh-cp--schools {
  --eh-cp-bg: linear-gradient(115deg, #cffafe 0%, #67e8f9 45%, #06b6d4 100%);
  --eh-cp-accent: #155e75;
  --eh-cp-tint: #ecfeff;
}

.eh-cp--colleges {
  --eh-cp-bg: linear-gradient(115deg, #bbf7d0 0%, #4ade80 50%, #16a34a 100%);
  --eh-cp-accent: #14532d;
  --eh-cp-tint: #f0fdf4;
}

.eh-cp--institutes {
  --eh-cp-bg: linear-gradient(115deg, #fed7aa 0%, #fb923c 45%, #ea580c 100%);
  --eh-cp-accent: #7c2d12;
  --eh-cp-tint: #fff7ed;
}

.eh-cp__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eh-cp__icon {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
}

.eh-cp__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.eh-cp__spark--a {
  top: 0;
  right: 0;
}

.eh-cp__spark--b {
  top: 8px;
  left: -3px;
  width: 5px;
  height: 5px;
}

.eh-cp__spark--c {
  bottom: 4px;
  right: -2px;
}

.eh-cp__heading {
  flex: 1;
  min-width: 0;
}

.eh-cp__title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f1111;
  text-wrap: balance;
}

.eh-cp__title span {
  color: var(--eh-cp-accent);
}

.eh-cp__subtitle {
  margin: 4px 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(15, 17, 17, 0.78);
}

.eh-cp__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
}

.eh-cp__nav a {
  color: #0f1111;
  text-decoration: none;
}

.eh-cp__nav a:hover {
  text-decoration: underline;
}

.eh-cp__nav-dot {
  color: rgba(15, 17, 17, 0.45);
}

.eh-cp__more {
  flex-shrink: 0;
  padding-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f1111;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.eh-cp__more:hover {
  color: var(--eh-cp-accent);
}

.eh-cp__more i {
  margin-left: 2px;
  font-size: 0.72rem;
}

.eh-cp__more-sm {
  display: none;
}

/* Rows share the panel's height, so cards in side-by-side panels match */
.eh-cp__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px 14px;
}

.eh-cp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.eh-cp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
  color: inherit;
}

.eh-cp-card__media {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin: 8px 8px 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--eh-cp-tint);
  color: var(--eh-cp-accent);
  font-size: 1.9rem;
}

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

/* A logo (no photo): whole, on the panel's light tint */
.eh-cp-card__media img.eh-cp-card__logo {
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.eh-cp-card__verified {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
  color: #15803d;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
}

.eh-cp-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px 12px;
}

.eh-cp-card__title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.eh-cp-card__pill {
  max-width: 100%;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eh-cp-card__line {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748b;
}

.eh-cp-card__line i {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: #16a34a;
}

.eh-cp-card__line span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.eh-cp-card__line--text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "List your school": fills the free places in a row */
.eh-cp-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 16px 12px;
  border: 2px dashed rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: #0f1111;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.eh-cp-join:hover {
  background: rgba(255, 255, 255, 0.82);
  color: #0f1111;
}

.eh-cp-join--span-2 {
  grid-column: span 2;
}

.eh-cp-join--span-3 {
  grid-column: 1 / -1;
}

.eh-cp-join__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  color: var(--eh-cp-accent);
  font-size: 0.95rem;
}

.eh-cp-join strong {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.eh-cp-join small {
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(15, 17, 17, 0.75);
}

/* Three panels side by side: smaller heading, two-line names */
.eh-cpanels--three .eh-cp__title {
  font-size: 1.4rem;
}

.eh-cpanels--three .eh-cp__subtitle {
  font-size: 0.8125rem;
}

.eh-cpanels--three .eh-cp__grid {
  gap: 10px;
}

.eh-cpanels--three .eh-cp-card__media {
  margin: 6px 6px 0;
}

.eh-cpanels--three .eh-cp-card__body {
  padding: 9px 9px 10px;
}

.eh-cpanels--three .eh-cp-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.5em;
  white-space: normal;
  font-size: 0.84rem;
}

.eh-cpanels--three .eh-cp-card__pill {
  padding: 3px 7px;
  font-size: 0.65rem;
}

.eh-cpanels--three .eh-cp-card__line {
  font-size: 0.68rem;
}

.eh-cpanels--three .eh-cp-card__verified {
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  font-size: 0.58rem;
}

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .eh-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding-left: 1.5rem;
  }

  .eh-hero__main {
    --eh-hero-img-w: 230px;
  }

  .eh-stats {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    column-gap: 2rem;
  }

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

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

  /* Schools, colleges and institutes one under the other */
  .eh-cpanels--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .eh-cp__title,
  .eh-cpanels--three .eh-cp__title {
    font-size: 1.5rem;
  }
}

/* Tablets: the stacked school, college and institute panels keep three cards a row, picture on the
   left, so the cards stay small */
@media (min-width: 768px) and (max-width: 1199px) {
  .eh-cpanels--three .eh-cp__grid {
    gap: 12px;
  }

  .eh-cpanels--three .eh-cp-card {
    flex-direction: row;
  }

  .eh-cpanels--three .eh-cp-card__media {
    flex: 0 0 38%;
    min-height: 86px;
    margin: 6px 0 6px 6px;
    aspect-ratio: auto;
  }

  .eh-cpanels--three .eh-cp-card__body {
    justify-content: center;
    padding: 8px 10px;
  }

  .eh-cpanels--three .eh-cp-card__title {
    min-height: 0;
  }

  .eh-cpanels--three .eh-cp-join {
    display: grid;
    grid-template-columns: auto minmax(0, max-content);
    align-content: center;
    justify-content: center;
    justify-items: start;
    gap: 2px 12px;
    padding: 12px 16px;
    text-align: left;
  }

  .eh-cpanels--three .eh-cp-join__icon {
    grid-row: span 2;
  }
}

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

  .eh-cpanels--two {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .eh-nav__list {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .eh-container {
    padding: 0 16px;
  }

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

  .eh-nav__link {
    width: 100%;
    padding: 0.55rem 0.4rem;
    border-bottom: 0;
    font-size: 0.82rem;
  }

  .eh-nav__link.is-active {
    border-radius: 8px;
    background: #eff6ff;
  }

  .eh-hero {
    padding: 1.25rem 1rem;
  }

  .eh-hero__image {
    display: none;
  }

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

  .eh-hero__text {
    font-size: 0.92rem;
  }

  .eh-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

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

  .eh-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .eh-panels {
    grid-template-columns: 1fr;
  }

  /* Two trending cards per row */
  .eh-trending {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .eh-tm__media {
    font-size: 1.8rem;
  }

  .eh-tm__type {
    top: 0.4rem;
    left: 0.4rem;
    font-size: 0.58rem;
  }

  .eh-tm__body {
    gap: 0.2rem;
    padding: 0.55rem 0.6rem 0.65rem;
  }

  .eh-tm__title {
    font-size: 0.78rem;
  }

  .eh-tm__line {
    gap: 0.35rem;
    font-size: 0.68rem;
  }

  .eh-tm__meta {
    gap: 0.2rem 0.6rem;
    padding-top: 0.4rem;
    font-size: 0.66rem;
  }

  /* Colourful panels as on the homepage: the cards in a sideways rail, the next one peeking */
  .eh-cpanels,
  .eh-cpanels--three {
    gap: 16px;
    margin-top: 1.25rem;
  }

  .eh-cp {
    gap: 14px;
    padding: 18px 14px 17px;
    border-radius: 18px;
    overflow: hidden;
  }

  .eh-cp__head {
    gap: 10px;
  }

  .eh-cp__icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .eh-cp__title,
  .eh-cpanels--three .eh-cp__title {
    font-size: 1.05rem;
  }

  .eh-cp__subtitle,
  .eh-cpanels--three .eh-cp__subtitle {
    margin-top: 2px;
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  .eh-cp__nav {
    gap: 4px;
    margin-top: 4px;
    font-size: 0.625rem;
  }

  .eh-cp__more {
    padding-top: 2px;
    font-size: 0.6875rem;
  }

  .eh-cp__more-lg {
    display: none;
  }

  .eh-cp__more-sm {
    display: inline;
  }

  .eh-cp__grid,
  .eh-cpanels--three .eh-cp__grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .eh-cp-card,
  .eh-cp-join {
    flex: 0 0 min(72vw, 300px);
    scroll-snap-align: start;
  }

  .eh-cp-card {
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  }

  .eh-cp-card:hover {
    transform: none;
  }

  .eh-cp-card__body,
  .eh-cpanels--three .eh-cp-card__body {
    gap: 3px;
    padding: 8px 10px 10px;
  }

  .eh-cp-card__title,
  .eh-cpanels--three .eh-cp-card__title {
    min-height: 0;
    font-size: 0.8125rem;
  }

  .eh-cp-card__pill,
  .eh-cpanels--three .eh-cp-card__pill {
    padding: 3px 7px;
    font-size: 0.625rem;
  }

  .eh-cp-card__line,
  .eh-cpanels--three .eh-cp-card__line {
    font-size: 0.6875rem;
  }

  /* Nothing listed: the "List your …" card takes the whole row */
  .eh-cp-join--span-3 {
    flex-basis: 100%;
  }
}

/* Small laptops: the eight menu items fit on one line; the two education panels' cards are narrow */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .eh-cpanels--two .eh-cp-card__body {
    padding: 9px 10px 10px;
  }

  .eh-cpanels--two .eh-cp-card__title {
    font-size: 0.84rem;
  }

  .eh-nav__list {
    gap: 0.15rem 0.2rem;
  }

  .eh-nav__link {
    gap: 0.35rem;
    padding: 0.8rem 0.55rem;
    font-size: 0.82rem;
  }
}
