@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

* {
    font-family: "Merriweather", serif;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

.navbar .container,
main .container {
    max-width: 100vw;
    padding: 0;
}

main {
    padding-top: 79px;
    min-height: calc(100vh - 429px);
}

.nav-item a {
    margin: 0 !important;
    padding: 8px 12.5px !important;
    font-size: 16px !important;
    color: #707070 !important;
}

.dropdown-item.active, .dropdown-item:active {
    background: var(--custom-light-green) !important;
    color: var(--custom-darkest-green) !important;
}

.nav-item a.active {
    color: var(--custom-darkest-green) !important;
}

.adoszam-card {
    border: 3px solid var(--custom-dark-green) dotted;
}

.field-footerkerdesekext-url {
    margin: 0 !important;
}

#footer-kerdes-sidebar {
    height: 100vh;
    width: 650px;
}

@media (max-width: 768px) {
    #footer-kerdes-sidebar {
        width: 100vw;
    }
}

.required label:after {
    content: "*";
}

#footer-kerdes-sidebar label {
    color: var(--custom-darkest-green);
}

#overlay {
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000 !important;
}

#spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-spin {
    filter: drop-shadow(2px 2px 3px rgb(0, 0, 0));
    animation: grayscalePulse 2s infinite ease-in-out;
}

@keyframes grayscalePulse {
    0%   {
        transform: scale(1);
    }
    50%  {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}

.navbar-toggler {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;

}

.navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler-icon i {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    font-size: 24px;
}

.background-blur::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/meghajto/kepek/nyitolap/background-blur.webp") center/cover no-repeat;
    filter: opacity(0.50);
    z-index: -1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}
.video-wrapper .video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.nyitolap-index .partner-cards {
    list-style: none;
    display: flex;
    gap: 56px 31px;
    margin: 0 auto;
    width: max-content;
    flex-wrap: nowrap;
}

.nyitolap-index .partner-cards li {
    height: auto;
    aspect-ratio: 1.75/1;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.75));
}

.nyitolap-index .partner-animation .partner {
    flex: 0 0 auto;
    margin-right: 20px;
    max-height: 125px;
}

.nyitolap-index .partner-animation-start-here {
    animation: partnerAnimation linear infinite;
}

.nyitolap-index .partner-animation-start-here:hover{
    animation-play-state: paused;
}

@keyframes partnerAnimation {
    0%,100% {
        transform: translateX(0);
    }
    99.999% {
        transform: translateX(-50%);
    }
}

.monogram {
    width: 125px;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--custom-darkest-green), var(--custom-green));
    background-size: cover;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
}

.nyitolap-index .img-background-kozelgo-esemenyek {
    height: 250px;
    background: url('/meghajto/kepek/nyitolap/kozelgo-esemenyek.webp') no-repeat center center;
    background-size: cover;
    filter: brightness(0.75);
}

.nyitolap-index .img-background-sajto {
    height: 250px;
    background: url('/meghajto/kepek/nyitolap/sajto.webp') no-repeat center center;
    background-size: cover;
    filter: brightness(1.1);
}

.nyitolap-index .img-background-kiadvanyok {
    height: 250px;
    background: url('/meghajto/kepek/nyitolap/kiadvanyok.webp') no-repeat center center;
    background-size: cover;
}

.nyitolap-index .img-background-aktualis-palyazatok {
    height: 250px;
    background: url('/meghajto/kepek/nyitolap/aktualis-palyazatok.webp') no-repeat center center;
    background-size: cover;
    filter: brightness(0.85);
}

.nyitolap-index .img-background-rendhagyo-tortenelemora {
    height: 250px;
    background: url('/meghajto/kepek/nyitolap/rendhagyo-tortenelemora.webp') no-repeat center center;
    background-size: cover;
}

._df_thumb .df-book-title {
    opacity: 1 !important;
    bottom: 0 !important;
}

.kapcsolat-index .map-point {
    top: 40%;
    left: 53%;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 992px) {
    .kapcsolat-index .map-point {
        width: 25px;
        height: 25px;
    }
}

iframe {
    width: 100%;
    height: 200px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); !important;
}

.img-background-palyazatok {
    height: 250px;
    background-size: cover !important;
    filter: brightness(0.99);
}

.img-background-palyazatok-lejart {
    height: 250px;
    background-size: cover !important;
    filter: grayscale(1) brightness(0.65);
}

.img-background-galeria {
    height: 200px;
    background-size: cover !important;
    filter: brightness(0.85);
}

.img-background-rendhagyo-tortenelemora {
    height: 200px;
    background-size: cover !important;
    filter: brightness(0.85);
}

.img-background-esemenyek {
    height: 200px;
    background-size: cover !important;
    filter: brightness(0.85);
}


@media (min-width: 992px) {
    .calendar-container {
        max-width: 1366px;
        margin: 0 auto;
    }

    .fc {
        width: 100% !important;
        height: auto !important;
    }

    .fc-day-grid-event {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
        font-size: 15px !important;
        border-radius: 6px !important;
        padding: 6px 8px !important;
        text-align: center;
    }

    .fc-day-grid-day-frame {
        min-height: 100px !important;
        height: auto !important;
    }

    .fc-day-grid-day-events {
        overflow: visible !important;
        height: auto !important;
    }

    .fc-day-grid-event-harness {
        overflow: visible !important;
    }

    .fc-day-today {
        background-color: #e8ffe8 !important;
        border: 2px solid #4caf50 !important;
    }

    .fc-day-grid-event.fc-h-event {
        display: block !important;
        align-items: normal !important;
    }

    .fc-day-grid-event .fc-content,
    .fc-day-grid-event .fc-title {
        white-space: normal !important;
        word-break: break-word !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .fc-day-grid-day-frame,
    .fc-day-grid-event-harness,
    .fc-day-grid-day-events {
        height: auto !important;
        overflow: visible !important;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(30,30,30,0.95);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    z-index: 9999;
    font-family: sans-serif;
}
.cookie-banner a { color: #5ac8fa; text-decoration: underline; }
.cookie-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.btn-accept, .btn-reject {
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.btn-accept { background: #5ac8fa; color: #fff; }
.btn-reject { background: #555; color: #fff; }