/*
Theme Name: HoldKrónikák2026
Theme URI: https://holdkronikak.hu/
Author: EkkaPixels
Author URI: https://ekkapixels.hu
Description: Basic Block Theme by Erika Molnar
Tags: one-column, custom-colors, custom-menu
Version: 2.0.1
Requires at least: 6.4
Tested up to: 6.6
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: holdkronikak2026
*/


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

body {
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
    background-color: #FFFCFA;
    color: #262626;
}
}

.wp-block-embed iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9 !important;
}

main {
    margin: 0;
}

/* ============================================================
   KÉPEK – RESZPONZÍV ALAP
   ============================================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   LINKEK – ALAP
   ============================================================ */

a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   TIPOGRÁFIA – RESZPONZÍV ALAP
   ============================================================ */

@media screen and (max-width: 1199px) {
    body {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }
}

/* ============================================================
   BACK TO TOP GOMB
   ============================================================ */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--wp--preset--color--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
}

#back-to-top:hover {
    background-color: var(--wp--preset--color--hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#back-to-top.show {
    display: flex;
}

#back-to-top svg {
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

#back-to-top:hover svg {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 15px;
    }

    #back-to-top svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   EGYÉB STÍLUSBEÁLLÍTÁSOK
   ============================================================ */

@media screen and (max-width: 768px) {
    .reverse {
        flex-direction: column-reverse;
    }

    .desktop-only {
        display: none;
    }
}

.single main h2 {
    border-bottom: 3px solid var(--wp--preset--color--primary);
    padding-bottom: 1rem;
}

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

ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
}

ol li::before {
    content: counter(step-counter) ".";
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    background-color: var(--wp--preset--color--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__label {
    white-space: nowrap;
}

.wp-block-navigation__submenu-container.wp-block-navigation-submenu {
    min-width: max-content;
    padding: 0.5vw 0.5vw;
}

.wp-block-navigation__submenu-container.wp-block-navigation-submenu li a:hover span,
.wp-block-navigation__container li a:hover span {
    color: var(--wp--preset--color--hover);
}

.word {
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--wp--preset--color--primary);
    height: 4rem;
}

p strong {
    background-color: var(--wp--preset--color--gradients);
}

.site-box strong {
    background-color: inherit;
}

.site-hero,
.main-site-hero,
.border-img,
.main-border-img,
.block-bg {
    position: relative;
    z-index: 1;
}

.site-hero:before,
.main-site-hero:before,
.block-bg:before {
    position: absolute;
    content: "";
    display: block;
    height: 100%;
    background-color: var(--wp--preset--color--accent);
    top: 0;
    z-index: 1;

}

.main-site-hero:before,
.block-bg:before {
    right: 0;
}

.site-hero:before {
    left: 0;
}

.site-hero:before,
.main-site-hero:before {
    width: 30%;
}

.block-bg:before {
    width: 65%;
}

.border-img img,
.main-border-img img,
.main-box {
    border-top-left-radius: 250px !important;
    border-top-right-radius: 250px !important;
}

.border-img,
.main-border-img {
    border-top-left-radius: 250px;
    border-top-right-radius: 250px;
    width: 70%;
    padding: 1rem;
    position: relative;
    margin: 0 auto;
}

.main-border-img:before,
.border-img:before {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--wp--preset--color--primary);
    top: 0;
    left: 0;
    z-index: 2;
    border-top-left-radius: 250px;
    border-top-right-radius: 250px;
}


.border-img:after,
.main-border-img:after {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 90%;
    background-color: var(--wp--preset--color--accent);
    top: -0.75rem;
    z-index: -1;
    border-top-left-radius: 250px;
    border-top-right-radius: 250px;
}

.main-border-img:after {
    left: -0.75rem;
}

.border-img:after {
    right: -0.75rem;
}

.dark-after:before {
    position: absolute;
    content: "";
    display: block;
    width: 60%;
    height: 30%;
    background-color: var(--wp--preset--color--primary);
    bottom: 0;
    left: 0;
    z-index: -1;
}

.main-box:hover {
    background-color: var(--wp--preset--color--primary) !important;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.wp-block-list li:marker {
    color: var(--wp--preset--color--primary)
}

.hills {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.hills:before,
.hills:after {
    position: absolute;
    content: "";
    display: block;
    width: 500px;
    height: 100%;
    bottom: 0;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100%;
}

.hills:before {
    left: -10rem;
    background-image: url(img/hills-left.svg);
}

.hills:after {
    right: -10rem;
    background-image: url(img/hills-right.svg);
    z-index: -1;
}

#sb_instagram {
    max-width: 100%;
}

#sb_instagram #sbi_images {
    padding: 0;
}

footer {
    margin: 0;
}

.wpcf7-form label {
    background-color: var(--wp--preset--color--secondary);
}

.wc-block-components-address-form-wrapper .wc-blocks-components-select__label,
.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-text-input label {
    position: absolute;
    top: -15% !important;
    left: 2%;
    z-index: 2;
    background-color: var(--wp--preset--color--secondary);
}


.wc-block-components-text-input.wc-block-components-address-form__phone label {
    top: -3% !important;
    font-size: 0.85rem !important;
}

.wpcf7-acceptance label {
    background-color: unset;
}

.wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.wp-block-categories-list li,
.wp-block-term-template li {
    display: inline-block;
}

.wp-block-categories-list,
.wp-block-terms-query {
    text-align: center;
}

.wp-block-categories-list .current-cat,
.wp-block-post-terms__separator {
    display: none !important;
}

.taxonomy-category.wp-block-post-terms a,
.wp-block-categories-list .cat-item a,
.wp-block-term-template li p a,
.taxonomy-product_cat a {
    border: 1px solid #262626;
    background-color: var(--wp--preset--color--gradients);
    border-radius: 20px;
    padding: 0.2rem 0.5rem;
    display: inline-block;
    margin: 0.5rem 0.5rem 0.5rem 0;
    color: var(--wp--preset--color--primary-text);

}

.taxonomy-category.wp-block-post-terms a {
    font-size: smaller;
}

.taxonomy-category.wp-block-post-terms a:hover,
.wp-block-categories-list .cat-item a:hover,
.wp-block-term-template li p a:hover {
    color: var(--wp--preset--color--primary);
}

.wp-block-woocommerce-product-collection {
    max-width: 1200px;
}

.tick-list li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 0.5rem;
    margin-left: 0;
}

.tick-list li:before {
    position: absolute;
    content: "";
    display: block;
    top: 0;
    left: 0;
    width: 8px;
    height: 15px;
    border: solid var(--wp--preset--color--primary);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.dark-half {
    position: relative;
    z-index: 0;
}

.dark-half:after {
    position: absolute;
    content: "";
    display: block;
    height: 100%;
    width: 20%;
    background-color: var(--wp--preset--color--primary);
    left: 0;
    top: 0;
    z-index: -1;
}


/* Slides: egyforma magas slide-ok, nem ugrál a szekció magassága */
swiper-container.wp-block-cb-slides::part(wrapper) {
    height: auto !important;
}

swiper-container.wp-block-cb-slides swiper-slide,
swiper-container.wp-block-cb-slides .swiper-slide {
    height: auto;
}

swiper-container.wp-block-cb-slides swiper-slide > .wp-block-columns,
swiper-container.wp-block-cb-slides .swiper-slide > .wp-block-columns {
    height: 100%;
}

.wp-block-cb-faq {
    border: 1px solid var(--wp--preset--color--primary);
    padding: 0.75rem;
    margin: 0.5rem auto;
    z-index: 10;
    position: relative;
    background-color: #FFFCFA;
    border-radius: 5px;
}

.wp-block-cb-faqs .faq-label {
    border-bottom: 0 !important;
    padding: 0.5rem !important;
}

.wp-block-cb-faqs .faq-content {
    border: unset !important;
}

.wp-block-cb-faq.active {
    background: var(--wp--preset--color--primary);
    color: #fff;
}

/* WOOCOMMERCE */

.woocommerce div.product {
    margin-top: 0;
}

.single-product main h2 {
    border-bottom: unset;
    padding-bottom: 0;
}

.woocommerce span.onsale,
.woocommerce div.product div.images .woocommerce-product-gallery__trigger,
.tabs {
    display: none;
}

.wc-block-product-filter-chips__item[aria-checked=true] {
    color: #262626;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0.5rem 0;
}

.woocommerce-MyAccount-navigation ul:first-of-type li {
    padding: 0 !important;
    border: 1px solid var(--wp--preset--color--primary);
    -webkit-appearance: none;
    list-style-type: none;
    margin-left: 0;
}

.woocommerce-MyAccount-navigation ul:first-of-type li a {
    padding: 0.5rem 2rem;
    z-index: 1;
    position: relative;
    text-align: center;
}

.woocommerce-MyAccount-navigation ul:first-of-type li:hover {
    background-color: var(--wp--preset--color--primary);
     !important;
}

.woocommerce-MyAccount-navigation ul:first-of-type li:hover a {
    color: #fff;
}

.woocommerce-MyAccount-navigation .is-active {
    background-color: var(--wp--preset--color--primary) !important;
    color: #fff;
}

.woocommerce-MyAccount-navigation a {
    display: block;
}

.woocommerce-MyAccount-navigation a:hover {
    color: var(--wp--preset--color--primary);
}

.woocommerce-MyAccount-navigation .is-active a {
    color: #fff !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    text-decoration: none;
}

.wc-block-checkout__login-prompt {
    position: relative;
    z-index: 5;
}

.woocommerce-message {
    background: #eee;
    color: #111;
}

.woocommerce-error,
.woocommerce-info {
    color: #fff;
}

.woocommerce-error a,
.woocommerce-info a {
    color: var(---wp--preset--color--primary);
}

.woocommerce-error a:hover,
.woocommerce-info a:hover {
    color: #fff;
}

.woocommerce-error a.button,
.woocommerce-info a.button {
    background: #111;
}

.woocommerce-error {
    background: #b22222;
}

.woocommerce-info {
    background: var(---wp--preset--color--primary);
    border-top-color: var(--wp--preset--color--hover) !important;
}

.woocommerce-info::before {
    color: var(--wp--preset--color--hover) !important;
}

.woocommerce-store-notice {
    background: var(--wp--preset--color--primary);
    color: #fff;
    padding: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.wc-block-components-notice-banner.is-info {
    background-color: var(--wp--preset--color--neutral);
    border-color: var(--wp--preset--color--primary);
}

.wc-block-components-notice-banner.is-info > svg {
    background-color: var(--wp--preset--color--primary);
}

.wc-block-cart-item__image > *:not(:first-child),
.wc-block-cart-item__image img:not(:first-of-type) {
    display: none !important;
}

/* Tanfolyam részletei */

.kurzus-reszletek {
    border: 1px solid var(--wp--preset--color--primary, #b39a66);
    border-radius: 4px;
    padding: 2rem 1.25rem;
    background: #fffaf7;
}

.kurzus-reszletek__cim {
    font-style: italic;
    font-weight: 400;
    margin: 0 0 1.5rem;
}

.kurzus-reszletek ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.25rem;
}

.kurzus-reszletek li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.kurzus-reszletek li:last-child {
    margin-bottom: 0;
}

.kurzus-ikon {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--wp--preset--color--primary, #b39a66);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kurzus-ikon svg {
    width: 16px;
    height: 16px;
}

.ek-course-nav button[data-ld-expand-text] {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.ek-course-nav button[data-ld-expand-text] br,
.ek-course-nav button[data-ld-expand-text] p:empty {
    display: none !important;
}

.ek-course-nav button[data-ld-expand-text] p {
    display: contents !important;
    margin: 0 !important;
}

.ek-course-nav button[data-ld-expand-text] .ld-expand-text {
    white-space: nowrap;
}


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

    .border-img,
    .main-border-img {
        width: 90%;
    }

    .border-img:after,
    .main-border-img:after {
        top: -1rem;
        width: 110%;
    }

    .main-border-img:after {
        left: -1rem;
    }

    .site-hero:before,
    .main-site-hero:before,
    .dark-half:after {
        bottom: 0;
        height: 30%;
        width: 100%;
        top: unset;
    }

    .dark-half:after {
        display: none;
    }

    .block-bg:before {
        height: 75%;
        width: 100%;
    }

    .box {
        margin-left: 0;
    }

    .float-img-box figure {
        margin-top: 0 !important;
    }

    .own-contact {
        display: block !important;
    }

    .page-template-page-landing .hills:before,
    .page-template-page-landing .hills:after {
        display: none;
    }
}

@media (max-width: 600px) {
    .wc-block-product-template.wc-block-product-template__responsive {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .wc-block-product-template.wc-block-product-template__responsive {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* mobil menü */
/* Overlayben az almenü alapból zárva */
.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
    display: none !important;
}

/* Kattintás után nyitva, behúzva, doboz nélkül */
.is-menu-open .wp-block-navigation-item.has-child.ek-open > .wp-block-navigation__submenu-container {
    display: flex !important;
    flex-direction: column;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.5rem 0 0 1rem !important;
}

.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: 0.4rem 0 !important;
    font-size: 0.95em;
}

/* Nyíl: zárva lefelé, nyitva felfelé */
.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon svg {
    transform: rotate(0deg) !important;
    transition: transform 0.2s ease;
}

.is-menu-open .wp-block-navigation-item.has-child.ek-open > .wp-block-navigation__submenu-icon svg {
    transform: rotate(180deg) !important;
}

.is-menu-open .wp-block-navigation-item.has-child {
    flex-wrap: wrap !important;
}

.is-menu-open .wp-block-navigation-item.has-child.ek-open > .wp-block-navigation__submenu-container {
    flex-basis: 100% !important;
    width: 100% !important;
}

button.wp-block-navigation-item__content {
    padding-top: 0;
    padding-bottom: 0;
}
