body {
    padding: 0 10px;

    @media (min-width: 1024px) {
        padding: 0 36px;
    }

    header {
        .logo2-wrapper {
            background-color: white;
        }
    }

    &.home {
        header {
            padding-bottom: 0;
        }
    }

    .home-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;

        @media (min-width: 1536px) {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 20px;

            .slides-wrapper {
                position: sticky;
                top: 6px;
            }
        }

        .slides-wrapper {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        section {
            display: flex;
            flex-direction: column;

            @media (min-width: 1024px) {
                flex-direction: row;

                article {
                    flex: 1 1 33.333%;
                }
            }
        }
    }
}

.url-font {
    font-size: 10px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 15px;
    background: #f6f6f6;
    border-right: 2px ridge rgba(137, 137, 137, 0.57);
    border-left: 2px ridge rgba(137, 137, 137, 0.63);
}

header:has( nav.stuck) {
    padding-bottom: 120px;
}

table.dataTable tbody tr {
    border-bottom: 2px solid #b11302;
}

.info p {
    font-style: italic !important;
    font-size: 11px !important;
    position: relative !important;
    padding: 2px 2px 2px !important;
    text-align: center !important;
    margin: 0 auto !important;
    line-height: normal !important;
}

#fancybox-title {
    display: none !important;
}

.mutat-rejt {
    display: block;
    border: 1px solid;
    background: aliceblue;
    padding-left: 2px;
    font-size: small;
    width: 100px;
    cursor: pointer;
}

.caldera-grid .cf-multi-uploader-list > ul > li .file-name {
    display: list-item;
}

.caldera-grid .cf-multi-uploader-list > ul > li .cf-file-remove {
    background: url(/wp-content/themes/itftheme/imgs/trash-icon.png);
    margin-left: 10px;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 9px;
    padding: 5px 10px 9px 6px;
    line-height: 25px;
}

.url-font {
    font-size: 10px;
}

.caldera-grid label {
    font-weight: 400;
}

.help-block {
    font-size: 13px;
    font-style: italic;
}

a.accordion-toggle:hover {
    color: white;
}

/* 2026-07-20: csonka "a.acco" szelektor-torzó eltávolítva — a vesszőhiány
   miatt az alábbi img-szabály sosem érvényesült ("a.acco img .alignnone"
   értelmetlen leszármazott-lánccá olvadt össze). A szabály eredeti
   szándék szerint helyreállítva: */
img.alignnone {
    vertical-align: middle;
    min-width: 180px;
    height: auto;
}

.morecontent span {
    display: none;
}

.tooltips {
    cursor: pointer;
    color: brown;
    font-weight: 400;
}

.facetwp-facet {
    margin-bottom: 0px !important;
}

.facetwp-counts {
    float: left;
    margin: 0;
}

.morelink {
    display: block;
}

.page-title {
    margin: 10px 20px 10px 20px;
    /* width: 30%;*/
    float: left;
    clear: both;
    display: contents;
}

.justify ul {
    margin-left: 30px;
    padding: 0px;
}

ul {
    padding-left: 22px;
}

.foot-pager {
    text-align: right;
    margin-bottom: 15px;
}

.bold-label {
    color: #bf5748;
}

.fat {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.italic {
    font-style: italic;
}

.odd {
    border-bottom: 2px solid #b11302;
}

.even {
    border-bottom: 2px solid #b11302;
}

.szerkesztonevek {
    font-size: 0.9em !important;
}

.szerkeszto_col {
    min-height: 265px;
}

.video_col {
    min-height: 155px;
}

.global-search {
    width: 100%;
    max-width: 320px;
    min-width: 220px
}

input.gsc-input {
    color: white;
}

.global-search .gsc-search-button button svg {
    display: none;
}

.global-search .gsc-search-button button {
    border: 0 none;
    background: #940131 url(imgs/search.png) center no-repeat;
    width: 50px;
    float: left;
    padding: 0;
    text-align: center;
    height: 38px;
    cursor: pointer;
}

.global-search .gsc-search-box td.gsc-input {
    padding-right: 0;
}

.global-search .gsc-search-box .gsc-input::placeholder {
    font-size: 16px;
    color: white;
    font-weight: 600;
}

.global-search input {
    background: none !important;
}

.global-search .gsc-input-box {
    background-color: #2c506a;
}

.main-menu {
    display: flex;
    font-size: 16px;
    align-items: center;
    justify-content: center;
}

.main-menu ul {
    display: flex;
    margin-bottom: 0;
    list-style: none;
    align-items: center;
}

.main-menu > ul > li > a {
    padding: 8px 14px;
    transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
    white-space: nowrap;
}

.main-menu ul.dropdown-menu {
    display: flex;
    visibility: hidden;
    top: 110%;
    align-items: stretch;
    flex-direction: column;
    border: 0;
    transition: top 200ms ease-in-out, opacity 200ms ease-in-out;
    z-index: 0;
}

.main-menu > ul > li > a:hover {
    background: #f1f1f1;
    color: #666;
    transition: top 300ms ease-in-out;
}

.main-menu ul.dropdown-menu.menu-active {
    visibility: visible;
    opacity: 1;
    top: 90%;
    z-index: 9999;
}

.main-menu > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 7px;
    color: #222;
}

.navbar-nav .menu-item-home a {
    display: none;
}

.navbar-nav .menu-item-home a:after {
    display: block;
    content: " ";
    width: 36px;
    height: 45px;
    background-image: url(./images/house-vector.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-color: #F1F1F1;
}

.navbar-nav li {
    padding: 0 5px;
}

.navbar-nav li a {
    font-family: Merriweather, sans-serif;
    font-size: 16px;
    color: #666;
}

.dropdown-menu {
    position: absolute;
    opacity: 0;
    background-color: #f1f1f1;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    padding: 9px 12px;
    font-family: Merriweather, sans-serif;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.main-sub-menu ul li a {
    font-size: 14px;
}

.main-menu-area {
    display: flex;
    justify-content: center;
    gap: 65px;
}

.main-menu-area .main-menu > ul > li:last-of-type {
    padding-left: 60px;
}

.mobile-menu-action {
    display: none;
}

.data-storage-downarrow {
    font-size: 20px;
}

.global-search .gsc-control-cse {
    background-color: transparent;
    border: none;
}

div.gsc-input-box {
    padding-top: 0;
    padding-bottom: 0;
}

article, aside, details, figcaption, figure, footer, hgroup, main, menu, section, summary {
    display: block;
    background: #f6f6f6;
    border-right: 1px ridge rgba(137, 137, 137, 0.57);
    border-left: 1px ridge rgba(137, 137, 137, 0.63);
}

.menu-wrapper {
    display: flex;
    width: 100%;
    padding: 10px 138px 0 138px;
    background-color: white;
}

.menu-wrapper ul {
    padding-left: 0;
}

.menu-wrapper nav {
    display: flex;
    border: 0;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.menu-wrapper nav:before,
.menu-wrapper nav:after {
    display: none;
}

.full-menu-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
}

html input[type=button], input[type=reset], input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer;
    background-color: #940131;
    border: 1px solid;
    color: antiquewhite;
    padding: 5px 15px;
}

.navbar:not(.stuck) {
    position: static;
    width: 100%;
}

.navbar.top-sticky {
    right: 0;
    left: 0;
    background-color: white;
    z-index: 5;

    body:has(.page-template-page-table) & {
        right: 38px;
        left: 38px;
    }
}

.datatable-sorting-sticky {
    position: fixed;
    display: none;
    height: 40px;
    top: 86px;
    align-items: center;
    justify-content: flex-start;
    background-color: white;
    z-index: 999;
}

.datatable-sorting-sticky div {
    display: flex;
    align-items: center;
    min-width: 36px;
    cursor: pointer;
    height: inherit;
}

.datatable-sorting-sticky div:hover {
    background-color: #FAFAFA;
}

.datatable-sorting-sticky div:active {
    background-color: #F0F0F0;
}

.datatable-sorting-sticky div span {
    padding-left: 18px;
    flex: 1 0 auto;
    font-size: 16px;
    font-weight: 700;
}

.datatable-sorting-sticky div img {
    max-height: 18px;
    flex: 0 1 auto;
}

.result-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
    font-weight: bold;
}

.result-group a:nth-of-type(n+4) {
    display: none;
}

.show-more-btn,
.hide-more-btn {
    display: none;
    font-size: 12px;
    margin-top: 5px;
    line-height: 15px;
}

.show-more-btn.inactive,
.hide-more-btn.active {
    display: block;
}

.show-more-btn.active,
.hide-more-btn.inactive {
    display: none;
}

#newdatatable_wrapper {
    margin-top: 35px;
}

#newdatatable_wrapper .top {
    display: flex;
    align-items: center;
}

#newdatatable_wrapper .top .dataTables_info {
    flex: 1 1 auto;
}

.dataTables_wrapper .top .dataTables_filter input {
    width: auto;
}

#postTable {
    display: grid;
    grid-template-rows: auto;
}

#postTable .posttable-row:not(.posttable-head-sticky) {
    display: grid;
    grid-template-rows: auto;
}

#postTable #postTableData .posttable-row {
    border-bottom: 2px solid #b11302;
}

#postTable .posttable-title.cell-align-justify,
#postTable .posttable-title.cell-align-left {
    text-align: left;
}

#postTable .posttable-title.cell-align-right {
    text-align: right;
}

#postTable .posttable-title.cell-align-center {
    text-align: center;
}

#postTable .posttable-head,
.posttable-head-sticky {
    background-color: white;
    color: #545248;
    border-bottom: 3px inset rgba(129, 130, 131, 0.39);
}

#postTable .posttable-title a,
.posttable-head-sticky .posttable-title a {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: stretch;
    flex-wrap: nowrap;
    gap: 5px;
    cursor: pointer;
    line-height: 1;
}

#postTable .posttable-title span,
.posttable-head-sticky .posttable-title span {
    flex: 0 1 auto;
}

#postTable .posttable-title i,
.posttable-head-sticky .posttable-title i {
    flex: 0 1 auto;
}

#postTable .posttable-title,
#postTable .posttable-cell,
.posttable-head-sticky .posttable-title,
.posttable-head-sticky .posttable-cell {
    padding: 5px 10px 5px 10px;
}

.posttable-head-sticky .posttable-title {
    flex: 0 1 auto;
}

#postTable .posttable-cell,
.posttable-head-sticky .posttable-cell {
    display: inline-flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
}

#postTable .posttable-cell.show-more-cell .showmore-container {
    display: inline-flex;
    position: relative;
    max-height: 81px;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
    transition: max-height 200ms ease-in-out;
}

#postTable .posttable-cell.show-more-cell .showmore-container .showmore-overlay {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*right: 0;*/
    /*bottom: 0;*/
    /*!* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,f6f6f6+100&0+0,0+35,1+100 *!*/
    /*background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(252, 252, 252, 0) 35%, rgba(246, 246, 246, 1) 100%); !* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ *!*/
}

#postTable .posttable-cell.show-more-cell .showmore-container.showmore-open .showmore-overlay {
    display: none;
}

#postTable .posttable-cell.show-more-cell .showmore-container.showmore-open {
    max-height: 999px;
}

#postTable .posttable-cell.show-more-cell .showmore-button {
    display: flex;
    margin-top: 5px;
    padding: 8px 12px;
    align-self: flex-start;
    background-color: #a4392d;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    color: white;
    font-weight: 600;
}

#postTable .posttable-cell:first-of-type a {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
}

#postTable .cell-align-left.posttable-cell:first-of-type a,
#postTable .posttable-cell.cell-align-left {
    text-align: left;
    align-items: flex-start;
}

#postTable .cell-align-right.posttable-cell:first-of-type a,
#postTable .posttable-cell.cell-align-right {
    text-align: right;
    align-items: flex-end;
}

#postTable .cell-align-center.posttable-cell:first-of-type a,
#postTable .posttable-cell.cell-align-center {
    text-align: center;
    align-items: center
}

#postTable .cell-align-justify.posttable-cell:first-of-type a,
#postTable .posttable-cell.cell-align-justify {
    text-align: justify;
    align-items: center;
}

#postTable .posttable-cell .column-label {
    display: none;
    font-weight: bold;
}

/*#postTable .posttable-cell br {*/
/*    display: none;*/
/*}*/

.posttable-head-sticky {
    position: fixed;
    display: none;
    height: 40px;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    background-color: white;
    z-index: 4;
}

.dataTables_filter {
    margin: 0 0 4px 20px;
}

.pagination,
.facetwp-pager {
    display: flex;
    align-items: center;
    margin: 20px auto;
}

.facetwp-pager .facetwp-page,
.pagination .page-numbers:not(.dots) {
    padding: 4px 10px;
    border: 1px solid #CCC;
    border-radius: 3px;
    margin: 0 5px;
}

.facetwp-pager .facetwp-page:not(.dots):not(.current):hover,
.pagination .page-numbers:not(.dots):not(.current):hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.facetwp-pager .facetwp-page.active,
.pagination .page-numbers.current {
    background-color: rgba(0, 0, 0, 0.3);
}

.facetwp-pager .facetwp-page.dots,
.pagination .page-numbers.dots {
    padding: 0 10px;
}

.pagination .page-numbers:not(.dots) button {
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
}

.extras-container {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.page-title + .extras-container {
    margin: 30px 0 15px 0;
}

.extras-container .slider-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 400px;
    margin: 0 25px;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 20px;
    transition: transform 250ms ease-in-out;
}

.extras-container .slider-container .slider-tooltip {
    opacity: 0;
    position: absolute;
    padding: 0 6px;
    bottom: 115%;
    left: -52%;
    border-radius: 5px;
    background-color: white;
    border: 1px solid black;
    line-height: 1.8;
    font-weight: bold;
    color: black;
    font-size: 12px;
    transition: opacity 300ms ease-in-out;
}

.extras-container .slider-container .ui-slider-handle.ui-state-active {
    z-index: 5;
}

.extras-container .slider-container div {
    flex: 1 0 auto;
}

.extras-container .slider-container .field-label {
    margin-top: -25px;
    flex: 1 0 100%;
    text-align: center;
}

.extras-container .slider-container .slider-min,
.extras-container .slider-container .slider-max {
    flex: 0 1 auto;
}

.extras-container .flex-first {
    flex: 1 0 auto;
}

.extras-container .flex-spacer {
    flex: 1 1 auto;
}

.extras-container .flex-first-min,
.extras-container .flex-last {
    flex: 0 1 auto;
}

.extras-container .flex-first + .flex-first,
.extras-container .flex-first + .flex-first-min,
.extras-container .flex-first-min + .flex-first-min,
.extras-container .flex-first-min + .flex-first {
    margin-left: 10px;
}

.extras-container .facetwp-type-slider .facetwp-slider-label {
    display: flex;
    justify-content: center;
}

.dropdown-container {
    display: flex;
    gap: 20px;
}

.dropdown-container select {
    padding: 3px 5px;
    height: 33px;
}

.dropdown-container div {
    display: flex;
    flex-direction: column;
}

.facetwp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.results-counter {
    display: flex;
    margin: 10px 0;
    align-items: center;
}

.results-counter .facetwp-pagination {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.results-counter .facetwp-type-pager {
    margin-left: 12px;
}

.scroll-to-top {
    display: none;
    position: fixed;
    width: 14px;
    height: 14px;
    padding: 12px;
    left: 7px;
    bottom: 7px;
    font-size: 25px;
    background-color: white;
    border-radius: 100%;
}

.scroll-to-top i {
    transform: translate3d(-7px, -8px, 0);
}

.tl-slide.tl-full-color-background a,
.tl-text-content p a {
    color: #0bd4e3 !important;
}

.tl-slide .tl-slide-content-container .tl-slide-content .tl-text {
    max-width: 60% !important;
    width: 60% !important;
}

.tl-timeaxis-background {
    border-top: 1px solid #999 !important;
}

.tl-timeaxis .tl-timeaxis-content-container .tl-timeaxis-minor .tl-timeaxis-tick,
.tl-timegroup .tl-timegroup-message {
    color: #666 !important;
}

.tl-menubar-button,
.tl-timemarker .tl-timemarker-content-container .tl-timemarker-content .tl-timemarker-text h2.tl-headline,
.tl-timemarker .tl-timemarker-content-container .tl-timemarker-content .tl-timemarker-media-container [class^="tl-icon-"] {
    color: #222 !important;
}

.extras-container .flex-last + .flex-last,
.extras-container .flex-first + .flex-first {
    margin: 0 0 0 20px;
}

.extras-container .facetwp-search {
    padding-right: 16px;
}

input.facetwp-search::placeholder {
    padding-left: 5px;
    color: #bbb;
    font-size: 16px;
}

input::placeholder {
    color: #DDD;
}

.posttable-generic {
    overflow: hidden;
}

#resetFilters,
.slider-filter,
.dropdown-filter {
    margin-top: 5px
}

#resetFilters button,
.slider-filter button,
.dropdown-filter button {
    border-radius: 3px;
    outline: none;
    background-color: #940131;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #555;
    transition: background-color 300ms ease-in-out;
}

#resetFilters button {
    width: 100%;
}

#resetFilters button:hover,
.slider-filter button:hover,
.dropdown-filter button:hover {
    background-color: #7a062c;
}

.extras-container .slider-container .slider-filter {
    display: flex;
    justify-content: center;
    flex: 1 1 100%;
}

div.row {
    margin-left: 0;
    margin-right: 0;
}

#postTableData .posttable-cell ol {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#postTableData .posttable-cell ol br {
    display: none;
}

#postTableData .posttable-cell img {
    max-width: 100%;
}

abbr[title] {
    position: relative;
    border-bottom: 1px dotted #777 !important;
}

abbr[title] .abbr-tooltip {
    display: none;
    position: absolute;
    left: 80%;
    top: 80%;
    padding: 0 7px;
    border-radius: 3px;
    background-color: #2c2c2c;
    color: white;
    border: 1px solid white;
    font-size: 11px;
    white-space: nowrap;
    font-family: Arial;
    letter-spacing: 0.03rem;
    font-weight: 300;
}

abbr[title] .abbr-tooltip.tooltip-visible {
    display: block;
}

.direct-menu-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}

.homepage-icon {
    font-size: 24px;
}

.mobile-top-container {
    display: none;
    width: 100%;
    max-width: 275px;
}

nav form.gsc-search-box {
    margin: 0;

    table:not(.gsc-input) {
        margin: 4px;
    }
}

@media (max-width: 1445px) {
    .menu-wrapper {
        padding: 0;
    }

    .main-menu-area .main-menu > ul > li:last-of-type {
        padding-left: 0;
    }

    .main-menu-area {
        gap: 10px;
    }
}

@media (max-width: 1280px) {
    .main-menu > ul > li > a {
        padding: 6px 9px;
        font-size: 14px;
    }
}

@media (max-width: 1140px) {
    .main-menu > ul > li > a {
        padding: 6px 7px;
        font-size: 13px;
    }

    .global-search {
        min-width: 180px;
    }
}

@media (min-width: 1040px) {
    .dropdown:hover ul {
        visibility: visible;
        opacity: 1;
        top: 90%;
        z-index: 9999;
    }
}

@media (max-width: 1040px) {
    .menu-wrapper {
        position: relative;
        margin: 10px 0;
        width: 100%;
        padding: 0;
        top: 0;
        left: 0;
        z-index: 20;
    }

    .page-template-page-table .menu-wrapper {
        margin: 0 38px;
    }

    .main-menu ul.dropdown-menu.menu-active {
        position: relative;
    }

    .admin-bar .container-fluid.logo + .menu-wrapper {
        top: 109px;
    }

    /*Kinda hacky, but the whole site is..*/
    .container-fluid.logo + .menu-wrapper + .container {
        margin-top: 62px;
    }

    .menu-wrapper nav {
        display: block;
        gap: 20px;
        margin-bottom: 0;
    }

    .full-menu-wrapper {
        display: flex;
        flex-direction: column;
        overflow-y: scroll;
    }

    .main-menu > ul > li > a {
        padding: 7px 12px;
        font-size: 16px;
    }

    .main-menu > ul > li > a.homepage-icon {
        font-size: 24px;
    }

    .main-menu > ul {
        padding-left: 12px;
    }

    .main-menu > ul,
    .main-menu > ul > li {
        width: 100%;
    }

    .dropdown-menu li a {
        padding: 8px 28px;
        font-size: 16px;
        white-space: normal;
    }

    .main-menu-area {
        flex-direction: column;
        justify-content: flex-start;
    }

    .main-menu-area .main-menu {
        order: 2;
    }

    .global-search .gsc-search-button button {
        width: 40px;
        height: 36px;
    }

    .mobile-top-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: auto;
        max-width: 100%;
        padding: 7px 10px;
        gap: 20px;
        order: 1;
        background-color: #d8d8d8;
        filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
    }

    .mobile-menu-action {
        display: flex;
        font-size: 60px;
        align-self: stretch;
        align-items: center;
    }

    .mobile-menu-action .action-enter {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .mobile-menu-action .action-enter div {
        background-color: #545248;
        height: 4px;
        width: 40px;
    }

    .mobile-menu-action .action-exit {
        display: none;
        align-self: self-start;
    }

    .navbar.menu-active .main-menu {
        display: flex;
    }

    .navbar.menu-active .mobile-menu-action .action-exit {
        display: block;
    }

    .navbar.menu-active .mobile-menu-action .action-enter {
        display: none;
    }

    .navbar.menu-active {
        height: 100%;
    }

    .global-search .gsc-control-cse {
        padding: 0;
    }

    .navbar::before,
    .navbar::after {
        display: none;
    }

    .global-search > div {
        flex: 1 0 auto;
    }

    .main-menu {
        display: none;
        justify-content: flex-start;
    }

    .main-menu ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-sub-menu {
        padding-top: 10px;
        border-top: 1px solid black;
    }

    .container-fluid.logo {
        padding-bottom: 20px
    }

    .menu-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

/* 2026-07-20: az árva "!important;" sorok érvénytelen deklarációk voltak
   (a böngésző eldobta őket) — a szándék szerinti formára javítva. */
@media (min-width: 1445px) and (max-width: 1585px) {

    .szerkesztonevek {
        font-size: 0.8em !important;
    }
}

@media (min-width: 1200px) and (max-width: 1445px) {

    .szerkesztonevek {
        font-size: 0.7em !important;
    }
}

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

    div.sidebar.newsBox2 .box_inner .box img {
        max-width: 50%;
        margin-left: 25%;
    }
}

@media (max-width: 768px) {
    div.sidebar.newsBox2 .box_inner .textwidget {
        display: inline-block;
    }

    .sidebar .btn-default {
        margin: 7px 0;
        float: none;
    }
}

@media (max-width: 1200px) {
    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item > a.mega-menu-link {
        font-size: 11px !important;
        padding: 0px 2px 0px 2px !important;
    }
}

@media (max-width: 1000px) {

    #mega-menu-wrap-header-menu #mega-menu-header-menu > li.mega-menu-item > a.mega-menu-link {
        padding: 0px 2px 0px 2px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 1300px) {
    body div.container {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .tl-slide .tl-slide-content-container .tl-slide-content {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
}

@media (max-width: 1040px) {
    header:has( nav.stuck) {
        padding-bottom: 76px;
    }

    .posttable-head-sticky {
        top: 62px;
    }

    .extras-container .slider-container div {
        align-self: stretch;
    }

    .extras-container .slider-container {
        row-gap: 10px;
    }

    .extras-container .slider-container .slider-min,
    .extras-container .slider-container .slider-max {
        position: absolute;
        bottom: 110%;
    }

    .extras-container .slider-container .slider-min {
        left: 0;
    }

    .extras-container .slider-container .slider-max {
        right: 0;
    }

    [class*="page-"][class*="-rovat"] .has-carousel {
        display: none;
    }

    .scroll-to-top {
        display: block;
    }

    #postTable .posttable-row.posttable-head,
    #postTable .posttable-row.posttable-head-sticky {
        display: none;
    }

    .posttable-head-sticky {
        left: 0;
        right: 0;
        transform: none;
    }

    .posttable-head-sticky .posttable-title:not(.sortable) {
        display: none;
    }

    #postTable .posttable-cell {
        border-bottom: 0;
        text-align: left;
        align-items: flex-start;
    }

    #postTable .posttable-cell img {
        height: 100%;
        max-width: 100%;
    }

    #postTable .posttable-row:not(:first-child),
    #postTable #postTableData .posttable-row {
        grid-template-rows: min-content;
        grid-template-columns: 1fr !important;
        border-bottom: 2px solid #b11302;
        margin-bottom: 10px;
    }

    #postTable #postTableData .posttable-row:only-child {
        border-bottom: 2px solid transparent;
    }

    #postTable.posttable-has-image .posttable-row:not(:first-child),
    #postTable.posttable-has-image #postTableData .posttable-row {
        grid-template-rows: min-content min-content;
        grid-template-columns: max-content 1fr !important;
    }

    #postTable.posttable-generic .posttable-cell-img {
        align-items: flex-start;
        grid-column: 1 / 2;
    }

    #postTable .posttable-cell .column-label {
        display: block;
    }

    .extras-container {
        align-items: center;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .extras-container > div {
        align-items: center;
        flex-direction: column;
    }

    .extras-container + .facetwp-template {
        margin-top: 40px;
    }

    .extras-container .flex-first {
        flex: 1 1 auto;
        width: 100%;
    }

    .extras-container input,
    .extras-container select {
        min-width: calc(100vw - 112px);
        max-width: calc(100vw - 112px);
    }

    .extras-container .flex-last + .flex-last,
    .extras-container .flex-first + .flex-first {
        margin: 20px 0 0 0;

        &.dropdown-container {
            margin-bottom: 20px;
        }
    }

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

    .results-counter .facetwp-type-pager {
        margin-left: 0;
    }

    #postTable .hide-mobile-cell {
        display: none;
    }

    .extras-container .flex-first + .flex-first,
    .extras-container .flex-first + .flex-first-min,
    .extras-container .flex-first-min + .flex-first-min,
    .extras-container .flex-first-min + .flex-first,
    .extras-container .flex-last + .flex-last,
    .extras-container .flex-first-min + .flex-last,
    .extras-container .flex-first + .flex-last,
    .extras-container .flex-spacer + .flex-last {
        margin: 10px 0 0 0;
        text-align: center;
        align-items: center;
    }

    .extras-container {
        .slider-container {
            max-width: 100%;

            & + .slider-container {
                margin-top: 32px;
            }
        }
    }

    .extras-container .hits-counter-top {
        order: 4;
    }

    .extras-container .free-text-search {
        order: 3;
    }

    .facetwp-pager {
        margin: 0;
    }

    body:not(.home) {
        article {
            padding-top: 62px;
        }
    }
}

@media (max-width: 480px) {
    .extras-container {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .fl-container {
        display: flex;
        flex-wrap: wrap;
    }

    .posttable-head-sticky {
        top: 63px;
    }

    .posttable-title {
        font-size: 12px;
        text-align: center;
    }

    .container > .col-lg-12 {
        max-width: 100%;
    }

    #postTable .posttable-row .posttable-cell {
        padding: 3px 5px 3px 5px;
        font-size: 14px;
        line-height: 1.6;
    }

    .facetwp-search {
        max-width: 70vw;
    }

    .facetwp-type-pager {
        font-size: 14px;
    }

    .facetwp-pager .facetwp-page {
        padding: 0 7px;
    }
}
/* --- "Teljes" keresési találatok (search_results.php) stílusai --- */

.more-than-three { display: none; }
.search-info-text { font-style: italic; margin-bottom: 10px; }
.result-group { margin-bottom: 25px; line-height: 1.6; }
.result-group a { display: block; }
.toggle-btn {
    display: block;
    color: #d9534f;
    cursor: pointer;
    font-weight: bold;
    margin: 5px 0 20px 0;
    text-decoration: underline;
}
/* == 2026-07-17 egysoros menü javítások (style2.css végére fűzve) ========== */

/* A nav a régi kétblokkos layouthoz volt igazítva (row-reverse + space-between),
   ettől tolódott jobbra az egyetlen megmaradt menüsor. Középre igazítás: */
.menu-wrapper nav {
    flex-direction: row;
    justify-content: center;
}

.full-menu-wrapper {
    align-items: center;
    width: 100%;
}

.main-menu-area {
    width: 100%;
}

/* A régi layoutban az utolsó menüpont extra bal-paddingot kapott – már nem kell */
.main-menu-area .main-menu > ul > li:last-of-type {
    padding-left: 0;
}

/* 3. szintű lenyílók: a szülő menüpont MELLETT nyíljanak, ne alatta egymásra
   halmozódva. Hoverre nyílnak, JS-től függetlenül. */
.main-menu .dropdown-menu > li {
    position: relative;
}

.main-menu ul.dropdown-menu ul.dropdown-menu {
    left: 100%;
    top: 0 !important;
    margin-top: 0;
}

.main-menu .dropdown-menu > li:hover > ul.dropdown-menu {
    visibility: visible;
    opacity: 1;
    z-index: 9999;
}

/* == 3. szint javítás: a .dropdown:hover ul szabály minden leszármazott ul-t
   kinyitott egyszerre. A mélyebb szintek maradjanak rejtve, és csak a saját
   szülő li hoverére nyíljanak (oldalra). ========================== */
@media (min-width: 1040px) {
    .dropdown:hover ul ul {
        visibility: hidden;
        opacity: 0;
    }

    .main-menu .dropdown-menu li:hover > ul.dropdown-menu {
        visibility: visible;
        opacity: 1;
        z-index: 9999;
    }
}

/* == Keskeny nézet: rendezett sortörés + további tömörítés ================= */
@media (max-width: 1280px) {
    .main-menu > ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 1200px) and (min-width: 1040px) {
    .main-menu > ul > li > a {
        padding: 5px 5px;
        font-size: 12.5px;
    }
}

@media (max-width: 1100px) and (min-width: 1040px) {
    .main-menu > ul > li > a {
        padding: 4px 4px;
        font-size: 12px;
    }
}

/* == Javítás: a wrap csak akkor működik, ha a konténer-lánc szélessége
   korlátozva van — különben a középre igazított túllógó sor bal széle
   levágódik. ============================================================ */
.full-menu-wrapper {
    max-width: 100%;
}

.main-menu {
    max-width: 100%;
}

.main-menu > ul {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

/* == 2026-07-20 menü: teljes szélesség kihasználása + középre igazítás ===== */
/* A .menu-wrapper 138px-es oldal-paddingja összenyomta a menüsort — a menü
   igazodjon az oldal szélességéhez. Desktopon a menüpontok egyenletesen
   oszlanak el a rendelkezésre álló szélességben, középre igazítva. */
@media (min-width: 1040px) {
    .menu-wrapper {
        padding-top: 4px;
        padding-left: 30px;
        padding-right: 30px;
        justify-content: center;
    }

    /* 2026-07-20: a kétsoros menü (1. sor / "Az Adattár tartalma:" felirat /
       2. sor) túl sok függőleges helyet foglalt a fejlécben -- a menüpontok
       fel-le paddingja szűkítve. */
    .main-menu > ul > li > a {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    /* A nav és a main-menu-area korábban nem kaptak explicit szélességet,
       ezért a bennük lévő justify-content:center csak a saját (a
       tartalmukhoz igazodó, összezsugorodott) dobozukon belül központozott
       -- emiatt tűnt úgy, mintha az egész menüsor balra lenne tolva. */
    .menu-wrapper nav {
        width: 100%;
    }

    .main-menu-area {
        width: 100%;
    }

    .main-menu {
        width: 100%;
    }

    .main-menu > ul {
        width: 100%;
        justify-content: space-evenly;
    }
}

/* == 2026-07-20 menü: kikényszerített sortörés SZEMÉLYEK előtt + a törés
   utáni (2.) sor vizuális jelzése, hogy az ADATTÁR kifejtése ============= */
.main-menu .menu-line-break {
    flex-basis: 100%;
    /* 2026-07-20: a height:0 miatt a felirat (::after) nem foglalt helyet a
       flex-elrendezésben, ezért rácsúszott a 2. sorra -- a magasság mostantól
       a felirat tényleges méretéhez igazodik (nincs kényszerített 0). */
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A törés-elem után következő minden menüpont (a teljes 2. sor) kapjon
   kicsit visszafogottabb, kisebb betűt, hogy megkülönböztethető legyen az
   1. sortól. (2026-07-20: a felső elválasztó vonal kikérve, törölve.) */
.menu-line-break ~ li > a {
    font-size: 13px;
    color: #555;
}

/* Apró felirat a törés helyén, ami kimondja a kapcsolatot az ADATTÁR-ral. */
.menu-line-break::after {
    content: "Az Adattár tartalma:";
    display: block;
    flex-basis: 100%;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    padding: 1px 0 0 4px;
    line-height: 1.3;
    /* 2026-07-20 (2. korrekció): explicit center, ne oroklodesre
       tamaszkodjon -- sablonfuggo volt (front-page.php-n orokolt
       kozepre igazitast kapott, page-table.php/page-footerless.php-n
       nem, ezert csuszott balra). */
    text-align: center;
}
/* ============================================================
   Kiemelt kép a jobb oldali sidebarban: mindig nagy, négyzetes
   (2026-07-20, v2)

   Ok: a FeaturedImageWidgetNC a beállított méretváltozat hiányában
   az eredeti (akár kicsi, pl. 252px-es) fájlra esik vissza, ezért
   oldalanként eltérő méretű/arányú a kiemelt kép.

   v2: a .box_inner display:inline-block (style.css:1022) tartalomra
   zsugorodik, ezért az img{width:100%} önmagában nem nagyít — a
   szélességet a teljes szülő-láncon ki kell kényszeríteni. A
   szelektorok a meglévő media-query szabályokhoz igazodó
   (div.sidebar.newsBox2 ...) specificitásúak.
   ============================================================ */

div.sidebar.newsBox2 .box_inner,
div.sidebar.newsBox2 .box_inner .box,
div.sidebar.newsBox2 .box_inner .box a.thumbnail-wrapper {
    display: block;
    width: 100%;
}

/* v3 (2026-07-20 este): a v2 cover-vágása belevágott az álló képekbe, és a
   kis felbontású fotókat túlzottan felnagyította. Finomítás:
   - object-fit: contain -- a kép egészben látszik a négyzetes kereten belül,
     nincs levágás (az üres sáv a keret fehér hátterével olvad össze);
   - max-width: 280px -- a felnagyítás felső korlátja, kis felbontású kép
     nem pixelesedik szét;
   - margin: 0 auto -- a keret középre igazítva a sidebar-oszlopban. */
div.sidebar.newsBox2 .box_inner .box img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ============================================================
   FEJLÉC-JAVÍTÁS — 2026-08-01
   Ez a fájl a TELJES style2.css: az 1767. sorig a szerverén lévő eredeti,
   innentől a mai javítások. Telepítés: a fájl egészének felmásolása az
   itftheme/style2.css helyére. Témaszintű, MINDEN oldalt érint.

   Két panasz, két ok — MINDKETTŐ konzolból kimérve, nem tippelve.
   (E blokk korábbi változata két téves feltevést tartalmazott: a szürke
   csíkot a bootstrap `.navbar-default` hátterének hitte, a feliratot pedig
   puszta abszolút pozicionálással akarta a helyére tenni. Mindkettő
   cáfolva — a helyes indoklás lentebb, az 1) és a 3) blokk fejlécében.)
   ============================================================ */

/* --- 1) + 2) KIMÉRVE (2026-08-01, Firefox konzol) -----------------------
   A korábbi feltevés (bootstrap `.navbar-default` háttere) TÉVES volt — a
   nav és a .full-menu-wrapper is fehér (rgb(255,255,255)), 117-187px.
   A mért valóság:
       header          top=0  bot=202  bg=rgb(246,246,246)  padding-bottom=15px
       .menu-wrapper   top=113 bot=187 bg=fehér
   Tehát a szürke csík = a `header` saját 15px-es alsó paddingja, a
   `header{background:#f6f6f6}` (style2.css:61) színével. A címlapon nincs,
   mert a `body.home header{padding-bottom:0}` (style2.css:16) kinullázza —
   a nyitólap-sablonok viszont nem `home` body-osztályt kapnak.

   Ezért ugyanazt a kinullázást kiterjesztjük a nyitólap-sablonokra.
   FONTOS: a `header:has(nav.stuck){padding-bottom:120px}` (style2.css:71) a
   ragadós menü helyfoglalása — azt NEM szabad felülírni, innen a :not().    */
body.page-template-page-nyitolap-a header:not(:has(nav.stuck)),
body.page-template-page-nyitolap-b header:not(:has(nav.stuck)) {
    padding-bottom: 0;
}

/* Ha MINDEN aloldalon el akarod tüntetni a csíkot, a fenti két szelektor
   helyett ez az egy sor kell (nagyobb hatókör, alaposabb átnézést kíván):
       header:not(:has(nav.stuck)) { padding-bottom: 0; }                   */

/* --- 3) a felirat a 2. sor bal szélére ----------------------------------
   v2 (2026-08-01): az első kísérletben a felirat a törés-elem ::after-je
   maradt, abszolút pozicionálva. Emiatt KIKERÜLT a flex-elrendezésből:
   nem foglalt helyet, így szűk ablaknál a SZEMÉLYEK ráfutott. A felirat
   ezért átkerül a törés UTÁNI ELSŐ menüpontra (SZEMÉLYEK): a felirat
   szélességét az a menüpont bal paddingjaként FOGLALJA le, a szöveg pedig
   abba a paddingba van pozicionálva. Így a `space-evenly` is számol vele,
   és szűküléskor a teljes sor nyomódik össze, nem a felirat.             */
@media (min-width: 1180px) {
    .main-menu .menu-line-break {
        height: 0;          /* csak sortörés, függőleges helyet nem foglal */
        margin: 0;
        padding: 0;
    }

    /* a felirat már nem a törés-elemen van */
    .main-menu .menu-line-break::after {
        content: none;
    }

    /* A törés utáni első menüpont tartja a helyet a feliratnak.
       A 168px a felirat mért szélessége (11px, uppercase, 0.05em betűköz)
       + 12px elválasztás; ha a szöveg változik, ezt kell újramérni. */
    .main-menu .menu-line-break + li {
        position: relative;
        padding-left: 168px;
    }

    .main-menu .menu-line-break + li::before {
        content: "Az Adattár tartalma:";
        position: absolute;
        left: 0;
        top: 0;
        /* Egy vonalba a menüpontokkal: ugyanaz a felső padding és
           sormagasság, mint a linkeké -- így a két sordoboz fedi egymást. */
        padding-top: 4px;
        line-height: inherit;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #999;
        white-space: nowrap;
        pointer-events: none;
    }
}

