/* 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.page-id-7226 .entry-title,
      body.page-id-7226 .entry-hero {
        display: none !important;
      }

      body.page-id-7226 {
        background: #f4f5f7;
      }

      body.page-id-7226 .content-area {
        margin-top: 0 !important;
        padding-top: 0 !important;
      }

      body.page-id-7226 .site-main,
      body.page-id-7226 .entry-content {
        padding-top: 0 !important;
      }

      .hernad-page {
        max-width: 1120px;
        margin: 0 auto;
        padding: 24px 18px 56px;
        color: #262f34;
      }

      .hernad-card,
      .hernad-hero-card {
        background: #ffffff;
        border: 1px solid rgba(34, 74, 45, 0.10);
        border-radius: 22px;
        box-shadow: 0 12px 30px rgba(31, 58, 38, 0.07);
        margin: 0 0 24px;
        padding: 34px;
      }

      .hernad-hero-card {
        display: grid;
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 34px;
        align-items: center;
        text-align: left;
      }

      .hernad-hero-media {
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .hernad-hero-media img {
        max-width: 180px;
        width: 100%;
        height: auto;
        border-radius: 18px;
        background: #f8fafb;
        padding: 12px;
        box-shadow: 0 8px 22px rgba(31, 58, 38, 0.08);
      }

      .hernad-kicker {
        color: #4b6d84;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        margin-bottom: 8px;
      }

      .hernad-page h1 {
        font-size: clamp(2.1rem, 4vw, 3.3rem);
        line-height: 1.08;
        margin: 0;
        font-weight: 800;
        color: #23303a;
      }

      .hernad-title-line,
      .hernad-section-line {
        width: 72px;
        height: 4px;
        border-radius: 999px;
        background: #7095b0;
      }

      .hernad-title-line {
        margin: 16px 0 18px;
      }

      .hernad-section-line {
        margin: 12px auto 26px;
      }

      .hernad-intro {
        font-size: 1.12rem;
        line-height: 1.7;
        margin: 0 0 18px;
        color: #4d5861;
      }

      .hernad-page blockquote {
        margin: 18px 0 0;
        padding: 18px 20px;
        border-left: 4px solid #7095b0;
        background: #f3f6f9;
        border-radius: 14px;
        color: #35424a;
        font-style: italic;
      }

      .hernad-page blockquote span {
        display: inline-block;
        margin-top: 8px;
        font-style: normal;
        font-weight: 700;
        color: #556875;
      }

      .hernad-page h2 {
        text-align: center;
        font-size: clamp(1.45rem, 2.4vw, 2rem);
        color: #24323c;
        line-height: 1.2;
        margin: 0;
        font-weight: 800;
      }

      .hernad-page h3 {
        margin: 0 0 6px;
        font-size: 1.02rem;
        color: #25353f;
        font-weight: 800;
      }

      .hernad-page p {
        font-size: 1rem;
        line-height: 1.72;
        margin: 0 0 14px;
        color: #475259;
      }

      .hernad-page p:last-child {
        margin-bottom: 0;
      }

      .hernad-image-wide {
        overflow: hidden;
        border-radius: 18px;
        background: #eff2f4;
      }

      .hernad-image-wide img {
        display: block;
        width: 100%;
        height: auto;
      }

      .hernad-info-grid {
        display: grid;
        gap: 18px;
      }

      .hernad-info-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .hernad-info-grid.four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .hernad-info-box {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        background: #f6f7f9;
        border: 1px solid rgba(34, 74, 45, 0.10);
        border-radius: 18px;
        padding: 18px;
        min-height: 100%;
      }

      .hernad-info-box.compact {
        display: block;
        text-align: center;
      }

      .hernad-icon {
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: #e9eff4;
        color: #345771;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        line-height: 1;
        margin-bottom: 10px;
      }

      .hernad-info-box:not(.compact) .hernad-icon {
        margin-bottom: 0;
      }

      .hernad-info-box p {
        font-size: 0.98rem;
        line-height: 1.62;
      }

      .hernad-button-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin-top: 24px;
      }

      .hernad-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 12px 20px;
        border-radius: 999px;
        font-weight: 800;
        text-decoration: none !important;
        transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
      }

      .hernad-button:hover {
        transform: translateY(-1px);
      }

      .hernad-button.primary {
        color: #ffffff !important;
        background: #4b6d84;
        box-shadow: 0 8px 18px rgba(71, 114, 79, 0.22);
      }

      .hernad-button.primary:hover {
        background: #39596f;
      }

      .hernad-button.secondary {
        color: #39596f !important;
        background: #eef2f6;
        border: 1px solid rgba(71, 114, 79, 0.18);
      }

      .hernad-button.secondary:hover {
        background: #e4ebf1;
      }

      /* Hide irrelevant Széchenyi/project footer cards only on this page, if injected globally. */
      body.page-id-7226 [class*="szechenyi"][class*="footer"],
      body.page-id-7226 [class*="szechenyi"][class*="project"],
      body.page-id-7226 [class*="szechenyi"][class*="box"],
      body.page-id-7226 [id*="szechenyi"][id*="footer"],
      body.page-id-7226 [id*="szechenyi"][id*="project"],
      body.page-id-7226 .hernad-szechenyi-plusz-footer,
      body.page-id-7226 .hernad-szechenyi-footer-boxes {
        display: none !important;
      }

      @media (max-width: 900px) {
        .hernad-hero-card {
          grid-template-columns: 1fr;
          text-align: center;
          gap: 22px;
        }

        .hernad-title-line {
          margin-left: auto;
          margin-right: auto;
        }

        .hernad-info-grid.four {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      @media (max-width: 640px) {
        .hernad-page {
          padding: 16px 12px 44px;
        }

        .hernad-card,
        .hernad-hero-card {
          padding: 24px 18px;
          border-radius: 18px;
        }

        .hernad-info-grid.two,
        .hernad-info-grid.four {
          grid-template-columns: 1fr;
        }

        .hernad-button {
          width: 100%;
        }
      }
    

/*
 * 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;
}