/* Széchenyi logos — split to bottom-left (SzTP) and bottom-right (S2020) corners */

        .hernad-szechenyi-logo-left,
        .hernad-szechenyi-logo-right {
            position: fixed !important;
            bottom: 0 !important;
            z-index: 99990 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 10px 14px 12px !important;
            background: rgba(248, 250, 252, 0.97) !important;
            box-shadow: 0 -2px 18px rgba(15,23,42,.14) !important;
            backdrop-filter: blur(10px) !important;
            transition: opacity .18s ease, box-shadow .18s ease !important;
            text-decoration: none !important;
            margin: 0 !important;
        }

        .hernad-szechenyi-logo-left {
            left: 0 !important;
            border-top: 1px solid rgba(15,23,42,.10) !important;
            border-right: 1px solid rgba(15,23,42,.10) !important;
            border-radius: 0 16px 0 0 !important;
        }

        .hernad-szechenyi-logo-right {
            right: 0 !important;
            border-top: 1px solid rgba(15,23,42,.10) !important;
            border-left: 1px solid rgba(15,23,42,.10) !important;
            border-radius: 16px 0 0 0 !important;
        }

        .hernad-szechenyi-logo-left:hover,
        .hernad-szechenyi-logo-right:hover {
            opacity: .8 !important;
            box-shadow: 0 -4px 28px rgba(15,23,42,.22) !important;
        }

        /* SzTP: wide (4.7:1) — fix width, height scales */
        .hernad-szechenyi-logo-left img {
            width: 340px !important;
            height: auto !important;
            display: block !important;
        }

        /* S2020 badge: near-square (1.43:1) — fix height */
        .hernad-szechenyi-logo-right img {
            height: 160px !important;
            width: auto !important;
            display: block !important;
        }

        @media (max-width: 900px) {
            .hernad-szechenyi-logo-left img  { width: 260px !important; }
            .hernad-szechenyi-logo-right img { height: 120px !important; }
        }

        @media (max-width: 560px) {
            .hernad-szechenyi-logo-left,
            .hernad-szechenyi-logo-right { padding: 8px 10px 10px !important; }
            .hernad-szechenyi-logo-left img  { width: 180px !important; }
            .hernad-szechenyi-logo-right img { height: 80px !important; }
        }
        .hernad-sztp-footer {
            background: #f6f7f9;
            border-top: 1px solid rgba(15,23,42,.08);
            border-bottom: 1px solid rgba(15,23,42,.08);
            padding: 34px 16px;
            margin-top: 36px;
        }

        .hernad-sztp-footer-inner {
            max-width: 1180px;
            margin: 0 auto;
        }

        .hernad-sztp-footer-head {
            text-align: center;
            margin-bottom: 22px;
        }

        .hernad-sztp-footer-head p {
            margin: 0 0 6px;
            color: #326487;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .hernad-sztp-footer-head h2 {
            margin: 0;
            color: #14213d;
            font-size: clamp(24px, 3vw, 34px);
            font-weight: 850;
        }

        .hernad-sztp-footer-head h2:after {
            content: "";
            display: block;
            width: 64px;
            height: 4px;
            background: #326487;
            border-radius: 999px;
            margin: 12px auto 0;
        }

        .hernad-sztp-footer-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }

        .hernad-sztp-footer-card {
            display: flex;
            flex-direction: column;
            min-height: 290px;
            padding: 16px;
            background: #fff;
            border: 1px solid rgba(15,23,42,.1);
            border-radius: 18px;
            box-shadow: 0 10px 24px rgba(15,23,42,.07);
            color: #1f2937;
            text-decoration: none;
            transition: .18s ease;
        }

        .hernad-sztp-footer-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 34px rgba(15,23,42,.12);
            border-color: rgba(47,107,63,.35);
            text-decoration: none;
        }

        .hernad-sztp-footer-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 82px;
            margin-bottom: 14px;
            padding: 10px;
            background: #f8fafc;
            border: 1px solid rgba(15,23,42,.07);
            border-radius: 14px;
        }

        .hernad-sztp-footer-logo img {
            max-width: 100%;
            max-height: 62px;
            width: auto;
            height: auto;
            object-fit: contain;
        }

        .hernad-sztp-footer-eu {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 46px;
            border-radius: 14px;
            background: #edf2f5;
            color: #326487;
            font-weight: 900;
        }

        .hernad-sztp-footer-title {
            color: #14213d;
            font-size: 15.5px;
            font-weight: 850;
            line-height: 1.25;
            margin-bottom: 8px;
        }

        .hernad-sztp-footer-code {
            color: #326487;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.35;
            margin-bottom: 10px;
            word-break: break-word;
        }

        .hernad-sztp-footer-text {
            color: #475569;
            font-size: 13px;
            line-height: 1.45;
            margin-bottom: 14px;
        }

        .hernad-sztp-footer-more {
            margin-top: auto;
            color: #326487;
            font-size: 13px;
            font-weight: 850;
        }

        @media (max-width: 1024px) {
            .hernad-sztp-footer-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 640px) {
            .hernad-sztp-footer-grid {
                grid-template-columns: 1fr;
            }

            .hernad-sztp-footer-card {
                min-height: 0;
            }
        }
    

        body.hernad-wells-page {
            background: #f5f7f7;
        }

        body.hernad-wells-page .site-main,
        body.hernad-wells-page .content-bg,
        body.hernad-wells-page .entry,
        body.hernad-wells-page .entry-content-wrap {
            background: transparent !important;
        }

        body.hernad-wells-page .entry-content-wrap {
            max-width: 1160px;
            margin-left: auto;
            margin-right: auto;
            padding: 34px 18px 72px;
        }

        body.hernad-wells-page .entry-title {
            text-align: center;
            color: #1a2329;
            font-weight: 800;
            letter-spacing: -0.035em;
            font-size: clamp(2.05rem, 4vw, 3.45rem);
            line-height: 1.08;
            margin: 22px auto 16px;
            position: relative;
        }

        body.hernad-wells-page .entry-title::after {
            content: "";
            display: block;
            width: 86px;
            height: 4px;
            margin: 18px auto 0;
            border-radius: 999px;
            background: #3275a4;
        }

        body.hernad-wells-page .entry-content {
            max-width: 1080px;
            margin: 0 auto;
            color: #334155;
            font-size: 17px;
            line-height: 1.7;
        }

        .hernad-wells-shell {
            margin-top: 34px;
        }

        .hernad-wells-card {
            background:
                linear-gradient(135deg, rgba(47, 125, 85, 0.08), rgba(255,255,255,0) 34%),
                #ffffff;
            border: 1px solid rgba(47, 125, 85, 0.22);
            border-radius: 22px;
            box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
            padding: clamp(24px, 3vw, 40px);
            overflow: hidden;
        }

        .hernad-wells-card > *:first-child {
            margin-top: 0 !important;
        }

        .hernad-wells-card > *:last-child {
            margin-bottom: 0 !important;
        }

        .hernad-wells-card p:empty,
        .hernad-wells-card div:empty {
            display: none !important;
        }

        .hernad-wells-card p {
            max-width: 900px;
            margin: 0 auto 18px;
            color: #475569;
            font-size: 17px;
            line-height: 1.72;
            text-align: center;
        }

        .hernad-wells-card p:first-of-type {
            color: #1a2329;
            font-size: clamp(1.18rem, 2vw, 1.48rem);
            font-weight: 800;
            line-height: 1.35;
        }

        .hernad-wells-card strong,
        .hernad-wells-card b {
            color: #1a2329;
            font-weight: 800;
        }

        .hernad-wells-card figure,
        .hernad-wells-card .wp-block-image {
            margin: 26px auto;
            text-align: center;
        }

        .hernad-wells-card img {
            display: inline-block;
            max-width: min(100%, 920px);
            height: auto;
            margin: 10px auto;
            border-radius: 18px;
            border: 1px solid #e4e7ea;
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
            background: #ffffff;
        }

        .hernad-wells-card a {
            color: #245e88;
            font-weight: 800;
            text-decoration-thickness: 2px;
            text-underline-offset: 3px;
            overflow-wrap: anywhere;
        }

        .hernad-wells-card a:hover {
            color: #1e4562;
        }

        .hernad-wells-card p a:not(:has(img)) {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 40px;
            margin: 7px 6px;
            padding: 9px 16px;
            border-radius: 999px;
            background: #f1f6f9;
            border: 1px solid #d7e2eb;
            color: #245e88;
            text-decoration: none;
            transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
        }

        .hernad-wells-card p a:not(:has(img)):hover {
            transform: translateY(-1px);
            background: #e8eff5;
            color: #1e4562;
        }

        .hernad-wells-card ul,
        .hernad-wells-card ol {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            margin: 30px 0 0;
            padding: 0;
        }

        .hernad-wells-card li {
            position: relative;
            margin: 0;
            padding: 16px 18px 16px 52px;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            background: #f8f9fa;
            color: #475569;
            line-height: 1.5;
            min-height: 64px;
            display: flex;
            align-items: center;
        }

        .hernad-wells-card li::before {
            content: "📄";
            position: absolute;
            left: 16px;
            top: 50%;
            width: 24px;
            height: 24px;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: #e3ebf1;
            font-size: 13px;
        }

        .hernad-wells-card li a {
            text-decoration: none;
            color: #245e88;
        }

        .hernad-wells-card li:hover {
            border-color: rgba(47, 125, 85, 0.32);
            background: #ffffff;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        }

        .hernad-wells-card a[href$=".pdf"],
        .hernad-wells-card a[href*=".pdf"] {
            color: #245e88;
        }

        @media (max-width: 760px) {
            body.hernad-wells-page .entry-content-wrap {
                padding-left: 14px;
                padding-right: 14px;
            }

            .hernad-wells-shell {
                margin-top: 26px;
            }

            .hernad-wells-card {
                border-radius: 18px;
                padding: 22px 18px;
            }

            .hernad-wells-card ul,
            .hernad-wells-card ol {
                grid-template-columns: 1fr;
            }

            .hernad-wells-card p {
                text-align: left;
            }

            .hernad-wells-card p:first-of-type {
                text-align: center;
            }

            .hernad-wells-card img {
                border-radius: 14px;
            }
        }
    

/*
 * Alapértelmezett értékek a két tényleges fejlécmagassághoz (mérve):
 * >=1025px: 131px (logósor + menüsor) — 1024px alatt a menü hamburgerré válik: 82px.
 * A pontos értéket a lenti szkript írja felül (--hernad-header-h), mert a menü
 * bizonyos szélességeknél két sorba tördelődik (1025px-en pl. 179px a fejléc).
 */
body.transparent-header:not(.home) main.wrap {
	padding-top: var(--hernad-header-h, 131px);
}

@media (max-width: 1024px) {
	body.transparent-header:not(.home) main.wrap {
		padding-top: var(--hernad-header-h, 82px);
	}
}

/*
 * A Kadence ugyanezt a helyet a heróban is fenntartaná — mivel most a burkoló
 * adja, itt kivesszük, különben kétszeres lenne a térköz azokon az oldalakon,
 * ahol a hero látszik (pl. /impresszum/).
 */
body.transparent-header:not(.home) .entry-hero .entry-hero-container-inner {
	padding-top: 0 !important;
}