/*
Theme Name: TEREM Theme
Theme URI: https://teremkepzes.hu/
Author: Káli Réka
Description: Custom FSE block theme for TEREM Képző és Fejlesztő Műhely. Built on MyFive starter by Emese Pócsik.
Tags: one-column, custom-colors, custom-menu, block-patterns, full-site-editing, wide-blocks
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terem
*/


/* ============================================
   1. ALAP STÍLUSOK
   ============================================ */

html {
    2 scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks > * {
    margin-top: 0;
}

.wp-block-heading,
.wp-block-post-title,
h1,
h2,
h3,
h4,
h5,
h6 {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Focus stílusok – a11y */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* Skip link – képernyőolvasó */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--secondary);
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}


/* ============================================
   2. SZÖVEGES UTILITY CLASS-OK
   ============================================ */

/* Szekció címke (pl. "KÉPZÉSEINK", "RÓLUNK") */
.is-style-tagline,
.tagline {
    font-size: var(--wp--preset--font-size--x-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--wp--preset--color--text-secondary);
    margin-bottom: 12px;
}

/* Tagline sárga kiemelés */
.tagline-accent {
    font-size: var(--wp--preset--font-size--x-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--wp--preset--color--primary);
    margin-bottom: 12px;
}

/* Tagline sötét háttéren */
.has-dark-bg .tagline {
    color: var(--wp--preset--color--gray-cool);
}

/* Lead/intro bekezdés */
.is-style-lead,
.lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--wp--preset--color--text-secondary);
}

/* Muted szöveg */
.is-style-muted,
.muted {
    color: var(--wp--preset--color--text-secondary);
    font-size: var(--wp--preset--font-size--small);
}

/* Szűkített szövegtörzs */
.narrow-text {
    max-width: 680px;
    justify-self: center;
}

.narrow-text-left {
    max-width: 600px;
}

/* Accent kiemelés – sárga szöveg */
.has-terem-accent,
.terem-accent {
    color: var(--wp--preset--color--primary);
}

/* ============================================
   3. HEADER ÉS NAVIGÁCIÓ
   ============================================ */

/* Sticky header */


.site-header {
    z-index: 100;
}

.site-header__inner {
    box-shadow: var(--wp--preset--shadow--sm);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled .site-header__inner {
    box-shadow: var(--wp--preset--shadow--nav);
}

/* 3 oszlopos grid: Logo | Nav | Ikonok */
.header-grid {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--wp--preset--spacing--l);
}

/*.wp-block-template-part:has(.site-header) {
    position: sticky;
    top: 0;
    z-index: 1001;
} */

.header-left {
    justify-self: start;
}

.header-center {
    justify-self: center;
}

.header-right {
    justify-self: end;
    gap: 8px !important;
}

.wp-block-site-logo {
    max-width: 180px;
}

.single-post h2 {
    margin-top: 2.5rem;
}

.simpletoc-list li ul {
    padding-left: 1rem !important;
}


@media screen and (max-width: 480px) {
    .wp-block-site-logo {
        max-width: 120px;
    }
}

/* Nav link stílus */
.site-header .wp-block-navigation-item a {
    font-weight: 500;
    color: var(--wp--preset--color--secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.2s;
    position: relative;
}

.site-header .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--primary);
}

/* „Rólunk" nem kattintható szülő menü */
.no-link > a {
    pointer-events: none;
    cursor: default;
}

/* Header ikon gombok (kereső, a11y) – egységes 40x40 */
.header-icon-btn,
.site-header .terem-a11y-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.terem-a11y-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wp--preset--color--white);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(4px);
}

.terem-a11y-toggle__icon {
    width: 20px;
    height: 20px;
}

.header-icon-btn:hover,
.site-header .terem-a11y-toggle:hover {
    background: var(--wp--preset--color--neutral);
    border-color: var(--wp--preset--color--gray-cool);
    color: var(--wp--preset--color--secondary);
}

.site-header .terem-a11y-toggle[aria-pressed="true"] {
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--secondary);
}


/* Natív WP kereső gomb – button-only mód*/
.header-search .wp-block-search__button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--wp--preset--color--white);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(4px);
    box-shadow: none;
    transition: all 0.2s ease;
}

.header-search .wp-block-search__button:hover {
    background: var(--wp--preset--color--neutral);
    border-color: var(--wp--preset--color--gray-cool);
    color: var(--wp--preset--color--secondary);
}

.header-search .wp-block-search__button svg {
    width: 20px;
    height: 20px;
}

/* Kereső kinyitott állapot */


/* morzsamenü */
.terem-breadcrumb {
    font-size: var(--wp--preset--font-size--small);
    margin-bottom: var(--wp--preset--spacing--xs);
}

.terem-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.terem-breadcrumb a:hover {
    color: var(--wp--preset--color--primary);
}

.terem-breadcrumb__separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.terem-breadcrumb__current {
    color: rgba(255, 255, 255, 0.6);
}

/* Mobil menü – sötét háttér */
.wp-block-navigation__responsive-container.is-menu-open {
    background: var(--wp--preset--color--secondary);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
    color: var(--wp--preset--color--white);
    font-size: var(--wp--preset--font-size--medium);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--primary);
}

/* Mobil menü bezáró gomb */
.wp-block-navigation__responsive-container-close {
    color: var(--wp--preset--color--white);
}

/* Dropdown (submenu) stílusok */
.wp-block-navigation__submenu-container {
    background: var(--wp--preset--color--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: var(--wp--preset--shadow--md);
    padding: 8px 0;
    min-width: 180px;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item a {
    padding: 8px 20px;
    font-size: var(--wp--preset--font-size--small);
    border-radius: 0;
}


/* Nav CTA gomb – ha szükséges aloldalakon */
.wp-block-navigation-item.nav-cta a {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--secondary) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--small);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 12px rgba(247, 211, 8, 0.3);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.wp-block-navigation-item.nav-cta a:hover {
    background: var(--wp--preset--color--primary-light) !important;
    text-decoration: none;
    color: var(--wp--preset--color--secondary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(247, 211, 8, 0.4);
}

/* Mobilon a hamburger menüben */
.wp-block-navigation__responsive-container.is-menu-open .nav-cta a {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px !important;
}

@media (max-width: 781px) {
    .site-header__inner {
        position: relative;
    }

    /* CSAK kinyitott állapotban legyen overlay */
    /* CSAK kinyitott állapotban legyen overlay */
    .site-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        width: calc(100vw - 2rem);
        max-width: 360px;
        z-index: 100;
        background: var(--wp--preset--color--white);
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .site-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}


/* ============================================
   4. GOMBOK
   ============================================ */

/* Primary/Fill gomb – sárga */
.wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--secondary);
    box-shadow: 0 4px 20px rgba(247, 211, 8, 0.35);
    letter-spacing: 0.04em;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(247, 211, 8, 0.5);
    background: var(--wp--preset--color--primary-light) !important;
    color: var(--wp--preset--color--secondary);
}

/* Outline gomb – sötét háttérhez (fehér border) */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(4px);
    box-shadow: none;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

/* Outline gomb – világos háttérhez (grafit border) */
.wp-block-button.is-style-outline-dark .wp-block-button__link {
    background: none;
    box-shadow: none;
    color: var(--wp--preset--color--secondary);
    border: 2px solid var(--wp--preset--color--secondary);
    letter-spacing: 0.04em;
    transition: all 0.2s;
}

.wp-block-button.is-style-outline-dark .wp-block-button__link:hover {
    background: var(--wp--preset--color--secondary) !important;
    color: var(--wp--preset--color--white);
    box-shadow: none;
}

/* Gomb ikon (pl. nyíl) */
.btn-icon {
    width: 18px;
    height: 18px;
    margin-left: 6px;
    vertical-align: -3px;
}

/* Form gomb (WPForms) */
.form-button {
    background: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--secondary) !important;
    box-shadow: 0 4px 20px rgba(247, 211, 8, 0.35) !important;
    border-radius: 8px !important;
    padding: 16px 32px !important;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--wp--preset--font-family--body) !important;
    font-size: var(--wp--preset--font-size--small) !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-button::after {
    content: "";
    width: 18px;
    height: 18px;
    background: url('/wp-content/uploads/send-dark.svg') no-repeat center/contain;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(247, 211, 8, 0.5) !important;
    background: var(--wp--preset--color--primary-light) !important;
}


/* ============================================
   4b. HERO SECTION
   Layout, pozícionálás, színek – amit FSE
   nem tud. Animációk → animations.css
   ============================================ */

.hero-section {
    position: relative;
    overflow: hidden;
}

#terem-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at center,
            rgba(30, 35, 40, 0.15) 0%,
            rgba(30, 35, 40, 0.35) 50%,
            rgba(30, 35, 40, 0.52) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Szöveg színek – sötét háttéren (FSE nem tud rgba-t) */
.hero-title {
    color: var(--wp--preset--color--white);
}

.hero-description {
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}



.dot-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--wp--preset--color--primary, #F7D308);
    border-radius: 50%;
    margin-right: 0.75rem;
    vertical-align: middle;
}

/* ============================================
   4c. USP (MIBEN MÁSOK) SECTION
   Sárga accent a kép mögött, badge pozíció,
   idézet border, reszponzív sorrend
   ============================================ */


/* Kép wrapper – sárga accent mögötte */
.usp-image-wrap {
    position: relative;
    overflow: visible !important;
}

.usp-image-wrap::before {
    content: '';
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 10rem;
    height: 10rem;
    background: var(--wp--preset--color--primary-light);
    border-radius: 24px;
    z-index: 0;
}

.usp-image-wrap .usp-image {
    position: relative;
    z-index: 1;
}

.box-before {
    position: relative;
    overflow: visible !important;
    z-index: 100;
}

.box-before-box::before {
    content: '';
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 40%;
    height: 40%;
    background: var(--wp--preset--color--primary-light);
    border-radius: 24px;
    z-index: -100;
}



.grayscale-img {
    filter: grayscale(50%) contrast(0.85);
}

.usp-image-wrap.left::before {
    left: -2rem;
}

/* Badge – kép bal alsó sarka */
.usp-badge {
    position: absolute;
    bottom: var(--wp--preset--spacing--l);
    left: var(--wp--preset--spacing--l);
    z-index: 2;
    box-shadow: var(--wp--preset--shadow--lg);
}

/* sticky képek */
@media (min-width: 782px) {
    .sticky-image {
        position: sticky !important;
        top: 10rem;
    }
}

/* Reszponzív */
@media (max-width: 1024px) {
    .usp-grid {
        flex-direction: column-reverse !important;
    }

    .usp-content,
    .usp-image-wrap {
        flex-basis: 100% !important;
    }

    .usp-image-wrap::before {
        top: -1.5rem;
        right: -1rem;
        width: 10rem;
        height: 10rem;
    }

    .left.usp-image-wrap::before {
        top: -1.5rem;
        left: -1rem;
        width: 10rem;
        height: 10rem;
    }
}

@media (max-width: 640px) {
    .usp-highlights {
        flex-direction: column !important;
    }

    .usp-badge {
        bottom: var(--wp--preset--spacing--m);
        left: var(--wp--preset--spacing--m);
    }
}

/* ============================================
   5. KÁRTYA ÉS LAYOUT KOMPONENSEK
   ============================================ */
/* vélemény quote */
.slide-quote img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   TEREM KÁRTYA HOVER — újrafelhasználható
   ============================================ */

/* 1. Kártya emelkedés + árnyék */
.terem-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;

}

.terem-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(30, 35, 40, 0.12);
}

/* 2. Kép zoom a kártyán belül */
.terem-card-hover img {
    transition: transform 0.4s ease;
}

.terem-card-hover:hover img {
    transform: scale(1.05);
}

/* 3. Sárga csík — a kép wrapper-re kell */
.terem-card-stripe {
    position: relative;
}

.terem-card-stripe::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--wp--preset--color--primary, #F7D308);
    transition: width 0.4s ease;
    z-index: 2;
}

.terem-card-hover:hover .terem-card-stripe::after {
    width: 100%;
}

/* 4. Link nyíl jobbra mozdul */
.terem-card-hover:hover .terem-card-arrow svg {
    transform: translateX(4px);
}

.terem-card-arrow svg {
    transition: transform 0.3s ease;
}

/* Badge-ek */
.badge,
.badge-small {
    width: fit-content;
}

/* Blur kártya */
.card-blur {
    backdrop-filter: blur(10px);
}

.blured {
    backdrop-filter: blur(8px);
}

.badge-small.blured {
    margin: 0 auto;
}


/* Portré háttér – sárga accent */
.portre-bg {
    position: relative;
    display: inline-block;
}

.portre-bg::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(40deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-light) 100%);
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
}

.portre-bg img {
    position: relative;
    z-index: 1;
}

/* Centered layout */
.contact {
    justify-self: center;
}

/* Home-Képzési témák: teljes blokk kattintható kártya */
/* Kattintható kártya alap */
.terem-card-link {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.terem-card-link:hover {
    border-color: var(--wp--preset--color--primary) !important;
    transform: translateY(-4px);
}

/* A benne lévő link lefedi az egész kártyát */
.terem-card-link a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}


/* CTA szöveg hover */
.card-cta a {
    transition: all 0.3s ease;
}

.terem-card-link:hover .card-cta a {
    padding: 12px 24px !important;
    background: var(--wp--preset--color--primary) !important;
    border-radius: 8px;
}

.terem-card-link img {
    transition: transform 0.3s ease;
}

.terem-card-link:hover img {
    transform: scale(1.1);
}

/* ============================================
   6. TIMELINE (TEREM színekkel)
   ============================================ */

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 43px;
    top: 120px;
    bottom: 40px;
    width: 2px;
    background: var(--wp--preset--color--border);
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.timeline-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--wp--preset--color--border);
    color: var(--wp--preset--color--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 !important;
    margin-top: 8px !important;
    position: relative;
    z-index: 1;
    transition: background 0.5s ease, color 0.5s ease;
}

.timeline-item.is-active .timeline-number,
.timeline-item:first-child .timeline-number {
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--primary);
}


/* ============================================
   7. ÉRTÉKEK SZEKCIÓ – Reszponzív grid
   ============================================ */

@media (max-width: 1236px) {
    .values {
        flex-wrap: wrap !important;
        gap: var(--wp--preset--spacing--m);
    }

    .values > .wp-block-column {
        flex-basis: calc(33.333% - 1rem) !important;
    }
}

@media (max-width: 900px) {
    .values > .wp-block-column {
        flex-basis: calc(50% - 1rem) !important;
    }
}

@media (max-width: 600px) {
    .values > .wp-block-column {
        flex-basis: 100% !important;
    }
}


/* ============================================
   8. BLOG KÁRTYÁK
   ============================================ */

.blog-card-columns-sticky,
.blog-card-columns {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-columns-sticky:hover,
.blog-card-columns:hover {
    transform: translateY(-4px);
    box-shadow: var(--wp--preset--shadow--lg);
}

.blog-card-columns-sticky > .wp-block-column:first-child {
    position: relative;
    min-height: 320px;
}

.blog-card-columns-sticky > .wp-block-column:first-child .wp-block-post-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
}

.blog-card-columns-sticky > .wp-block-column:first-child .wp-block-post-featured-image a {
    display: block;
    height: 100%;
}

.blog-card-columns-sticky > .wp-block-column:first-child .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-post-excerpt__more-text {
    font-weight: 600;
}

.simpletoc-title {
    font-size: var(--wp--preset--font-size--medium) !important;
}

.simpletoc-list {
    padding-left: 1rem !important;
}

.simpletoc-list li {
    font-size: var(--wp--preset--font-size--small) !important;
}

/* ============================================
   9. FORMS (WPForms)
   ============================================ */

.wpforms-field-label {
    font-weight: 600 !important;
}

/* WPForms confirmation alapstílus felülírása */
div.wpforms-container-full .wpforms-confirmation-container-full,
div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Privacy checkbox */
.privacy-checkbox a {
    color: var(--wp--preset--color--primary);
    font-weight: 500;
}

div.wpforms-container-full .privacy-checkbox input[type="checkbox"],
.wpforms-container .privacy-checkbox input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    margin: 3px 10px 0 0 !important;
    accent-color: var(--wp--preset--color--primary);
    cursor: pointer;
}

div.wpforms-container-full .privacy-checkbox ul li {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
}

div.wpforms-container-full .privacy-checkbox .wpforms-field-label-inline {
    display: inline !important;
    flex: 1 !important;
}


.partners li::marker {
    color: var(--wp--preset--color--text-secondary);
}

.partners li {
    margin-top: 1.25rem;
}

/* Tanácsadás */

.service-card {
    position: relative;
}

.service-card h3 a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.terem-card-hover .service-card:hover img {
    transform: scale(1.15);
}

.service-card h3 a {
    text-decoration: none;
    color: inherit;
}

.service-card::after {
    content: '↓';
    position: absolute;
    bottom: 0;
    right: 0.5rem;
    font-size: 1.25rem;
    color: var(--wp--preset--color--gray-cool);
    transition: all 0.3s ease;
}

.service-card:hover::after {
    color: var(--wp--preset--color--primary);
    transform: translateY(3px);
}

/* ── Scroll to Top ── */
.scroll-to-top {
    position: fixed;
    bottom: 15px;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(247, 211, 8, 0.35);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(4px);
    padding: 0;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: rgba(247, 211, 8, 0.6);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: var(--wp--preset--color--secondary-light);
}

/* ============================================
   10. FOOTER
   ============================================ */

/* Footer linkek */
.site-footer .footer-links {
    list-style: none;
    padding-left: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0;
}

.site-footer .footer-links a {
    text-decoration: none;
    transition: color 0.2s ease;
}


/* Footer heading – sárga */
.site-footer .footer-heading {
    margin-bottom: var(--wp--preset--spacing--l);
}

/* Kapcsolat ikonok */
.site-footer .footer-contact-item {
    gap: 12px;
}

/* Social ikonok */
.site-footer .footer-social {
    margin-top: var(--wp--preset--spacing--l);
}

.site-footer .wp-block-social-links .wp-social-link {
    border-radius: 8px;
    transition: background 0.2s ease;
}

.site-footer .wp-block-social-links .wp-social-link:hover {
    background: var(--wp--preset--color--primary);
}

.site-footer .wp-block-social-links .wp-social-link:hover svg {
    fill: var(--wp--preset--color--secondary);
}

/* Jogi linkek sor */
.site-footer .footer-legal {
    gap: 12px 24px;
}

.site-footer .footer-legal-link a:hover {
    color: var(--wp--preset--color--primary) !important;
}

/* Footer reszponzív */
@media (max-width: 1024px) {
    .site-footer .footer-main-columns {
        flex-wrap: wrap !important;
    }

    .site-footer .footer-main-columns > .wp-block-column:first-child {
        flex-basis: 100% !important;
        margin-bottom: var(--wp--preset--spacing--l);
    }


}

@media (max-width: 768px) {
    .site-footer .footer-main-columns > .wp-block-column {
        flex-basis: calc(50% - 1rem) !important;
    }
}

@media (max-width: 640px) {
    .site-footer .footer-main-columns > .wp-block-column {
        flex-basis: 100% !important;
    }


    .site-footer .footer-legal {
        gap: 8px 16px;
    }
}

h2.jelentkezes-kepzes-cim {
    color: var(--wp--preset--color--primary-light);
}

.jelentkezes-idopont {
    font-size: var(--wp--preset--font-size--x-large);
}

.jelentkezes-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step;
}

.jelentkezes-list li {
    counter-increment: step;
    padding-left: 50px;
    position: relative;
    margin-bottom: 1.5rem;
}

.jelentkezes-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wp--preset--color--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.jelentkezes-kartya {
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
}

.jelentkezes-kartya-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.jelentkezes-kartya-cim {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.25rem;
}

.jelentkezes-kartya-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.jelentkezes-kartya-meta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--wp--preset--color--primary, #F7D308);
}

.jelentkezes-kartya-ar {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--wp--preset--color--primary, #F7D308);
    margin: 1.25rem 0 0;
}

.jelentkezes-kartya-ar span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.ml-form-embedBody {
    padding: 0 !important;
}

/* ============================================
   11. RESZPONZÍV TÖRÉSPONTOK
   ============================================ */

@media screen and (max-width: 781px) {

    .forditott {
        flex-direction: column-reverse;
    }

    .timeline {
        padding-left: 10px;
    }

    .timeline::before {
        top: 100px;
        left: 33px;
    }

    .timeline-number {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .timeline-item {
        gap: 16px;
    }

    .service-detail.first h2 {
        margin-bottom: 3rem;
    }

    .wp-block-post-featured-image {
        margin-top: 0 !important;
    }

}

@media screen and (max-width: 480px) {
    .service-card {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .velemenyek {
        padding-right: var(--wp--style--root--padding-right) !important;
        padding-left: var(--wp--style--root--padding-left) !important;
        ;
    }
}

.velemnyek .wp-block-cb-slide {
    width: 100% !important;
    max-width: 100% !important;
}
.velemenyek .narrow-text,
.velemenyek .slide-quote {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Cookie banner + modal izolálás – téma stílusok ne érvényesüljenek */
.cookieadmin_law_container,
.cookieadmin_law_container *,
.cookieadmin_cookie_modal,
.cookieadmin_cookie_modal * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.cookieadmin_law_container p,
.cookieadmin_cookie_modal p,
.cookieadmin_cookie_modal .cookieadmin_desc {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.cookieadmin_law_container #cookieadmin_notice_title,
.cookieadmin_cookie_modal .cookieadmin_preference_title {
    font-size: 16px !important;
    font-weight: 600 !important;
}

.cookieadmin_cookie_modal .stitle {
    font-size: 15px !important;
    font-weight: 600 !important;
}

.cookieadmin_law_container .cookieadmin_btn,
.cookieadmin_cookie_modal .cookieadmin_btn {
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
}

/* ============================================
   12. BLOG SINGLE — SZERZŐ BIO (post-author)
   ============================================ */

.wp-block-avatar__image {
    width: 96px;
    height: 96px;
    object-fit: cover;
    object-position: center top;
    display: block;
}