/* ══════════════════════════════════════════════
         SHARED — page background + outer container
         ══════════════════════════════════════════════ */

      body.post-type-archive-tribe_events,
      body.single-tribe_events {
        background: #f5f7f7;
      }

      body.post-type-archive-tribe_events .site-main,
      body.post-type-archive-tribe_events .content-bg,
      body.single-tribe_events .site-main,
      body.single-tribe_events .content-bg {
        background: transparent !important;
      }

      /* Remove default TEC container padding/max-width constraints */
      body.post-type-archive-tribe_events .tribe-common-l-container,
      body.post-type-archive-tribe_events .tribe-events-l-container {
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-height: 0 !important;
      }


      /* ══════════════════════════════════════════════
         ARCHIVE PAGE — header / search / view-switcher
         ══════════════════════════════════════════════ */

      body.post-type-archive-tribe_events .tribe-events-header {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
        margin-bottom: 22px !important;
        padding: 16px 20px !important;
      }

      /* Top bar (month nav + view switcher) */
      body.post-type-archive-tribe_events .tribe-events-c-top-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
      }

      body.post-type-archive-tribe_events .tribe-events-c-top-bar__date-separator {
        color: #94a3b8;
      }

      /* Month title in top bar */
      body.post-type-archive-tribe_events .tribe-events-c-top-bar__title,
      body.post-type-archive-tribe_events .tribe-events-c-top-bar__title-text {
        color: #1a2329 !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em !important;
      }

      /* Prev / Next navigation buttons */
      body.post-type-archive-tribe_events .tribe-events-c-nav__button,
      body.post-type-archive-tribe_events .tribe-events-c-top-bar__nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 7px 14px;
        border-radius: 999px;
        background: #f3fafe;
        border: 1px solid #d9ecfa;
        color: #145c8f !important;
        font-weight: 700;
        font-size: 13.5px;
        text-decoration: none !important;
        transition: background 0.15s, border-color 0.15s;
      }

      body.post-type-archive-tribe_events .tribe-events-c-nav__button:hover,
      body.post-type-archive-tribe_events .tribe-events-c-top-bar__nav-link:hover {
        background: #e5f3fc;
        border-color: #b0d6f2;
      }

      /* View switcher tabs */
      body.post-type-archive-tribe_events .tribe-events-c-view-selector__list {
        display: flex;
        gap: 6px;
        list-style: none;
        margin: 0;
        padding: 0;
      }

      body.post-type-archive-tribe_events .tribe-events-c-view-selector__list-item-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-height: 34px;
        padding: 6px 13px;
        border-radius: 999px;
        background: #f8f9fa;
        border: 1px solid #e5e7eb;
        color: #475569 !important;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none !important;
        transition: background 0.15s, border-color 0.15s;
      }

      body.post-type-archive-tribe_events .tribe-events-c-view-selector__list-item-link:hover,
      body.post-type-archive-tribe_events .tribe-events-c-view-selector__list-item-link[aria-selected="true"] {
        background: #f3fafe;
        border-color: #d9ecfa;
        color: #145c8f !important;
      }

      /* Search bar */
      body.post-type-archive-tribe_events .tribe-events-c-events-bar {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #f2f4f6;
      }

      body.post-type-archive-tribe_events .tribe-events-c-search__input-field {
        border-radius: 999px;
        border: 1px solid #e5e7eb;
        padding: 9px 16px;
        font-size: 14px;
        color: #334155;
        background: #f8f9fa;
        transition: border-color 0.15s;
      }

      body.post-type-archive-tribe_events .tribe-events-c-search__input-field:focus {
        outline: none;
        border-color: #bddff6;
        background: #ffffff;
      }

      body.post-type-archive-tribe_events .tribe-events-c-search__button {
        border-radius: 999px;
        background: #145c8f;
        color: #ffffff;
        border: none;
        padding: 9px 20px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.15s;
      }

      body.post-type-archive-tribe_events .tribe-events-c-search__button:hover {
        background: #0f73ba;
      }


      /* ══════════════════════════════════════════════
         ARCHIVE PAGE — month separator
         ══════════════════════════════════════════════ */

      body.post-type-archive-tribe_events .tribe-events-calendar-list__month-separator {
        margin: 24px 0 14px;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__month-separator-text {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: #63738a;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__month-separator-text::before {
        content: "";
        display: block;
        width: 28px;
        height: 2px;
        border-radius: 999px;
        background: #d9ecfa;
      }


      /* ══════════════════════════════════════════════
         ARCHIVE PAGE — event list + cards
         (same card design as homepage, keeping address)
         ══════════════════════════════════════════════ */

      body.post-type-archive-tribe_events .tribe-events-calendar-list {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-row {
        display: flex !important;
        align-items: flex-start !important;
        gap: 16px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 18px !important;
        padding: 18px 20px !important;
        margin: 0 !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
        transition: border-color 0.18s, box-shadow 0.18s !important;
        flex-wrap: nowrap !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-row:hover {
        border-color: #d9ecfa !important;
        box-shadow: 0 8px 22px rgba(21, 128, 61, 0.10) !important;
      }

      /* Date badge */
      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-date-tag {
        flex: 0 0 56px !important;
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        height: 56px !important;
        min-height: 56px !important;
        border-radius: 999px !important;
        background: #f3fafe !important;
        border: 1.5px solid #d9ecfa !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 2px 0 0 !important;
        float: none !important;
        position: static !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-date-tag-datetime {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-date-tag-weekday {
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #0f73ba !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        line-height: 1.2 !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-date-tag-daynum {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #145c8f !important;
        line-height: 1.1 !important;
        letter-spacing: -0.02em !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      /* Event wrapper (right column) */
      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-wrapper {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        float: none !important;
        width: auto !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-details {
        padding: 0 !important;
        float: none !important;
        width: auto !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-header {
        margin: 0 0 6px !important;
        padding: 0 !important;
      }

      /* Event title */
      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-title {
        margin: 0 0 6px !important;
        padding: 0 !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-title-link {
        color: #145c8f !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        border-bottom: none !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-title-link:hover {
        color: #0f73ba !important;
        text-decoration: underline !important;
      }

      /* Date/time */
      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-datetime-wrapper {
        margin: 0 0 5px !important;
        padding: 0 !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: #475569 !important;
        line-height: 1.45 !important;
      }

      body.post-type-archive-tribe_events .tribe-event-date-start,
      body.post-type-archive-tribe_events .tribe-event-time {
        color: #475569 !important;
        font-size: 13.5px !important;
      }

      /* Venue */
      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-venue {
        margin: 0 !important;
        padding: 0 !important;
        font-style: normal !important;
        font-size: 13px !important;
        color: #63738a !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-venue-title {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: #63738a !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-venue-title::before {
        content: "📍";
        font-size: 11px;
        flex-shrink: 0;
      }

      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-venue-address {
        margin-left: 18px;
        font-size: 12px !important;
        color: #94a3b8 !important;
        font-style: normal !important;
      }

      /* Featured image in archive */
      body.post-type-archive-tribe_events .tribe-events-calendar-list__event-featured-image-wrapper img {
        border-radius: 12px;
        object-fit: cover;
      }

      /* Subscribe / iCal links */
      body.post-type-archive-tribe_events [class*="tribe-events-c-subscribe"],
      body.post-type-archive-tribe_events [class*="tribe-events-ical"] {
        display: none !important;
      }

      /* After HTML / footer */
      body.post-type-archive-tribe_events .tribe-events-after-html,
      body.post-type-archive-tribe_events .tribe-events-view-loader {
        display: none !important;
      }

      /* Footer nav */
      body.post-type-archive-tribe_events .tribe-events-footer {
        margin-top: 28px;
        padding-top: 0;
      }

      body.post-type-archive-tribe_events .tribe-events-c-nav__list {
        display: flex;
        justify-content: space-between;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 12px;
      }

      body.post-type-archive-tribe_events .tribe-events-c-nav__list-item--prev .tribe-events-c-nav__prev,
      body.post-type-archive-tribe_events .tribe-events-c-nav__list-item--next .tribe-events-c-nav__next {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 40px;
        padding: 9px 18px;
        border-radius: 999px;
        background: #f3fafe;
        border: 1px solid #d9ecfa;
        color: #145c8f !important;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none !important;
        transition: background 0.15s, border-color 0.15s;
      }

      body.post-type-archive-tribe_events .tribe-events-c-nav__list-item--prev .tribe-events-c-nav__prev:hover,
      body.post-type-archive-tribe_events .tribe-events-c-nav__list-item--next .tribe-events-c-nav__next:hover {
        background: #e5f3fc;
        border-color: #b0d6f2;
      }


      /* ══════════════════════════════════════════════
         SINGLE EVENT PAGE
         ══════════════════════════════════════════════ */

      /* Page title (h1) */
      body.single-tribe_events .tribe-events-single-event-title.entry-title {
        color: #1a2329;
        font-weight: 800;
        letter-spacing: -0.03em;
        font-size: clamp(1.85rem, 3.5vw, 2.9rem);
        line-height: 1.1;
        margin: 0 0 10px;
        position: relative;
        padding-bottom: 20px;
      }

      body.single-tribe_events .tribe-events-single-event-title.entry-title::after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 72px;
        height: 4px;
        border-radius: 999px;
        background: #3275a4;
      }

      /* Date/time schedule pill */
      body.single-tribe_events .tribe-events-schedule {
        display: flex !important;
        align-items: center !important;
        margin: 22px 0 26px !important;
        padding: 0 !important;
      }

      body.single-tribe_events .tribe-events-schedule h2 {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 11px 20px !important;
        background: #f3fafe !important;
        border: 1.5px solid #d9ecfa !important;
        border-radius: 999px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #145c8f !important;
        line-height: 1.3 !important;
        letter-spacing: 0 !important;
      }

      body.single-tribe_events .tribe-events-schedule h2::before {
        content: "📅";
        font-size: 14px;
      }

      body.single-tribe_events .tribe-event-date-start,
      body.single-tribe_events .tribe-event-time {
        color: #145c8f !important;
        font-weight: 700 !important;
      }

      /* Navigation (prev/next between events) */
      body.single-tribe_events #tribe-events-header {
        margin-bottom: 28px;
      }

      body.single-tribe_events .tribe-events-sub-nav {
        display: flex !important;
        justify-content: space-between !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 12px !important;
      }

      body.single-tribe_events .tribe-events-sub-nav li a {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-height: 40px !important;
        padding: 9px 18px !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        color: #334155 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        transition: border-color 0.15s, box-shadow 0.15s !important;
      }

      body.single-tribe_events .tribe-events-sub-nav li a:hover {
        border-color: #d9ecfa !important;
        box-shadow: 0 4px 14px rgba(21, 128, 61, 0.09) !important;
        color: #145c8f !important;
      }

      /* Subscribe dropdown */
      body.single-tribe_events .tribe-events-c-subscribe-dropdown__container {
        margin: 0 0 28px;
      }

      body.single-tribe_events .tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 42px !important;
        padding: 10px 20px !important;
        border-radius: 999px !important;
        background: #145c8f !important;
        border: none !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        box-shadow: 0 4px 16px rgba(22, 101, 52, 0.25) !important;
        transition: background 0.15s, box-shadow 0.15s !important;
      }

      body.single-tribe_events .tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button:hover {
        background: #0f73ba !important;
        box-shadow: 0 6px 20px rgba(22, 101, 52, 0.35) !important;
      }

      body.single-tribe_events .tribe-events-c-subscribe-dropdown__button-text,
      body.single-tribe_events .tribe-events-c-subscribe-dropdown__export-icon {
        color: #ffffff !important;
        fill: #ffffff !important;
      }

      body.single-tribe_events .tribe-events-c-subscribe-dropdown__content {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
        padding: 8px;
        margin-top: 8px;
        min-width: 200px;
      }

      body.single-tribe_events .tribe-events-c-subscribe-dropdown__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      body.single-tribe_events .tribe-events-c-subscribe-dropdown__list-item-link {
        display: block !important;
        padding: 9px 14px !important;
        border-radius: 10px !important;
        color: #334155 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: background 0.12s !important;
      }

      body.single-tribe_events .tribe-events-c-subscribe-dropdown__list-item-link:hover {
        background: #f3fafe !important;
        color: #145c8f !important;
      }

      /* ── Meta sections: Részletek + Helyszín + Map ──
         TEC skeleton forces .tribe-events-meta-group { width: 168px }
         and .tribe-events-venue-map iframe { max-height: 241px; width: 211px }
         at ≥768px. All overrides need !important to win. */

      /* Turn the meta container into a 2-col grid and reset TEC's flex/float */
      body.single-tribe_events .tribe-events-event-meta.primary {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        float: none !important;
        position: static !important;
        padding-top: 0 !important;
        margin: 0 0 28px !important;
      }

      body.single-tribe_events .tribe-events-event-meta.primary::after,
      body.single-tribe_events .tribe-events-event-meta.primary::before {
        display: none !important;
      }

      /* Both detail boxes: full natural width, card styling */
      body.single-tribe_events .tribe-events-meta-group {
        flex: none !important;
        width: auto !important;          /* override TEC's 168px */
        min-width: 0 !important;
        margin-right: 0 !important;
        padding: 22px 24px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 18px !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
        order: 0 !important;
      }

      /* Map group: span both columns */
      body.single-tribe_events .tribe-events-meta-group.tribe-events-meta-group-gmap {
        grid-column: 1 / -1 !important;
        flex-basis: 100% !important;
        padding: 0 !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        order: 3 !important;
      }

      /* Map container + iframe: full width, generous height */
      body.single-tribe_events .tribe-events-venue-map {
        width: 100% !important;
        margin: 0 !important;
        order: 0 !important;
      }

      body.single-tribe_events .tribe-events-venue-map iframe,
      body.single-tribe_events .tribe-events-venue-map > div {
        display: block !important;
        width: 100% !important;
        height: 320px !important;
        max-height: none !important;     /* override TEC's 241px/211px cap */
        border: none !important;
      }

      /* Section headings (Részletek / Helyszín) */
      body.single-tribe_events .tribe-events-single-section-title {
        margin: 0 0 14px !important;
        padding-bottom: 12px !important;
        border-bottom: 2px solid #f3fafe !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.07em !important;
        color: #94a3b8 !important;
      }

      body.single-tribe_events .tribe-events-meta-list {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
      }

      body.single-tribe_events .tribe-events-meta-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        padding: 10px 14px !important;
        background: #f8f9fa !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        list-style: none !important;
        margin: 0 !important;
      }

      body.single-tribe_events .tribe-events-meta-label {
        font-size: 11px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.07em !important;
        color: #94a3b8 !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      body.single-tribe_events .tribe-events-meta-value {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #1a2329 !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      /* Venue items (name + address use same card style) */
      body.single-tribe_events .tribe-venue,
      body.single-tribe_events .tribe-venue-location {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        line-height: 1.5 !important;
      }

      body.single-tribe_events .tribe-events-address {
        font-style: normal !important;
        color: #475569 !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
      }

      /* Event description area */
      body.single-tribe_events .tribe-events-single-event-description {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        padding: 28px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
        margin-bottom: 24px;
        color: #334155;
        font-size: 16px;
        line-height: 1.7;
      }

      body.single-tribe_events .tribe-events-single-event-description:empty {
        display: none;
      }


      /* ══════════════════════════════════════════════
         RESPONSIVE
         ══════════════════════════════════════════════ */

      @media (max-width: 780px) {
        body.post-type-archive-tribe_events .tribe-events-calendar-list__event-date-tag {
          flex: 0 0 48px !important;
          width: 48px !important;
          min-width: 48px !important;
          height: 48px !important;
          min-height: 48px !important;
        }

        body.post-type-archive-tribe_events .tribe-events-calendar-list__event-date-tag-daynum {
          font-size: 19px !important;
        }

        body.post-type-archive-tribe_events .tribe-events-calendar-list__event-title {
          font-size: 15px !important;
        }

        body.single-tribe_events .tribe-events-event-meta.primary {
          grid-template-columns: 1fr !important;
        }

        body.single-tribe_events .tribe-events-meta-group.tribe-events-meta-group-gmap {
          grid-column: 1 !important;
        }

        body.single-tribe_events .tribe-events-single-event-description {
          padding: 20px 18px;
        }

        body.single-tribe_events .tribe-events-venue-map iframe,
        body.single-tribe_events .tribe-events-venue-map > div {
          height: 240px !important;
        }
      }

      @media (max-width: 560px) {
        body.post-type-archive-tribe_events .tribe-events-header {
          padding: 14px 16px !important;
          border-radius: 14px;
        }

        body.post-type-archive-tribe_events .tribe-events-calendar-list__event-row {
          border-radius: 14px !important;
          padding: 14px 16px !important;
        }

        body.single-tribe_events .tribe-events-sub-nav {
          flex-direction: column !important;
          align-items: stretch !important;
        }

        body.single-tribe_events .tribe-events-sub-nav li a {
          justify-content: center !important;
        }
      }

    

/* Hernád synced block: A kistérség települései - with captions */
.hernad-kisterseg-logo-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 12px !important;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.hernad-kisterseg-logo-row .wp-block-image {
  margin: 0 !important;
  flex: 0 0 98px !important;
  width: 98px !important;
  text-align: center !important;
}

.hernad-kisterseg-logo-row .wp-block-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 98px !important;
  height: 58px !important;
  padding: 6px !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.hernad-kisterseg-logo-row .wp-block-image a:hover {
  transform: translateY(-2px);
  border-color: #0f73ba;
  box-shadow: 0 8px 18px rgba(21, 128, 61, .14);
}

.hernad-kisterseg-logo-row .wp-block-image img {
  display: block !important;
  width: auto !important;
  max-width: 84px !important;
  height: auto !important;
  max-height: 44px !important;
  object-fit: contain !important;
}

.hernad-kisterseg-logo-row .wp-element-caption {
  margin: 7px 0 0 !important;
  padding: 0 !important;
  color: #111827 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  .hernad-kisterseg-logo-row {
    justify-content: flex-start !important;
  }
}

/* Hernád synced block: A kistérség települései - scrollable grid */
.hernad-kisterseg-synced {
  box-sizing: border-box;
  overflow: hidden;
}

.hernad-kisterseg-logo-grid {
  display: grid !important;
  grid-template-columns: repeat(9, minmax(82px, 1fr)) !important;
  gap: 10px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 8px !important;
  -webkit-overflow-scrolling: touch;
}

.hernad-kisterseg-logo-grid .wp-block-image {
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  text-align: center !important;
}

.hernad-kisterseg-logo-grid .wp-block-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 54px !important;
  padding: 5px !important;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.hernad-kisterseg-logo-grid .wp-block-image a:hover {
  transform: translateY(-2px);
  border-color: #0f73ba;
  box-shadow: 0 8px 18px rgba(21, 128, 61, .14);
}

.hernad-kisterseg-logo-grid .wp-block-image img {
  display: block !important;
  width: auto !important;
  max-width: 70px !important;
  height: auto !important;
  max-height: 38px !important;
  object-fit: contain !important;
}

.hernad-kisterseg-logo-grid .wp-element-caption {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  color: #111827 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: center !important;
}

@media (max-width: 1180px) {
  .hernad-kisterseg-logo-grid {
    grid-template-columns: repeat(9, minmax(82px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .hernad-kisterseg-synced {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .hernad-kisterseg-logo-grid {
    grid-template-columns: repeat(9, minmax(78px, 78px)) !important;
    justify-content: start !important;
  }

  .hernad-kisterseg-logo-grid .wp-block-image img {
    max-width: 66px !important;
    max-height: 36px !important;
  }

  .hernad-kisterseg-logo-grid .wp-element-caption {
    font-size: 10.5px !important;
  }
}

@media (max-width: 460px) {
  .hernad-kisterseg-logo-grid {
    grid-template-columns: repeat(9, minmax(74px, 74px)) !important;
  }
}

/* Hernád synced block: hard forced settlement flex row */
.hernad-kisterseg-force-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

.hernad-kisterseg-force-row > .wp-block-image,
.hernad-kisterseg-force-row > figure {
  display: block !important;
  flex: 0 0 92px !important;
  width: 92px !important;
  max-width: 92px !important;
  min-width: 92px !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

.hernad-kisterseg-force-row .wp-block-image a {
  width: 92px !important;
  height: 58px !important;
}

@media (max-width: 760px) {
  .hernad-kisterseg-force-row {
    justify-content: flex-start !important;
  }

  .hernad-kisterseg-force-row > .wp-block-image,
  .hernad-kisterseg-force-row > figure {
    flex-basis: 82px !important;
    width: 82px !important;
    max-width: 82px !important;
    min-width: 82px !important;
  }

  .hernad-kisterseg-force-row .wp-block-image a {
    width: 82px !important;
  }
}

/* Hernád synced block: kistérség HTML table layout */
.hernad-kisterseg-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.hernad-kisterseg-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: separate !important;
  border-spacing: 16px 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.hernad-kisterseg-table,
.hernad-kisterseg-table tbody,
.hernad-kisterseg-table tr,
.hernad-kisterseg-table td {
  border: 0 !important;
  background: transparent !important;
}

.hernad-kisterseg-table td {
  width: 11.111%;
  padding: 2px 0 0 0 !important;
  text-align: center !important;
  vertical-align: top !important;
}

.hernad-kisterseg-tile {
  display: block !important;
  width: 100% !important;
  text-decoration: none !important;
  color: #111827 !important;
}

.hernad-kisterseg-imgbox {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 58px !important;
  padding: 6px !important;
  border: 1px solid #d8dde3;
  border-radius: 12px;
  background: #f8fafc;
  box-sizing: border-box;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}

.hernad-kisterseg-tile:hover .hernad-kisterseg-imgbox,
.hernad-kisterseg-tile:focus .hernad-kisterseg-imgbox {
  transform: translateY(-1px);
  border-color: #0f73ba;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(21, 128, 61, .12);
}

.hernad-kisterseg-imgbox img {
  display: block !important;
  width: auto !important;
  max-width: 76px !important;
  height: auto !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

.hernad-kisterseg-name {
  display: block !important;
  margin-top: 8px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #111827 !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  .hernad-kisterseg-table {
    min-width: 860px;
    border-spacing: 12px 0 !important;
  }

  .hernad-kisterseg-imgbox {
    height: 54px !important;
  }

  .hernad-kisterseg-imgbox img {
    max-width: 68px !important;
    max-height: 38px !important;
  }

  .hernad-kisterseg-name {
    font-size: 10.5px !important;
  }
}


        body {
            padding-bottom: 185px !important;
        }

        .hernad-sztp-footer-logo {
            height: 72px !important;
            margin-bottom: 8px !important;
            padding: 7px !important;
        }

        .hernad-sztp-footer-logo img {
            max-height: 60px !important;
            max-width: 100% !important;
        }

        .hernad-sztp-footer-card {
            padding-top: 12px !important;
            padding-bottom: 12px !important;
        }

        @media (max-width: 1024px) {
            body {
                padding-bottom: 220px !important;
            }

            .hernad-sztp-footer-logo {
                height: 64px !important;
            }

            .hernad-sztp-footer-logo img {
                max-height: 52px !important;
            }
        }

        @media (max-width: 640px) {
            body {
                padding-bottom: 175px !important;
            }

            .hernad-sztp-footer-logo {
                height: 58px !important;
            }

            .hernad-sztp-footer-logo img {
                max-height: 48px !important;
            }

            .hernad-sztp-footer-card {
                flex-basis: 250px !important;
            }
        }
    

:root{
	/* A Kadence `Inter` (tartalék nélkül!) helyett teljes betűlánc. */
	--global-body-font-family:'Inter','Inter Fallback',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
	/* Címsorok is Inter (a Syne kivezetve) — így egységes és jól olvasható. */
	--global-heading-font-family:'Inter','Inter Fallback',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
	--global-fallback-font:sans-serif;
	--global-display-fallback-font:sans-serif;
}

/*
 * Olvashatóság: a Kadence a h2-t csupa nagybetűre állítja. A hosszú, ékezetes
 * magyar címsorok (Ő, Ű, Á) csupa nagybetűvel jelentősen nehezebben olvashatók,
 * és a Syne mint dísz-betű ezt tovább rontja. A kezdőlapon a 067-es plugin
 * amúgy is már kikapcsolta — itt az egész oldalra egységesítjük.
 */
h2{text-transform:none;}


      /* Override Kadence's 400px cap — let the polished logo breathe */
      .site-branding a.brand img,
      .site-branding a.brand img.svg-logo-image {
        max-width: 620px !important;
        width: auto !important;
        height: auto !important;
      }

      .site-branding img,
      .custom-logo,
      .site-logo img,
      #site-logo img,
      .kadence-logo img {
        filter: drop-shadow(0 1px 3px rgba(0,0,0,0.30)) !important;
        transition: filter .2s ease, opacity .2s ease !important;
      }
      .site-branding img:hover,
      .custom-logo:hover,
      .site-logo img:hover {
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45)) !important;
        opacity: .92 !important;
      }
    

        #masthead li.page_item:not(.menu-item),
        #masthead ul.children,
        #site-navigation li.page_item:not(.menu-item),
        #site-navigation ul.children,
        .primary-menu-container li.page_item:not(.menu-item),
        .primary-menu-container ul.children,
        .main-navigation li.page_item:not(.menu-item),
        .main-navigation ul.children {
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            max-height: 0 !important;
            overflow: hidden !important;
            margin: 0 !important;
            padding: 0 !important;
            border: 0 !important;
        }
    

      .hernad-service-cards-blocks {
        width: 100% !important;
        max-width: 1200px !important;
        margin: 28px auto 0 !important;
      }

      .hernad-service-row {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 18px !important;
        margin: 0 0 18px !important;
      }

      .hernad-service-card-block {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 255px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 18px !important;
        padding: 24px 18px !important;
        box-shadow: 0 8px 24px rgba(15,23,42,.06) !important;
        text-align: center !important;
      }

      .hernad-service-block-icon {
        width: 82px !important;
        height: 82px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 22px !important;
        margin: 0 auto 18px !important;
        font-size: 54px !important;
        line-height: 1 !important;
        font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
        letter-spacing: 0 !important;
        text-indent: 0 !important;
        overflow: visible !important;
      }

      .hernad-service-block-icon.green {
        background: rgba(21,128,61,.11) !important;
      }

      .hernad-service-block-icon.blue {
        background: rgba(29,78,216,.10) !important;
      }

      @media (max-width: 760px) {
        .hernad-service-block-icon {
          width: 72px !important;
          height: 72px !important;
          font-size: 46px !important;
        }
      }

      .hernad-service-block-title {
        color: #111827 !important;
        font-size: 18px !important;
        font-weight: 850 !important;
        line-height: 1.25 !important;
        margin: 0 0 10px !important;
      }

      .hernad-service-block-text {
        color: #6b7280 !important;
        font-size: 15px !important;
        line-height: 1.55 !important;
        margin: 0 0 16px !important;
      }

      .hernad-service-block-button {
        margin-top: auto !important;
      }

      .hernad-service-block-button .wp-block-button__link {
        background: #0f73ba !important;
        color: #ffffff !important;
        border-radius: 9px !important;
        padding: 9px 14px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
      }

      @media (max-width: 980px) {
        .hernad-service-row {
          grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
      }

      @media (max-width: 620px) {
        .hernad-service-row {
          grid-template-columns: 1fr !important;
        }

        .hernad-service-card-block {
          min-height: auto !important;
        }
      }
    

      .hernad-eugyintezes-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        min-height: 38px !important;
        padding: 9px 18px !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, #0f73ba 0%, #145c8f 100%) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255,255,255,.18) !important;
        box-shadow: 0 8px 18px rgba(21,128,61,.22), inset 0 1px 0 rgba(255,255,255,.18) !important;
        font-family: "Noto Sans", "Segoe UI", Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: .01em !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
      }

      .hernad-eugyintezes-btn::before {
        content: "✓" !important;
        width: 20px !important;
        height: 20px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255,255,255,.16) !important;
        color: #ffffff !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
      }

      .hernad-eugyintezes-btn:hover,
      .hernad-eugyintezes-btn:focus {
        background: linear-gradient(135deg, #0d91f0 0%, #0f73ba 100%) !important;
        color: #ffffff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 11px 24px rgba(21,128,61,.30), inset 0 1px 0 rgba(255,255,255,.22) !important;
        text-decoration: none !important;
      }

      .hernad-eugyintezes-btn:active {
        transform: translateY(0) !important;
        box-shadow: 0 5px 12px rgba(21,128,61,.22) !important;
      }

      @media (max-width: 768px) {
        .hernad-eugyintezes-btn {
          min-height: 36px !important;
          padding: 8px 14px !important;
          font-size: 13px !important;
        }

        .hernad-eugyintezes-btn::before {
          width: 18px !important;
          height: 18px !important;
          font-size: 11px !important;
        }
      }
    

      body.page-id-37393 #primary,
      body.page-id-37393 #main,
      body.page-id-37393 .site-main,
      body.page-id-37393 .site-content,
      body.page-id-37393 .content-area,
      body.page-id-37393 .content-wrap,
      body.page-id-37393 .content-container,
      body.page-id-37393 .entry,
      body.page-id-37393 .single-entry,
      body.page-id-37393 .entry-content-wrap,
      body.page-id-37393 .entry-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
      }

      body.page-id-37393 .entry-content > *:first-child,
      body.page-id-37393 .entry-content .hernad-cover-video-hero,
      body.page-id-37393 .wp-block-cover.hernad-cover-video-hero {
        margin-top: 0 !important;
      }

      body.page-id-37393 .site-main > .content-container {
        padding-top: 0 !important;
      }

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

      body.page-id-37393 .entry-hero,
      body.page-id-37393 .entry-header,
      body.page-id-37393 header.entry-header,
      body.page-id-37393 .page-header,
      body.page-id-37393 h1.entry-title {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
      }