/* Latest internships from Campus+ (ntweb_campus_feed). Same card language as
   the homepage news cards: white, 1px lilac border, 16px corners. */
.ntc-internships__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.ntc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e1f2;
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 6px 18px rgba(38, 3, 135, .04);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ntc-card:hover,
.ntc-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(38, 3, 135, .10);
  border-color: #d9d5f2;
}
/* Tag and host badge, in the same colours as the Campus+ Internship Market
   cards. */
.ntc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ntc-card__type {
  background: #82ffc8;
  color: #13003d;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ntc-card__host {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.ntc-card__host-icon { font-size: 12px; line-height: 1; }
.ntc-card__host--neu { background: #ece7ff; color: #260387; border-color: rgba(95, 90, 255, .25); }
.ntc-card__host--assoc { background: #fcf4e6; color: #7a5f15; border-color: rgba(138, 109, 31, .22); }
/* Campus+ uses #7e7c95 here; darkened to pass 4.5:1 on the grey. */
.ntc-card__host--ext { background: #f3f2f6; color: #5c5a70; border-color: #e6e3ea; }
.ntc-card__title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 10px;
}
.ntc-card .ntc-card__link,
.ntc-card .ntc-card__link:visited {
  color: #1b1930;
  text-decoration: none !important;
}
.ntc-card:hover .ntc-card__link,
.ntc-card .ntc-card__link:focus-visible { text-decoration: underline !important; }
/* the whole card is the link */
.ntc-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.ntc-card__link:focus-visible::after {
  outline: 3px solid #5e5afe;
  outline-offset: 2px;
}
.ntc-card .ntc-card__org {
  color: #3a3f48;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 6px;
}
.ntc-card .ntc-card__facts {
  color: #57536b;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 18px;
}
.ntc-card__foot {
  margin: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ntc-card__deadline {
  color: #260387;
  font-size: 14px;
  font-weight: 700;
}
.ntc-card__more {
  color: #260387;
  font-size: 18px;
  transition: transform .18s;
}
.ntc-card:hover .ntc-card__more { transform: translateX(4px); }
.ntc-internships .ntc-internships__all { margin-top: 32px !important; }
.ntc-internships__empty { color: #3a3f48; }

@media (max-width: 1199px) {
  .ntc-internships__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .ntc-internships__grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ntc-card, .ntc-card__more { transition: none; }
  .ntc-card:hover { transform: none; }
}

/* High contrast: white text on black, outlined, like the rest of the page. */
html[data-theme="high-contrast"] .ntc-card {
  background: #000 !important;
  border-color: #fff !important;
  box-shadow: none !important;
}
html[data-theme="high-contrast"] .ntc-card *,
html[data-theme="high-contrast"] .ntc-card__link,
html[data-theme="high-contrast"] .ntc-card__link:visited {
  color: #fff !important;
  background: transparent !important;
}
html[data-theme="high-contrast"] .ntc-card__type,
html[data-theme="high-contrast"] .ntc-card__host { border: 1px solid #fff !important; }
html[data-theme="high-contrast"] .ntc-card:hover,
html[data-theme="high-contrast"] .ntc-card:focus-within {
  outline: 2px solid #ffff00;
  outline-offset: -2px;
}
