/*
Theme Name: kemia-mindenkinek
Theme URI: https://hedi.hu/
Author: the WordPress team
Author URI: https://hedi.hu/
Description: Basic Theme by Tóth Hédi
Tags: one-column, custom-colors, custom-menu
Version: 1.1
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: kemia-mindenkinek

*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.wp-caption {
    font-size: smaller;
}

.wp-caption-text {
    font-size: smaller;
}

.sticky {}

.screen-reader-text {}

.gallery-caption {
    font-size: smaller;
}

.bypostauthor {}

.alignright,
.align-right {
    text-align: right;
}

.alignleft,
.align-left {
    text-align: left;
}

.aligncenter,
.align-center {
    text-align: center;
}

/* === RESET === */

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


img {
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 0;
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

code,
pre,
kbd,
samp {
    font-family: "Montserrat", sans-serif;
    ;
    font-size: 1em;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

iframe {
    display: block;
    max-width: 100%;
}

header li,
#main-menu li {
    list-style-type: none;
}


/* === RESPONSIVE TYPO === */

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

@media screen and (min-width: 480px) and (max-width: 1199px) {
    html {
        font-size: 16px;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1919px) {
    html {
        font-size: 1.2vw;
    }
}

@media screen and (min-width: 1920px) {
    html {
        font-size: 22px;
    }
}


/* === STYLE === */


:root {
    --main-color: #f6cd03;
    --text-color: #20313d;
    --salmon: #ff5164;
    --light-blue: #05d4cc;
    --blue: #72B5E8;
    --dark-blue: #0d006d;
}

.ease {
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    color: #333;
    font-family: "Montserrat", sans-serif;
}

// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 100 to 900

.montserrat-<uniquifier > {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

ul,
ol {
    padding: 0;
}

ul ul,
ul ul ul,
ol ol,
ol ol ol {
    margin: 0.5rem 0;
}

ol ol,
ol ol ol {
    padding-left: 1rem;
}

ul li {
    list-style-type: disc;
    margin-bottom: 0.25rem;
    margin-left: 1rem;
}

ul li::marker {
    color: var(--main-color);
}

.idezet ul li::marker {
    color: var(--dark-blue);
}

.idezet ul li {
    margin-bottom: 0.7rem;
}

ol {
    list-style: none;
    counter-reset: my-counter;
}

ol li {
    counter-increment: my-counter;
    margin-bottom: 0.25rem;
}

ol li::before {
    content: counter(my-counter) '.';
    background: var(--main-color);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-block;
    line-height: 1.5rem;
    color: white;
    text-align: center;
    margin-right: 0.5rem;
}

p {
    line-height: 1.5;
}

.p-size {
    font-weight: 300;
    font-size: 36px;
    background: #72b5e81a;
    padding: 2rem;
}

a {
    color: var(--salmon);
    text-decoration: none;
}

a:hover {
    color: #000;
    text-decoration: none;
}


h1 {
    font-size: 3rem;
    font-weight: bold;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    position: relative;
    text-align: center;
}


h2::after {
    content: '';
    display: block;
    width: 20%;
    max-width: 20%;
    height: 3px;
    background-color: var(--salmon);
    margin: 0.5rem auto;
}

.title-line {
    position: relative;

}


.title-line::after {
    content: '';
    display: block;
    width: 20%;
    max-width: 20%;
    height: 3px;
    background-color: var(--salmon);
    text-align: left;
    margin: 0.5rem 0;
}

h3 {
    font-size: 1.5rem;
    font-weight: bold;

}

h4 {
    font-size: 1.1rem;
    font-weight: bold;

}

h1 a,
h2 a,
h3 a,
h4 a {
    color: inherit;
}

blockquote {
    background: #eee;
    margin-left: 0;
    margin-right: 0;
    padding: 0.5rem 1.5rem;
    overflow: hidden;
    border-left: solid 5px var(--main-color);
}

hr {
    border: none !important;
    height: 3px;
    background: #eee;
}

table {
    border-spacing: 0;
    border: solid 1px #ddd;
}

td,
th {
    padding: 0.5rem 1rem;
    border: solid 1px #ddd;
}

th {
    background: #eee;
    text-align: left;
}

section {
    padding: 4vw 0;
}


.post-meta ul {
    overflow: hidden;
    display: inline-block;
    margin: 0 auto;
    font-size: smaller;
}

.post-meta ul li {
    display: inline-block;
    float: left;
    margin-right: 20px;
    margin-left: 0;
}

.post-categories {
    border-top: solid 2px var(--text-color);
    padding-top: 1rem;
}

.single .post-categories {
    border-top: none;
    padding-top: 0;
}

.post-categories a,
.wp-block-tag-cloud a,
.meta-comments {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    border-radius 5px;
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem 0.25rem 0;
}

.post-categories a {
    display: inline-block;
    background: #8e9091;
    color: #fff;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    border-radius 5px;
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem 0.25rem 0;
}

.post-categories a:hover,
.wp-block-tag-cloud a:hover {
    background: var(--main-color);
    color: var(--text-color);
}

.post-meta {
    display: flex;

}

.post-meta li {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-right: 1rem;
}

.post-meta li svg {
    width: 1rem;
    height: 1rem;
    vertical-align: baseline;
    margin-top: 0.25rem;
}

.post-meta li path,
.post-meta li polygon {
    fill: var(--salmon);
}



.page-title {
    background-image: url(img/page-titlebg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 3rem 0;
    margin-bottom: 4rem;

    text-align: center;
}

.page-title .mac-container {
    width: 1920px;
}


#breadcrumb {
    padding: 1rem;
    /*background: #F6F8FA;*/
    margin-bottom: 2rem;
}

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


.border-text {
    padding: 1rem;
    color: var(--text-color);
    box-shadow: inset 0 5px 20px rgba(255, 255, 255, 0.9),
        0 1px 20px rgba(0, 0, 0, 0.2);
    background: radial-gradient(farthest-corner at 40px 40px,
            rgba(255, 255, 255, 0.5)0%,
            rgba(255, 255, 255, 0.8)100%);
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 10px rgba(255, 255, 255, 0.6);
    margin: 1rem 0 2rem 0;
    border-radius: 15px;
}

.read-more a {
    padding: 1rem;
    border: 1px solid var(--main-color);
    border-radius: 20px;
    margin-right: 0.8rem !important;
}

.read-more a:hover {
    padding: 1rem;
    background: var(--main-color);
    color: var(--text-color);
    border: 1px solid var(--main-color);

}




.border-solid {
    border: double 5px #B0B0AF;
    padding: 2rem;
    border-radius: 15px;
}

.ertekeink .border-solid {
    min-height: 330px;
    padding: 1rem 1rem 0 1rem;
}

.ertekeink .border-text {
    margin 0 3rem;
}

.border-text img {
    border-radius: 15px 15px 0 0;
}

.foszervezo .logo-box {
    background: none;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2087C6;
    box-shadow: box-shadow: 0 5px 20px rgba(255, 255, 255, 0.9), 0 1px 20px rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 10px rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
    min-width: 250px;
    min-height: 250px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

.logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: #A8D1F0;
}

.logo-box a {
    color: var(--text-color);
}

main {
    margin-bottom: 4rem;
}

.accordion {
    margin: 0 0 2rem 0;
    clear: both;
}

.accordion .accordion-content {
    display: none;
}

.accordion .accordion-title h2,
.accordion .accordion-title h3,
.accordion .accordion-title h4 {
    margin: 0;
}

.accordion .accordion-title {
    cursor: pointer;
    margin: 0;
    line-height: 1.3;
    border-bottom: solid 1px #ddd;
    color: inherit;
    padding: 0.65rem 0.5rem 0.65rem 2rem;
    position: relative;
}

.accordion .accordion-title:after {
    border-style: solid;
    border-width: 2px 2px 0 0;
    content: "";
    display: inline-block;
    height: 0.6rem;
    width: 0.6rem;
    background: transparent;
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -0.3rem;
    transform: rotate(45deg);
    vertical-align: top;
}

.accordion .accordion-title.active,
.accordion .accordion-title:hover {
    color: var(--main-color);
}

.accordion .active h4 {
    border-bottom: none;
}

.accordion .accordion-title.active:after,
.accordion .accordion-title:hover:after {
    transform: rotate(135deg);
    left: 0.25rem;
    margin-top: -0.35rem;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.accordion .accordion-content {
    margin: 0;
    padding: 1rem 2rem;
    overflow: hidden;
    border-bottom: solid 1px #ddd;
}

.accordion .accordion-content p {
    line-height: 1.4 !important;
}

.accordion .accordion-content p:last-of-type {
    margin: 0 !important;
}

.light-bg {
    background: #eee;
    padding-top: 6vw;
    padding-bottom: 6vw;
}

/* === HOME === */
.hero {
    padding: 0 !important;
}

.hero-wrapper {
    width: 100vw;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-container {
    width: 1920px;
    height: 80vh;
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
    position: relative;
}

.hero-card {
    width: 80px;
    background-size: cover;
    cursor: pointer;
    overflow: hidden;
    margin: 0 !important;
    display: flex;
    align-items: flex-end;
    transition: all .6s cubic-bezier(.28, -0.03, 0, .99);
    box-shadow: 0 10px 30px -5px rgb(0, 0, 0, 0.8);
    border-left: 2px solid var(--main-color);
}

.hero-card > .hero-row {
    color: white;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
}

.hero-card > .hero-row > .description {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    overflow: hidden;
    height: auto;
    opacity: 0;
    padding: 0 0 1rem 1.5rem;
    transform: translateY(30px);
    transition: all .6s ease-in-out;
}

.description h1 {
    text-transform: uppercase;
    margin: 0 0 1rem;
    font-size: 2rem;
}

.hero-container input {
    display: none !important;
}

.hero-container input[type="radio"] + label:before {
    display: none !important;
}

.hero-container input:checked + label {
    width: 100% !important;
    z-index: 10 !important;
}

.hero-container input:checked + label .description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-card[for="c1"] {
    background-image: url('img/hero-bg2.jpg');
    background-size: cover;


}

.hero-card[for="c2"] {
    background-image: url('img/hero-bg1.jpg');
    background-size: cover;
}

.hero-card[for="c3"] {
    background-image: url('img/leplezetlen-kemia-slide.jpg');
    background-size: cover;
}




.home-blog-list {
    border-left: 1px solid var(--salmon);
    padding-left: 1rem;
}

.mec-wrap .row {
    display: block;
}

.mec-event-grid-classic .mec-event-article {
    min-height: 26rem !important;
}

.mec-event-footer {
    margin: 1rem 0 0 0 !important;
    background: none !important;
}


.main-rendezveny {
    padding: 2rem;
}

.adatok {
    background: url(img/bg-kemia.jpg);
    padding: 3rem 0 2rem 0;
    margin: 5rem;
}

.adatok :where(.wp-block-columns) {
    margin-bottom: 0 !important;
}

.adatok h3 {
    margin-bottom: 0;
}



.adatok .border-solid {
    min-height: 335px;
    
}


.main-rendezveny img {
    border-radius: 15px;

}

.blog .content-box {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
}

.blog h4 {
    margin: 1rem 0 !important;
}

.blog p {
    font-size: smaller;
}

#main-content {
    flex: 3;
    max-width: 75%;
    padding: 1rem;
    margin-bottom: 4rem;
}

.blog-sidebar {
    flex: 1;
    max-width: 25%;
    padding: 1rem;
    margin: 5rem 0;
    border-left: 1px solid var(--salmon);
}

.mec-event-list-classic .mec-event-article {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--salmon);
}

.mec-event-social-icon .email:before {
    display: none;
    padding: 0;
}

.mec-event-social-icon .email {
    padding: 0;
}

.mec-event-sharing-wrap li a,
.mec-event-sharing-wrap:hover li ul li a {
    color: var(--salmon) !important;
}

.mec-event-footer .mec-booking-button:hover {
    background: var(--main-color) !important;
    color: var(--text-color) !important;
    border-color: var(--main-color) !important;
}

.mec-event-grid-classic .mec-event-article {
    position: relative;
    border: none !important;
    box-shadow: inset 0 5px 20px rgba(255, 255, 255, 0.9),
        0 1px 20px rgba(0, 0, 0, 0.2) !important;
    background: radial-gradient(farthest-corner at 40px 40px,
            rgba(255, 255, 255, 0.5)0%,
            rgba(255, 255, 255, 0.8)100%);
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 10px rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    margin-bottom: 30px;
    max-width: none;
}

.mec-event-grid-classic img {
    border-radius: 20px 20px 0 0;
}


.column-2 {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* Add this to allow wrapping if there are more than two posts */
}



.align-center {
    text-align: center;
}

.tab-container {
    padding: 2rem;
}

.tab-box {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 2px solid rgba(229, 229, 229);
}

.tab-box .tab-btn {
    font-weight: 600;
    color: var(--blue);
    background: none;
    border: none;
    padding: 18px;
    cursor: pointer;
}

.tab-box .tab-btn.active {
    color: var(--main-color);
}

.tab-content-box {
    margin: 3rem;
    text-align: center;
}

.tab-content-box .border-text {
    max-width: 28rem;
    margin: 0 auto;
    text-align: left;
}

.tab-content-box .align-center {
    margin-top: 3rem;
}

.tab-content-box .tab-content {
    display: none;
    animation: moving 0.5s ease;
}

@keyframes moving {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

.tab-content-box .tab-content.active {
    display: block;
}

.border-line {
    padding: 0;
    margin-bottom: 1.2rem;
    border-top: 1px solid var(--light-blue);
    border-bottom: 1px solid var(--light-blue);
}


/* === BLOG === */
.single-sidebar-box {
    background: var(--dark-blue);
    padding: 1.2rem;

}

.single-sidebar-box h3 {
    color: #fff;

}

.single-sidebar-box ul li a {
    color: #fff;

}

.single-sidebar-box ul li a:hover {
    color: var(--main-color);

}

.single-mec-events .mec-container {
    margin-top: 3rem;
}

/* === FOOTER === */

.newsletter-box {
    background: url(img/hirlevel-bg.jpg);
    color: var(--text);
    padding: 2rem;
}

.newsletter-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    clear: both;
    align-items: center;
}

.newsletter-row h2 {
    text-align: left;
}

#mlb2-16290782.ml-form-embedContainer .ml-form-embedWrapper {
    background-color: #ffffff00 !important;
}

.embedForm input[type="email"],
.embedForm input[type="text"] {
    min-width: 50px !important;
}


footer {
    background: var(--dark-blue);
    font-size: smaller;
    padding: 1.5rem 0;
    color: #fff;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: var(--main-color);
}

footer h5 {
    font-size: 1rem;
    color: var(--main-color);
}

footer .mec-event-title,
footer .mec-event-loc-place {
    color: #fff !important;
}

footer .event-color {
    display: none;
}

footer input[type="search"] {
    color: var(--text-color) !important;
}

#copyright {
    background: var(--dark-blue);
    padding: 0.75rem 0;
    text-align: center;
    font-size: smaller;
    color: #fff;

}

#copyright p {

    padding: 0.75rem 0;
    border-top: 1px solid var(--light-blue);
}


.pagination {
    clear: both;
    text-align: center;
    margin-top: 2rem;
}

.nav-links .current {
    color: var(--main-color);
    font-weight: bold;
}

.nav-links {
    display: inline-block;
    border-right: solid 1px #ddd;
    border-top: solid 1px #ddd;
    border-bottom: solid 1px #ddd;
}

.nav-links a,
.nav-links span {
    display: block;
    float: left;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    color: inherit;
    border-left: solid 1px #ddd;
}

.nav-links a:hover {
    background: #eee;
}

#searchform {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

#searchform input[type="text"] {
    width: 100%;
    /* Az input teljes szélességű lesz */
    margin: 0;
    padding-right: 40px;
    /* Hely biztosítása a gomb számára */
    box-sizing: border-box;
}

#searchform button {
    border: none;
    height: 100%;
    width: 30px;
    position: absolute;
    right: 0;
    background: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#searchform svg {
    height: 70%;
    width: 70%;
}


.content {
    padding: 20px;
    /* Példa, az oldal többi tartalmához */
}

.video-section {
    margin: 40px 0;
    /* Példa margó, amely elválasztja a videót a többi tartalomtól */
    display: flex;
    justify-content: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 arány */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    /* A szürke háttér helyett */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


#gotop {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    background: var(--main-color);
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
}

#gotop svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

#gotop svg path {
    fill: #fff;
}

@media screen and (max-width: 1440px) {
    .ertekeink .border-solid {
        min-height: 290px;
    }
    .adatok .border-solid {
    min-height: 270px;
    
}

    .mec-event-grid-classic .mec-event-article {
        min-height: 32rem !important;
    }

}

@media screen and (max-width: 1280px) {
    .front-event .is-layout-flex {
        display: block !important;
    }
}



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


    .hero-card > .hero-row > .description {

        padding: 0;
    }

    .description .border-solid {
        padding: 0.5rem;
    }

    .hero-wrapper {
        height: 60vh;
    }

    .hero-container {
        height: 60vh;
    }

    .hero-card {
        width: 10px !important;
        height: 60vh;
    }

    .ertekeink .border-text {
        margin: 0 3rem !important;
    }

    .ertekeink .wp-block-image img {
        max-width: 60%;
    }

    .ertekeink .border-solid {
        min-height: 200px;
    }

    .page-id-25 main {
        margin-bottom: 0;
    }

    .adatok .border-text {
        margin: 0 2rem;
    }
        .adatok .border-solid {
        min-height: 200px;
        padding: 0 !important;
    }

    #searchform {
        flex-direction: row; /* Maradjon sorban az input és a gomb */
        align-items: center;
    }

    #searchform input[type="text"] {
        width: 100%; 
        max-width: none; 
        padding-right: 30px; 
    }

    #searchform button {
        position: absolute; /* A gomb az input mezőn belül marad */
        right: 0;
        height: 100%;
        width: 30px;
    }

    #searchform svg {
        width: 70%;
        height: auto;
    }
}



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

    h1,
    h2 {
        font-size: 1.3rem;
    }

    h3,
    h4 {
        font-size: 1rem;
    }

    .description h1 {

        font-size: 1.2rem;
    }

    .mec-container {
        width: 100% !important;
    }

    .mec-related-events-wrap h3.mec-rec-events-title:before {
        top: 80px !important;

    }

    #main-content {
        max-width: 100%;

    }

    .mec-events-meta-group-countdown .countdown-w .label-w {
        font-size: 10px !important;
    }

    .mec-events-meta-group-countdown .countdown-w .block-w {
        padding: 0.3rem !important;

    }

    .p-size {
        font-size: 22px;
    }



}
