/* ==========================================================================
   PTE Idegen Nyelvi Központ
   ========================================================================== */

:root {
  --blue: #2c68c3;        /* PTE világoskék */
  --blue-600: #1f56ab;
  --navy: #002f86;        /* PTE sötétkék */
  --deep: #061d52;
  --night: #04143a;
  --gold: #c8a45a;
  --ink: #131c33;
  --muted: #5b6579;
  --line: #e2e7f0;
  --tint: #f4f6fb;
  --paper: #ffffff;
  --danger: #b3261e;
  --ok: #1d6b3c;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(4, 20, 58, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --topbar-h: 38px;
  --mainbar-h: 92px;
  --navbar-h: 54px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 700; text-wrap: balance; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  box-shadow: var(--shadow); transition: top .2s;
}
.skip:focus { top: 12px; }

.ext { margin-left: 5px; opacity: .7; vertical-align: -1px; }
.arrow { flex: none; transition: transform .3s var(--ease); }

/* --------------------------------------------------------------------------
   Gombok
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 47, 134, .7); }

/* --------------------------------------------------------------------------
   Fejléc
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; z-index: 100;
  top: calc(-1 * (var(--topbar-h) + var(--mainbar-h)));
  color: #fff;
}

.topbar { background: var(--night); font-size: 13px; letter-spacing: .04em; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); }
.topbar__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.topbar__list a {
  display: inline-flex; align-items: center; padding: 6px 12px; margin-left: -12px; margin-right: 12px;
  color: rgba(255, 255, 255, .78); text-decoration: none; text-transform: uppercase; transition: color .2s;
}
.topbar__list a:hover { color: #fff; }

.langsw { display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden; }
.langsw a { padding: 2px 11px; color: rgba(255, 255, 255, .75); text-decoration: none; font-weight: 600; font-size: 12px; transition: background .2s, color .2s; }
.langsw a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.langsw a[aria-current] { background: #fff; color: var(--navy); }

.mainbar { background: var(--navy); }
.mainbar__in { display: flex; align-items: center; gap: 24px; height: var(--mainbar-h); }

.brand { display: flex; align-items: center; gap: 22px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand__logo { width: 172px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .28); min-width: 0; }
.brand__unit { font-family: var(--serif); font-size: clamp(19px, 2.1vw, 25px); font-weight: 700; line-height: 1.15; letter-spacing: .005em; }
.brand__org { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-top: 4px; }

.mainbar__tag {
  margin: 0 0 0 auto; font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(255, 255, 255, .7);
  white-space: nowrap;
}

.navbar { background: var(--blue); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset; transition: box-shadow .3s; }
.is-scrolled .navbar { box-shadow: 0 12px 30px -16px rgba(4, 20, 58, .65); }
.navbar__in { display: flex; align-items: center; min-height: var(--navbar-h); }

.navbar__mark {
  flex: none; width: 0; opacity: 0; overflow: hidden; display: flex; align-items: center;
  transition: width .4s var(--ease), opacity .3s, margin .4s var(--ease);
}
.navbar__mark img { width: 104px; max-width: none; height: auto; }
.is-scrolled .navbar__mark { width: 104px; opacity: 1; margin-right: 26px; }

.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: stretch; margin: 0 -16px; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__item--lang { margin-left: auto; }
.nav__link {
  display: flex; align-items: center; gap: 7px; height: var(--navbar-h); padding: 0 16px;
  background: none; border: 0; cursor: pointer; color: #fff; text-decoration: none;
  font-size: 15.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.nav__link > span { position: relative; padding: 4px 0; }
.nav__link > span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover > span::after, .nav__item.is-open > .nav__link > span::after { transform: scaleX(1); }
.nav__item.is-active > .nav__link > span::after { transform: scaleX(1); background: var(--gold); }
.chev { transition: transform .3s var(--ease); opacity: .85; }
.nav__item.is-open .chev { transform: rotate(180deg); }
.nav__extra { display: none; }

.sub {
  position: absolute; left: 0; top: 100%; min-width: 280px; max-width: 380px; padding-top: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s, transform .3s var(--ease), visibility 0s .3s;
}
.nav__item:nth-last-child(-n+3) .sub { left: auto; right: 0; }
.nav__item.is-open > .sub,
.no-js .nav__item:hover > .sub,
.no-js .nav__item:focus-within > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sub__list {
  margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(4, 20, 58, .45), 0 0 0 1px rgba(4, 20, 58, .06);
  border-top: 3px solid var(--gold);
}
.sub__list a {
  display: block; padding: 11px 14px; border-radius: 8px; color: var(--ink); text-decoration: none;
  font-size: 15.5px; line-height: 1.35; transition: background .2s, color .2s, padding .3s var(--ease);
}
.sub__list a:hover { background: var(--tint); color: var(--navy); padding-left: 20px; }
.sub__list a[aria-current] { color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; color: #fff; cursor: pointer;
}
.nav-toggle__label { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Nyitókép (hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: var(--navy);
  padding: clamp(20px, 2.4vw, 32px) 0 clamp(100px, 9.5vw, 116px);
}
/* Lassan forgó színátmenet: a forgáspont a sáv alatt van, így csak a fénysávok látszanak. */
.hero__glow {
  --s: min(190vmax, 3400px);
  position: absolute; z-index: -1; pointer-events: none;
  left: 62%; top: 118%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: conic-gradient(from 0deg,
    var(--night), var(--navy) 9%, #1a4fa8 19%, var(--blue) 27%, #1a4fa8 35%, var(--navy) 45%,
    var(--deep) 55%, var(--night) 63%, var(--navy) 73%, #2459b4 82%, var(--deep) 92%, var(--night));
  animation: spin 90s linear infinite;
  will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero__stage { position: relative; display: grid; }
.hero__slide {
  grid-area: 1 / 1; align-self: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .6s, transform .8s var(--ease), visibility 0s .6s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.hero__slide p {
  margin: 0 0 22px; font-family: var(--serif); font-size: clamp(21px, 2.1vw, 29px); line-height: 1.34; font-weight: 700;
  color: #fff; text-wrap: balance;
}
.hero__more {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  padding-bottom: 4px; border-bottom: 1px solid var(--gold); transition: gap .3s var(--ease), color .2s;
}
.hero__more:hover { color: #fff; gap: 16px; }

.hero__dots { display: flex; gap: 10px; margin-top: 30px; }
.hero__dot { position: relative; width: 56px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.hero__dot::before, .hero__dot i { content: ""; display: block; height: 3px; border-radius: 3px; }
.hero__dot::before { width: 100%; background: rgba(255, 255, 255, .3); transition: background .2s; }
.hero__dot:hover::before { background: rgba(255, 255, 255, .5); }
.hero__dot i { position: absolute; left: 0; top: 50%; margin-top: -1.5px; width: 0; background: var(--gold); }
.hero__dot.is-active i { width: 100%; }
.is-playing .hero__dot.is-active i { animation: dot var(--slide-ms, 7000ms) linear both; }
.is-paused .hero__dot.is-active i { animation-play-state: paused; }
@keyframes dot { from { width: 0; } to { width: 100%; } }

.hero__visual { display: grid; place-items: center; }
/* animált rajzlap: diánként egy vászon, áttűnéssel */
.hero__art { position: relative; width: min(100%, 560px); aspect-ratio: 3 / 2; }
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none;
  opacity: 0; transform: scale(.97); transition: opacity .7s, transform 1.2s var(--ease);
}
.hero__canvas.is-active { opacity: 1; transform: none; }
/* a vászon balra túlnyúlhat a dobozon (a JS állítja a --bleed értékét), hogy a szlogen a szöveg mellé kerüljön */
canvas.hero__canvas { left: calc(-1 * var(--bleed, 0px)); width: calc(100% + var(--bleed, 0px)); max-width: none; }
img.hero__canvas { inset: 18%; width: 64%; height: 64%; background: #fff; border-radius: 14px; padding: 12px; }

/* belépő animációk */
.js .hero__slides, .js .hero__visual { opacity: 0; animation: rise .9s var(--ease) forwards; }
.js .hero__slides { animation-delay: .15s; }
.js .hero__visual { animation-delay: .3s; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Tevékenységek (a főmenü csoportjai)
   -------------------------------------------------------------------------- */
.areas { position: relative; z-index: 2; margin-top: -72px; }
.areas__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px rgba(4, 20, 58, .05); overflow: hidden;
}
.area { position: relative; padding: 28px 26px 26px; border-left: 1px solid var(--line); transition: background .3s; }
.area:first-child { border-left: 0; }
.area::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.area:hover { background: var(--tint); }
.area:hover::before, .area:focus-within::before { transform: scaleX(1); }
.area__no { margin: 0 0 10px; font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--gold); letter-spacing: .06em; }
.area__title { margin: 0 0 14px; font-size: 21px; overflow-wrap: anywhere; }
.area__links { margin: 0; padding: 0; list-style: none; }
.area__links a {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 0;
  color: var(--ink); text-decoration: none; font-size: 15.5px; line-height: 1.4; border-top: 1px solid var(--line);
  transition: color .2s;
}
.area__links .arrow { margin-top: 3px; color: var(--blue); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease); }
.area__links a:hover { color: var(--navy); }
.area__links a:hover .arrow, .area__links a:focus-visible .arrow { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Aktuális (hírek)
   -------------------------------------------------------------------------- */
.newsec { padding: clamp(64px, 9vw, 110px) 0 clamp(72px, 9vw, 120px); }
.newsec__in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 88px); align-items: start; }

.sechead { margin-bottom: 44px; }
.sechead__kicker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.sechead__kicker::before { content: ""; width: 44px; height: 1px; background: var(--gold); }
.sechead__title { margin: 0; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.01em; }

.news { margin: 0; padding: 0; list-style: none; position: relative; }
.news::before { content: ""; position: absolute; left: 108px; top: 10px; bottom: 0; width: 1px; background: linear-gradient(var(--line) 85%, transparent); }
.news__item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 50px; padding-bottom: 46px; position: relative; }
.news__item::before {
  content: ""; position: absolute; left: 103px; top: 12px; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); transition: background .3s, transform .3s var(--ease);
}
.news__item:first-child::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(200, 164, 90, .2); }
.news__item:hover::before { background: var(--blue); transform: scale(1.2); }
.news__date { text-align: right; line-height: 1.15; padding-top: 2px; }
.news__day { display: block; font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--navy); }
.news__my { display: block; margin-top: 4px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.news__title { margin: 4px 0 12px; font-size: clamp(20px, 2vw, 24px); line-height: 1.28; }
.news__title a { color: inherit; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.news__title a:hover { background-size: 100% 2px; }
.news__body { font-size: 16.5px; color: #2a344c; }
.news__body > :first-child { margin-top: 0; }
.news__body > :last-child { margin-bottom: 0; }
.news__body img { max-width: min(100%, 420px); }
.news__more { margin: 14px 0 0; }
.news__more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.news__more a:hover .arrow { transform: translateX(4px); }

[data-clamp].is-clamped { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.clamp-toggle {
  margin-top: 12px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--blue-600); font-weight: 600; font-size: 15.5px;
  display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid currentColor;
}
.clamp-toggle:hover { color: var(--navy); }

/* oldalsáv */
.newsec__aside, .pagebody__aside { align-self: stretch; }
.sticky { position: sticky; top: calc(var(--navbar-h) + 28px); }
.aside__title {
  margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.aside__block { margin-top: 44px; }
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.banners__item { grid-column: span 2; }
.banners__item--half { grid-column: span 1; }
.banners__item a, .banners__item span {
  display: grid; place-items: center; height: 100%; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
.banners__item img { display: block; border-radius: 6px; }
.banners__item a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }

.secnav ul { margin: 0; padding: 0; list-style: none; }
.secnav a {
  display: block; padding: 11px 14px; margin-bottom: 2px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.35;
  transition: background .2s, color .2s;
}
.secnav a:hover { background: var(--tint); color: var(--navy); }
.secnav a[aria-current] { background: var(--navy); color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Aloldalak
   -------------------------------------------------------------------------- */
.pagehead {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, var(--night), var(--navy) 60%, #1a4fa8);
  padding: clamp(40px, 6vw, 68px) 0 clamp(44px, 6vw, 72px);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13.5px; letter-spacing: .03em; color: rgba(255, 255, 255, .72); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--gold); }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.pagehead__title { margin: 0; max-width: 22em; color: #fff; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pagehead__title::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 22px; background: var(--gold); }
.pagehead__meta { margin: 16px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.pagehead--center { text-align: center; }
.pagehead--center .pagehead__title { margin-inline: auto; }
.pagehead--center .pagehead__title::after { margin-inline: auto; }
.pagehead__code { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(64px, 12vw, 128px); line-height: 1; color: rgba(255, 255, 255, .16); font-weight: 700; }
.notfound { text-align: center; margin-inline: auto; }

.js .pagehead__title, .js .crumbs, .js .pagehead__meta { animation: rise .8s var(--ease) both; }
.js .pagehead__title { animation-delay: .08s; }

.pagebody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 88px); align-items: start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 120px); }
.pagebody--full { grid-template-columns: minmax(0, 1fr); }
.pagebody__main { min-width: 0; }

/* --------------------------------------------------------------------------
   Szöveges tartalom (a WordPressből átvett HTML)
   -------------------------------------------------------------------------- */
.prose { overflow-wrap: break-word; }
.prose::after { content: ""; display: block; clear: both; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose p:empty { display: none; }
.prose h1, .prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.7em 0 .6em; }
.prose h3 { font-size: clamp(22px, 2.4vw, 27px); margin: 1.7em 0 .6em; }
.prose h4, .prose h5, .prose h6, .prose .subhead { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 1.9em 0 .65em; }
.prose .subhead strong, .prose .subhead b { font-weight: inherit; }
.prose h4 a, .prose h5 a { display: inline-block; margin-right: 18px; }
.prose > .subhead:first-child, .prose > div:first-child > .subhead:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose ul > li::marker { color: var(--gold); }
.prose a { text-decoration: underline; text-decoration-color: rgba(31, 86, 171, .35); text-decoration-thickness: 1px; transition: text-decoration-color .2s, color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a[href$=".pdf"]::after, .prose a[href$=".doc"]::after, .prose a[href$=".docx"]::after {
  content: attr(data-ext); display: none;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.1em; color: #2a344c; }
.prose img { border-radius: 10px; }
.prose .alignleft { float: left; margin: 6px 28px 18px 0; max-width: min(48%, 420px); }
.prose .alignright { float: right; margin: 6px 0 18px 28px; max-width: min(48%, 420px); }
.prose .aligncenter { display: block; margin: 8px auto 24px; }
.prose img.size-full.alignleft:only-child, .prose img.size-large { float: none; max-width: 100%; }
.prose figure { margin: 0 0 1.4em; }
.prose figcaption { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.prose figure.aligncenter { width: fit-content; max-width: 100%; text-align: center; }
.prose figure img { border-radius: 8px; }
.prose center { display: block; text-align: center; }

.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th + th, .prose td + td { border-left: 1px solid var(--line); }
.prose tr:last-child > td { border-bottom: 0; }
.prose th, .prose thead td { background: var(--navy); color: #fff; font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--tint); }
.prose td p:last-child { margin-bottom: 0; }

.embed { margin: 1.6em 0; }
.embed iframe { display: block; width: 100%; border: 0; }
.embed--video { aspect-ratio: 16 / 9; max-width: 760px; border-radius: 12px; overflow: hidden; background: var(--night); box-shadow: var(--shadow); }
.embed--video iframe { height: 100%; }
.embed--app { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.news__body .embed:first-child { margin-top: 6px; }

/* Munkatársak: egységes kártyák */
.page-munkatarsaink .prose > p img { display: block; float: none; width: 100%; max-width: none; margin: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 24px; margin: 2.4em 0; padding: 0; list-style: none; }
.prose .staff__card {
  display: flex; flex-direction: column; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.staff__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.staff__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.prose .staff__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 14%;
  border-radius: 0; transition: transform .8s var(--ease);
}
.staff__card:hover .staff__photo img { transform: scale(1.04); }
.staff__body { flex: 1; padding: 18px 16px 20px; text-align: center; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.prose .staff__name { margin: 0 0 4px; font-size: 18.5px; line-height: 1.25; }
.prose .staff__name a { color: inherit; }
.prose .staff__role { margin: 0 0 10px; color: var(--muted); }
.prose .staff__contact { margin: 0; padding: 0; list-style: none; }
.prose .staff__contact li { margin: 0; }

/* --------------------------------------------------------------------------
   Űrlapok
   -------------------------------------------------------------------------- */
.form { max-width: 720px; margin: 1.5em 0; padding: clamp(20px, 3vw, 34px); background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); }
.form__hp { position: absolute; left: -9999px; }
.form label { display: block; font-weight: 600; margin-bottom: 1em; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="url"],
.form input[type="number"], .form input[type="date"], .form textarea, .form select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-weight: 400; color: var(--ink);
  background: #fff; border: 1.5px solid #cdd4e2; border-radius: 9px; transition: border-color .2s, box-shadow .2s;
}
.form select { display: inline-block; width: auto; max-width: 100%; margin: 4px 6px; padding: 7px 10px; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(44, 104, 195, .18); }
.form .is-invalid { border-color: var(--danger) !important; }
.form .choices { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0; vertical-align: middle; }
.form .choice { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 14px; background: #fff; border: 1.5px solid #cdd4e2; border-radius: 999px; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; }
.form .choice:hover { border-color: var(--blue); }
.form .choice input { accent-color: var(--navy); margin: 0; }
.form h5 { margin-top: 1.6em; }
.form__note { margin: 0 0 1.2em; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.form__note--ok { background: #e6f4ea; color: var(--ok); }
.form__note--err { background: #fdecea; color: var(--danger); }

/* --------------------------------------------------------------------------
   Lábléc
   -------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .82); font-size: 15.5px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer__in { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.site-footer__brand img { width: 168px; height: auto; display: block; margin-bottom: 20px; }
.site-footer__unit { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; }
.site-footer__org { margin: 4px 0 0; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.site-footer h2 { margin: 6px 0 16px; font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { line-height: 1.8; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.site-footer__base-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.site-footer__base p { margin: 0; }
.to-top { color: rgba(255, 255, 255, .8) !important; }

/* --------------------------------------------------------------------------
   Görgetésre megjelenő elemek
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Reszponzív
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .mainbar__tag { display: none; }
  .nav__link { padding: 0 12px; font-size: 15px; }
  .nav__list { margin: 0 -12px; }
}

@media (max-width: 980px) {
  :root { --mainbar-h: 72px; --navbar-h: 0px; }
  html { scroll-padding-top: calc(var(--mainbar-h) + 16px); }
  .site-header { top: calc(-1 * var(--topbar-h)); }
  .brand__logo { width: 132px; }
  .brand { gap: 16px; }
  .brand__text { padding-left: 16px; }
  .brand__org { display: none; }
  .nav-toggle { display: inline-flex; }
  .sticky { position: static; }

  .navbar {
    position: fixed; inset: calc(var(--mainbar-h)) 0 0 0; z-index: 99; background: var(--deep);
    overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
  }
  .nav-open .navbar { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .navbar__in { display: block; padding-top: 12px; padding-bottom: 48px; }
  .navbar__mark { display: none; }
  .nav__list { display: block; margin: 0; }
  .nav__item { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav__item--lang { margin: 0; }
  .nav__link { width: 100%; height: auto; padding: 17px 2px; justify-content: space-between; font-family: var(--serif); font-size: 21px; white-space: normal; text-align: left; }
  .nav__link > span::after { display: none; }
  .sub { position: static; max-width: none; padding: 0; opacity: 1; visibility: visible; transform: none; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
  .nav__item.is-open > .sub { grid-template-rows: 1fr; }
  .sub__list { overflow: hidden; min-height: 0; padding: 0; background: none; box-shadow: none; border: 0; border-radius: 0; }
  .sub__list a { padding: 10px 2px 10px 16px; color: rgba(255, 255, 255, .85); border-left: 1px solid rgba(255, 255, 255, .2); border-radius: 0; }
  .sub__list li:last-child a { margin-bottom: 16px; }
  .sub__list a:hover { background: none; color: #fff; padding-left: 20px; }
  .sub__list a[aria-current] { color: #fff; box-shadow: none; border-left-color: var(--gold); }
  .nav__extra { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
  .nav__extra a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; }

  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { order: -1; }
  .hero__art { width: min(100%, 440px); aspect-ratio: 1 / 1; }

  .newsec__in, .pagebody { grid-template-columns: minmax(0, 1fr); }
  .newsec__aside .banners, .pagebody__aside .banners { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .newsec__aside .banners__item, .pagebody__aside .banners__item { grid-column: auto; }
  .site-footer__in { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__list a { padding: 6px 8px; margin-left: -8px; margin-right: 6px; }
  .brand__unit { font-size: 17px; }
  .brand__logo { width: 112px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 12px; }
  .areas { margin-top: -56px; }
  .areas__grid { grid-template-columns: 1fr; }
  .area { border-left: 0; border-top: 1px solid var(--line); padding: 22px 20px; }
  .area:first-child { border-top: 0; }
  .news::before { display: none; }
  .news__item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
  .news__item::before { display: none; }
  .news__date { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .news__day { font-size: 28px; }
  .prose .alignleft, .prose .alignright { float: none; display: block; max-width: 100%; margin: 0 0 18px; }
  .site-footer__in { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .hero__dot { width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__glow { animation: none; }
}

@media print {
  .site-header, .site-footer, .pagebody__aside, .newsec__aside, .hero__visual, .hero__dots { display: none !important; }
  .hero, .pagehead { background: none; color: #000; padding: 0 0 16px; min-height: 0; }
  .hero__title, .pagehead__title { color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
