/* ==========================================================================
   Hunyadi János Katolikus Általános Iskola és Óvoda – sablon
   Colours come from the logo (cream, gold, black) + one colour per unit:
   iskola = blue, óvoda = warm coral. The two units always get equal weight.
   ========================================================================== */

:root {
  --ink: #18273d;
  --ink-2: #3c4a5e;
  --muted: #667085;
  --line: #e7e1cf;
  --paper: #fffdf7;
  --cream: #faf5e4;
  --cream-2: #f3eaca;
  --gold: #d6aa2b;
  --gold-ink: #8a6a0c;
  --navy: #17324d;

  --iskola: #2f62b5;
  --iskola-ink: #234b8c;
  --iskola-soft: #e8effb;
  --ovoda: #e0673f;
  --ovoda-ink: #ad4422;
  --ovoda-soft: #fdece4;
  --kozos: #6b5bb5;
  --kozos-soft: #efecfa;

  --t-unnep: #c9971a;
  --t-program: #1c8c86;
  --t-szunet: #3f9a4f;
  --t-szuloi: #7a4fb5;
  --t-ahitat: #b23a52;
  --t-verseny: #2f62b5;
  --t-tanev: #55657a;

  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(24 39 61 / .06), 0 8px 24px -8px rgb(24 39 61 / .14);
  --shadow-lg: 0 2px 4px rgb(24 39 61 / .06), 0 24px 48px -16px rgb(24 39 61 / .25);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--iskola-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.hj-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.hj-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5em 1em; z-index: 100; border-radius: 8px; }
.hj-skip:focus { left: 8px; }
.hj-icon { width: 1.1em; height: 1.1em; flex: none; }
.hj-eyebrow { font: 800 .78rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .6rem; }
.hj-empty { color: var(--muted); font-style: italic; }
.hj-hide-sm { }
@media (max-width: 860px) { .hj-hide-sm { display: none !important; } }

/* ---------- Buttons & chips ---------- */
.hj-btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .72em 1.3em; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.hj-btn:hover { transform: translateY(-1px); color: #fff; background: var(--navy); }
.hj-btn--ghost { background: transparent; color: var(--ink); }
.hj-btn--ghost:hover { background: var(--ink); color: #fff; }
.hj-btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.hj-btn--gold:hover { background: #e7bd3d; color: var(--ink); }
.hj-more { margin: 1.4rem 0 0; }

.hj-chip {
  display: inline-flex; align-items: center; gap: .35em;
  font: 800 .72rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  padding: .45em .75em; border-radius: 999px; background: var(--cream-2); color: var(--ink);
  white-space: nowrap;
}
.hj-chip--iskola { background: var(--iskola); color: #fff; }
.hj-chip--ovoda { background: var(--ovoda); color: #fff; }
.hj-chip--kozos { background: var(--kozos); color: #fff; }
.hj-chip--type { background: #fff; border: 1.5px solid currentColor; }
.hj-chip--unnep { color: var(--gold-ink); }
.hj-chip--program { color: var(--t-program); }
.hj-chip--szunet { color: var(--t-szunet); }
.hj-chip--szuloi { color: var(--t-szuloi); }
.hj-chip--ahitat { color: var(--t-ahitat); }
.hj-chip--verseny { color: var(--t-verseny); }
.hj-chip--tanev { color: var(--t-tanev); }

/* ---------- Top bar ---------- */
.hj-topbar { background: var(--ink); color: #dfe5ee; font-size: .88rem; }
.hj-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.hj-topbar a { color: #fff; text-decoration: none; }
.hj-topbar a:hover { color: var(--gold); }
.hj-topbar__contact { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.hj-topbar__contact li, .hj-topbar__contact a { display: inline-flex; align-items: center; gap: .45em; }
.hj-topbar__contact .hj-icon { color: var(--gold); }
.hj-topbar__links { display: flex; align-items: center; gap: .9rem; }
.hj-topbar__links .hj-quick { display: flex; gap: .9rem; list-style: none; margin: 0; padding: 0; }
.hj-topbar__kreta { font-weight: 800; letter-spacing: .04em; padding: .2em .7em; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; }
.hj-topbar__fb { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1877f2; }
.hj-topbar__fb:hover { background: #fff; }
.hj-topbar__fb .hj-icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
@media (max-width: 600px) {
  .hj-topbar__contact li:nth-child(2) { display: none; }
}

/* ---------- Header ---------- */
.hj-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 253 247 / .92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.hj-header.is-scrolled { box-shadow: 0 6px 24px -12px rgb(24 39 61 / .3); }
.hj-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.hj-brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); flex: none; }
.hj-brand__logo { width: 60px; height: 60px; }
.hj-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.hj-brand__name { font: 700 1.35rem/1.05 var(--font-head); }
.hj-brand__sub { font-size: .82rem; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.hj-brand__sub em { font-style: normal; color: var(--gold-ink); }

.hj-nav { margin-left: auto; }
.hj-menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.hj-menu > .hj-menu__item { position: relative; display: flex; align-items: center; }
.hj-menu > li > .hj-menu__link {
  display: block; padding: .6em .8em; border-radius: 999px; font-weight: 800; font-size: .98rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.hj-menu > li > .hj-menu__link:hover, .hj-menu > li.is-active > .hj-menu__link { background: var(--cream-2); }
/* unit items: coloured dot + coloured active state */
.hj-menu > li.unit-iskola > .hj-menu__link::before,
.hj-menu > li.unit-ovoda > .hj-menu__link::before {
  content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .45em; vertical-align: .08em;
  background: var(--iskola);
}
.hj-menu > li.unit-ovoda > .hj-menu__link::before { background: var(--ovoda); }
.hj-menu > li.unit-iskola.is-active > .hj-menu__link { background: var(--iskola-soft); color: var(--iskola-ink); }
.hj-menu > li.unit-ovoda.is-active > .hj-menu__link { background: var(--ovoda-soft); color: var(--ovoda-ink); }
.hj-menu__toggle {
  width: 26px; height: 26px; margin-left: -.55rem; border: 0; background: none; cursor: pointer; border-radius: 50%;
  display: inline-grid; place-items: center; color: var(--ink-2);
}
.hj-menu__toggle span { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.hj-menu__toggle[aria-expanded="true"] span { transform: rotate(-135deg) translate(-1px, -1px); }

.hj-sub {
  list-style: none; margin: 0; padding: .6rem; min-width: 260px;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
  border-top: 4px solid var(--gold);
}
.unit-iskola > .hj-sub { border-top-color: var(--iskola); }
.unit-ovoda > .hj-sub { border-top-color: var(--ovoda); }
.hj-menu__item.is-open > .hj-sub,
.hj-menu > li:hover > .hj-sub,
.hj-menu > li:focus-within > .hj-sub { opacity: 1; visibility: visible; transform: none; }
.hj-sub .hj-menu__link { display: block; padding: .55em .8em; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 700; }
.hj-sub .hj-menu__link:hover, .hj-sub .is-current > .hj-menu__link { background: var(--cream); }
.unit-iskola .hj-sub .hj-menu__link:hover { background: var(--iskola-soft); color: var(--iskola-ink); }
.unit-ovoda .hj-sub .hj-menu__link:hover { background: var(--ovoda-soft); color: var(--ovoda-ink); }
.hj-ext { font-size: .8em; margin-left: .3em; opacity: .6; }

.hj-burger { display: none; margin-left: auto; align-items: center; gap: .55rem; border: 2px solid var(--ink); background: none; border-radius: 999px; padding: .5em .95em; font: 800 .95rem var(--font-body); color: var(--ink); cursor: pointer; }
.hj-burger__bars, .hj-burger__bars::before, .hj-burger__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: .2s; }
.hj-burger__bars::before, .hj-burger__bars::after { content: ""; position: absolute; left: 0; }
.hj-burger__bars::before { top: -6px; } .hj-burger__bars::after { top: 6px; }
.hj-burger[aria-expanded="true"] .hj-burger__bars { background: transparent; }
.hj-burger[aria-expanded="true"] .hj-burger__bars::before { top: 0; transform: rotate(45deg); }
.hj-burger[aria-expanded="true"] .hj-burger__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  /* backdrop-filter would make the header the containing block of the fixed off-canvas nav */
  .hj-header { backdrop-filter: none; background: var(--paper); }
  .hj-header__inner { min-height: 72px; }
  .hj-brand__logo { width: 50px; height: 50px; }
  .hj-burger { display: inline-flex; }
  .hj-nav {
    position: fixed; inset: 0 0 0 auto; width: min(400px, 92vw); margin: 0; z-index: 60;
    background: var(--paper); box-shadow: var(--shadow-lg); padding: 88px 18px 32px; overflow-y: auto;
    transform: translateX(105%); transition: transform .25s ease;
  }
  .hj-nav.is-open { transform: none; }
  .hj-burger { position: relative; z-index: 70; }
  .hj-menu { flex-direction: column; align-items: stretch; gap: .25rem; }
  .hj-menu > .hj-menu__item { flex-wrap: wrap; }
  .hj-menu > li > .hj-menu__link { flex: 1; font-size: 1.1rem; padding: .75em 1em; }
  .hj-menu__toggle { width: 44px; height: 44px; margin: 0; }
  .hj-sub { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin: .2rem 0 .6rem; border-radius: var(--radius-sm); }
  .hj-menu > li:hover > .hj-sub { display: none; }
  .hj-menu__item.is-open > .hj-sub { display: block; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgb(24 39 61 / .45); z-index: 45; }
}
@media (max-width: 420px) {
  .hj-brand__name { font-size: 1.1rem; }
  .hj-brand__sub { font-size: .7rem; }
  .hj-burger__label { display: none; }
}

/* ---------- Hero ---------- */
.hj-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--ink); }
.hj-hero__slides { position: absolute; inset: 0; z-index: -2; }
.hj-hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hj-hero__slides img.is-active { opacity: 1; animation: hj-kenburns 9s ease-out forwards; }
@keyframes hj-kenburns { to { transform: scale(1); } }
.hj-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(16 28 46 / .9) 0%, rgb(16 28 46 / .7) 45%, rgb(16 28 46 / .15) 100%); }
.hj-hero__inner { padding-block: clamp(4rem, 9vw, 7.5rem) clamp(5.5rem, 10vw, 8.5rem); max-width: var(--wrap); }
.hj-hero__content { max-width: 680px; }
.hj-hero .hj-eyebrow { color: var(--gold); }
.hj-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); margin-bottom: .35em; }
.hj-hero h1 span { color: var(--gold); font-style: italic; font-weight: 600; }
.hj-hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: #e8edf4; max-width: 560px; }
.hj-hero__units { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2rem; max-width: 580px; }
.hj-hero__unit {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--radius);
  text-decoration: none; color: #fff; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .25);
  backdrop-filter: blur(6px); transition: .2s ease;
}
.hj-hero__unit:hover { color: #fff; transform: translateY(-3px); }
.hj-hero__unit--iskola:hover { background: var(--iskola); border-color: var(--iskola); }
.hj-hero__unit--ovoda:hover { background: var(--ovoda); border-color: var(--ovoda); }
.hj-hero__unit .hj-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--iskola); }
.hj-hero__unit--ovoda .hj-icon { background: var(--ovoda); }
.hj-hero__unit strong { display: block; font: 700 1.3rem/1.1 var(--font-head); }
.hj-hero__unit small { color: #d6dde8; font-size: .85rem; }
.hj-hero__dots { position: absolute; right: 20px; bottom: 90px; display: flex; gap: 8px; }
.hj-hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .45); cursor: pointer; padding: 0; }
.hj-hero__dots button.is-active { background: var(--gold); width: 26px; border-radius: 6px; }
.hj-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; color: var(--paper); }
@media (max-width: 560px) { .hj-hero__units { grid-template-columns: 1fr; } .hj-hero__dots { bottom: 70px; } }

/* ---------- Sections ---------- */
.hj-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hj-section--units { padding-top: 0; margin-top: -3rem; position: relative; z-index: 2; }
.hj-section--tiles { padding-block: 0 1rem; }
.hj-section--social { background: var(--cream); background-image: radial-gradient(circle at 10% 0%, #fff6d6 0, transparent 40%); }
.hj-mod { margin-bottom: 2rem; }
.hj-mod:last-child { margin-bottom: 0; }
.hj-mod__head { margin-bottom: 1.4rem; }
.hj-mod__title { margin: 0; }
.hj-mod__title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--gold); margin-top: .45em; }
.hj-mod.hj-mod--iskola .hj-mod__title::after { background: var(--iskola); }
.hj-mod.hj-mod--ovoda .hj-mod__title::after { background: var(--ovoda); }

/* the two unit cards (and anything else in .hj-duo) sit side by side with equal width */
.hj-section--units .hj-wrap,
.hj-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.hj-section--units .hj-mod { margin: 0; }
@media (max-width: 820px) { .hj-section--units .hj-wrap, .hj-duo { grid-template-columns: 1fr; } }

/* ---------- Unit card ---------- */
.hj-unit {
  --c: var(--iskola); --c-ink: var(--iskola-ink); --c-soft: var(--iskola-soft);
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--c);
}
.hj-unit--ovoda { --c: var(--ovoda); --c-ink: var(--ovoda-ink); --c-soft: var(--ovoda-soft); }
.hj-unit__media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; margin: 0; }
.hj-unit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hj-unit:hover .hj-unit__media img { transform: scale(1.04); }
.hj-unit__badge { position: absolute; left: 18px; bottom: -22px; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: var(--shadow); }
.hj-unit__badge .hj-icon { width: 32px; height: 32px; }
.hj-unit__body { padding: 2.2rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.hj-unit__body h2 { margin-bottom: .2em; }
.hj-unit__body h2 a { color: inherit; text-decoration: none; }
.hj-unit__kicker { color: var(--c-ink); font-weight: 800; margin-bottom: .8rem; }
.hj-unit__links { list-style: none; margin: auto 0 0; padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hj-unit__links a { display: inline-block; padding: .45em .95em; border-radius: 999px; background: var(--c-soft); color: var(--c-ink); text-decoration: none; font-weight: 800; font-size: .92rem; }
.hj-unit__links a:hover { background: var(--c); color: #fff; }

/* ---------- Quick tiles ---------- */
.hj-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.hj-tiles a {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; height: 100%;
  padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 800; line-height: 1.25; transition: .18s ease;
}
.hj-tiles a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); color: var(--ink); }
.hj-tiles .hj-icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--cream-2); color: var(--gold-ink); }
.hj-tiles small { display: block; font-weight: 600; color: var(--muted); font-size: .82rem; }
@media (max-width: 1000px) { .hj-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hj-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- News cards ---------- */
.hj-news { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hj-news--cols-1 { grid-template-columns: 1fr; }
.hj-news--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hj-news--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .hj-news, .hj-news--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hj-news, .hj-news--cols-2, .hj-news--cols-4 { grid-template-columns: 1fr; } }

.hj-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.hj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hj-card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--cream-2); overflow: hidden; }
.hj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hj-card:hover .hj-card__media img { transform: scale(1.05); }
.hj-card__media .hj-chip { position: absolute; left: 12px; top: 12px; }
.hj-card__placeholder { position: absolute; inset: 0; background: url(../images/logo.png) center / 35% no-repeat, var(--cream); opacity: .6; }
.hj-card__body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.hj-card__date { font-size: .82rem; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.hj-card__title { font-size: 1.2rem; margin: .3rem 0 .5rem; }
.hj-card__title a { color: var(--ink); text-decoration: none; }
.hj-card__title a::after { content: ""; position: absolute; inset: 0; }
.hj-card__excerpt { color: var(--ink-2); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hj-card--iskola .hj-card__title a:hover { color: var(--iskola-ink); }
.hj-card--ovoda .hj-card__title a:hover { color: var(--ovoda-ink); }
/* compact horizontal card (one column) */
.hj-news--cols-1 .hj-card { flex-direction: row; }
.hj-news--cols-1 .hj-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 140px; }
.hj-news--cols-1 .hj-card__excerpt { -webkit-line-clamp: 2; }
.hj-news--cols-1 .hj-card__title { font-size: 1.08rem; }
.hj-news--cols-1 .hj-card__media .hj-chip { display: none; }
@media (max-width: 460px) { .hj-news--cols-1 .hj-card__media { flex-basis: 34%; } .hj-news--cols-1 .hj-card__excerpt { display: none; } }

/* home: the two unit news columns */
.hj-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.hj-feed .hj-mod { margin: 0; padding: clamp(1.2rem, 2.5vw, 2rem); border-radius: calc(var(--radius) + 6px); }
.hj-feed .hj-mod--iskola { background: var(--iskola-soft); }
.hj-feed .hj-mod--ovoda { background: var(--ovoda-soft); }
.hj-feed .hj-mod .hj-eyebrow { color: inherit; }
.hj-feed .hj-mod--iskola .hj-eyebrow { color: var(--iskola-ink); }
.hj-feed .hj-mod--ovoda .hj-eyebrow { color: var(--ovoda-ink); }
@media (max-width: 900px) { .hj-feed { grid-template-columns: 1fr; } }

/* ---------- Upcoming events ---------- */
.hj-upcoming__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hj-ev { --t: var(--t-program); display: flex; gap: 1rem; align-items: center; padding: .8rem 1rem .8rem .8rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 5px solid var(--t); transition: transform .15s ease; }
.hj-ev:hover { transform: translateX(4px); }
.hj-ev--unnep { --t: var(--t-unnep); } .hj-ev--szunet { --t: var(--t-szunet); } .hj-ev--szuloi { --t: var(--t-szuloi); }
.hj-ev--ahitat { --t: var(--t-ahitat); } .hj-ev--verseny { --t: var(--t-verseny); } .hj-ev--tanev { --t: var(--t-tanev); }
.hj-ev__date { flex: none; width: 64px; height: 68px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: color-mix(in srgb, var(--t) 12%, #fff); color: var(--t); }
.hj-ev__day { font: 700 1.75rem/1 var(--font-head); }
.hj-ev__month { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hj-ev__title { font: 800 1.02rem/1.3 var(--font-body); margin: 0 0 .3rem; }
.hj-ev__title a { color: var(--ink); text-decoration: none; }
.hj-ev__title a:hover { text-decoration: underline; }
.hj-ev__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0; font-size: .86rem; color: var(--muted); }
.hj-ev__meta .hj-chip { font-size: .64rem; padding: .35em .6em; }
.hj-ev.is-now { background: linear-gradient(90deg, color-mix(in srgb, var(--t) 8%, #fff), #fff); }
.hj-ev__live { color: var(--t-ahitat); }

.hj-events-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
@media (max-width: 900px) { .hj-events-wrap { grid-template-columns: 1fr; } }

/* ---------- Facebook ---------- */
.hj-fb { background: #fff; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); overflow: hidden; }
.hj-fb__head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; background: #1877f2; color: #fff; }
.hj-fb__head img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 3px; }
.hj-fb__head strong { display: block; font-size: 1rem; line-height: 1.2; }
.hj-fb__head small { opacity: .85; }
.hj-fb__head a { margin-left: auto; color: #1877f2; background: #fff; padding: .45em .9em; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: .88rem; white-space: nowrap; }
.hj-fb__frame { position: relative; min-height: 560px; display: grid; place-items: center; background: #f0f2f5; }
.hj-fb__frame iframe { border: 0; width: 100%; height: 640px; display: block; }
.hj-fb__consent { text-align: center; padding: 2rem 1.5rem; max-width: 380px; color: var(--ink-2); font-size: .95rem; }
.hj-fb__consent .hj-icon { width: 56px; height: 56px; color: #1877f2; margin: 0 auto 1rem; fill: currentColor; stroke: none; }
.hj-fb__consent .hj-btn { background: #1877f2; border-color: #1877f2; margin: .5rem 0 1rem; }
.hj-fb__consent small { display: block; color: var(--muted); }
.hj-fb__consent label { display: inline-flex; gap: .4em; align-items: center; font-size: .85rem; cursor: pointer; }

/* ---------- Info strip (bell schedule, contact, partners) ---------- */
.hj-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.hj-info > * { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.hj-info h3 { display: flex; align-items: center; gap: .5rem; }
.hj-info h3 .hj-icon { color: var(--gold-ink); }
@media (max-width: 900px) { .hj-info { grid-template-columns: 1fr; } }
.hj-bells { list-style: none; margin: 0; padding: 0; counter-reset: bell; }
.hj-bells li { display: flex; justify-content: space-between; padding: .38rem 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.hj-bells li:last-child { border: 0; }
.hj-bells b { font-weight: 800; }
.hj-bells li.is-now { background: var(--cream); margin-inline: -.6rem; padding-inline: .6rem; border-radius: 8px; color: var(--gold-ink); font-weight: 800; }
.hj-partners { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.hj-partners img { max-height: 70px; width: auto; }

/* ---------- Inner pages ---------- */
.hj-pagehead { background: var(--cream); border-bottom: 1px solid var(--line); background-image: radial-gradient(circle at 92% -40%, var(--cream-2) 0, transparent 55%); }
.unit-iskola .hj-pagehead { background-color: var(--iskola-soft); background-image: radial-gradient(circle at 92% -40%, #d6e3f8 0, transparent 55%); }
.unit-ovoda .hj-pagehead { background-color: var(--ovoda-soft); background-image: radial-gradient(circle at 92% -40%, #fbd9cb 0, transparent 55%); }
.hj-pagehead .hj-wrap { min-height: 52px; display: flex; align-items: center; }
.mod-breadcrumbs__wrapper, .hj-pagehead nav { width: 100%; }
.breadcrumb, .mod-breadcrumbs { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: .9rem 0; font-size: .9rem; font-weight: 700; }
.breadcrumb li + li::before, .mod-breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.mod-breadcrumbs__here, .breadcrumb .divider, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hj-main { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.hj-main__grid.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .hj-main__grid.has-sidebar { grid-template-columns: 1fr; } }
.hj-sidebar .hj-mod { background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.hj-sidebar .hj-mod__title { font-size: 1.3rem; }

.hj-article__head { max-width: 880px; margin-bottom: 1.6rem; }
.hj-article__meta { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.hj-article__title { margin-bottom: .3em; }
.unit-iskola .hj-article__title::after, .unit-ovoda .hj-article__title::after, .hj-blog__head .hj-article__title::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 5px; margin-top: .35em; background: var(--gold); }
.unit-iskola .hj-article__title::after { background: var(--iskola); }
.unit-ovoda .hj-article__title::after { background: var(--ovoda); }
.hj-article__lead { margin: 0 0 2rem; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 980px; }
.hj-article__lead img { width: 100%; max-height: 560px; object-fit: cover; }
.hj-article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hj-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .6rem 0 0; }
.hj-tags a { font-size: .85rem; font-weight: 800; color: var(--ink-2); text-decoration: none; background: var(--cream-2); padding: .25em .7em; border-radius: 999px; }
.hj-eventbox { display: flex; flex-wrap: wrap; gap: .8rem 2.5rem; background: #fff; border-left: 5px solid var(--gold); border-radius: var(--radius-sm); padding: 1rem 1.4rem; box-shadow: var(--shadow); margin: 0 0 2rem; max-width: 880px; }
.hj-eventbox dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hj-eventbox dd { margin: 0; font-weight: 800; }
.hj-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 760px; }
.hj-blog__head { margin-bottom: 2rem; }

/* prose */
.hj-prose { max-width: 820px; font-size: 1.08rem; }
.hj-prose > * + h2 { margin-top: 1.8em; }
.hj-prose > * + h3 { margin-top: 1.5em; }
.hj-prose ul, .hj-prose ol { padding-left: 1.3em; }
.hj-prose li { margin-bottom: .35em; }
.hj-prose li::marker { color: var(--gold-ink); }
.hj-prose blockquote { margin: 1.5em 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-head); font-size: 1.2rem; }
.hj-prose img { border-radius: var(--radius-sm); }
.hj-prose .hj-wide, .hj-prose .hj-gallery, .hj-prose .hj-people, .hj-prose .hj-weekmenu, .hj-prose .hj-docs, .hj-prose .hj-grid-2 { max-width: none; }
.hj-prose:has(.hj-weekmenu, .hj-people, .hj-gallery, .hj-docs, .hj-wide) { max-width: none; }
.hj-prose:has(.hj-weekmenu, .hj-people, .hj-gallery, .hj-docs, .hj-wide) > p,
.hj-prose:has(.hj-weekmenu, .hj-people, .hj-gallery, .hj-docs, .hj-wide) > ul,
.hj-prose:has(.hj-weekmenu, .hj-people, .hj-gallery, .hj-docs, .hj-wide) > ol,
.hj-prose:has(.hj-weekmenu, .hj-people, .hj-gallery, .hj-docs, .hj-wide) > h2 { max-width: 820px; }
.hj-prose table:not(.hj-weekmenu__table) { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
.hj-prose table:not(.hj-weekmenu__table) th, .hj-prose table:not(.hj-weekmenu__table) td { border-bottom: 1px solid var(--line); padding: .6em .8em; text-align: left; }
.hj-callout { background: var(--cream); border-radius: var(--radius); padding: 1.2rem 1.5rem; border: 1px solid var(--line); }
.hj-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 700px) { .hj-grid-2 { grid-template-columns: 1fr; } }

/* gallery (inside article text) */
.hj-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 2rem 0 0; }
.hj-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--cream-2); }
.hj-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s ease, filter .3s; }
.hj-gallery a:hover img { transform: scale(1.06); filter: brightness(1.05); }
.hj-gallery a:nth-child(n+13) { display: none; }
.hj-gallery.is-expanded a { display: block; }
.hj-gallery__more { margin-top: 1rem; }
.hj-gallery-title { margin-top: 2.5rem; display: flex; align-items: baseline; gap: .6rem; }
.hj-gallery-title small { font: 700 .9rem var(--font-body); color: var(--muted); }

/* lightbox */
.hj-lightbox { position: fixed; inset: 0; z-index: 200; background: rgb(12 18 28 / .94); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3rem 4rem 1rem; }
.hj-lightbox[hidden] { display: none; }
.hj-lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.hj-lightbox__count { color: #cbd3df; font-weight: 700; padding: .6rem; }
.hj-lightbox button { position: absolute; border: 0; background: rgb(255 255 255 / .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.hj-lightbox button:hover { background: var(--gold); color: var(--ink); }
.hj-lightbox__close { top: 14px; right: 14px; }
.hj-lightbox__prev { left: 14px; top: 50%; translate: 0 -50%; }
.hj-lightbox__next { right: 14px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .hj-lightbox { padding: 3.5rem .5rem 1rem; } .hj-lightbox__prev, .hj-lightbox__next { top: auto; bottom: 10px; translate: none; } }

/* people (staff) */
.hj-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 1rem 0 2.5rem; }
.hj-person { display: flex; align-items: center; gap: .9rem; background: #fff; border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); }
.hj-person__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--font-head); color: #fff; background: var(--iskola); }
.hj-people--ovoda .hj-person__avatar { background: var(--ovoda); }
.hj-people--vezetes .hj-person__avatar { background: var(--gold); color: var(--ink); }
.hj-people--hit .hj-person__avatar { background: var(--t-ahitat); }
.hj-people--segito .hj-person__avatar { background: var(--t-program); }
.hj-person strong { display: block; line-height: 1.25; }
.hj-person span { font-size: .88rem; color: var(--muted); }

/* documents */
.hj-docs { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hj-docs a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 800; line-height: 1.3; transition: .15s; border: 1px solid transparent; }
.hj-docs a:hover { border-color: var(--gold); transform: translateY(-2px); }
.hj-docs a::before { content: "PDF"; flex: none; width: 46px; height: 54px; border-radius: 8px 16px 8px 8px; display: grid; place-items: center; font-size: .72rem; letter-spacing: .05em; color: #fff; background: #c8423b; }
.hj-docs a small { display: block; font-weight: 600; color: var(--muted); font-size: .82rem; }
.hj-docs--ovoda a::before { background: var(--ovoda); }
.hj-docs--iskola a::before { background: var(--iskola); }

/* timeline (history) */
.hj-timeline { border-left: 3px solid var(--cream-2); margin: 2rem 0; padding-left: 1.6rem; }
.hj-timeline > div { position: relative; margin-bottom: 1.6rem; }
.hj-timeline > div::before { content: ""; position: absolute; left: calc(-1.6rem - 9px); top: .4em; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.hj-timeline b { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold-ink); display: block; }

/* ---------- Weekly menu (heti menü) ---------- */
.hj-weekmenu { margin: 1.5rem 0 2rem; }
.hj-weekmenu__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.hj-weekmenu__week { font: 700 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.2 var(--font-head); margin: 0; }
.hj-weekmenu__week span { color: var(--gold-ink); }
.hj-weekmenu__table { width: 100%; border-collapse: separate; border-spacing: 8px; table-layout: fixed; margin: 0 -8px; width: calc(100% + 16px); }
.hj-weekmenu__table thead th { font: 800 .82rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--ink); padding: .9rem .6rem; border-radius: 12px; }
.hj-weekmenu__table thead th small { display: block; font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .75; font-size: .8rem; margin-top: .15rem; }
.hj-weekmenu__table thead th:first-child { background: transparent; }
.hj-weekmenu__table tbody th { width: 120px; text-align: left; vertical-align: middle; padding: .8rem; border-radius: 12px; font: 700 1.15rem var(--font-head); color: var(--ink); }
.hj-weekmenu__table tbody th small { display: block; font: 700 .75rem var(--font-body); color: var(--muted); letter-spacing: .05em; }
.hj-weekmenu__table tbody tr:nth-child(1) th { background: #fff3cf; }
.hj-weekmenu__table tbody tr:nth-child(2) th { background: #ffe1d3; }
.hj-weekmenu__table tbody tr:nth-child(3) th { background: #dff0e3; }
.hj-weekmenu__table td { vertical-align: top; background: #fff; border-radius: 12px; padding: .9rem .9rem 1rem; box-shadow: 0 1px 0 var(--line), 0 6px 16px -10px rgb(24 39 61 / .2); font-weight: 700; line-height: 1.4; }
.hj-weekmenu__table td ul { list-style: none; margin: 0; padding: 0; }
.hj-weekmenu__table td li { padding-left: 1em; position: relative; margin-bottom: .2rem; }
.hj-weekmenu__table td li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hj-weekmenu__table tbody tr:nth-child(2) td li::before { background: var(--ovoda); }
.hj-weekmenu__table tbody tr:nth-child(3) td li::before { background: var(--t-szunet); }
.hj-weekmenu__table .is-today { outline: 3px solid var(--gold); outline-offset: -1px; }
.hj-weekmenu__table thead th.is-today { background: var(--gold); color: var(--ink); }
.hj-allergens { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .6rem; }
.hj-al { display: inline-flex; align-items: center; gap: .25em; font: 800 .66rem/1 var(--font-body); padding: .35em .5em; border-radius: 6px; background: #fbe4e4; color: #9b2a2a; letter-spacing: .02em; }
.hj-al::before { content: attr(data-n); display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%; background: #c8423b; color: #fff; font-size: .9em; }
.hj-al--nyom { background: #fff0db; color: #8a4f00; }
.hj-al--nyom::before { background: #e48a1c; }
.hj-weekmenu__legend { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; font-size: .9rem; color: var(--ink-2); margin-top: 1rem; }
.hj-weekmenu__note { font-size: .9rem; color: var(--muted); font-style: italic; }
.hj-allergen-list { columns: 2 240px; list-style: none; padding: 0; margin: 1rem 0; font-size: .95rem; }
.hj-allergen-list li { margin-bottom: .35rem; break-inside: avoid; }
.hj-allergen-list b { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #c8423b; color: #fff; font-size: .8em; margin-right: .5em; }
@media (max-width: 820px) {
  .hj-weekmenu__table, .hj-weekmenu__table thead, .hj-weekmenu__table tbody, .hj-weekmenu__table tr, .hj-weekmenu__table th, .hj-weekmenu__table td { display: block; width: auto; margin: 0; }
  .hj-weekmenu__table thead { display: none; }
  .hj-weekmenu__table tbody tr { margin-bottom: 1.4rem; }
  .hj-weekmenu__table tbody th { margin-bottom: .5rem; }
  .hj-weekmenu__table td { margin-bottom: .5rem; padding-top: 2.1rem; position: relative; }
  .hj-weekmenu__table td::before { content: attr(data-day); position: absolute; top: .7rem; left: .9rem; font: 800 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
  .hj-weekmenu__table td.is-today::before { color: var(--gold-ink); }
}

/* ---------- Calendar ---------- */
.hj-cal { --cell: 120px; }
.hj-cal__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-bottom: 1.2rem; }
.hj-cal__title { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1 var(--font-head); margin: 0 auto 0 0; min-width: 12ch; }
.hj-cal__nav { display: flex; gap: .4rem; }
.hj-cal__nav button, .hj-seg button {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 800 .9rem var(--font-body);
  padding: .55em .95em; border-radius: 999px; cursor: pointer; transition: .15s;
}
.hj-cal__nav button:hover { border-color: var(--ink); }
.hj-cal__nav .hj-cal__arrow { width: 42px; padding: 0; height: 40px; font-size: 1.2rem; }
.hj-seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.hj-seg button { border: 0; padding: .45em .95em; }
.hj-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hj-seg button[data-unit="iskola"][aria-pressed="true"] { background: var(--iskola); }
.hj-seg button[data-unit="ovoda"][aria-pressed="true"] { background: var(--ovoda); }
.hj-cal__legend { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.hj-cal__legend button { display: inline-flex; align-items: center; gap: .45em; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .8em; font: 700 .82rem var(--font-body); cursor: pointer; color: var(--ink-2); }
.hj-cal__legend button::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--t); }
.hj-cal__legend button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }

.hj-cal__layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .hj-cal__layout { grid-template-columns: 1fr; } }
.hj-cal__grid { background: #fff; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); overflow: hidden; }
.hj-cal__dow, .hj-cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hj-cal__dow div { padding: .8rem .6rem; font: 800 .75rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--ink); text-align: center; }
.hj-cal__dow div:nth-child(n+6) { background: var(--navy); color: #c9d4e3; }
.hj-cal__day { min-height: var(--cell); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .4rem .35rem .5rem; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background .15s; background: #fff; text-align: left; font: inherit; color: inherit; border-top: 0; border-left: 0; }
.hj-cal__day:nth-child(7n) { border-right: 0; }
.hj-cal__day:hover { background: var(--cream); }
.hj-cal__day.is-other { background: #faf8f1; color: #aab1bd; }
.hj-cal__day.is-weekend { background: #fcfaf3; }
.hj-cal__day.is-selected { background: var(--cream); box-shadow: inset 0 0 0 2px var(--gold); }
.hj-cal__num { font: 800 .9rem var(--font-body); width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%; margin-bottom: 2px; }
.hj-cal__day.is-today .hj-cal__num { background: var(--gold); color: var(--ink); }
.hj-cal__pill { --t: var(--t-program); display: block; font: 700 .74rem/1.25 var(--font-body); padding: .22em .45em; border-radius: 6px; background: color-mix(in srgb, var(--t) 14%, #fff); color: color-mix(in srgb, var(--t) 70%, #000); border-left: 3px solid var(--t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hj-cal__pill.is-cont { border-left-width: 0; border-radius: 0 6px 6px 0; opacity: .75; }
.hj-cal__pill.is-cont-left { margin-left: -.36rem; border-radius: 0; }
.hj-cal__more { font: 800 .7rem var(--font-body); color: var(--muted); padding-left: .3em; }
.hj-t-unnep { --t: var(--t-unnep); } .hj-t-program { --t: var(--t-program); } .hj-t-szunet { --t: var(--t-szunet); } .hj-t-szuloi { --t: var(--t-szuloi); }
.hj-t-ahitat { --t: var(--t-ahitat); } .hj-t-verseny { --t: var(--t-verseny); } .hj-t-tanev { --t: var(--t-tanev); }

.hj-cal__panel { background: #fff; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); padding: 1.3rem; position: sticky; top: 100px; }
.hj-cal__panel h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.hj-cal__panel > p { color: var(--muted); font-size: .9rem; }
.hj-cal__agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hj-cal__agenda li { --t: var(--t-program); border-left: 4px solid var(--t); padding: .55rem .8rem; border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--t) 7%, #fff); }
.hj-cal__agenda strong { display: block; line-height: 1.3; }
.hj-cal__agenda strong a { color: inherit; }
.hj-cal__agenda small { display: flex; flex-wrap: wrap; gap: .3rem .6rem; color: var(--ink-2); font-weight: 700; margin-top: .3rem; align-items: center; }
.hj-cal__agenda .hj-chip { font-size: .62rem; padding: .3em .55em; }

/* list view */
.hj-cal__list { display: grid; gap: 2rem; }
.hj-cal__list h3 { font-size: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.hj-cal__list h3::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.hj-cal__list .hj-upcoming__list { gap: 10px; }

@media (max-width: 720px) {
  .hj-cal { --cell: 64px; }
  .hj-cal__pill { font-size: 0; padding: 0; height: 6px; border: 0; border-radius: 3px; }
  .hj-cal__pill.is-cont-left { margin-left: -.36rem; }
  .hj-cal__dow div { font-size: .65rem; letter-spacing: .04em; padding: .6rem .2rem; }
  .hj-cal__day { padding: .25rem; }
  .hj-cal__more { display: none; }
  .hj-cal__panel { position: static; }
}

/* ---------- Footer ---------- */
.hj-footer { background: var(--ink); color: #c9d3e0; position: relative; margin-top: 3rem; }
.hj-footer__wave { position: absolute; top: -40px; left: 0; right: 0; height: 41px; background: var(--ink); clip-path: ellipse(75% 100% at 50% 100%); }
.hj-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2.5rem; }
@media (max-width: 960px) { .hj-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hj-footer__grid { grid-template-columns: 1fr; } }
.hj-footer a { color: #fff; text-decoration: none; }
.hj-footer a:hover { color: var(--gold); text-decoration: underline; }
.hj-footer__brand img { width: 88px; height: 88px; background: #fff; border-radius: 50%; padding: 4px; margin-bottom: 1rem; }
.hj-footer__name { font: 700 1.2rem/1.3 var(--font-head); color: #fff; }
.hj-footer__motto { color: #93a3b8; font-size: .9rem; }
.hj-footer .hj-mod__title { color: #fff; font-size: 1.2rem; }
.hj-footer .hj-mod__title::after { width: 36px; height: 3px; }
.hj-footer ul { list-style: none; padding: 0; margin: 0; }
.hj-footer li { margin-bottom: .45rem; }
.hj-footer dl { margin: 0; }
.hj-footer dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #93a3b8; font-weight: 800; margin-top: .6rem; }
.hj-footer dd { margin: 0; color: #fff; font-weight: 700; }
.hj-footer__bottom { border-top: 1px solid rgb(255 255 255 / .1); font-size: .88rem; color: #93a3b8; }
.hj-footer__bottom p { margin: 0; padding: 1.1rem 0; }

/* ---------- Misc Joomla bits ---------- */
.hj-pagination ul, .pagination { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 2.5rem 0 0; justify-content: center; }
.pagination .page-link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 800; }
.pagination .active .page-link { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled .page-link { opacity: .4; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.hj-error { text-align: center; padding-block: 12vh; max-width: 640px; }
.hj-error img { margin: 0 auto 1.5rem; }
.icon-calendar::before, .icon-folder::before { content: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .hj-topbar, .hj-header, .hj-footer, .hj-pagehead, .hj-sidebar { display: none !important; }
  body { background: #fff; }
}

/* ---------- additions: Facebook link, figures, tablók, contact, map ---------- */
.hj-fb__frame { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hj-fb__direct { margin: 0; padding: .8rem 1rem 1rem; text-align: center; font-weight: 800; }
.hj-figure { margin: 2rem 0; max-width: 820px; }
.hj-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hj-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; font-style: italic; }
.hj-sources { font-size: .9rem; color: var(--ink-2); }
.hj-tablo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 2rem 0 3rem; padding: 1.4rem; background: #fff; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.hj-tablo .hj-gallery { display: block; margin: 0; }
.hj-tablo .hj-gallery a { aspect-ratio: auto; }
.hj-tablo .hj-gallery img { height: auto; }
@media (max-width: 760px) { .hj-tablo { grid-template-columns: 1fr; } }
.hj-contact { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin: 1rem 0 1.6rem; }
.hj-contact dt { font-weight: 800; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15em; }
.hj-contact dd { margin: 0; font-weight: 700; }
.hj-map { border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-lg); height: 100%; min-height: 420px; }
.hj-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.hj-partners img { max-height: 64px; }

/* ---------- Facebook block (server-side, no third-party iframe) ---------- */
.hj-fb__intro { padding: 1.1rem 1.3rem 0; margin: 0 0 .9rem; color: var(--ink-2); font-weight: 600; }
.hj-fb__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 1.3rem; }
.hj-fb__grid a { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cream-2); }
.hj-fb__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hj-fb__grid a:hover img { transform: scale(1.07); }
.hj-fb__grid .hj-chip { position: absolute; left: 6px; bottom: 6px; font-size: .58rem; padding: .3em .5em; }
.hj-fb__posts { list-style: none; margin: 0; padding: .8rem 1rem 0; display: grid; gap: 10px; max-height: 560px; overflow-y: auto; }
.hj-fb__post { display: flex; gap: .9rem; text-decoration: none; color: var(--ink); padding: .6rem; border-radius: 12px; background: #f6f7f9; }
.hj-fb__post:hover { background: #e7f0fe; color: var(--ink); }
.hj-fb__post img { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.hj-fb__post span { font-size: .92rem; line-height: 1.4; }
.hj-fb__post time { display: block; font-weight: 800; font-size: .78rem; color: #1877f2; margin-bottom: .2rem; }
.hj-fb__cta { padding: 1.2rem 1.3rem 1.4rem; margin: 0; }
.hj-btn--fb { width: 100%; justify-content: center; background: #1877f2; border-color: #1877f2; }
.hj-btn--fb:hover { background: #0f63d6; border-color: #0f63d6; }
.hj-btn--fb .hj-icon { width: 1.2em; height: 1.2em; }
.hj-info--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (max-width: 900px) { .hj-info--2 { grid-template-columns: 1fr; } }

/* ---------- bell schedule card (homepage, under the Facebook card) ---------- */
.hj-bellcard { background: #fff; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); padding: 1rem 1.4rem; }
.hj-section--social .hj-mod + .hj-mod { margin-top: 2.2rem; }
.hj-fb__intro { padding-bottom: 0; }

/* ---------- homepage: events column as tall as the Facebook + bell schedule column ---------- */
@media (min-width: 901px) {
  .hj-events-wrap { align-items: stretch; }
  .hj-events-wrap > div:first-child,
  .hj-events-wrap > div:first-child > .hj-mod,
  .hj-events-wrap > div:first-child .hj-mod__body,
  .hj-events-wrap > div:first-child .hj-upcoming { display: flex; flex-direction: column; flex: 1; }
  .hj-events-wrap > div:first-child .hj-more { margin-top: auto; padding-top: 1.4rem; }
}
.hj-upcoming__list > li[hidden] { display: none; }
@media (min-width: 901px) {
  /* spread the leftover height evenly between the visible events instead of leaving a gap above the button */
  .hj-events-wrap > div:first-child .hj-upcoming__list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
  .hj-events-wrap > div:first-child .hj-more { margin-top: 0; }
}

/* ---------- Pályázatok ---------- */
.hj-grants { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0 2.5rem; }
.hj-grant { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.hj-grant:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hj-grant__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--cream); }
.hj-grant__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hj-grant__logo { position: absolute; left: 1rem; bottom: -1.5rem; height: 3.4rem; max-width: calc(100% - 2rem); border-radius: 999px; background: #fff; display: flex; align-items: center; padding: .35rem 1.1rem; box-shadow: var(--shadow); }
.hj-grant__logo img { height: 100%; width: auto; max-width: 11rem; object-fit: contain; }
.hj-grant__logo--text { background: var(--gold); color: var(--ink); font: 800 .95rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .04em; }
.hj-grant__body { display: flex; flex-direction: column; flex: 1; padding: 2.2rem 1.4rem 1.4rem; }
.hj-grant__kind { margin: 0 0 .3rem; color: var(--gold-ink); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hj-prose .hj-grant h3 { margin: 0 0 .9rem; font-size: 1.35rem; line-height: 1.2; }
.hj-grant h3 a { color: var(--ink); text-decoration: none; }
.hj-grant h3 a:hover { color: var(--iskola-ink); }
.hj-prose ul.hj-grant__facts { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.hj-grant__facts li { flex: 1; margin: 0; padding: .55rem .7rem; border-radius: var(--radius-sm); background: var(--cream); color: var(--ink-2); font-size: .85rem; line-height: 1.25; }
.hj-grant__facts li::before { display: none; }
.hj-grant__facts strong { display: block; color: var(--ink); font: 700 1.35rem/1.1 var(--font-head); }
.hj-grant__body > p { margin: 0 0 1.1rem; color: var(--ink-2); font-size: .97rem; }
.hj-grant__more { margin-top: auto; font-weight: 800; color: var(--iskola-ink); text-decoration: none; }
.hj-grant__more span { display: inline-block; transition: transform .2s; }
.hj-grant:hover .hj-grant__more span { transform: translateX(4px); }
.hj-grants-thanks { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 1.8rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.hj-grants-thanks > div:first-child { flex: 1 1 320px; }
.hj-prose .hj-grants-thanks h2 { margin: 0 0 .4rem; font-size: 1.4rem; }
.hj-grants-thanks p { margin: 0; color: var(--ink-2); }
.hj-grants-thanks .hj-partners img { border-radius: var(--radius-sm); background: #fff; padding: .4rem; }

/* ---------- 2026-11 javítások ---------- */
/* the "és" in the name is plain text, same colour and font as the rest */
.hj-brand__sub em { color: inherit; font-style: normal; }
.hj-hero h1 span { color: inherit; font-style: normal; font-weight: inherit; }
/* larger header logo */
.hj-brand__logo { width: 76px; height: 76px; }
/* unit cards: the badge overlaps the image edge, so the image box must not clip it */
.hj-unit__media { overflow: visible; }
.hj-unit__media img { transition: filter .4s ease; }
.hj-unit:hover .hj-unit__media img { transform: none; filter: saturate(1.12) brightness(1.04); }
.hj-unit__badge { z-index: 1; }
@media (max-width: 600px) {
  .hj-brand__logo { width: 58px; height: 58px; }
}
/* footer legal line */
.hj-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 2rem; }
.hj-footer__legal p { padding: 1.1rem 0; }
.hj-footer__legal p + p { padding-top: 0; }
@media (min-width: 760px) { .hj-footer__legal p + p { padding-top: 1.1rem; } }
.hj-footer__legal a { color: #c9d4e2; text-decoration: none; border-bottom: 1px solid rgb(201 212 226 / .35); }
.hj-footer__legal a:hover { color: var(--gold); border-color: var(--gold); }
/* cookie notice table */
.hj-cookie-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .95rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.hj-cookie-table th, .hj-cookie-table td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hj-cookie-table th { background: var(--cream); font-weight: 800; }
@media (max-width: 700px) {
  .hj-cookie-table thead { display: none; }
  .hj-cookie-table tr, .hj-cookie-table td { display: block; }
  .hj-cookie-table td { border: 0; padding: .35rem .9rem; }
  .hj-cookie-table tr { padding: .5rem 0; }
}
.hj-muted { color: var(--muted); font-size: .9rem; }
/* the logo fades to white on its right side: always show it on a white disc on dark backgrounds */
.hj-footer__brand img { background: #fff; border-radius: 50%; padding: 7px; box-shadow: 0 0 0 4px rgb(255 255 255 / .12); }
@media (max-width: 700px) {
  .hj-cookie-table td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-ink); }
}

/* ---------- Hero: split layout, crest + photo frame ---------- */
.hj-hero--split { color: var(--ink); overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #fff 0%, transparent 60%), linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%); }
.hj-hero--split::before { content: none; }
.hj-hero--split .hj-hero__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hj-hero--split .hj-hero__content { max-width: none; }
.hj-hero__lockup { display: grid; grid-template-columns: clamp(150px, 15vw, 210px) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.75rem); align-items: center; margin-bottom: 1.4rem; }
.hj-hero__crest { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgb(24 39 61 / .12)); }
.hj-hero--split .hj-eyebrow { color: var(--gold-ink); margin-bottom: .7rem; }
.hj-hero--split h1 { color: var(--ink); font-size: clamp(2rem, 1.1rem + 2.1vw, 3.05rem); line-height: 1.08; margin: 0; }
.hj-hero--split .hj-hero__lead { color: var(--ink-2); max-width: 560px; }
.hj-hero--split .hj-hero__unit { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: none; }
.hj-hero--split .hj-hero__unit .hj-icon { color: #fff; }
.hj-hero--split .hj-hero__unit small { color: var(--muted); }
.hj-hero--split .hj-hero__unit:hover { color: #fff; }
.hj-hero--split .hj-hero__unit:hover small { color: rgb(255 255 255 / .85); }
.hj-hero--split .hj-hero__unit:hover .hj-icon { background: rgb(255 255 255 / .2); }
/* photo frame: rounded, with a gold offset outline behind it */
.hj-hero__photo { position: relative; margin: 0 18px 0 0; aspect-ratio: 4 / 4.6; }
.hj-hero__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--gold); border-radius: 32px; z-index: 0; }
.hj-hero--split .hj-hero__slides { position: absolute; inset: 0; z-index: 1; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-2); }
.hj-hero--split .hj-hero__dots { right: 18px; bottom: 18px; z-index: 2; padding: 6px 8px; border-radius: 999px; background: rgb(24 39 61 / .35); }
@media (max-width: 900px) {
  .hj-hero--split .hj-hero__inner { grid-template-columns: 1fr; padding-top: 1.75rem; }
  .hj-hero__photo { order: -1; aspect-ratio: 16 / 10; margin-right: 18px; }
  .hj-hero__lockup { grid-template-columns: 110px minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .hj-hero__lockup { grid-template-columns: 1fr; justify-items: start; }
  .hj-hero__crest { width: 132px; }
}
/* homepage: the small header logo appears only once the big crest has scrolled away */
.is-home .hj-brand__logo { transition: width .3s ease, opacity .3s ease, margin .3s ease; }
.is-home.crest-visible .hj-brand__logo { width: 0; opacity: 0; margin-right: -.85rem; }
.hj-hero--split .hj-hero__unit--iskola:hover { background: var(--iskola); border-color: var(--iskola); }
.hj-hero--split .hj-hero__unit--ovoda:hover { background: var(--ovoda); border-color: var(--ovoda); }
/* the split hero has no wave to tuck the unit cards under */
.hj-hero--split ~ .hj-section--units, .hj-section--units { margin-top: 0; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
/* split hero v2: the photo is the full-bleed background again, a cream wash on the left carries crest + title */
.hj-hero--split .hj-hero__inner { grid-template-columns: minmax(0, 700px) 1fr; min-height: clamp(520px, 62vh, 680px); }
.hj-hero--split .hj-hero__photo { position: absolute; inset: 0; z-index: -2; margin: 0; aspect-ratio: auto; }
.hj-hero--split .hj-hero__photo::before { content: none; }
.hj-hero--split .hj-hero__slides { border-radius: 0; box-shadow: none; }
.hj-hero--split::before { content: ""; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgb(255 253 247 / .97) 36%, rgb(255 253 247 / .82) 50%, rgb(255 253 247 / .25) 68%, rgb(255 253 247 / 0) 82%); }
.hj-hero--split .hj-hero__dots { right: 24px; bottom: 24px; }
@media (max-width: 900px) {
  .hj-hero--split .hj-hero__inner { min-height: 0; padding-top: 220px; }
  .hj-hero--split .hj-hero__photo { order: 0; margin: 0; aspect-ratio: auto; }
  .hj-hero--split::before { background: linear-gradient(180deg, rgb(255 253 247 / 0) 0, rgb(255 253 247 / .3) 120px, rgb(255 253 247 / .96) 250px, var(--paper) 300px); }
  .hj-hero--split .hj-hero__dots { top: 16px; bottom: auto; right: 16px; }
}
@media (max-width: 900px) {
  .hj-hero--split .hj-hero__photo { bottom: auto; height: 320px; }
  .hj-hero--split::before { background: linear-gradient(180deg, rgb(255 253 247 / 0) 0, rgb(255 253 247 / 0) 150px, rgb(255 253 247 / .9) 260px, var(--paper) 320px); }
}
/* split hero, dark (navy) variant: same layout, the original blue wash over the photo */
.hj-hero--split.hj-hero--dark { color: #fff; background: var(--ink); }
.hj-hero--split.hj-hero--dark::before { background: linear-gradient(100deg, rgb(16 28 46 / .92) 0%, rgb(16 28 46 / .78) 45%, rgb(16 28 46 / .2) 100%); }
.hj-hero--dark .hj-hero__crest { background: #fff; border-radius: 50%; padding: 7%; filter: none; box-shadow: 0 18px 40px -14px rgb(0 0 0 / .6), 0 0 0 6px rgb(255 255 255 / .16); }
.hj-hero--split.hj-hero--dark .hj-eyebrow { color: var(--gold); }
.hj-hero--split.hj-hero--dark h1 { color: #fff; }
.hj-hero--split.hj-hero--dark .hj-hero__lead { color: #e8edf4; }
.hj-hero--split.hj-hero--dark .hj-hero__unit { color: #fff; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .25); box-shadow: none; backdrop-filter: blur(6px); }
.hj-hero--split.hj-hero--dark .hj-hero__unit small { color: #d6dde8; }
@media (max-width: 900px) {
  .hj-hero--split.hj-hero--dark::before { background: linear-gradient(180deg, rgb(16 28 46 / .25) 0, rgb(16 28 46 / .35) 150px, rgb(16 28 46 / .92) 270px, var(--ink) 320px); }
}
.hj-hero--split.hj-hero--dark::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fffdf7' d='M0 60V30C240 0 480 0 720 22s480 38 720 8v30z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.hj-hero--split.hj-hero--dark .hj-hero__inner { padding-bottom: clamp(4.5rem, 8vw, 6.5rem); }
.hj-hero--split.hj-hero--dark .hj-hero__dots { bottom: 70px; }
/* logo-korong.png already is the logo on a white disc that holds the whole lettering: no padding, so nothing gets clipped */
.hj-footer__brand img { padding: 0; background: none; width: 96px; height: 96px; box-shadow: 0 0 0 4px rgb(255 255 255 / .12); }
.hj-hero--dark .hj-hero__crest { padding: 0; background: none; }

/* ---------- 2026-11-05: events + bell schedule as two equal white boxes, Facebook below ---------- */
/* one white box for the events: rows separated by lines, the button inside the box */
.hj-events-wrap > div:first-child .hj-upcoming { background: #fff; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); padding: .6rem 1.4rem 1.2rem; }
.hj-events-wrap .hj-upcoming__list { gap: 0; }
.hj-events-wrap .hj-ev { background: none; box-shadow: none; border-radius: 0; border-left: 0; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.hj-events-wrap .hj-upcoming__list > li:last-child .hj-ev,
.hj-events-wrap .hj-upcoming__list > li:nth-last-child(1 of :not([hidden])) .hj-ev { border-bottom: 0; }
.hj-events-wrap .hj-ev.is-now { background: linear-gradient(90deg, color-mix(in srgb, var(--t) 8%, #fff), #fff); margin-inline: -.6rem; padding-inline: .6rem; border-radius: 10px; }
.hj-events-wrap .hj-more { margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (min-width: 901px) {
  .hj-events-wrap > div:first-child .hj-upcoming__list { justify-content: flex-start; gap: 0; }
  .hj-events-wrap > div:first-child .hj-more { margin-top: auto; padding-top: 1rem; }
  /* the bell card fills its column so both boxes end on the same line */
  .hj-events-wrap > div:last-child,
  .hj-events-wrap > div:last-child > .hj-mod,
  .hj-events-wrap > div:last-child .hj-mod__body { display: flex; flex-direction: column; flex: 1; }
  .hj-events-wrap > div:last-child .hj-bellcard { flex: 1; }
}
/* breaks between lessons */
.hj-bells li.hj-bells__break { padding: .12rem 0 .12rem .9rem; font-size: .78rem; color: var(--muted); border-bottom: 1px dashed var(--line); background: repeating-linear-gradient(135deg, transparent 0 6px, rgb(214 170 43 / .07) 6px 12px); }
.hj-bells li.hj-bells__break b { font-weight: 700; text-transform: none; }
.hj-bells li.hj-bells__break.is-now { color: var(--gold-ink); background: var(--cream); font-weight: 800; }
/* Facebook card under the two boxes */
.hj-section--bottom .hj-fb { max-width: none; }
.hj-impresszum th { width: 34%; background: var(--cream); }
/* less space between the events/bell boxes and the "Kövess minket!" block */
.hj-section--social { padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.hj-section--bottom { padding-top: clamp(1.25rem, 2.5vw, 2rem); }

/* bell schedule: lessons only, breaks summarised underneath, live "break now" notice */
.hj-bells__breaks { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); line-height: 1.5; }
.hj-bells__breaks b { color: var(--ink-2); }
.hj-bells__status { margin: .6rem 0 0; padding: .5rem .75rem; border-radius: 10px; background: var(--cream); color: var(--gold-ink); font-weight: 800; font-size: .88rem; }
.hj-bells__status[hidden] { display: none; }
.hj-bells li.is-before-break { border-bottom: 2px solid var(--gold); }

/* breaks beside the lessons: a small note at the end of each row */
.hj-bells li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: baseline; }
.hj-bells li > span { text-align: right; }
.hj-bells__break { font-style: normal; font-size: .72rem; color: var(--muted); background: var(--cream); border-radius: 999px; padding: .08rem .5rem; white-space: nowrap; min-width: 8.4em; text-align: center; }
.hj-bells li:last-child::after { content: ""; min-width: 8.4em; font-size: .72rem; padding: .08rem .5rem; }
.hj-bells li.is-before-break .hj-bells__break { background: var(--gold); color: var(--ink); font-weight: 800; }
.hj-bells li.is-before-break { border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: var(--line); }
@media (min-width: 901px) { .hj-events-wrap > div:last-child .hj-bellcard { display: flex; flex-direction: column; justify-content: space-between; } }
@media (min-width: 901px) { .hj-events-wrap > div:last-child .hj-bellcard { justify-content: flex-start; } .hj-events-wrap > div:last-child .hj-bells { flex: 1; display: flex; flex-direction: column; justify-content: space-between; } }
@media (min-width: 901px) { .hj-events-wrap > div:last-child .hj-mod__body > .mod-custom { display: flex; flex-direction: column; flex: 1; } }
