/*

Theme Name: MyFive

Theme URI: https://frontendtanfolyam.hu/

Author: FrontendTanfolyam

Author URI: https://frontendtanfolyam.hu/pocsik-emese-frontend-fejleszto/

Description: Basic Block Theme by Emese Pocsik

Tags: one-column, custom-colors, custom-menu

Version: 1.0

Requires at least: 5.0

Tested up to: 5.4

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: myfive

*/

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

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

body {
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    /* width: 100%;*/
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header>.wp-block-group {
    width: 100%;
}

body .wp-block-navigation__responsive-container.is-menu-open {
    display: block !important;
}

.wp-block-navigation__container {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

header .wp-block-navigation__container {
    gap: 2.5rem;
}

.wp-block-navigation-item {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

header .wp-block-navigation-item a,
header .wp-block-navigation-item__content {
    color: #7A5C4A !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.wp-block-navigation-item a:hover,
.wp-block-navigation-item__content:hover {
    color: #2A1F18 !important;
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
}

.step-box {
    position: relative;
}

.step-box:before {
    position: absolute;
    content: '';
    width: 100%;
    background: #D6C9B4;
    height: 1px;
    top: 50%;
}

.hero-col2 {
    position: relative;
}

.hero-black {
    position: absolute;
    bottom: 0;
}

.border-img img {
    border-radius: 5px !important;
}

.has-neutral-background-color {
    background: transparent !important;
}

.wp-block-button__link {
    border-radius: 3px !important;
}

.wp-block-button__link,
.ajanlat-btn a.wp-block-navigation-item__content {
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--contrast) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.ajanlat-btn a.wp-block-navigation-item__content:hover {
    background-color: var(--wp--preset--color--contrast) !important;
}

.btn-2:hover .wp-block-button__link {
    color: white !important;
}

.best svg {
    background-color: var(--wp--preset--color--neutral) !important;
}

.section-decor,
.hero-decor {
    display: flex;
    gap: 10px;
}

.section-decor::after {
    content: '';
    display: block;
    height: 1px;
    width: 2.5rem;
    background: var(--wp--preset--color--primary) !important;
    opacity: 0.75;
    top: 9px;
    position: relative;
}

.hero-decor::before {
    content: '';
    display: block;
    height: 1px;
    width: 2rem;
    background: var(--wp--preset--color--primary) !important;
    opacity: 0.75;
    top: 9px;
    position: relative;
}

.img-arrow {
    position: relative;
}

.img-arrow:before {
    position: absolute;
    content: '';
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="194" height="194" viewBox="0 0 194 194" fill="none"><circle cx="97" cy="97" r="97" fill="%232A1F18"/><path d="M108.171 62.4293L105.436 65.1651C104.748 65.8521 104.749 66.966 105.436 67.653L131.087 93.3039H51.2592C50.2876 93.3039 49.5 94.0915 49.5 95.0631V98.9329C49.5 99.9044 50.2876 100.692 51.2592 100.692H131.087L105.435 126.344C104.748 127.031 104.748 128.145 105.435 128.832L108.171 131.568C108.858 132.255 109.972 132.255 110.659 131.568L143.985 98.2419C144.672 97.5549 144.672 96.441 143.985 95.754L110.659 62.4293C109.972 61.7423 108.858 61.7423 108.171 62.4293Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    width: 75px;
    height: 75px;
    bottom: -20px;
    right: -20px;
}

header img,
footer img {
    width: 80px !important;
}

ul.no-btn {
    padding-left: 0;
    list-style: none;
}

ul.no-btn li {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0 0.6rem 0.8rem 0;
    padding: 5px 15px;
    border: 1px solid #D6C9B4;
    border-radius: 3px;
    background: #ebe2d3;
    color: #5e4a3e;
    white-space: nowrap;
    font-weight: 500;
}

.wp-element-button.modal {
    background: #F5F0E8;
    color: #C4896A;
}

.wp-block-cb-modal {
    text-align: center;
}

.modal-mask {
    padding: 0 !important;
}

.modal-mask .modal-content {
    border-radius: 4px !important;
    max-width: 900px !important;
}

.column-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-2>div {
    width: calc((100% - (1 * 2rem)) / 2)
}

select {
    width: 100%;
}

input[type="text"],
input[type="email"],
select,
textarea {
    border-radius: 4px;
    background: #FAF6F0;
    border: 1px solid #E0CEBB;
    width: 100%;
    top: -10px;
    position: relative;
    margin-bottom: 0;
}

textarea {
    padding-top: 15px;
}

.contact-form {
    margin: 0;
    font-size: 1rem;
    color: #7A5C4A;
    background: #FDFAF6;
    padding: 3rem 5rem;
}

.contact-form h2 {
    margin-top: 0 !important;
}

.wpcf7-list-item {
    margin: 0 !important;
}

footer li a span:hover {
    color: var(--wp--preset--color--primary)!important;
}

@media only screen and (max-width: 782px) {
    .section-2 .wp-block-columns {
        display: block !important;
    }
    .section-2 .wp-block-column {
        margin: 1rem 0;
    }
    .section-6 .wp-block-column {
        padding: 0 0 2rem 0 !important;
    }
    .section-6 .wp-block-columns:nth-of-type(2) .wp-block-column:last-of-type {
        padding: 0 !important;
    }
    .img-arrow::before {
        transform: translateX(-50%) rotate(90deg);
        left: 50%;
        bottom: -25px;
        width: 50px;
        height: 50px;
    }
    #rolam .wp-block-columns {
        gap: 5rem;
    }
    #rolam .wp-block-columns,
    .hero .wp-block-columns {
        gap: 3rem;
    }
    .hero {
        padding-bottom: 0 !important;
    }
    #rolam,
    #faq {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    footer .wp-block-navigation__container {
        justify-content: flex-start !important;
    }
    .border-img img {
        border-radius: 0 !important;
    }
    .ok-cols .wp-block-group {
        padding: 2rem !important;
    }
    #copyright p {
        line-height: 1.7;
    }
    #copyright p:first-of-type {
        margin-bottom: 5px;
    }
    .hero-decor:before {
        display: none;
    }
    .hero-decor::after {
        content: '';
        display: block;
        height: 1px;
        width: 2.5rem;
        background: var(--wp--preset--color--primary) !important;
        opacity: 0.75;
        top: 9px;
        position: relative;
    }
    .hero-black {
        border-radius: 0 !important;
    }
}

@media only screen and (max-width: 540px) {
    .column-2 {
        display: block
    }
    .column-2>div {
        width: 100%
    }
    .contact-form {
        padding: 1rem;
    }
    .modal-content {
        margin: 1rem !important;
    }
    .wp-container-core-group-is-layout-36931a94> :where(:not(.alignleft):not(.alignright):not(.alignfull)),
    .wp-container-core-group-is-layout-5a78284c> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 100% !important;
    }
}