/* EuroPath Jobs visual refresh */
:root {
  --ep-ink: #13203A;
  --ep-forest: #1F3FBF;
  --ep-forest-dark: #142A86;
  --ep-leaf: #E6ECFF;
  --ep-gold: #f4be32;
  --ep-paper: #F4F6FB;
}
html { scroll-behavior: smooth; }
body { color: var(--ep-ink); background: var(--ep-paper); }
h1, h2, h3, h4 { color: var(--ep-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--ep-gold);
  outline-offset: 3px;
}
.wp-block-site-title a { color: var(--ep-forest); letter-spacing: -.04em; }
.wp-block-navigation .wp-block-navigation-item__content {
  border-radius: 999px;
  padding: .55rem .9rem;
  transition: background-color .18s ease, color .18s ease;
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
  background: var(--ep-leaf);
  color: var(--ep-forest-dark);
}
.ep-hero {
  min-height: 560px;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
}
.ep-hero .wp-block-cover__image-background {
  object-position: center 38%;
  transform: scale(1.015);
}
.ep-hero .wp-block-cover__background {
  background: linear-gradient(110deg, rgba(19, 32, 58, .88), rgba(31, 63, 191, .50) 62%, rgba(19, 32, 58, .18)) !important;
  opacity: 1 !important;
}
.ep-hero .wp-block-cover__inner-container { max-width: 1120px; }
.ep-hero h1 { max-width: 900px; margin-inline: auto; text-wrap: balance; }
.ep-hero > .wp-block-cover__inner-container > p:nth-of-type(2) {
  max-width: 760px;
  margin: 1rem auto 2rem;
}
.ep-finder {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(2, minmax(145px, 1fr)) auto;
  gap: .75rem;
  align-items: end;
  max-width: 1060px;
  margin: 1.8rem auto 1rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 55px rgba(7, 25, 35, .22);
  color: var(--ep-ink);
}
.ep-f { display: grid; gap: .35rem; text-align: left; color: var(--ep-ink); font-size: .82rem; font-weight: 700; }
.ep-f input, .ep-f select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: .7rem .8rem;
  border: 1px solid #d7e2dd;
  border-radius: 10px;
  background: #fff;
  color: var(--ep-ink);
  font: inherit;
}
.ep-find {
  min-height: 48px;
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--ep-forest);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ep-find:hover { background: var(--ep-forest-dark); }
.ep-popular { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; align-items: center; }
.ep-popular > span { color: rgba(255,255,255,.82); }
.ep-popular a:not(.wp-element-button) {
  padding: .35rem .7rem;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff !important;
  text-decoration: none;
  font-size: .88rem;
}
.ep-popular a:not(.wp-element-button):hover { background: rgba(255,255,255,.2); }
.ep-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1rem; }
.ep-tile {
  box-sizing: border-box;
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: 1.1rem;
  border: 1px solid #e0e9e4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(18, 47, 39, .06);
  color: var(--ep-ink) !important;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ep-tile:hover {
  transform: translateY(-4px);
  border-color: #B5C1F2;
  box-shadow: 0 14px 32px rgba(18, 47, 39, .12);
}
.ep-tile-name { color: var(--ep-forest-dark); font-size: 1.02rem; font-weight: 800; }
.ep-tile-sub { color: #63766e; font-size: .88rem; line-height: 1.45; }
.ep-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--ep-leaf); color: var(--ep-forest); }
.ep-icon svg { width: 23px; height: 23px; }
.ep-pathway-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #e3ece7;
}
.ep-photo-tile { padding: .8rem; overflow: hidden; }
.ep-photo-credit { margin-top: auto; color: #75857e; font-size: .72rem; }
.ep-closing { border-radius: 14px; }
.wp-block-latest-posts.is-grid { gap: 1.2rem; }
.wp-block-latest-posts.is-grid > li {
  box-sizing: border-box;
  padding: .9rem;
  border: 1px solid #e1e9e5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(18, 47, 39, .06);
  overflow: hidden;
}
.wp-block-latest-posts__featured-image { margin: -.9rem -.9rem .9rem; }
.wp-block-latest-posts__featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.wp-block-latest-posts__post-title { display: block; color: var(--ep-forest-dark); font-weight: 800; text-decoration: none; }
.wp-block-latest-posts__post-excerpt, .wp-block-latest-posts__post-date { color: #62746c; font-size: .88rem; }
.ep-section-head { align-items: end; gap: 1rem; }
.ep-viewall a { font-weight: 800; text-decoration: none; }
.job_listings ul.job_listings { display: grid; gap: .75rem; }
.job_listings ul.job_listings li.job_listing {
  border: 1px solid #dfe8e3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(18, 47, 39, .045);
}
.job_listings ul.job_listings li.job_listing > a { padding: 1rem; }
.job_listings ul.job_listings li.job_listing img.company_logo { border-radius: 10px; }
#alerts { border-radius: 28px 28px 0 0; }
#alerts input[type="email"] { border-radius: 10px !important; }
#alerts button[type="submit"] { border-radius: 10px !important; background: var(--ep-forest); color: #fff; }
@media (max-width: 850px) {
  .ep-finder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-f--kw { grid-column: 1 / -1; }
  .ep-find { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ep-hero { min-height: auto; border-radius: 0 0 24px 24px; }
  .ep-hero .wp-block-cover__inner-container { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .ep-finder { grid-template-columns: 1fr; margin-top: 1.2rem; padding: .8rem; }
  .ep-f--kw, .ep-find { grid-column: auto; }
  .ep-popular { gap: .4rem; }
  .ep-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .ep-tile { min-height: 140px; padding: .85rem; border-radius: 14px; }
  .ep-photo-tile { padding: .65rem; }
  .ep-tile-name { font-size: .92rem; }
  .wp-block-latest-posts.is-grid > li { padding: .75rem; }
  .wp-block-latest-posts__featured-image { margin: -.75rem -.75rem .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Keep scholarship cards from stretching to the height of neighboring cards. */
.wp-block-latest-posts.is-grid { align-items: start; }
.wp-block-latest-posts.is-grid > li { height: auto; min-height: 0; }

/* Keep photographic pathways contained and aligned in every theme context. */
.ep-tiles {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch;
}
.ep-tiles > .ep-tile {
  box-sizing: border-box;
  display: flex !important;
  position: relative !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
.ep-tiles > .ep-tile > .ep-pathway-photo {
  box-sizing: border-box;
  display: block !important;
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 165px !important;
  max-height: 165px !important;
  aspect-ratio: auto !important;
  margin: 0 0 .4rem !important;
  object-fit: cover !important;
  transform: none !important;
}
.ep-photo-tile .ep-icon { display: none !important; }
@media (max-width: 900px) {
  .ep-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  .ep-tiles { grid-template-columns: 1fr !important; }
}
/* Brand-aligned navigation, cards and footer */
.ep-header { border-bottom: 1px solid rgba(19,32,58,.08); }
.ep-header-inner { gap: 1rem; }
.ep-header-actions { gap: .75rem; min-width: 0; }
.ep-header .wp-block-navigation {
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.ep-header .wp-block-navigation .wp-block-navigation__container { gap: .25rem; }
.ep-header .wp-block-navigation-item__content {
  padding: .5rem .6rem;
  border-radius: 8px;
}
.ep-header .wp-block-navigation-item__content:hover { background: var(--ep-leaf); color: var(--ep-forest-dark); }
.ep-header .wp-block-site-title a { color: var(--ep-forest); }
.ep-hero .wp-block-cover__background {
  background: linear-gradient(110deg, rgba(19,32,58,.88), rgba(31,63,191,.50) 62%, rgba(19,32,58,.18)) !important;
}
.ep-tile-name, .wp-block-latest-posts__post-title { color: var(--ep-forest-dark); }
.wp-block-latest-posts.is-grid > li:not(:has(.wp-block-latest-posts__featured-image))::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 132px;
  margin: -.9rem -.9rem .9rem;
  border-radius: 12px 12px 0 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(255,255,255,.32) 0 9%, transparent 9.5%),
    radial-gradient(circle at 18% 85%, rgba(242,183,5,.9) 0 2%, transparent 2.5%),
    linear-gradient(135deg, #13203A 0%, #1F3FBF 72%, #7189e6 100%);
}
.ep-footer {
  color: rgba(255,255,255,.84);
  background:
    radial-gradient(circle at 88% 10%, rgba(31,63,191,.36), transparent 30%),
    linear-gradient(135deg, #101a31 0%, #17264b 100%) !important;
}
.ep-footer-columns { display: grid !important; grid-template-columns: minmax(260px,1.8fr) repeat(3,minmax(130px,1fr)); gap: 2.2rem; }
.ep-footer-columns > .wp-block-column { width: auto !important; flex-basis: auto !important; min-width: 0; }
.ep-footer-brand { max-width: 460px; }
.ep-footer-kicker { margin: 0 0 .9rem; color: #F2B705; font-weight: 800; letter-spacing: .1em; }
.ep-footer-site-title { margin: 0 0 .45rem; }
.ep-footer-site-title a { display: inline-flex; align-items: center; color: #fff !important; text-decoration: none; }
.ep-footer-site-title a::before {
  content: "EP";
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-right: .7rem;
  place-items: center;
  border-radius: 12px;
  background: #F2B705;
  color: #13203A;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: -.04em;
}
.ep-footer .wp-block-site-tagline { margin: 0 0 1rem; color: rgba(255,255,255,.86); }
.ep-footer .ep-footer-note, .ep-footer-brand > p { color: rgba(255,255,255,.72); }
.ep-footer-heading { margin: .35rem 0 1rem; color: #F2B705; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ep-footer .wp-block-navigation__container { align-items: flex-start; gap: .7rem; }
.ep-footer .wp-block-navigation-item__content { padding: 0; color: rgba(255,255,255,.86); font-size: .95rem; text-decoration: none; }
.ep-footer .wp-block-navigation-item__content:hover { color: #F2B705; text-decoration: underline; text-underline-offset: .2em; }
.ep-footer-donate .wp-block-button__link {
  padding: .8rem 1.4rem;
  border: 1px solid rgba(242,183,5,.4);
  border-radius: 10px;
  background: #F2B705;
  color: #13203A;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.ep-footer-donate .wp-block-button__link:hover { background: #ffd34a; color: #13203A; }
.ep-footer-divider { margin: 2.5rem 0 1.1rem; border-color: rgba(255,255,255,.18) !important; }
.ep-footer-bottom { gap: .4rem 1rem; color: rgba(255,255,255,.64); }
.ep-footer-bottom p { margin: 0; font-size: .82rem; }
@media (max-width: 1100px) {
  .ep-header .wp-block-navigation { font-size: .78rem; }
  .ep-header .wp-block-navigation .wp-block-navigation__container { gap: 0; }
  .ep-header .wp-block-navigation-item__content { padding-inline: .42rem; }
  .ep-header-actions { gap: .4rem; }
}
@media (max-width: 850px) {
  .ep-footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.8rem 1.2rem; }
  .ep-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ep-footer { border-radius: 22px 22px 0 0; }
  .ep-footer-columns { gap: 1.5rem 1rem; }
  .ep-footer .wp-block-navigation-item__content { font-size: .9rem; }
  .ep-footer-divider { margin-top: 1.7rem; }
  .ep-footer-bottom { flex-direction: column; align-items: flex-start; }
}
/* Apply the footer design to the saved Site Editor footer shown in preview */
footer.wp-block-template-part > .wp-block-group {
  color: rgba(255,255,255,.82) !important;
  background: radial-gradient(circle at 88% 8%, rgba(49,78,184,.35), transparent 28%), linear-gradient(135deg,#101a31,#17264b) !important;
  padding: clamp(2.5rem,5vw,4.5rem) clamp(1.25rem,5vw,5rem) 1.25rem !important;
}
footer.wp-block-template-part .wp-block-site-title a { color: #fff !important; }
footer.wp-block-template-part .wp-block-site-tagline,
footer.wp-block-template-part .wp-block-paragraph { color: rgba(255,255,255,.72) !important; }
footer.wp-block-template-part .wp-block-navigation-item__content { color: rgba(255,255,255,.88) !important; text-decoration: none; }
footer.wp-block-template-part .wp-block-navigation-item__content:hover { color: #F2B705 !important; text-decoration: underline; }
footer.wp-block-template-part .wp-block-navigation__container { gap: .7rem !important; align-items: flex-start; }
footer.wp-block-template-part > .wp-block-group > .wp-block-group:first-child { align-items: flex-start; gap: clamp(2rem,5vw,5rem); }
footer.wp-block-template-part .wp-block-button__link { border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
@media (max-width: 780px) {
  footer.wp-block-template-part > .wp-block-group > .wp-block-group:first-child { flex-wrap: wrap; }
  footer.wp-block-template-part > .wp-block-group > .wp-block-group:first-child > .wp-block-group { flex-basis: 100%; }
  footer.wp-block-template-part > .wp-block-group > .wp-block-group:first-child > .wp-block-group:nth-child(2) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
}
/* Bring the page content into a more focused reading width on large screens */
:root {
  --wp--style--global--wide-size: 1080px;
  --wp--style--global--content-size: 720px;
}
.wp-site-blocks .alignwide,
.wp-site-blocks main .wp-block-group.alignwide {
  max-width: min(1080px, calc(100% - 2.5rem)) !important;
  margin-inline: auto !important;
}
.wp-site-blocks main > :not(.alignfull) {
  max-width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}
@media (max-width: 600px) {
  .wp-site-blocks .alignwide,
  .wp-site-blocks main > :not(.alignfull) {
    max-width: calc(100% - 1.25rem) !important;
  }
}
/* Preserve the edge-to-edge hero while keeping the content below it focused */
.wp-site-blocks .ep-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
/* Compact footer: keep the brand and all links, remove excess vertical spacing */
footer.wp-block-template-part .ep-footer {
  padding: 1.15rem clamp(1rem,3vw,2.5rem) .65rem !important;
}
footer.wp-block-template-part .ep-footer-columns {
  max-width: 1080px;
  margin: 0 auto !important;
  gap: 1.1rem !important;
  align-items: start;
}
footer.wp-block-template-part .ep-footer-brand > * { margin-block: .3rem !important; }
footer.wp-block-template-part .ep-footer-site-title { font-size: 1.55rem !important; line-height: 1.15; }
footer.wp-block-template-part .ep-footer-site-title a::before { width: 32px; height: 32px; border-radius: 9px; font-size: .75rem; }
footer.wp-block-template-part .wp-block-site-tagline,
footer.wp-block-template-part .ep-footer-note,
footer.wp-block-template-part .ep-footer-brand > p { font-size: .86rem !important; line-height: 1.35; }
footer.wp-block-template-part .ep-footer-heading { margin: .15rem 0 .35rem !important; font-size: .76rem !important; }
footer.wp-block-template-part .ep-footer-links .wp-block-navigation__container {
  gap: .28rem !important;
}
footer.wp-block-template-part .ep-footer-links .wp-block-navigation-item__content {
  padding: 0 !important;
  font-size: .88rem !important;
  line-height: 1.25;
}
footer.wp-block-template-part .ep-footer-donate .wp-block-button__link {
  padding: .48rem .85rem !important;
  font-size: .88rem !important;
}
footer.wp-block-template-part .ep-footer-bottom { margin-top: .7rem !important; padding-top: .45rem; }
@media (max-width: 780px) {
  footer.wp-block-template-part .ep-footer { padding: 1rem !important; }
  footer.wp-block-template-part .ep-footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: .8rem !important; }
  footer.wp-block-template-part .ep-footer-brand { grid-column: 1 / -1; }
  footer.wp-block-template-part .ep-footer-bottom { margin-top: .55rem !important; }
}
/* Extra compact footer pass: remove repeated prompts and tighten the brand block */
footer.wp-block-template-part .ep-footer { padding-block: .55rem .4rem !important; }
footer.wp-block-template-part .ep-footer-columns { gap: .65rem !important; }
footer.wp-block-template-part .ep-footer-kicker { display: none !important; }
footer.wp-block-template-part .ep-footer-brand > p.has-small-font-size:not(.ep-footer-note) { display: none !important; }
footer.wp-block-template-part .ep-footer-site-title { margin: 0 0 .2rem !important; font-size: 1.3rem !important; }
footer.wp-block-template-part .ep-footer-site-title a::before { width: 27px; height: 27px; margin-right: .45rem; font-size: .68rem; }
footer.wp-block-template-part .ep-footer-brand .wp-block-site-tagline,
footer.wp-block-template-part .ep-footer-brand .ep-footer-note { margin: .15rem 0 !important; font-size: .78rem !important; line-height: 1.25 !important; }
footer.wp-block-template-part .ep-footer-heading { margin: 0 0 .2rem !important; font-size: .68rem !important; }
footer.wp-block-template-part .ep-footer-links .wp-block-navigation__container { gap: .18rem !important; }
footer.wp-block-template-part .ep-footer-links .wp-block-navigation-item__content { font-size: .78rem !important; line-height: 1.15 !important; }
footer.wp-block-template-part .ep-footer-donate .wp-block-button__link { padding: .32rem .65rem !important; font-size: .78rem !important; }
footer.wp-block-template-part .ep-footer-bottom { margin-top: .35rem !important; padding-top: .25rem !important; font-size: .7rem; }
