/* ILLH front page: hero slider + news cards (self-contained) */
.illh-hero {
  --navy: #1d2758; --gold: #f6b11f;
  position: relative; width: calc(100% - 32px); max-width: var(--illh-page, 1200px); margin: 28px auto 56px !important; border-radius: 20px; overflow: hidden;
  background: var(--navy); box-shadow: 0 2px 4px rgba(29,39,88,.06), 0 16px 40px rgba(29,39,88,.12);
  height: clamp(300px, 50vw, 560px);
}
.illh-hero__track { position: absolute; inset: 0; }
.illh-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.illh-hero__slide.is-active { opacity: 1; z-index: 1; }
.illh-hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transform: scale(1.04); transition: transform 7s ease; }
.illh-hero__slide.is-active img { transform: scale(1); }
.illh-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,39,88,0) 40%, rgba(29,39,88,.78) 100%); }
.illh-hero__caption { position: absolute; z-index: 2; left: clamp(20px, 4vw, 52px); right: 20px; bottom: clamp(44px, 6vw, 72px); max-width: 760px; color: #fff; }
.illh-hero__caption::before { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--gold); margin-bottom: 14px; }
.illh-hero__date { font-size: .85rem; opacity: .85; letter-spacing: .02em; }
.illh-hero__caption h2 { margin: 4px 0 0; font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.2; color: #fff !important; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.illh-hero__caption h2 a { color: #fff !important; text-decoration: none; }
.illh-hero__caption h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.illh-hero__nav {
  all: unset; position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 28px; line-height: 1; color: #fff;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s, background .2s;
}
.illh-hero__prev { left: 20px; } .illh-hero__next { right: 20px; }
.illh-hero:hover .illh-hero__nav, .illh-hero__nav:focus-visible { opacity: 1; }
.illh-hero__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.illh-hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 6px; }
.illh-hero__dots button { all: unset; cursor: pointer; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .3s, background .3s; }
.illh-hero__dots button.is-active { width: 26px; background: var(--gold); }
.illh-hero__dots button:focus-visible, .illh-hero__nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.illh-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 0; }
@media (max-width: 991px) { .illh-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .illh-cards { grid-template-columns: 1fr; } }
.illh-more { text-align: center; margin: 28px 0 36px; }
.illh-more__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border-radius: 999px;
  background: #fff; color: #1d2758 !important; border: 1px solid #1d2758; text-decoration: none !important;
  font-size: .95rem; transition: background .2s, color .2s, border-color .2s;
}
.illh-more__btn:hover { background: #d9272d; border-color: #d9272d; color: #fff !important; }
.illh-more__btn span { transition: transform .2s; }
.illh-more__btn:hover span { transform: translateX(4px); }
.illh-card { background: #fff; border: 1px solid #e7e9f0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.illh-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 2px 4px rgba(29,39,88,.06), 0 16px 40px rgba(29,39,88,.10); }
.illh-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef0f6; }
.illh-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.illh-card:hover .illh-card__img img { transform: scale(1.04); }
.illh-card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.illh-card__date { font-size: .8rem; color: #6b7286; }
.illh-card h3 { font-size: 1.12rem; line-height: 1.35; margin: 4px 0 8px; }
.illh-card h3 a { color: #1d2758; text-decoration: none; }
.illh-card h3 a:hover { color: #d9272d; }
.illh-card p { color: #6b7286; font-size: .93rem; line-height: 1.6; margin: 0 0 12px; flex: 1; }
.illh-card__more { color: #d9272d !important; font-size: .9rem; text-decoration: none; margin-top: auto; }
.illh-card__more span { display: inline-block; transition: transform .2s; }
.illh-card__more:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .illh-hero__slide, .illh-hero__slide img, .illh-card, .illh-card img { transition: none !important; } }

/* ---- Front page: no boxed container – sections sit on the light page ---- */
/* Every wrapper that contains the slider, news or bottom widgets loses its box. */
body.path-frontpage { background: #f7f8fb !important; }
.path-frontpage :is(div, main, section, article):has(.illh-cards, .illh-hero, [id^="block-illh-front"]):not(.illh-hero, .illh-card) {
  background: transparent !important; box-shadow: none !important; border: 0 !important;
}
.path-frontpage :is(.container, .layout-container, .main-content, main):has(.illh-cards, .illh-hero) {
  max-width: 1240px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important;
}
/* Front-page page title duplicated above the body – hide it */
.path-frontpage :is(h1.page-title, .block-page-title-block) { display: none; }
/* Bottom widgets → equal cards in a row */
.path-frontpage [id^="block-illh-front"]:not(#block-illh-front-news):not(#block-illh-front-slider) {
  background: #fff !important; border: 1px solid #e7e9f0 !important; border-radius: 14px; padding: 24px; height: 100%;
}

/* ---- v1.2 ---- */
/* Slider: no per-slide buttons; arrows immune to the theme's red button style */
.illh-hero__dots { display: none !important; }
.illh-hero .illh-hero__nav {
  background: rgba(255,255,255,.18) !important; border: 1px solid rgba(255,255,255,.35) !important; border-radius: 999px !important;
  padding: 0 !important; width: 46px !important; height: 46px !important; min-width: 0 !important; color: #fff !important;
  box-shadow: none !important; transform: none !important; font-size: 28px !important; line-height: 1 !important;
}
.illh-hero .illh-hero__nav:hover { background: #f6b11f !important; border-color: #f6b11f !important; color: #1d2758 !important; }
.illh-hero hr, .illh-hero::before { display: none !important; }

/* Breathing room between slider, news and the rest */
.illh-cards { width: 100%; max-width: var(--illh-page, 1200px); margin: 0 auto !important; text-align: left !important; gap: 32px !important; }
.illh-card, .illh-card * { text-align: left !important; }
.illh-more { margin: 32px 0 56px !important; text-align: center !important; }


/* Card without a photo */
.illh-card__img.is-empty { background: linear-gradient(135deg, #1d2758 0%, #3a4473 60%, #f6b11f 160%); position: relative; }
.illh-card__img.is-empty::after { content: "ILLH"; position: absolute; left: 22px; bottom: 16px; color: rgba(255,255,255,.85); font-size: 1.1rem; letter-spacing: .1em; }

/* News/Events page: all-news grid replaces the old hand-written list */
.illh-cards--all { margin: 8px 0 24px !important; }
body:has(.illh-cards--all) .pager { margin: 8px 0 48px; }
body:has(.illh-cards--all) .pager__items { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; }
body:has(.illh-cards--all) .pager__item a { display: inline-block; min-width: 40px; padding: 7px 12px; border-radius: 999px; border: 1px solid #e7e9f0; background: #fff; text-align: center; text-decoration: none; color: #1d2758; }
body:has(.illh-cards--all) .pager__item.is-active a { background: #1d2758; color: #fff; border-color: #1d2758; }

/* ---- v1.4 ---- */
.illh-card__body { padding: 26px 28px 28px !important; }
.illh-card h3 { margin: 6px 0 12px !important; }
.illh-card p { margin-bottom: 18px !important; }
.illh-cards--all { gap: 36px !important; padding: 8px 0; }
/* "More news" button – outline drawn with box-shadow so no theme rule can clip it */
.illh-more { padding: 6px 0 10px; overflow: visible !important; }
.illh-more__btn {
  border: 0 !important; box-shadow: inset 0 0 0 1.5px #1d2758 !important; line-height: 1.2 !important;
  padding: 13px 28px !important; background: #fff !important;
}
.illh-more__btn:hover { box-shadow: inset 0 0 0 1.5px #d9272d !important; background: #d9272d !important; }

/* ---- Publications ---- */
.illh-pubs__filters {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr auto; gap: 14px; align-items: end;
  background: #fff; border: 1px solid #e7e9f0; border-radius: 14px; padding: 18px 20px; margin: 8px 0 18px;
}
.illh-pubs__filters label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.illh-pubs__filters label span { font-size: .82rem; color: #6b7286; }
.illh-pubs__filters input, .illh-pubs__filters select {
  width: 100%; height: 44px; padding: 8px 14px !important; border: 1px solid #e7e9f0 !important; border-radius: 10px !important; background: #f7f8fb !important; font: inherit;
}
.illh-pubs__actions { display: flex; gap: 12px; align-items: center; }
.illh-pubs__go { height: 44px; padding: 0 24px !important; }
.illh-pubs__reset { color: #6b7286; font-size: .9rem; }
.illh-pubs__count { color: #6b7286; font-size: .9rem; margin: 0 0 10px; }
.illh-pubs__list { list-style: none; margin: 0 0 24px; padding: 0; background: #fff; border: 1px solid #e7e9f0; border-radius: 14px; overflow: hidden; }
.illh-pub { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 20px 22px; border-bottom: 1px solid #e7e9f0; transition: background .2s; }
.illh-pub:last-child { border-bottom: 0; }
.illh-pub:hover { background: #fbfbfd; }
.illh-pub__year { align-self: start; text-align: center; background: #fff6e0; color: #1d2758; border-radius: 8px; padding: 4px 0; font-size: .95rem; }
.illh-pub__main { grid-column: 2; }
.illh-pub:not(:has(.illh-pub__year)) .illh-pub__main { grid-column: 1 / -1; }
.illh-pub__title { margin: 0 0 6px !important; font-size: 1.08rem !important; line-height: 1.4; }
.illh-pub__title a { color: #1d2758 !important; text-decoration: none; }
.illh-pub__title a:hover { color: #d9272d !important; }
.illh-pub__authors { margin: 0 0 4px !important; color: #2b3245; font-size: .94rem; }
.illh-pub__meta { margin: 0 !important; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: #6b7286; }
.illh-pub__type { background: #f7f8fb; border: 1px solid #e7e9f0; border-radius: 999px; padding: 0 10px; }
.illh-pub__meta a { color: #d9272d; }
@media (max-width: 760px) { .illh-pubs__filters { grid-template-columns: 1fr; } .illh-pub { grid-template-columns: 1fr; gap: 6px; } .illh-pub__main { grid-column: 1; } .illh-pub__year { justify-self: start; padding: 2px 10px; } }
