/*
Theme Name: kaloszabomed
Theme URI: https://kaloszabomed.com/
Author: Káli Réka
Author URI: https://kalieka.hu/
Description: FSE block theme – Kaló-Szabó Attila coaching, szupervízió és mozgásterápia.
Tags: one-column, full-site-editing, block-theme, custom-colors, custom-menu
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaloszabomed
*/

/* ─────────────────────────────────────────────
   BASE RESET
───────────────────────────────────────────── */
html {
    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;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Szöveges oldalak – blokkok közötti térköz */
.page-template-default .wp-block-post-content.is-layout-constrained > * + * {
    margin-block-start: 1.25rem !important;
}

.page-template-default .wp-block-post-content.is-layout-constrained > .wp-block-heading + * {
    margin-block-start: 0.75rem !important;
}

.page-template-default .wp-block-post-content.is-layout-constrained > * + .wp-block-heading {
    margin-block-start: 2.5rem !important;
}

.page-template-default .wp-block-post-content.is-layout-constrained > * + h3.wp-block-heading {
    margin-block-start: 2rem !important;
}

/* ─────────────────────────────────────────────
   NARROW WIDTH UTILITY
   Szerkesztőben add hozzá: "is-narrow"
   Megszorítja a tartalmat ~900px-re
───────────────────────────────────────────── */
.is-narrow {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.is-narrow-text {
    max-width: 900px !important;
}

/* ─────────────────────────────────────────────
   HAMBURGER MENÜ – MEGJELENÍTÉS/ELREJTÉS
   breakpoint: 1340px
───────────────────────────────────────────── */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: block !important;
}

body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
}

@media (min-width: 1340px) {
    body .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }

    body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block !important;
    }
}

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

.wp-block-navigation li a:hover {
    color: var(--wp--preset--color--teal-light) !important;
}
/* ─────────────────────────────────────────────
   MOBIL OVERLAY MENÜ
───────────────────────────────────────────── */
header .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--wp--preset--color--ink) !important;
    color: var(--preset--color--text-inv-hi) !important;
    padding: 2rem 1.5rem !important;
}

.wp-block-navigation__responsive-container-content {
    justify-content: center !important;
    align-items: center !important;
}

/* ─────────────────────────────────────────────
   MOBIL NAV ITEMEK (asztalon is hamburger)
───────────────────────────────────────────── */
header .is-responsive.wp-block-navigation {
    gap: 0;
}

header .wp-block-navigation .wp-block-navigation-item {
    width: 100%;
    padding: 0.875rem 0;
    flex-direction: row !important;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center !important;
    min-height: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

header .wp-block-navigation .wp-block-navigation-item ul {
    width: calc(100% - 1.5rem) !important;
    flex-shrink: 0;
    padding: 0 0 0 1.5rem !important;
}

header .wp-block-navigation-item.has-child li {
    padding: 0.5rem 0;
    border-bottom: none !important;
    min-height: auto;
}

/* ─────────────────────────────────────────────
   HAMBURGER IKON SZÍN
───────────────────────────────────────────── */
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
    fill: rgba(255, 255, 255, 0.8) !important;
}

/* ─────────────────────────────────────────────
   SUBMENU
───────────────────────────────────────────── */
/* @media only screen and (min-width: 1340px) { */
    header ul.wp-block-navigation-submenu {
        background: var(--wp--preset--color--deep);
        padding: 0.625rem 0;
        box-shadow: 0 4px 24px rgba(17, 26, 31, 0.3);
        min-width: max-content !important;
        border: none !important;
        border-radius: 3px !important;
    }

    header ul.wp-block-navigation-submenu a {
        padding: 0.5rem 1.25rem !important;
    }
/ *} */

/* ─────────────────────────────────────────────
   MOBIL MENÜ ANIMÁCIÓ
───────────────────────────────────────────── */
.wp-block-navigation-submenu__toggle,
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body header .wp-block-navigation__responsive-container.is-menu-open {
    animation: overlay-menu-enter 0.3s ease-out forwards;
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon[aria-expanded="false"] + ul {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon[aria-expanded="true"] + ul {
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

@keyframes overlay-menu-enter {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ─────────────────────────────────────────────
   HOME HERO
───────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    background-image: url('/wp-content/uploads/csigalepcso-hero-fallback.jpg');
    background-size: cover;
    background-position: center;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

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

.hero.mozgas {
    background-image: url('/wp-content/uploads/mozgasterapia-hero-2-fallback.webp');

}

/* ─────────────────────────────────────────────
   HITVALLÁS SZEKCIÓ – háttér idézőjel
───────────────────────────────────────────── */
.hitvallas-section {
    position: relative;
    overflow: hidden;
}

.hitvallas-section::before {
    content: '\201C';
    position: absolute;
    top: 5%;
    left: 10%;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(12rem, 22vw, 20rem);
    font-weight: 800;
    line-height: 1;
    color: #5AADAD;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.hitvallas-section > .wp-block-group__inner-container,
.hitvallas-section > * {
    position: relative;
    z-index: 1;
}

/* ─────────────────────────────────────────────
   SITE BLOCKS – FELSŐ MARGÓ NULLÁZÁS
   WP FSE alapértelmezett margin override
───────────────────────────────────────────── */
:where(.wp-site-blocks) > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* ─────────────────────────────────────────────
   FULL WIDTH BLOKKOK – PADDING RESET
   alignfull esetén a root padding ne érvényesüljön
───────────────────────────────────────────── */
.wp-site-blocks > .alignfull,
.wp-site-blocks > .wp-block-group.alignfull,
.wp-site-blocks > .wp-block-cover.alignfull,
.wp-site-blocks > .wp-block-columns.alignfull {
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 0)) !important;
    margin-right: calc(-1 * var(--wp--style--root--padding-right, 0)) !important;
    width: calc(100% + var(--wp--style--root--padding-left, 0) + var(--wp--style--root--padding-right, 0)) !important;
    max-width: none !important;
}

/* ─────────────────────────────────────────────
   ARANY CTA GOMB – GOLD GLOW EFFEKT
   Premium megjelenés radial glow-val
───────────────────────────────────────────── */
.wp-block-button:not(.is-style-outline):not(.is-style-outline-teal):not(.is-style-teal-solid) > .wp-block-button__link {
    position: relative;
    box-shadow:
        0 2px 8px rgba(184, 152, 66, 0.25),
        0 4px 20px rgba(184, 152, 66, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-button:not(.is-style-outline):not(.is-style-outline-teal):not(.is-style-teal-solid) > .wp-block-button__link::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: radial-gradient(ellipse at center,
            rgba(184, 152, 66, 0.20) 0%,
            rgba(184, 152, 66, 0.08) 40%,
            rgba(184, 152, 66, 0) 70%);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wp-block-button:not(.is-style-outline):not(.is-style-outline-teal):not(.is-style-teal-solid) > .wp-block-button__link:hover {
    box-shadow:
        0 4px 12px rgba(184, 152, 66, 0.35),
        0 8px 32px rgba(184, 152, 66, 0.25);
    transform: translateY(-1px);
}

.wp-block-button:not(.is-style-outline):not(.is-style-outline-teal):not(.is-style-teal-solid) > .wp-block-button__link:hover::before {
    opacity: 1;
}

.wp-block-button:not(.is-style-outline):not(.is-style-outline-teal):not(.is-style-teal-solid) > .wp-block-button__link:active {
    transform: translateY(0);
    box-shadow:
        0 2px 6px rgba(184, 152, 66, 0.30),
        0 4px 16px rgba(184, 152, 66, 0.20);
}

/* ─────────────────────────────────────────────
   TEAL SOLID GOMB – TEAL GLOW EFFEKT
   Mozgásterápia oldal CTA
───────────────────────────────────────────── */
.wp-block-button.is-style-teal-solid > .wp-block-button__link {
    position: relative;
    box-shadow:
        0 2px 8px rgba(90, 173, 173, 0.25),
        0 4px 20px rgba(90, 173, 173, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-button.is-style-teal-solid > .wp-block-button__link::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: radial-gradient(ellipse at center,
            rgba(90, 173, 173, 0.20) 0%,
            rgba(90, 173, 173, 0.08) 40%,
            rgba(90, 173, 173, 0) 70%);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wp-block-button.is-style-teal-solid > .wp-block-button__link:hover {
    box-shadow:
        0 4px 12px rgba(90, 173, 173, 0.35),
        0 8px 32px rgba(90, 173, 173, 0.25);
    transform: translateY(-1px);
}

.wp-block-button.is-style-teal-solid > .wp-block-button__link:hover::before {
    opacity: 1;
}

.wp-block-button.is-style-teal-solid > .wp-block-button__link:active {
    transform: translateY(0);
    box-shadow:
        0 2px 6px rgba(90, 173, 173, 0.30),
        0 4px 16px rgba(90, 173, 173, 0.20);
}


/* Outline-teal variáció */
.wp-block-button.is-style-outline-teal > .wp-block-button__link {
    background-color: transparent !important;
    color: var(--wp--preset--color--teal-light) !important;
    border: 1px solid var(--wp--preset--color--teal-light) !important;
    border-radius: 3px !important;
}

.wp-block-button.is-style-outline-teal > .wp-block-button__link:hover {
    background-color: rgba(90, 173, 173, 0.12) !important;
}

/* Teal-solid variáció */
.wp-block-button.is-style-teal-solid > .wp-block-button__link {
    background-color: var(--wp--preset--color--teal-light) !important;
    color: var(--wp--preset--color--ink) !important;
    border-radius: 3px !important;
}

.wp-block-button.is-style-teal-solid > .wp-block-button__link:hover {
    background-color: #6BBFBF !important;
}

/* ─────────────────────────────────────────────
   INSET SHADOW UTILITY CLASS-OK
───────────────────────────────────────────── */
.shadow-inset {
    box-shadow: inset 0 0 24px rgba(17, 26, 31, 0.10);
}

.shadow-inset-gold {
    box-shadow: inset 0 0 28px rgba(184, 152, 66, 0.18);
}

.shadow-inset-teal {
    box-shadow: inset 0 4px 28px rgba(90, 173, 173, 0.4),
    0 4px 8px rgba(17, 26, 31, 0.08),
    0 16px 40px rgba(17, 26, 31, 0.12);
}

.shadow-inset-violet {
    box-shadow: inset 0 0 28px rgba(94, 78, 114, 0.18);
}

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

.testimonial-slider {
    background: radial-gradient(ellipse at center, rgba(43, 72, 85, 0.25) 0%, transparent 60%);
}

/* ─────────────────────────────────────────────
   RÓLAM SZEKCIÓ – HERO KÉP
───────────────────────────────────────────── */
.rolam-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

/* ─────────────────────────────────────────────
   HITVALLÁS SZEKCIÓ – VIDEÓ ÉS EKG
───────────────────────────────────────────── */

/* Kör alakú videó wrapper */
.circle-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 49%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(17, 26, 31, 0.15);
}

.circle-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Natív vezérlők elrejtése */
.circle-video::-webkit-media-controls {
    display: none !important;
}

.circle-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Custom play gomb - outline stílus */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.25);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(184, 152, 66, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.3s ease, background 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;

}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

/* Play ikon háromszög */
.video-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent rgba(184, 152, 66, 0.9);
    margin-left: 5px;
}

@media (max-width: 781px) {

    .video-play-btn {
        width: 60px;
    }

    .video-play-btn::after {
        border-width: 10px 0 10px 16px;
        margin-left: 4px;
    }
}

/* EKG container */
.ekg-container {
    margin-top: var(--wp--preset--spacing--xl);
    overflow: hidden;
}

/* EKG vonal kirajzolódó animáció */
.ekg-line {
    width: 100%;
    height: auto;
    max-height: 80px;
}

.ekg-line .ekg-path {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
}

/* Animáció csak akkor indul, ha látható */
.ekg-line.animate .ekg-path {
    animation: draw-ekg 2.5s ease-out forwards;
}

@keyframes draw-ekg {
    to {
        stroke-dashoffset: 0;
    }
}

/* ── Az utam – Tab override ──────────────────────────── */

.kszm-az-utam-tabs.wp-block-cb-tabs .tab-labels li {
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    opacity: 0.5;
    transition: all 0.25s ease;
    background: none;
    font-family: var(--wp--preset--font-family--display);
    font-weight: 700;
    color: var(--wp--preset--color--deep);
}

.kszm-az-utam-tabs.wp-block-cb-tabs .tab-labels li:hover {
    opacity: 0.8;
}

.kszm-az-utam-tabs.wp-block-cb-tabs .tab-labels li.active {
    opacity: 1;
    color: var(--wp--preset--color--gold);
    border-bottom-color: var(--wp--preset--color--gold);
    background: none;
}

.kszm-az-utam-tabs.wp-block-cb-tabs .tab-labels {
    border-bottom: 2px solid rgba(25, 49, 58, 0.15);
}

.kszm-az-utam-tabs.wp-block-cb-tabs .tab-content {
    border: none;
}

.wp-block-cb-tabs .tab-panel {
        padding: 0!important;
    }

/* Badge pill */

.kszm-badges > p {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--wp--preset--color--mid);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.25s ease;
    margin: 0;
}

.kszm-badges > p::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wp--preset--color--gold);
}

.kszm-badges.wp-block-group {
    gap: 0.625rem;
}

/* ─────────────────────────────────────────────
   IDŐPONTFOGLALÁS – MINUP EMBED
───────────────────────────────────────────── */
/* EKG dekoratív vonal a szekció tetején */
.ekg-decorator {
    width: 100%;
    overflow: hidden;
}

.ekg-decorator svg {
    width: 100%;
    height: 50px;
}

/* EKG dekoratív vonal animáció */
.ekg-decorator svg path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.ekg-decorator.animate svg path {
    animation: draw-ekg 2s ease-out forwards;
}

.minup-embed-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1), 0 2px 12px rgba(255, 255, 255, 0.05);

}

.light-shadow {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1), 0 2px 12px rgba(255, 255, 255, 0.05);
}

.minup-embed {
    width: 100% !important;
    max-width: 750px;
    min-height: 590px;
    height: 590px;
    border: none;
    border-radius: 16px;
}

@media (max-width: 781px) {
    .minup-embed {
        width: 100% !important;
        min-width: 100%;
        max-width: 100%;
        height: 650px !important;
        min-height: 650px;
    }
     .ekg-decorator svg {
        height: 30px;
    }
    
    .kszm-az-utam-tabs.wp-block-cb-tabs .tab-labels li {
        padding: 0.6rem 1rem;
    }

   .kszm-badges > p  {
        font-size: 0.85rem;
        padding: 0.4rem 0.9rem;
    }
}


/* ─────────────────────────────────────────────
   MOZGÁSTERÁPIA – PROBLÉMA KÁRTYÁK
───────────────────────────────────────────── */
.problema-kartya {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-shadow: var(--wp--preset--shadow--card);
    border: 2px solid transparent;
}

.problema-kartya:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(90, 173, 173, 0.2), 0 0 0 2px rgba(90, 173, 173, 0.3);
}

.problema-kartya .stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.problema-kartya .stretched-link {
    text-decoration: none;
}

@media (max-width: 781px) {
    .problema-kartya {
        margin-bottom: var(--wp--preset--spacing--m);
    }
}

/* SZOLGÁLTATÁS KÁRTYÁK */
.szolgaltatas-sor .wp-block-cover {
    height: 100%;
    min-height: 350px;
}

/* MOZGÁSTERÁPIA – ÁLLÓ VIDEÓ */
.portrait-video-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
   
}

.portrait-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--wp--preset--shadow--lg);
}

/* Miben segíthetek – 5 kártya törése */
@media (max-width: 1100px) and (min-width: 782px) {
    .miben-segithetek-kartyak {
        flex-wrap: wrap!important;
        gap: var(--wp--preset--spacing--m)!important;
    }
    .miben-segithetek-kartyak > .wp-block-column {
        flex-basis: calc(33.333% - var(--wp--preset--spacing--m)) !important;
        flex-grow: 0!important;
    }
}

@media (max-width: 782px) {
    .miben-segithetek-kartyak {
        gap: var(--wp--preset--spacing--l)!important;
    }
}

/* ─────────────────────────────────────────────
   MOZGÁSTERÁPIA – 4 NEGYEDES KÖR (Test mint rendszer)
───────────────────────────────────────────── */
.test-rendszer-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--wp--preset--spacing--xl);
    align-items: center;
}

.test-rendszer-text {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.test-rendszer-text.active,
.test-rendszer-wrapper:hover .test-rendszer-text:hover {
    opacity: 1;
}

.test-rendszer-kor {
    width: 280px;
    height: 280px;
    position: relative;
}

.kor-negyed {
    position: absolute;
    width: 135px;
    height: 135px;
    background: var(--wp--preset--color--teal);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.kor-negyed:hover {
    opacity: 1;
}

.kor-negyed.top-left {
    top: 0;
    left: 0;
    border-radius: 135px 4px 4px 4px;
}

.kor-negyed.top-right {
    top: 0;
    right: 0;
    border-radius: 4px 135px 4px 4px;
}

.kor-negyed.bottom-left {
    bottom: 0;
    left: 0;
    border-radius: 4px 4px 4px 135px;
}

.kor-negyed.bottom-right {
    bottom: 0;
    right: 0;
    border-radius: 4px 4px 135px 4px;
}

.kor-kozep {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--wp--preset--color--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--ink);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    z-index: 2;
}

@media (max-width: 781px) {

    .test-rendszer-wrapper {
        grid-template-columns: 1fr;
        gap: 0;

    }

    .test-rendszer-kor {
        display: none;
    }

    .test-rendszer-text {
        opacity: 1;
        padding: var(--wp--preset--spacing--m);
        background: rgba(90, 173, 173, 0.1);
        border-radius: 12px;
        margin-top: 0 !important;
        margin-bottom: var(--wp--preset--spacing--s);
    }
}

.kapcsolat-ikon img {
    vertical-align: middle !important;
}

/* Mozgás logo */
.mozgas-logo-animated {
    width: 5rem;
    height: auto;
}

/* ── Mozgásterápia logó animáció ── */
.mozgas-logo-animated .glow,
.mozgas-logo-animated .frame,
.mozgas-logo-animated .spine,
.mozgas-logo-animated .csigolya {
    opacity: 0;
}

.mozgas-logo-animated.in-view .csigolya {
    transform-origin: center;
    transform: scale(0.5);
}

.mozgas-logo-animated.in-view .frame  { animation: frameFadeIn 0.6s ease-out 0.2s forwards; }
.mozgas-logo-animated.in-view .spine  { animation: spineFadeIn 0.6s ease-out 0.4s forwards; }
.mozgas-logo-animated.in-view .glow   { animation: glowFadeIn 1s ease-out 1.8s forwards; }
.mozgas-logo-animated.in-view .csigolya-1  { animation: csigolyaIn 0.3s ease-out 0.6s forwards; }
.mozgas-logo-animated.in-view .csigolya-2  { animation: csigolyaIn 0.3s ease-out 0.72s forwards; }
.mozgas-logo-animated.in-view .csigolya-3  { animation: csigolyaIn 0.3s ease-out 0.84s forwards; }
.mozgas-logo-animated.in-view .csigolya-4  { animation: csigolyaIn 0.3s ease-out 0.96s forwards; }
.mozgas-logo-animated.in-view .csigolya-5  { animation: csigolyaIn 0.3s ease-out 1.08s forwards; }
.mozgas-logo-animated.in-view .csigolya-6  { animation: csigolyaIn 0.3s ease-out 1.2s forwards; }
.mozgas-logo-animated.in-view .csigolya-7  { animation: csigolyaIn 0.3s ease-out 1.32s forwards; }
.mozgas-logo-animated.in-view .csigolya-8  { animation: csigolyaIn 0.3s ease-out 1.44s forwards; }
.mozgas-logo-animated.in-view .csigolya-9  { animation: csigolyaIn 0.3s ease-out 1.56s forwards; }
.mozgas-logo-animated.in-view .csigolya-10 { animation: csigolyaIn 0.3s ease-out 1.68s forwards; }

@keyframes glowFadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes frameFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes spineFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes csigolyaIn   { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }

/* ─────────────────────────────────────────────
   STICKY CTA – Naptár ikon
───────────────────────────────────────────── */
.kszm-sticky-cta {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kszm-sticky-cta:hover {
    background-color: #A08638;
}

.kszm-sticky-cta::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--wp--preset--color--gold);
    opacity: 0;
    animation: kszm-pulse 2s ease-out 0.5s infinite;
}

@keyframes kszm-pulse {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.5); }
}

/* ── Scroll to Top ── 
.scroll-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(90, 173, 173, 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(90, 173, 173, 0.3);
} */

/*Reszponzív */

@media (max-width: 912px) {
    .hero .wp-block-group {
        padding-top: 4rem !important;
    }
}

@media (max-width: 781px) {

    .szolgaltatas-sor .wp-block-column,
    .szolgaltatas-sor .wp-block-cover {
        border-radius: 0 !important;
    }

    .szolgaltatas-sor.wp-block-columns {
        gap: 0;
        border-radius: 16px;
        overflow: hidden;
    }

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

@media (max-width: 480px) {
    .szolgaltatas-sor .wp-block-cover {
        min-height: 250px;
    }

    .page-id-454 .has-display-font-size {
        font-size: clamp(2.25rem, 9vw, var(--wp--preset--font-size--display, 4rem)) !important;
        hyphens: auto;
        -webkit-hyphens: auto;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .footline-2 {
    justify-content: center!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;
}