/* ==========================================================================
   pages.css — unified subpage design (hero, content), home sections,
   gallery filters, hub pages, contact page, alert bar.
   ========================================================================== */

/* ---------------- shared subpage header ---------------- */
.page-hero { position: relative; isolation: isolate; color: #fff; background: #04223c; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/images/header.jpg") center 35% / cover no-repeat; opacity: .35; transform: scale(1.05); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(4,34,60,.96) 0%, rgba(4,34,60,.86) 45%, rgba(21,99,171,.55) 100%); }
.page-hero__inner { max-width: 1200px; margin: 0 auto; padding: 46px 24px 50px; }
.page-hero__title { margin: 6px 0 0; font: 700 clamp(28px, 4vw, 44px)/1.15 Merriweather, Georgia, serif; color: #fff !important; letter-spacing: .2px; text-wrap: balance; text-transform: none; }
.page-hero__lead { margin: 12px 0 0; max-width: 760px; font-size: 17px; color: #d7e5f4; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font: 500 13.5px Montserrat, sans-serif; color: #b8cde3; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 10px; opacity: .7; }
.crumbs a { color: #e6f0fa !important; text-decoration: none !important; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-bottom-color: currentColor; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
@media (max-width: 640px) { .page-hero__inner { padding: 30px 20px 34px; } .crumbs ol { font-size: 12.5px; } }

/* ---------------- subpage content ---------------- */
.page-body { padding: 40px 0 60px; }
.page-body .com-content-article__body { font-size: 16.5px; line-height: 1.75; color: #24313f; }
.page-body .container { max-width: 1140px; }
.page-body h2, .page-body h3 { font-family: Merriweather, Georgia, serif; color: #04223c; line-height: 1.3; }
.page-body h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.6em 0 .6em; }
.page-body h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.page-body p { margin: 0 0 1em; }
.page-body ul, .page-body ol { padding-left: 1.3em; }
.page-body li { margin-bottom: .45em; }
.page-body a:not(.button):not(.card__link):not(.doc a):not(.hub__item) { color: #1563ab; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-body a:not(.button):hover { color: #04223c; }
.page-body img { border-radius: 10px; }
/* neutralise inline fonts pasted from Word / the old editor */
.page-body .com-content-article__body span[style*="font-family"], .page-body .com-content-article__body p[style*="font-family"] { font-family: inherit !important; }
.page-body .com-content-article__body span[style*="font-size"] { font-size: inherit !important; }
.page-body .com-content-article__body [style*="width: 46%"] { width: auto !important; }
.page-body .text-center > h1, .page-body h1 { font-family: Merriweather, Georgia, serif; color: #04223c; font-size: clamp(24px, 3vw, 32px); }
.page-body .ptop-10 { padding-top: 2em !important; }
.page-body .ptop-5 { padding-top: 1.5em !important; }
.page-body .pbottom-10 { padding-bottom: 2.5em !important; }
.page-body table { width: 100%; }
.page-body table:not(.dt-table) { border-collapse: collapse; margin: 1em 0 1.6em; font-size: 15px; }
.page-body table:not(.dt-table) td, .page-body table:not(.dt-table) th { border: 1px solid #dfe6ee; padding: 8px 12px; vertical-align: top; }
.page-body table:not(.dt-table) tr:nth-child(even) td { background: #f7f9fc; }
.droptablesresponsive { overflow-x: auto; border: 1px solid #e3e8ef; border-radius: 12px; background: #fff; }
.droptablestable table { margin: 0 !important; }
.prose { max-width: 860px; }
.prose h2:first-child { margin-top: 0; }

/* Közzétételi lista and other numbered legal lists: one card per item */
.page-kozzeteteli-lista .page-body ol { counter-reset: kl; list-style: none; padding: 0; max-width: 960px; }
.page-kozzeteteli-lista .page-body ol > li { counter-increment: kl; position: relative; background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 16px 18px 16px 64px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(4,34,60,.04); }
.page-kozzeteteli-lista .page-body ol > li::before { content: counter(kl); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%; background: #eaf2fc; color: #1563ab; font: 700 14px/32px Montserrat, sans-serif; text-align: center; }
.page-kozzeteteli-lista .page-body ol > li br + span, .page-kozzeteteli-lista .page-body ol > li br + span * { color: #4a5868; }

/* "documents" link lists from the old site (Kollégium etc.) */
.page-body .documents { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.page-body .documents p { margin: 0; }
.page-body .documents a { display: inline-flex !important; align-items: center; gap: 10px; padding: 14px 22px !important; border-radius: 12px !important; background: #fff !important; border: 1px solid #dbe5f1; color: #04223c !important; font-weight: 600; text-decoration: none !important; box-shadow: 0 4px 14px rgba(4,34,60,.06); }
.page-body .documents a::before { content: "\f15b"; font: 900 16px "Font Awesome 5 Free"; color: #1f68de; }
.page-body .documents a[href$=".pdf"]::before { content: "\f1c1"; color: #b3261e; }
.page-body .documents a:hover { border-color: #1f68de !important; transform: translateY(-2px); }

/* Kollégium: photos side by side as rounded cards */
.page-kollegium .page-body .row img { aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 14px 34px rgba(4,34,60,.14); }

/* "Mentor" style notice pages */
.page-mentor .page-body .title1 { font-size: 26px; }
.page-mentor .page-body .container { max-width: 700px; background: #fff; border: 1px solid #e3e8ef; border-radius: 18px; box-shadow: 0 14px 40px rgba(4,34,60,.08); margin: 10px auto; }

/* news article body under the shared hero */
.news-article .com-content-article__body.container { padding-top: 34px; }
.news-article__cover { margin-top: 34px !important; }

/* ---------------- hub pages (clickable menu sections) ---------------- */
.hub-lead { font-size: 18px; color: #4a5868; max-width: 760px; margin: 0 0 26px; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; list-style: none; padding: 0 !important; margin: 0; }
.hub li { margin: 0 !important; }
.hub__item { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid #e3e8ef; color: #04223c !important; text-decoration: none !important; font: 600 16px/1.35 Montserrat, sans-serif; box-shadow: 0 2px 10px rgba(4,34,60,.05); transition: transform .25s, box-shadow .25s, border-color .25s; }
.hub__item:hover { transform: translateY(-3px); border-color: #b8d2ff; box-shadow: 0 16px 36px rgba(4,34,60,.12); }
.hub__icon { flex: 0 0 42px; height: 42px; border-radius: 12px; background: #eaf2fc; color: #1f68de; display: inline-flex; align-items: center; justify-content: center; }
.hub li { min-width: 0; }
.hub__item { min-width: 0; }
.hub__label { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.hub__meta { flex: 0 0 auto; margin-left: auto; font-size: 11px; font-weight: 700; color: #b3261e; background: #fdecea; padding: 2px 7px; border-radius: 5px; }

/* ---------------- home: quick links ---------------- */
.quick { max-width: 1240px; margin: -46px auto 0; padding: 0 20px; position: relative; z-index: 5; }
.quick__list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; list-style: none; margin: 0; padding: 12px; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(4,34,60,.16); }
.quick__list a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; border-radius: 14px; color: #04223c !important; text-decoration: none !important; font: 600 13.5px/1.25 Montserrat, sans-serif; text-align: center; transition: background .2s, transform .2s; }
.quick__list a i { width: 46px; height: 46px; border-radius: 14px; background: #eaf2fc; color: #1f68de; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; transition: background .2s, color .2s; }
.quick__list a:hover { background: #f3f8fe; transform: translateY(-2px); }
.quick__list a:hover i { background: #1f68de; color: #fff; }
@media (max-width: 1000px) { .quick__list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .quick { margin-top: -30px; } .quick__list { grid-template-columns: repeat(2, 1fr); } .quick__list a { flex-direction: row; justify-content: flex-start; text-align: left; } }

/* ---------------- home: smaller feature boxes ---------------- */
.page-home .mainsite-box a { min-height: 0 !important; height: 210px; padding: 1.4rem; display: flex; align-items: center; justify-content: center; }
.page-home .mainsite-box a h2 { margin: 0 !important; font-size: 18px; }
.page-home .mainsite-box-container { max-width: 1240px; margin: 0 auto; }
@media (max-width: 767px) { .page-home .mainsite-box a { height: 140px; } }

/* ---------------- "Hogyan tovább" parallax ---------------- */
#mod-custom98 { background-image: url("/images/tovabb.jpg"); background-size: cover; background-position: center center; background-repeat: no-repeat; position: relative; isolation: isolate; padding: 70px 20px; }
#mod-custom98::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,34,60,.55), rgba(4,34,60,.35)); }
#mod-custom98 .title2 { color: #fff !important; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
@media (hover: hover) and (pointer: fine) { #mod-custom98 { background-attachment: fixed; } }
html.a11y-motion #mod-custom98 { background-attachment: scroll; }

/* ---------------- gallery filters ---------------- */
.gf { max-width: 1240px; margin: 0 auto 26px; padding: 14px; background: #fff; border: 1px solid #e3e8ef; border-radius: 16px; box-shadow: 0 10px 30px rgba(4,34,60,.07); }
.gf__search { display: flex; align-items: center; gap: 10px; border: 2px solid #e3e8ef; border-radius: 999px; padding: 0 16px; background: #fff; }
.gf__search:focus-within { border-color: #1f68de; }
.gf__search i { color: #1f68de; }
.gf__search input { flex: 1; border: 0; outline: none; padding: 12px 0; font: 16px Montserrat, sans-serif; min-width: 0; background: transparent; }
.gf__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gf__chips button { border: 1px solid #e3e8ef; background: #f6f8fb; color: #04223c; border-radius: 999px; padding: 7px 13px; font: 600 13px Montserrat, sans-serif; cursor: pointer; }
.gf__chips button:hover { background: #eaf2fc; border-color: #b8d2ff; }
.gf__chips button[aria-pressed="true"] { background: #04223c; border-color: #04223c; color: #fff; }
.gf__chips button small { opacity: .7; font-weight: 500; }
.gf__chips--type { border-top: 1px dashed #e3e8ef; padding-top: 12px; }
.gf__count { margin: 10px 4px 0; color: #5f6b78; font-size: 13.5px; }
.gf__empty { text-align: center; padding: 30px; color: #5f6b78; border: 2px dashed #e3e8ef; border-radius: 16px; max-width: 900px; margin: 0 auto; }
.sg-item[hidden], .card[hidden] { display: none !important; }
.cards--archive { max-width: 1240px; margin: 0 auto; }
.cards__more { text-align: center; margin-top: 30px; }
.page-korabbi-informaciok .cards { padding: 0 4px; }
@media (max-width: 640px) { .cards--archive { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; margin: 0; padding: 0; } }

/* ---------------- contact page ---------------- */
.contact-page { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.ccard { background: #fff; border: 1px solid #e3e8ef; border-radius: 16px; padding: 22px; box-shadow: 0 2px 10px rgba(4,34,60,.05); }
.ccard > i { width: 46px; height: 46px; border-radius: 14px; background: #eaf2fc; color: #1f68de; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.ccard h2 { font: 700 18px Montserrat, sans-serif !important; margin: 14px 0 6px !important; }
.ccard p { margin: 0 0 6px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-form-wrap, .staff { background: #fff; border: 1px solid #e3e8ef; border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(4,34,60,.06); }
.contact-form-wrap h2, .staff h2 { margin-top: 0 !important; }
.staff__list { list-style: none; padding: 0 !important; margin: 0; }
.staff__list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid #eef2f6; margin: 0 !important; }
.staff__list li:last-child { border-bottom: 0; }
.staff__list strong { color: #04223c; font-size: 16px; }
.staff__list span { color: #5f6b78; font-size: 13.5px; margin-bottom: 4px; }
.staff__list a { font-size: 14.5px; }
.contact-map { display: block; margin: 34px 0 10px; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(4,34,60,.12); }
.contact-map img { width: 100%; height: 260px; object-fit: cover; border-radius: 0 !important; transition: transform .6s; }
.contact-map:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .contact-cards, .contact-grid { grid-template-columns: 1fr; } }
/* form */
/* contact form: compact labels, equal-height fields, clean select and consent line */
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .cf-grid { grid-template-columns: 1fr; } }
.contact-form .cf-row { margin: 0 0 16px; }
.contact-form .cf-row > label { display: block; margin: 0 0 7px !important; font: 700 14px/1.3 Montserrat, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: #04223c !important; }
.contact-form .cf-field i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #1f68de; pointer-events: none; z-index: 1; }
.contact-form .cf-field:has(textarea) i { top: 18px; transform: none; }
.contact-form .cf-field input, .contact-form .cf-field select, .contact-form .cf-field textarea { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 0 14px 0 42px; height: 50px; font: 400 16px/1.4 Montserrat, sans-serif; color: #04223c; background: #f7f9fc; border: 1px solid #dbe3ec !important; border-radius: 10px !important; box-shadow: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.contact-form .cf-field textarea { height: auto; min-height: 170px; padding: 13px 14px 13px 42px; resize: vertical; }
.contact-form .cf-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background: #f7f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f68de' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.contact-form .cf-field input:hover, .contact-form .cf-field select:hover, .contact-form .cf-field textarea:hover { border-color: #b9c8da !important; }
.contact-form .cf-field input:focus, .contact-form .cf-field select:focus, .contact-form .cf-field textarea:focus { outline: none; background-color: #fff; border-color: #1f68de !important; box-shadow: 0 0 0 4px rgba(31,104,222,.14); }
.contact-form .cf-consent { display: grid !important; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 4px 0 0 !important; padding: 14px 16px; background: #f4f7fb; border-radius: 10px; font: 500 14px/1.55 Montserrat, sans-serif !important; color: #4a5868 !important; cursor: pointer; }
.contact-form .cf-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #1f68de; cursor: pointer; }
.contact-form .cf-consent a { color: #1f68de; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.contact-form .cf-submit { margin: 0; padding: 16px 34px; font-size: 16px; }
.contact-form .cf-note { margin: 0; font-size: 13px; line-height: 1.55; color: #6a7684; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-submit { display: inline-flex; align-items: center; gap: 10px; }
.cf-submit[disabled] { opacity: .6; cursor: wait; }
.cf-status { margin-top: 14px; font-weight: 600; }
.cf-status.is-ok { color: #1f8a4c; background: #e6f6ec; border: 1px solid #bfe5cc; padding: 12px 14px; border-radius: 10px; }
.cf-status.is-err { color: #8a1f17; background: #fdecea; border: 1px solid #f5c6c1; padding: 12px 14px; border-radius: 10px; }

/* ---------------- alert bar ---------------- */
.alertbar { color: #fff; font: 600 14.5px/1.4 Montserrat, sans-serif; }
.alertbar--info { background: #1563ab; }
.alertbar--warning { background: #f0b429; color: #1d2733; }
.alertbar--danger { background: #c8352e; }
.alertbar__inner { max-width: 1320px; margin: 0 auto; padding: 10px 56px 10px 20px; display: flex; align-items: center; gap: 12px; position: relative; }
.alertbar p { margin: 0; }
.alertbar a { color: inherit !important; text-decoration: underline !important; margin-left: 6px; white-space: nowrap; }
.alertbar__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: inherit; cursor: pointer; }
.alertbar[hidden] { display: none; }

/* missing document entries */
.doc.is-missing .doc__box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed #d5dde7; border-radius: 12px; background: #fafbfc; opacity: .8; }
.doc__note { display: none; }
/* doclib under the shared hero: intro heading moved to the hero */
.doclib { padding-top: 0; }
.doclib__intro { margin-bottom: 18px; }

html.a11y-contrast .page-hero::before, html.a11y-contrast .page-hero::after { display: none; }
html.a11y-contrast .quick__list a i, html.a11y-contrast .hub__icon, html.a11y-contrast .ccard > i { background: #000 !important; color: #ffeb3b !important; border: 1px solid #ffeb3b; }
@media print { .page-hero { background: none; color: #000; } .page-hero::before, .page-hero::after, .crumbs, .quick, .alertbar, .gf { display: none; } .page-hero__title { color: #000 !important; } }

/* highlighted notice inside long legal pages */
.notice-box { max-width: 960px; margin: 0 auto 34px; padding: 22px 26px; border-radius: 16px; background: #eaf2fc; border: 1px solid #c7dbf3; }
.notice-box h2 { margin-top: 0 !important; font-size: 22px !important; }
.notice-box ul { margin-bottom: .6em; }
.page-body .documents p, .page-body .documents a { width: auto !important; height: auto !important; min-height: 0 !important; float: none !important; }

/* ==========================================================================
   Home: hero (cinematic, full-bleed) + bento grid
   ========================================================================== */
.page-home #jf-wrapper { background: #f4f6f9; }
.hero-a { position: relative; isolation: isolate; min-height: clamp(560px, 78vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-a__bg { position: absolute; inset: -6% 0 0; z-index: -2; background: url("/images/header.jpg") center 30% / cover no-repeat; will-change: transform; }
.hero-a::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4,34,60,.95) 0%, rgba(4,34,60,.8) 38%, rgba(4,34,60,.2) 75%), linear-gradient(0deg, rgba(4,34,60,.6), transparent 45%); }
.hero-a__inner { width: 100%; max-width: 1320px; margin: 0 auto; padding: 80px 32px 120px; }
.hero-a .eyebrow { display: inline-flex; gap: 10px; align-items: center; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.13); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 13px Montserrat, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.hero-a .eyebrow i { color: #f0b429; }
.hero-a h1 { font: 700 clamp(42px, 6.4vw, 82px)/1.02 Merriweather, Georgia, serif; margin: 22px 0 18px; max-width: 800px; letter-spacing: -1px; color: #fff !important; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.hero-a h1 em { font-style: normal; background: linear-gradient(90deg, #8cc4ff, #fff 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-a__lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; max-width: 580px; color: #d9e6f4; margin: 0 0 34px; }
.hero-a__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.hbtn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font: 700 15px Montserrat, sans-serif; text-decoration: none !important; transition: transform .25s, box-shadow .25s, background .25s; }
.hbtn--primary { background: #fff; color: #04223c !important; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.hbtn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.hbtn--ghost { color: #fff !important; border: 2px solid rgba(255,255,255,.6); }
.hbtn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-a__cards { position: absolute; right: max(32px, calc((100vw - 1320px) / 2 + 32px)); bottom: 70px; display: grid; gap: 14px; width: 350px; }
.glass { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 20px; color: #fff !important; text-decoration: none !important; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); transition: background .25s, transform .25s; }
.glass:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.glass > i { flex: 0 0 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.glass strong { display: block; font-size: 16px; }
.glass span span { font-size: 13.5px; color: #d9e6f4; }
@media (max-width: 1000px) {
  .hero-a { align-items: flex-end; }
  .hero-a__inner { padding: 70px 24px 30px; }
  .hero-a__cards { position: static; width: auto; margin: 0 24px 30px; grid-template-columns: 1fr 1fr; }
  .hero-a { flex-direction: column; align-items: stretch; justify-content: flex-end; }
}
@media (max-width: 600px) { .hero-a__cards { grid-template-columns: 1fr; } .hbtn { width: 100%; justify-content: center; } }

/* bento grid under the hero */
.bento { max-width: 1320px; margin: 0 auto; padding: 40px 24px 20px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 230px 230px auto; gap: 18px; }
.bt { position: relative; border-radius: 26px; overflow: hidden; isolation: isolate; color: #fff !important; text-decoration: none !important; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; min-height: 0; }
a.bt { background: #1563ab; box-shadow: 0 14px 34px rgba(4,34,60,.14); transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s; }
a.bt::before { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(.22,.61,.36,1); }
a.bt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4,34,60,.92) 0%, rgba(4,34,60,.35) 55%, rgba(4,34,60,.1) 100%); }
a.bt:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(4,34,60,.22); }
a.bt:hover::before { transform: scale(1.06); }
.bt--bg1::before { background-image: url("/images/bg1.jpg"); }
.bt--bg2::before { background-image: url("/images/bg2.jpg"); }
.bt--bg3::before { background-image: url("/images/bg3.jpg"); }
.bt--bg4::before { background-image: url("/images/bg4.jpg"); }
.bt--big { grid-column: 1 / span 2; grid-row: 1 / span 2; padding: 36px; }
.bt--bg2 { grid-column: 3; grid-row: 1; }
.bt--bg3 { grid-column: 4; grid-row: 1; }
.bt--bg4 { grid-column: 3; grid-row: 2; }
.bt--cal { grid-column: 4; grid-row: 2 / span 2; }
.bt--events { grid-column: 1 / span 3; grid-row: 3; }
.bt__kicker { font: 700 12px Montserrat, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #f0b429; }
.bt__title { font: 700 24px/1.15 Merriweather, Georgia, serif; margin-top: 6px; }
.bt--big .bt__title { font-size: clamp(34px, 3.4vw, 48px); }
.bt__text { margin-top: 10px; max-width: 420px; color: #d9e6f4; font-size: 16px; }
.bt__go { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: inline-flex; align-items: center; justify-content: center; transition: background .25s, transform .25s; }
a.bt:hover .bt__go { background: #fff; color: #04223c; transform: rotate(-45deg); }
/* calendar + events tiles */
.bt--cal, .bt--events { background: #fff; color: #04223c !important; border: 1px solid #e3e8ef; box-shadow: 0 10px 30px rgba(4,34,60,.07); justify-content: flex-start; }
.bt--events { background: linear-gradient(145deg, #eaf2fc, #fff 70%); }
.bt__h { margin: 0 0 14px !important; font: 700 18px Montserrat, sans-serif !important; color: #04223c !important; display: flex; align-items: center; gap: 8px; }
.bt__more { margin-top: auto; padding-top: 12px; font: 700 14px Montserrat, sans-serif; color: #1563ab !important; text-decoration: none !important; }
.bt__more:hover { text-decoration: underline !important; }
.upcoming ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.upcoming li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid #e3e8ef; border-radius: 16px; padding: 12px 14px; }
.upcoming__date { flex: 0 0 56px; height: 60px; border-radius: 12px; background: #04223c; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.upcoming__date b { font: 700 22px Merriweather, serif; }
.upcoming__date small { font: 700 11px Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .5px; opacity: .85; }
.upcoming__t strong { display: block; font-size: 15px; line-height: 1.3; }
.upcoming__t span { font-size: 13px; color: #5f6b78; }
.upcoming__empty { margin: 0; color: #5f6b78; }
.minical__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.minical__bar strong { font: 700 15px Montserrat, sans-serif; text-transform: capitalize; }
.minical__bar button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e3e8ef; background: #fff; cursor: pointer; color: #04223c; }
.minical__bar button:hover { background: #eaf2fc; }
.minical table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font: 500 13px Montserrat, sans-serif; }
.minical th { font-size: 11px; color: #5f6b78; font-weight: 700; padding: 4px 0; }
.minical td { padding: 2px; }
.minical td span { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; position: relative; }
.minical td.out span { color: #b3bcc6; }
.minical td.today span { background: #04223c; color: #fff; font-weight: 700; }
.minical td.has span { background: #eaf2fc; color: #1563ab; font-weight: 700; cursor: help; }
.minical td.has span::after { content: ""; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--dot, #1f68de); }
.minical td.today.has span { background: #1f68de; color: #fff; }
.minical__list { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed #e3e8ef; font-size: 13.5px; }
.minical__list li { margin-bottom: 6px; padding-left: 12px; border-left: 3px solid #1f68de; line-height: 1.35; }
.minical__list li small { display: block; color: #5f6b78; }
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bt--big { grid-column: 1 / span 2; grid-row: auto; min-height: 300px; }
  .bt--bg2, .bt--bg3, .bt--bg4, .bt--cal, .bt--events { grid-column: auto; grid-row: auto; min-height: 200px; }
  .bt--events { grid-column: 1 / span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; padding: 24px 16px 10px; gap: 14px; }
  .bt--big, .bt--events { grid-column: auto; }
  .bt--big { min-height: 260px; padding: 26px; }
  .bt--bg2, .bt--bg3, .bt--bg4 { min-height: 150px; }
}
html.a11y-contrast .hero-a::before, html.a11y-contrast .hero-a__bg, html.a11y-contrast a.bt::before, html.a11y-contrast a.bt::after { display: none; }
html.a11y-contrast .hero-a h1 em { color: #ffeb3b; background: none; }
.hero-a h1 { text-transform: none !important; }
.hero-a h1 em { -webkit-text-fill-color: transparent; }
html.a11y-contrast .hero-a h1 em { -webkit-text-fill-color: #ffeb3b; }

/* filters: no outer box, just the search field and chips */
.gf, .doclib__tools { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; position: static !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.gf { margin-bottom: 28px; }
.doclib__tools { margin-bottom: 30px; }
.gf__chips--type { border-top: 0; padding-top: 0; }

/* data tables (Csengetési rend, Tanáraink, …): centred card with a clear header row */
.droptables_table { text-align: center; margin: 10px 0 34px; }
.droptablesresponsive { display: inline-block; max-width: 100%; text-align: left; vertical-align: top; border: 0 !important; border-radius: 16px !important; box-shadow: 0 10px 34px rgba(4,34,60,.10); background: #fff; }
.page-body .droptablestable table { width: auto !important; min-width: 320px; border-collapse: collapse !important; font: 500 15px/1.45 Montserrat, sans-serif !important; }
.page-body .droptablestable table thead th { background: #04223c !important; color: #fff !important; font-weight: 700 !important; font-family: Montserrat, sans-serif !important; padding: 13px 18px !important; border: 0 !important; text-align: left !important; white-space: nowrap; }
.page-body .droptablestable table td { padding: 11px 18px !important; border: 0 !important; border-bottom: 1px solid #edf1f5 !important; font-family: Montserrat, sans-serif !important; color: #24313f !important; vertical-align: top; height: auto !important; }
.page-body .droptablestable table tbody tr:nth-child(even) td { background: #f7f9fc !important; }
.page-body .droptablestable table tbody tr:hover td { background: #eaf2fc !important; }
.page-body .droptablestable table td:first-child { font-weight: 600; color: #04223c !important; }
.page-body .droptablestable table col { width: auto !important; }
.page-csengetesi-rend .droptablestable table td, .page-csengetesi-rend .droptablestable table th { text-align: center !important; font-variant-numeric: tabular-nums; min-width: 110px; }
.page-csengetesi-rend .droptablestable table td:first-child, .page-csengetesi-rend .droptablestable table th:first-child { text-align: left !important; }
.page-tanaraink .droptablesresponsive { display: block; }
.page-tanaraink .droptablestable table { width: 100% !important; }
.page-tanaraink .droptablestable table td a[data-xm] { word-break: break-all; }
@media (max-width: 760px) {
  /* stack wide tables into cards on phones */
  .page-tanaraink .droptablestable table thead { display: none; }
  .page-tanaraink .droptablestable table, .page-tanaraink .droptablestable table tbody, .page-tanaraink .droptablestable table tr, .page-tanaraink .droptablestable table td { display: block; width: 100% !important; }
  .page-tanaraink .droptablestable table tr { border-bottom: 8px solid #f4f6f9; padding: 6px 0; }
  .page-tanaraink .droptablestable table td { border: 0 !important; padding: 4px 16px !important; }
  .page-tanaraink .droptablestable table td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #5f6b78; }
  .page-tanaraink .droptablestable table td:empty { display: none; }
}
.table-filter { max-width: 520px; margin: 0 auto 18px; }
.table-filter__count { text-align: center; color: #5f6b78; font-size: 13.5px; margin: -8px 0 16px; }

/* typography: avoid single-word last lines (site.js also glues the last two words) */
p, li, figcaption, td, .card__title, .doc__title, .bt__text, .hub__label { text-wrap: pretty; }
h1, h2, h3, h4, .page-hero__title, .bt__title { text-wrap: balance; }

/* ===== Naptár és tanévrend ===== */
.sc-cal { max-width: 1180px; }
.cal-tools { margin-bottom: 22px; }
.cal-tools__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cal-tools__search { flex: 1 1 320px; }
.cal-view { display: inline-flex; background: #eef2f7; border-radius: 999px; padding: 4px; }
.cal-view button { border: 0; background: none; border-radius: 999px; padding: 9px 16px; font: 600 14px Montserrat, sans-serif; color: #04223c; cursor: pointer; }
.cal-view button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(4,34,60,.12); color: #1f68de; }
.cal-sub { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 14px; font-size: 14px; }
.cal-sub__label { color: #5f6b78; font-weight: 600; }
.cal-sub a { color: #1f68de; font-weight: 600; text-decoration: none; }
.cal-sub a:hover { text-decoration: underline; }
.cal-sub a i { margin-right: 4px; }
.sc-cal__day { min-height: 104px; }
.sc-cal__day--we:not(.sc-cal__day--out) { background: #fbfcfe; }
.sc-cal__day--today .sc-cal__num { background: #1f68de; color: #fff; border-radius: 999px; display: inline-block; min-width: 24px; text-align: center; padding: 1px 6px; }
button.sc-cal__ev { width: 100%; text-align: left; border: 0; border-left: 4px solid #1f68de; font: 500 11.5px/1.3 Montserrat, sans-serif; cursor: pointer; color: #04223c; padding: 3px 5px; }
button.sc-cal__ev:hover, button.sc-cal__ev:focus-visible { background: #e2ecfb; }
.cal-month-list h3, .cal-group { font: 700 17px Merriweather, serif; color: #04223c; margin: 28px 0 10px; text-transform: none; }
.cal-h { font: 700 22px Merriweather, serif; color: #04223c; margin: 6px 0 4px; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #e3e8ef; border-left: 5px solid var(--c); border-radius: 14px; padding: 12px 14px; }
.cal-item.is-past { opacity: .72; }
.cal-item__date { flex: 0 0 52px; text-align: center; background: #f3f6fa; border-radius: 10px; padding: 6px 0; color: #04223c; line-height: 1.1; }
.cal-item__date b { display: block; font-size: 20px; }
.cal-item__date small { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5f6b78; }
.cal-item__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cal-item__t > button { all: unset; cursor: pointer; font: 700 16px/1.35 Montserrat, sans-serif; color: #04223c; }
.cal-item__t > button:hover { color: #1f68de; text-decoration: underline; }
.cal-item__t > button:focus-visible { outline: 3px solid #1f68de; outline-offset: 2px; border-radius: 4px; }
.cal-item__meta { font-size: 13.5px; color: #5f6b78; }
.cal-item__desc { font-size: 14px; color: #33414f; }
.cal-tag { font-weight: 600; color: var(--c); }
.cal-item__add { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #eef4ff; color: #1f68de; font-size: 18px; }
.cal-item__add:hover { background: #1f68de; color: #fff; }
.cal-past { text-align: center; margin: 26px 0 6px; }
.hbtn--soft { background: #eef4ff; color: #1f68de !important; padding: 12px 20px; font-size: 14px; border: 0; cursor: pointer; }
.hbtn--soft:hover { background: #dce8fd; }
.cal-link { all: unset; cursor: pointer; color: #1f68de; font-weight: 600; text-decoration: underline; }
.cal-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: 20px; padding: 0; max-width: min(520px, calc(100vw - 32px)); width: 100%; box-shadow: 0 30px 80px rgba(4,34,60,.35); animation: dlgIn .25s ease-out; }
.cal-dlg::backdrop { background: rgba(4,34,60,.45); }
.cal-dlg__in { position: relative; padding: 30px 28px 26px; }
.cal-dlg__bar { position: absolute; inset: 0 0 auto 0; height: 6px; }
.cal-dlg__cat { font: 700 12px Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.cal-dlg h2 { font: 700 22px/1.3 Merriweather, serif; color: #04223c; margin: 0 40px 12px 0; }
.cal-dlg__when { color: #33414f; font-weight: 600; line-height: 1.7; }
.cal-dlg__when i { color: #1f68de; width: 18px; }
.cal-dlg__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cal-dlg .hbtn { padding: 12px 18px; font-size: 14px; }
.cal-dlg .hbtn--primary { background: #1f68de; color: #fff !important; box-shadow: none; border: 0; cursor: pointer; }
.cal-dlg__x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f0f3f7; font-size: 22px; cursor: pointer; color: #04223c; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .sc-cal { padding: 0 16px; }
  .sc-cal .sc-cal__grid { display: none; }
  .cal-view { display: none; }
  .cal-item { padding: 10px; gap: 10px; }
  .cal-item__add { width: 36px; height: 36px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cal-dlg { animation: none; } }

.is-hidden[hidden], [hidden].mod-custom { display: none !important; }

/* ---------------- filters: plain text tabs (gallery, documents, calendar) ---------------- */
.ftop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.gf__search, .doclib__search { flex: 0 1 340px; display: flex; align-items: center; gap: 9px; border: 1px solid #cfd8e3 !important; border-radius: 6px !important; padding: 0 12px !important; background: #fff; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
.gf__search:focus-within, .doclib__search:focus-within { border-color: #04223c !important; box-shadow: 0 0 0 3px rgba(31,104,222,.14) !important; }
.gf__search i, .doclib__search i { color: #8592a0 !important; font-size: 14px; }
.gf__search input, .doclib__search input { padding: 10px 0 !important; font: 15px Montserrat, sans-serif !important; }
.ftop .gf__count, .ftop .doclib__count { margin: 0 0 0 auto; color: #7a8693; font-size: 13px; }
.ftabs { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 0; padding: 0; border-bottom: 1px solid #dfe5ec; }
.ftabs button, .doclib__chips.ftabs button { position: relative; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 11px 0 12px !important; margin: 0; font: 600 14.5px Montserrat, sans-serif !important; color: #5f6b78 !important; cursor: pointer; white-space: nowrap; transition: color .15s; }
.ftabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--tab, #1f68de); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.ftabs button:hover { color: #04223c !important; }
.ftabs button:hover::after { transform: scaleX(.35); }
.ftabs button[aria-pressed="true"] { color: #04223c !important; font-weight: 700 !important; }
.ftabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.ftabs button:focus-visible { outline: 2px solid #1f68de; outline-offset: 2px; }
.ftabs button i { margin-right: 6px; color: #8592a0; }
.ftabs--sub { border-bottom: 0; gap: 0 20px; margin-top: 4px; }
.ftabs--sub button { font-size: 13.5px !important; padding: 8px 0 9px !important; }
.ftabs--sub button::after { height: 2px; bottom: 2px; }
.gf__chips.ftabs, .doclib__chips.ftabs { margin-top: 0; }
@media (max-width: 767px) {
  .ftabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 0 22px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 28px; }
  .ftabs::-webkit-scrollbar { display: none; }
  .gf__search, .doclib__search { flex: 1 1 100%; }
  .ftop .gf__count, .ftop .doclib__count { margin-left: 0; }
}
/* calendar: view switch as tabs, add-to-calendar menu */
.cal-tools .ftop { margin-bottom: 10px; }
.cal-view { display: inline-flex; gap: 18px; background: none !important; padding: 0 !important; border-radius: 0 !important; }
.cal-view button { background: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 8px 0 !important; color: #5f6b78 !important; border-bottom: 2px solid transparent !important; font: 600 14px Montserrat, sans-serif !important; }
.cal-view button:hover { color: #04223c !important; }
.cal-view button[aria-pressed="true"] { color: #04223c !important; border-bottom-color: #04223c !important; }
.cal-view button i { margin-right: 4px; }
.cal-add { position: relative; margin-left: auto; }
.cal-add summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #cfd8e3; border-radius: 6px; font: 600 14px Montserrat, sans-serif; color: #04223c; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.cal-add summary::-webkit-details-marker { display: none; }
.cal-add summary::after { content: "\f107"; font: 900 12px "Font Awesome 5 Free"; margin-left: 2px; transition: transform .2s; }
.cal-add[open] summary::after { transform: rotate(180deg); }
.cal-add summary:hover, .cal-add[open] summary { border-color: #04223c; }
.cal-add__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 300px; background: #fff; border: 1px solid #dfe5ec; border-radius: 8px; box-shadow: 0 12px 30px rgba(4,34,60,.14); padding: 6px; }
.cal-add__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 5px; color: #04223c !important; font: 600 14px Montserrat, sans-serif; text-decoration: none !important; }
.cal-add__menu a:hover { background: #f2f5f9; }
.cal-add__menu i { width: 16px; text-align: center; color: #5f6b78; }
.cal-add__menu small { color: #7a8693; font-weight: 500; white-space: nowrap; margin-left: auto; padding-left: 10px; }
@media (max-width: 767px) { .cal-view { display: none !important; } .cal-add { margin-left: 0; } .cal-add__menu { left: 0; right: auto; } }
