:root {
  --edu-search-red: #d21414;
  --edu-search-deep: #720003;
  --edu-search-ink: #172746;
  --edu-search-muted: #68758b;
  --edu-search-line: #e6e9ef;
  --edu-search-soft: #fff5f4;
}

header .searchform-wrapper {
  width: clamp(270px, 22vw, 350px) !important;
  margin-left: 0 !important;
}

.mfp-content .searchform-wrapper,
.mobile-sidebar .searchform-wrapper,
#main-menu .searchform-wrapper {
  width: 100% !important;
  margin-left: 0 !important;
}

.edu-site-search-form {
  position: relative;
  width: 100%;
}

.edu-site-search-form > .live-search-results {
  display: none !important;
}

:is(header, .mfp-content, .mobile-sidebar, #main-menu) .edu-site-search-form > .flex-row {
  min-height: 52px;
  overflow: hidden;
  border: 1.5px solid #df7775;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(23, 39, 70, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

:is(header, .mfp-content, .mobile-sidebar, #main-menu) .edu-site-search-form:focus-within > .flex-row,
:is(header, .mfp-content, .mobile-sidebar, #main-menu) .edu-site-search-form.is-search-open > .flex-row {
  border-color: var(--edu-search-red);
  box-shadow: 0 10px 28px rgba(114, 0, 3, 0.13), 0 0 0 3px rgba(210, 20, 20, 0.08);
  transform: translateY(-1px);
}

:is(header, .mfp-content, .mobile-sidebar, #main-menu) .edu-site-search-form .search-field {
  height: 50px !important;
  padding: 0 8px 0 21px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--edu-search-ink) !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

:is(header, .mfp-content, .mobile-sidebar, #main-menu) .edu-site-search-form .search-field::placeholder {
  color: #8d929d;
}

:is(header, .mfp-content, .mobile-sidebar, #main-menu) .edu-site-search-form .ux-search-submit {
  display: grid !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 4px 5px 4px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #ec1c20, #b90005) !important;
  color: #fff !important;
  box-shadow: 0 6px 15px rgba(190, 0, 6, 0.22) !important;
  place-items: center;
}

.edu-live-search {
  position: absolute;
  z-index: 100050;
  top: calc(100% + 12px);
  right: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 125px));
  overflow: auto;
  padding: 9px;
  border: 1px solid rgba(114, 0, 3, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 25px 70px rgba(24, 35, 57, 0.2);
  color: var(--edu-search-ink);
  overscroll-behavior: contain;
  animation: edu-search-panel-in 180ms ease both;
}

.edu-live-search[hidden] {
  display: none !important;
}

@keyframes edu-search-panel-in {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.edu-live-search__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #edf0f4;
}

.edu-live-search__header > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.edu-live-search__header span,
.edu-live-search__header small {
  color: var(--edu-search-muted);
  font-size: 11px;
}

.edu-live-search__header strong {
  color: var(--edu-search-red);
  font-size: 11px;
}

.edu-live-search__items {
  display: grid;
  gap: 3px;
  padding: 5px 0;
}

.edu-live-search__item {
  display: grid;
  min-width: 0;
  padding: 9px;
  border-radius: 13px;
  color: var(--edu-search-ink) !important;
  text-decoration: none !important;
  grid-template-columns: 62px minmax(0, 1fr) 22px;
  gap: 11px;
  align-items: center;
  transition: background-color 150ms ease, transform 150ms ease;
}

.edu-live-search__item:hover,
.edu-live-search__item.is-active {
  background: linear-gradient(90deg, #fff1f0, #fff9f8);
  transform: translateX(2px);
}

.edu-live-search__media {
  display: grid;
  width: 62px;
  height: 54px;
  overflow: hidden;
  border: 1px solid #eceff3;
  border-radius: 11px;
  background: #f5f7fa;
  place-items: center;
}

.edu-live-search__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-live-search__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 20%, #fff 0 12%, transparent 13%), linear-gradient(145deg, #fff4f3, #f8ecec);
  color: var(--edu-search-red);
  place-items: center;
}

.edu-live-search__fallback svg,
.edu-live-search__meta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.edu-live-search__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.edu-live-search__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.edu-live-search__meta b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--edu-search-red);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.edu-live-search__meta b svg {
  width: 12px;
  height: 12px;
}

.edu-live-search__meta time {
  color: #98a0ae;
  font-size: 9px;
}

.edu-live-search__copy > strong {
  overflow: hidden;
  color: var(--edu-search-ink);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edu-live-search__copy > small {
  overflow: hidden;
  color: var(--edu-search-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edu-live-search__arrow {
  color: var(--edu-search-red);
  font-size: 17px;
}

.edu-live-search__all {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d91519, #a90005);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
}

.edu-live-search__all b {
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  place-items: center;
}

.edu-live-search__status,
.edu-live-search__empty {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  color: var(--edu-search-muted);
  font-size: 12px;
  text-align: center;
}

.edu-live-search__empty {
  flex-direction: column;
}

.edu-live-search__empty > span {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--edu-search-soft);
  color: var(--edu-search-red);
  font-size: 17px;
  font-weight: 800;
  place-items: center;
}

.edu-live-search__empty strong {
  color: var(--edu-search-ink);
}

.edu-live-search__empty small {
  max-width: 330px;
  color: var(--edu-search-muted);
  line-height: 1.5;
}

.edu-live-search__spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #f3d1cf;
  border-top-color: var(--edu-search-red);
  border-radius: 50%;
  animation: edu-search-spin .65s linear infinite;
}

@keyframes edu-search-spin { to { transform: rotate(360deg); } }

.edu-live-search__skeleton {
  display: grid;
  padding: 9px;
  grid-template-columns: 62px 1fr;
  gap: 10px;
}

.edu-live-search__skeleton i {
  width: 62px;
  height: 52px;
  border-radius: 10px;
  background: #f1f3f6;
  grid-row: span 2;
}

.edu-live-search__skeleton span {
  height: 10px;
  align-self: end;
  border-radius: 99px;
  background: #f1f3f6;
}

.edu-live-search__skeleton span:last-child {
  width: 68%;
  align-self: start;
}

.edu-search-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 70px;
  color: var(--edu-search-ink);
}

.edu-search-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 38px 42px;
  border: 1px solid #efd8d5;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff 0 47%, #fff4f3 100%);
  box-shadow: 0 18px 50px rgba(37, 50, 75, 0.08);
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 25px 38px;
}

.edu-search-hero__copy,
.edu-search-page-form {
  position: relative;
  z-index: 2;
}

.edu-search-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--edu-search-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.edu-search-hero h1 {
  margin: 0 0 8px;
  color: var(--edu-search-ink) !important;
  font-size: clamp(32px, 4vw, 48px) !important;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.edu-search-hero__copy p {
  max-width: 690px;
  margin: 0;
  color: var(--edu-search-muted);
  font-size: 14px;
  line-height: 1.7;
}

.edu-search-page-form {
  grid-column: 1;
}

.edu-search-page-form > label {
  display: block;
  margin-bottom: 8px;
  color: var(--edu-search-ink);
  font-size: 12px;
  font-weight: 750;
}

.edu-search-page-form__row {
  display: grid;
  min-height: 58px;
  overflow: hidden;
  border: 1.5px solid #e2b3b0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(33, 45, 66, .08);
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
}

.edu-search-page-form__row:focus-within {
  border-color: var(--edu-search-red);
  box-shadow: 0 12px 30px rgba(114, 0, 3, .13), 0 0 0 3px rgba(210, 20, 20, .07);
}

.edu-search-page-form__icon {
  display: grid;
  color: var(--edu-search-red);
  place-items: center;
}

.edu-search-page-form__icon svg,
.edu-search-empty__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.edu-search-page-form input.search-field {
  height: 56px !important;
  margin: 0 !important;
  padding: 0 10px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--edu-search-ink) !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.edu-search-page-form button {
  min-height: 48px;
  margin: 4px !important;
  padding: 0 21px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #df171b, #af0006) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 7px 18px rgba(183, 0, 6, .22) !important;
}

.edu-search-page-form button span { margin-left: 8px; }

.edu-search-hero__summary {
  position: relative;
  z-index: 2;
  display: grid;
  padding: 22px;
  border: 1px solid rgba(218, 30, 33, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 35px rgba(114, 0, 3, .08);
  grid-column: 2;
  grid-row: 1 / span 2;
  align-content: center;
}

.edu-search-hero__summary strong {
  color: var(--edu-search-red);
  font-size: 40px;
  line-height: 1;
}

.edu-search-hero__summary span {
  margin-top: 7px;
  color: var(--edu-search-muted);
  font-size: 11px;
}

.edu-search-hero__summary q {
  margin-top: 8px;
  overflow: hidden;
  color: var(--edu-search-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
  quotes: "“" "”";
}

.edu-search-hero__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(218, 30, 33, .07);
}

.edu-search-hero__orb--one { top: -90px; right: 120px; width: 240px; height: 240px; }
.edu-search-hero__orb--two { right: 300px; bottom: -110px; width: 180px; height: 180px; }

.edu-search-filters {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 30px;
  padding: 5px 2px 9px;
  scrollbar-width: thin;
}

.edu-search-filters a {
  display: inline-flex;
  min-height: 39px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid #e3e7ed;
  border-radius: 999px;
  background: #fff;
  color: #526078 !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.edu-search-filters a svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.edu-search-filters a.is-active {
  border-color: var(--edu-search-red);
  background: var(--edu-search-red);
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(196, 13, 18, .18);
}

.edu-search-results__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 17px;
}

.edu-search-results__heading span {
  color: var(--edu-search-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.edu-search-results__heading h2 {
  margin: 4px 0 0;
  color: var(--edu-search-ink) !important;
  font-size: clamp(23px, 2.5vw, 31px) !important;
  letter-spacing: -.025em;
}

.edu-search-results__heading p {
  max-width: 350px;
  margin: 0;
  color: var(--edu-search-muted);
  font-size: 12px;
  text-align: right;
}

.edu-search-results__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.edu-search-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e7ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(25, 43, 72, .055);
  grid-template-columns: 165px minmax(0, 1fr);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.edu-search-card__media {
  display: block;
  min-height: 225px;
  overflow: hidden;
  border-right: 1px solid #edf0f4;
  background: #f6f7fa;
}

.edu-search-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.edu-search-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 68% 26%, #fff 0 9%, transparent 10%), linear-gradient(150deg, #fff7f5, #f4e8e8);
  color: var(--edu-search-red);
  place-items: center;
}

.edu-search-card__placeholder svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.edu-search-card__body {
  display: flex;
  min-width: 0;
  padding: 18px;
  flex-direction: column;
}

.edu-search-card__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.edu-search-card__eyebrow > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--edu-search-red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.edu-search-card__eyebrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.edu-search-card__eyebrow time {
  flex: 0 0 auto;
  color: #949dac;
  font-size: 9px;
}

.edu-search-card h3 {
  margin: 0 0 7px;
  font-size: 17px !important;
  line-height: 1.37;
}

.edu-search-card h3 a {
  color: var(--edu-search-ink) !important;
  text-decoration: none !important;
}

.edu-search-card mark {
  padding: 0 2px;
  border-radius: 3px;
  background: #fff0a8;
  color: inherit;
}

.edu-search-card__context {
  margin: 0 0 6px;
  color: #3f7eaa;
  font-size: 10px;
  font-weight: 700;
}

.edu-search-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--edu-search-muted);
  font-size: 11px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.edu-search-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
}

.edu-search-card__footer > span {
  color: #929aaa;
  font-size: 9px;
}

.edu-search-card__footer a {
  color: var(--edu-search-red) !important;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none !important;
}

.edu-search-pagination {
  margin-top: 30px;
  text-align: center;
}

.edu-search-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.edu-search-pagination .page-numbers {
  display: grid;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e6ec;
  border-radius: 10px;
  background: #fff;
  color: var(--edu-search-ink) !important;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none !important;
  place-items: center;
}

.edu-search-pagination .page-numbers.current {
  border-color: var(--edu-search-red);
  background: var(--edu-search-red);
  color: #fff !important;
}

.edu-search-empty {
  display: grid;
  padding: 55px 30px;
  border: 1px solid #ead8d6;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #fff7f6);
  text-align: center;
  place-items: center;
}

.edu-search-empty__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #ffedeb;
  color: var(--edu-search-red);
  place-items: center;
}

.edu-search-empty h2 { margin: 0 0 8px; color: var(--edu-search-ink) !important; }
.edu-search-empty p { max-width: 580px; margin: 0; color: var(--edu-search-muted); font-size: 13px; }

.edu-search-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.edu-search-empty__actions a {
  padding: 10px 15px;
  border: 1px solid #e6bdb9;
  border-radius: 999px;
  color: var(--edu-search-deep) !important;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .edu-search-filters a:hover { border-color: #dc817e; color: var(--edu-search-red) !important; transform: translateY(-1px); }
  .edu-search-card:hover { border-color: #e6bbb8; box-shadow: 0 16px 38px rgba(114, 0, 3, .09); transform: translateY(-2px); }
  .edu-search-card:hover .edu-search-card__media img { transform: scale(1.035); }
}

@media (max-width: 980px) {
  header .searchform-wrapper { width: clamp(230px, 25vw, 300px) !important; }
  .edu-search-results__grid { grid-template-columns: 1fr; }
  .edu-search-card { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 767px) {
  header .searchform-wrapper { width: 100% !important; }
  .edu-live-search { position: fixed; top: 70px; right: 12px; left: 12px; width: auto; max-height: calc(100vh - 90px); }
  .edu-search-page { width: 100%; padding: 20px 14px 48px; }
  .edu-search-hero { padding: 27px 20px 22px; border-radius: 20px; grid-template-columns: 1fr; gap: 20px; }
  .edu-search-hero__summary { grid-column: 1; grid-row: auto; }
  .edu-search-page-form { grid-column: 1; }
  .edu-search-hero__summary strong { font-size: 34px; }
  .edu-search-results__heading { display: block; }
  .edu-search-results__heading p { margin-top: 5px; text-align: left; }
  .edu-search-card { grid-template-columns: 112px minmax(0, 1fr); }
  .edu-search-card__media { min-height: 205px; }
  .edu-search-card__body { padding: 14px; }
  .edu-search-card__eyebrow { display: block; }
  .edu-search-card__eyebrow time { display: block; margin-top: 4px; }
  .edu-search-card h3 { font-size: 15px !important; }
}

@media (max-width: 480px) {
  .edu-live-search { top: 62px; }
  .edu-live-search__item { grid-template-columns: 54px minmax(0, 1fr) 18px; gap: 8px; padding: 8px 6px; }
  .edu-live-search__media { width: 54px; height: 49px; }
  .edu-live-search__meta time { display: none; }
  .edu-search-page-form__row { grid-template-columns: 38px minmax(0, 1fr); }
  .edu-search-page-form button { grid-column: 1 / -1; width: calc(100% - 8px); margin-top: 0 !important; }
  .edu-search-card { grid-template-columns: 92px minmax(0, 1fr); }
  .edu-search-card__media { min-height: 226px; }
  .edu-search-card__excerpt { -webkit-line-clamp: 2; }
  .edu-search-card__footer > span { display: none; }
  .edu-search-card__footer { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .edu-live-search,
  .edu-live-search__spinner,
  .edu-search-card,
  .edu-search-card__media img,
  header .edu-site-search-form > .flex-row { animation: none !important; transition: none !important; }
}
