/*
Theme Name: kimondhato theme by pixelben otthon
Theme URI: 
Author: Szilvasi Orsolya
Author URI: https://pixelbenotthon.hu
Description: kimondhato theme by Szilvasi Orsolya
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kimondhato_theme
*/

/* Arculati színek*/

.has-feher-color {
    color: #fff;
}

.has-fekete-color {
    color: #211f1c;
}

.has-vilagossarga-color {
    color: #fff2d9;
}

.has-mentazold-color {
    color: #91c7b0;
}

.has-sotetkek-color {
    color: #004f77;
}

.has-narancs-color {
    color: #ffb757;
}

.has-feher-background-color {
    background-color: #fff;
}

.has-fekete-background-color {
    background-color: #211f1c;
}

.has-vilagossarga-background-color {
    background-color: #fff2d9;
}

.has-mentazold-background-color {
    background-color: #91c7b0;
}

.has-sotetkek-background-color {
    background-color: #004f77;
}

.has-narancs-background-color {
    background-color: #ffb757;
}

.has-grey-linear-gradient-background{
    background:linear-gradient(180deg,rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 70%);
}

/*General*/

html{
    font-family: "Plus Jakarta Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    font-size: 18px;
    color:#211f1c;
}

@media only screen and (max-width: 768px) {
    html {
        font-size: 16px;
        line-height: 1.4;
    }
}

.content-box {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

main, aside{
    padding-top: 3rem;
    padding-bottom: 3rem;
}

main+h1{

}

a{
    text-decoration: none;
    color:#004f77;
    cursor: pointer;
}

a:hover{
    color: #ffb757;
}

/*Média és szöveg*/
.wp-block-media-text{
    margin-bottom: 1rem;
    margin-top: 1rem;
}

/*gombok*/

.wp-block-buttons{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.wp-block-buttons>.wp-block-button{
    margin-left: 30px;
    margin-bottom: 2rem;
}

.wp-block-buttons>.wp-block-button:first-of-type{
    margin-left: 0px;
}

.wp-block-button__link{
    padding: 0.5em 1em;
    margin-top: 1.5rem;
    font-weight:500;
    text-align: center;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: solid 2px #ffb757;
    background-color: #ffb757 ;
    color: #211f1c;
    height:fit-content;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wp-block-button__link::after{
    content: "";
    width: 0;
    height: 1.5em;
    flex: 0 0 auto;
    overflow: hidden;
    background-image: url("img/arrows-black.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transform: translateX(-6px);
    transition: width 0.2s ease, margin-left 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.wp-block-button__link:hover::after,
.wp-block-button__link:focus-visible::after{
    width: 1.5em;
    margin-left: 0.4em;
    opacity: 1;
    transform: translateX(0);
}

.is-style-outline > .wp-block-button__link{
    padding: 0.5em 1em;
    background-color: #ffffff00;
    color: #f7aa2a;
    border: solid 2px #ffb757;
}

.is-style-outline > .wp-block-button__link::after{
    background-image: url("img/arrows-orange.svg");
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible{
    border: solid 2px #ffb757;
    background-color: #ffb757 ;
    color: #211f1c;
}

.is-style-outline > .wp-block-button__link:hover,
.is-style-outline > .wp-block-button__link:focus-visible{
    background-color: #ffffff00;
    color: #f7aa2a;
    border: solid 2px #ffb757;
}

.row{
    display: flex;
    justify-content: space-between;
}

/* Typography */

h1, h2, h3, h4, h5, h6{
    font-family: "Parkinsans", sans-serif;
    font-weight: 600;
    line-height: 1.4;
    color:#004f77;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-size: 1.65rem; 
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

h3 {
    font-size: 1.35rem; 
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.15rem;
    margin-top: 1.6rem;
    margin-bottom: 0.75rem;
}

h5 {
    font-size: 1.05rem; 
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}

h6 {
    font-size: 0.95rem; 
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    opacity: 0.8;
    
}


h2+h3, h3+h4, h4+h5, h5+h6 {
    margin-top: 0.5rem;
}

section + section{
    margin-top: 100px;
}

section{
    margin-bottom: 100px;
}

p{
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

p:last-of-type{
    margin-bottom: 0;
}

/*listák*/

main ul>li, main ol>li{
    position: relative;
    padding-left: 4rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

main ul>li:before{
    content:url("");
    background-image: url(img/dot.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center ;
    width: 0.75rem;
    height: 0.75rem;
    position: absolute;
    left: 2.5rem;
    top: 7px;
}

main ol{
    counter-reset: my-li-counter;
}

main ol>li{
    counter-increment: my-li-counter;
}

main ol>li::before{
    content:counter(my-li-counter)".";
    display: inline-block;
    color:#6dad90;
    font-weight: 500;
    font-size: 1rem;
    position: absolute;
    left: 2.5rem;
}

ol, ul{
    margin-bottom: 27px;
}

/*idézet*/
blockquote.wp-block-quote{
    background-color: #fff2d9;
    padding: 1rem 3rem;
    font-style: italic;
    margin: 1rem 0;
}

blockquote.wp-block-quote cite{
    margin-top: 0.75rem;
    text-align: right;
}

/*lapozás*/

.pagination .nav-links{
    font-family: "Parkinsans", sans-serif;
    font-size: 1.4rem;
    text-align:center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.pagination .nav-links .page-numbers{
    color:#004f77;
    margin: 0 1rem;
    padding: 0.3em 0.5em;
    font-weight: 400;
}

.pagination .nav-links a.page-numbers:hover,
.pagination .page-numbers.current{
    color: #ffb757;
    text-decoration: underline;
}

/*kép*/
.wp-block-image{
    text-align: center;
}

main .wp-block-image img{
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    margin: 1rem auto;
}

/* Layout */
/*title*/

.full-bleed {
    width: 100vw;               /* teljes viewport szélesség */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    margin-bottom: 60px;
}

main ul>li>ul>li{
    font-size: 18px;
}

#go-to-top{
    position: fixed;
    height: 32px;
    width: 50px;
    bottom: 40px;
    right: 40px;
    background: url(img/go-to-top.png);
    cursor: pointer;
    z-index: 8;
}

/*tudásbázis*/

.archive-title a{
    color:#004f77;
}

.has-aside main{
    width:calc(75% - 1rem);
    margin-right: 2rem;
}

aside{
    background-color: #fff2d9;
    width:25%;
    padding-left:1rem;
    padding-right:1rem;
    border-left: 0.75rem solid #91C7B0;
}

#secondary ul li{
    padding-left: 0;
    margin-bottom: 0.5rem;
}

#secondary ul li>a{
    color:#211f1c;
    font-size: 1rem;
}

#secondary ul li ul{
    margin: 0.5rem 0 0 0;
    padding-left: 1rem;
}

.tudasbazis-content{
    margin-right: 2rem;
}

.cat-tags{
    margin-bottom: 3rem;
}
span.cat-temaink a,
span.cat-kinek-szol a,
span.cat-mufaj a{
    display: inline-block;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    padding: 0.25em 0.5em;
    border: solid 1px;
    margin-bottom: 0.5rem;
}

span.cat-temaink a{
    background-color: #004f77;
    color:#fff2d9;
    border-color:#004f77;
}

span.cat-kinek-szol a{
    background-color: #91c7b0;
    color:#0F4060;
    border-color: #91c7b0;
    font-weight: 450;
}
span.cat-mufaj a{
    background-color: #fff;
    color:#004f77;
    border-color:#004f77;
    font-weight: 450;
}

/*service-grid*/

.wp-block-cover{
    min-height:300px;
    align-items:flex-end;
}

.wp-block-cover h3{ 
    font-size:1.6rem;
}

.service-grid{
    grid-gap: 1rem;
    margin-bottom: 1rem;
}

/*cta-bottom*/
.cta-bottom{
    margin-bottom: -3rem;
    margin-top: 60px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff2d9;
    background-image: url(img/cta-bottom.jpg);
}

.cta-bottom h2{
    color:#fff2d9;
}

.cta-bottom .wp-block-buttons{
flex-direction: row;
}

.cta-bottom .is-style-outline > .wp-block-button__link{
    color: #ffb757;
}

.cta-bottom .content-box{
    padding: 40px 0;
}

/*Elválasztó*/
.wp-block-separator{
    color:#91C7B0;
    height: 8px;
    margin: 1rem auto;
}

/*Front-page*/

main#front-page {
    padding-top: 0;
}
.front-page-cta-bottom.cta-bottom{
    background-image: url(img/fooldal-cta-tamogatas.jpg);
}

.front-page-kinek-szol h3 a{
    color:#004f77;
}

/*tudásbázis gyűjtőoldal*/
.archive-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-gap:2rem;
    align-items: start;
}

.tudasbazis-item{
    max-width: 280px;
    overflow: hidden;
    word-break: break-word;
}

.tudasbazis-title{
    font-size: 1.3rem;
}

.archive-item{
    max-width: 390px;
}

.archive-thumbnail,
.podcast-thumbnail {
    width: 100%; /* Kitölti a kártya szélességét */
    aspect-ratio: 1 / 1; 
    overflow: hidden; 
    background-color: #f0f0f0; /* Fallback szín, amíg tölt a kép */
}

.archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ez a "mágia": levágja a széleket, de nem torzít */
    object-position: center; /* A kép közepét tartja meg */
    display: block;
}

/*podcast*/
.podcast-item{
    display: grid;
    grid-template-columns:1fr 3fr;
    grid-gap:1rem;
    align-items:start;
    padding: 2rem 0;
    border-bottom: 2px solid #91c7b0;
}

h3.podcast-title{
    margin-top: 0;
    font-size: 1.3rem;
}

.podcast-thumbnail{
    max-width: 200px;
}

.podcast-post-navigation{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 3rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #91c7b0;
}

.podcast-nav-link{
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background-color: #91c7b0;
    color: #004f77;
    text-decoration: none;
}

.podcast-nav-link:hover,
.podcast-nav-link:focus-visible{
    color: #004f77;
}

.podcast-nav-link span{
    font-family: "Parkinsans", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #211f1c;
}

.podcast-nav-link strong{
    display: inline-flex;
    align-items: center;
    line-height: 1.35;
    color: #004f77;
}

.podcast-nav-link--next{
    text-align: right;
}

.podcast-nav-link--previous strong::before,
.podcast-nav-link--next strong::after{
    content: "";
    width: 0;
    height: 1.35em;
    flex: 0 0 auto;
    overflow: hidden;
    background-image: url("img/arrows-black.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition: width 0.2s ease, margin 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.podcast-nav-link--previous strong::before{
    transform: rotate(180deg) translateX(-6px);
}

.podcast-nav-link--next strong{
    justify-content: flex-end;
}

.podcast-nav-link--next strong::after{
    transform: translateX(-6px);
}

.podcast-nav-link--previous:hover strong::before,
.podcast-nav-link--previous:focus-visible strong::before{
    width: 1.35em;
    margin-right: 0.4em;
    opacity: 1;
    transform: rotate(180deg) translateX(0);
}

.podcast-nav-link--next:hover strong::after,
.podcast-nav-link--next:focus-visible strong::after{
    width: 1.35em;
    margin-left: 0.4em;
    opacity: 1;
    transform: translateX(0);
}

/*táblázat*/
.wp-block-table{
    margin:1rem auto;
}

.wp-block-table table{
    background-color:#91C7B0;
}

thead{
    background-color:#004f77;
    color:#fff2d9;
    font-weight: 600;
}

.wp-block-table td, 
.wp-block-table th{
    border-color: #fff2d9;
}

/*Segítőhelyek*/
.segitohely{
    margin-bottom: 1.3rem;
}

/*youtube videók*/
.wp-block-column .wp-block-embed-youtube{
    width: 100%;
}


.wp-block-embed,
.wp-block-embed-youtube {
    width: 70%;
    text-align: center;
    margin: 30px auto 30px auto;
}



/* Töréspontok */

@media only screen and (max-width: 1065px) {
    section + section{
        margin-top: 60px;
    }
    
    section{
        margin-bottom: 60px;
    }
   
    .border{
        padding: 20px;
        margin-bottom: 30px;
    }

    .wp-block-button:first-of-type{
        margin-top: 0px;
        margin-left: 0;
    }
   
    main ul>li:before{
        width: 0.75rem;
        height: 0.75rem;
    }

    body .is-layout-grid{
        grid-template-columns:1fr 1fr;
    }

    .archive-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tudasbazis-item{
        max-width: 380px;
        margin: 0 auto;
    }

    /*youtube-videók*/
    .wp-block-embed,
    .wp-block-embed-youtube {
        width: 100%;
        margin: 40px auto 0 auto;
    }

    .has-aside.row{
        flex-direction: column;
    }

    .has-aside main,
    .has-aside aside{
        width: 100%;
        margin-right: 0;
    }

    aside{
        border-left:none;
        border-top: 0.75rem solid #91C7B0;
        padding-top: 1rem;
        padding-bottom:1rem;
    }

    .aside-taxonomies{
        display:flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .aside-taxonomies>div{
        width: 33%;
    }
}

@media only screen and (max-width: 580px) {
    h1{
        font-size:2.25rem;
    }

    h2{
        font-size: 1.65rem;
    }

    h3{
        font-size:1.35rem;
    }

    h4{
        font-size: 1.15rem;
    }

    h5{
        font-size: 1.05rem;
    }

    h6{
        font-size: 1rem;
    }

    .wp-block-buttons{
        flex-direction: column;
    }

    .wp-block-buttons>.wp-block-button{
        margin-left: 0;
    }

    body .is-layout-grid{
        grid-template-columns:1fr;
    }

    main ul>li,
    main ol>li{
        padding-left: 1.5rem;
    }
    main ul>li:before,
    main ol>li:before{
        left:0;
    }

    main ol>li:before{
        top: -3px;
    }

    .pagination .nav-links{
        font-size: 1.2rem;
    }
    p.contact-mail a,
    p.contact-phone a{
        margin-left:1.4rem;
    }

    .contact-mail a:before,
    .contact-phone a:before{
        left:-1.4rem;
        width: 1.2rem;
        height: 1.2rem;
    }

    .archive-grid{
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .aside-taxonomies{
        flex-direction: column;
    }

    .aside-taxonomies>div{
        width: 100%;
    }

    .has-aside main{
        align-items:center;
    }

    .tudasbazis-item{
        max-width: 380px;
    }
}