/*
Theme Name: Bajabela T2H4
Text Domain: T2H4
Version: 4.0
Description: A Bajai III. Béla Gimnázium hivatalos weboldalának témája - 2024-2026
Tags: III. Béla, gimnázium, reszponzív
Author: Markó Ádám
*/

:root {
    --background-color: #fff;
    --background-color-header: #fff;
    --text-color: #333;
    --footerborder: rgba(0, 0, 0, 0.35);
    --logo-text-color: #9c0406;
    --nav-divider-dropdown-color: #33333366;
    --post-tag-color: rgba(128, 0, 32, 0.9);
    --post-tag-color-hover: rgb(128, 0, 32);
    --hambmenu: brightness(0) invert(0);
    --logo: none;
    --logo-footer: brightness(0) invert(0);
    --link-color: #333;
    --link-hover-color: #9c0406;
}

[data-theme='dark'] {
    --background-color: #181818;
    --background-color-header: #2E2E2E;
    --text-color: #fff;
    --footerborder: rgba(255, 255, 255, 0.35);
    --logo-text-color: #fff;
    --nav-divider-dropdown-color: #fff;
    --post-tag-color: #6D6D6D;
    --post-tag-color-hover: #cccccca2;
    --hambmenu: brightness(0) invert(1);
    --logo: brightness(0) invert(1);
    --logo-footer: brightness(0) invert(1);
    --link-color: #BBB;
    --link-hover-color: #FFF;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
}

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

.nav-divider-dropdown {
    background-color: var(--nav-divider-dropdown-color);
}

.hamburger_dropdown button .fa-bars-staggered,
.hamburger_dropdown button .fa-times {
    filter: var(--hambmenu);
}

.logo img {
    filter: var(--logo);
    padding-left: 0;
}

.logo a {
    padding-left: 1rem;
}

h1,
h2,
h3,
p,
a {
    color: var(--text-color);
}

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

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.dropdowninfo {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: end;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    padding-right: 1rem;
}

.dropdowninfo p {
    text-align: end;
    font-size: 10pt;
    line-height: 1.2rem;
    margin: 0;
    padding: 0;
}

.info-container {
    display: flex;
    align-items: end;
    flex-direction: column;
}

.info-container p {
    margin: 0;
    padding: 0;
    font-size: 9pt;
}

.info-container p.infoloc {
    padding-bottom: 8px;
}

.info-icon-container {
    margin-left: 10px;
}

.info-icon a {
    font-size: 20px;
    cursor: help;
    padding-top: 0.5rem;
    color: var(--text-color);
    opacity: 0.5;
    transition: all 0.5s;
}

.info-icon a:hover {
    text-decoration: none;
    color: var(--text-color);
    opacity: 1;
    transition: all 0.5s;
}

.theme-switch-wrapper {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 65px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #800020;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
    border-radius: 50px;
}

.slidericons {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2px;
    padding-left: 0.7rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.slidericons i {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #fff;
}

.slidericons i:first-child {
    padding-right: 0.7rem;
}

.slider::before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 26px;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #9c0406;
}

input:checked+.slider::before {
    transform: translateX(31px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round::before {
    border-radius: 50%;
}

.montserrat-font {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background-color: #800002;
    width: 0%;
    z-index: 999;
    transition: width 0.2s ease-in-out;
}

.notice-marquee {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #800002;
    color: white;
    z-index: 9999;
    padding: 10px 0;
    font-size: 10pt;
}

.notice-marquee marquee {
    background-color: #800002;
}

[id] {
    scroll-margin-top: 80px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transform: translateX(-50%);
}

.header_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 30px 0 30px;
    width: 95%;
    margin: 0 auto;
    transition: max-height 0.3s ease-in-out;
    border-radius: 0 0 20px 20px;
    background: var(--background-color);
    left: 50%;
    position: relative;
    max-height: 70px;
    overflow: hidden;
    transition: all 0.3s;
}

.header-portable {
    display: none;
}

.header_main.expanded {
    max-height: 1000px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    background-color: var(--background-color-header);
}

.top_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header_main.scrolled {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    background-color: var(--background-color-header);
}

.header_main .logo {
    display: flex;
    align-items: center;
    width: 200px;
}

.header_main .logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.header_main .logo img {
    height: 40px;
    filter: var(--logo);
}

.header_main .logo .logotext {
    font-weight: 700;
    font-size: 9pt;
    color: var(--logo-text-color);
}

.header_main .logo a:hover {
    text-decoration: none !important;
}

.dropdown_column {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #800020;
    width: 100%;
    z-index: 9999;
    transition: max-height 1s ease, opacity 1s ease;
    max-height: none;
    opacity: 0;
    overflow: visible;
}

/* --- TARGET SPECIFIC MENU ITEMS --- */

ul.sub-menu .menu-item-1212,
ul.sub-menu .menu-item-200,
ul.sub-menu .menu-item-202 {
    position: relative;
    padding-bottom: 1rem;
}

ul.sub-menu .menu-item-1212::after,
ul.sub-menu .menu-item-200::after,
ul.sub-menu .menu-item-202::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 90%;
    border-bottom: 1px solid rgb(255, 255, 255, 0.5);
    transform: translateX(-50%);
}

ul.sub-menu .menu-item-198,
ul.sub-menu .menu-item-203,
ul.sub-menu .menu-item-204 {
    position: relative;
    padding-top: 0.5rem;
}

.menu-item-has-children {
    position: relative;
    transition: max-height 1s ease, opacity 1s ease;
    overflow: visible;
}

.menu-item-has-children>a {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-left: 1rem;
    transition: max-height 1s ease, opacity 1s ease;
}

.menu-item-has-children>a .fa-angle-down {
    position: relative;
    transition: transform 0.3s ease;
    color: var(--text-color);
    opacity: 0.7;
    left: 0.5rem;
}

.menu-item-has-children.open>a .fa-angle-down {
    transform: rotate(180deg);
    color: white;
    opacity: 1;
}

.menu-item-has-children.open {
    background: #800020;
    transition: max-height 1s ease, opacity 1s ease;
}

.menu-item-has-children.open>a {
    color: white;
    padding-top: 1em;
    padding-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    transition: max-height 1s ease, opacity 1s ease;
}

.menu-item-has-children.open .sub-menu {
    display: block;
    max-height: 200px;
    padding-bottom: 1rem;
    opacity: 1;
    transition: max-height 1s ease, opacity 1s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-item-has-children.open .sub-menu::-webkit-scrollbar {
    width: 12px;
    background-color: transparent;
}

.menu-item-has-children.open .sub-menu::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: transparent;
}

.menu-item-has-children.open .sub-menu::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

.menu-item-has-children.open .sub-menu::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

.menu-item-has-children.open .sub-menu {
    scrollbar-width: thin;
    scrollbar-color: #fff transparent;
}

.menu-item-has-children.open .sub-menu::-moz-scrollbar-button {
    display: none;
}

.menu-item-has-children.open .sub-menu a {
    color: white;
    line-height: 1.6em;
    transition: max-height 1s ease, opacity 1s ease;
}

.header_main .navbar {
    display: flex;
    align-items: center;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background-color: var(--text-color);
    margin: 0 15px;
}

.nav-divider_dropdown {
    width: 1px;
    height: 24rem;
    background-color: var(--nav-divider-dropdown-color);
    margin: 0 auto;
}

.nav-divider_dropdown:nth-of-type(6) {
    height: 7rem;
}

.globalsearch {
    position: relative;
    display: flex;
    align-items: center;
}

.searchinput {
    position: absolute;
    right: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.5s ease;
    background-color: transparent;
    z-index: 1;
}

.searchinput.active {
    width: 14rem;
    background-color: transparent;
    z-index: 1;
}

#searchform {
    display: flex;
    background: transparent;
}

#searchform input[name="s"] {
    border: none;
    border-bottom: solid grey 1px;
    color: var(--text-color);
    text-align: right;
    margin-right: 1rem;
    width: 100%;
    background-color: transparent;
}

#searchform input[name="s"]:focus {
    outline: none;
    border-bottom: solid grey 1px;
    background-color: transparent;
}

#searchform input[type="submit"] {
    display: none;
}

.globalsearch .fa-search {
    color: var(--text-color);
    margin-left: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
}

.globalsearch .fa-search:hover {
    transform: scale(1.2);
}

/* --- PORTABLE MENU --- */

.header_main .navbar .globalquicklink img {
    filter: var(--hambmenu);
    height: 22px;
}

.header_main .navbar .globalquicklink a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--text-color);
    padding-left: 0;
}

.header_main .navbar .globalquicklink a:hover {
    text-decoration: underline !important;
}

.header_main .navbar .hamburger_dropdown button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-color);
}

.hamburger_dropdown button .fa-bars-staggered {
    margin-left: 0.5rem;
    padding-right: 1rem;
}

.hamburger_dropdown button .fa-times {
    margin-left: 0.5rem;
    padding-right: 1rem;
}

.dropdown_container {
    position: relative;
    width: 100%;
    overflow: visible;
}

.dropdown_container::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-image: var(--dropdown-bg);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 44rem;
    pointer-events: none;
    z-index: 0;
}

.top_section,
.dropdown_container {
    position: relative;
    z-index: 1;
}

.dropdown_menu {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 20px 0;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
}

.header_main.expanded .dropdown_menu {
    visibility: visible;
    opacity: 1;
}

.dropdown_column {
    flex: 1;
    overflow: visible;
    max-width: 20rem;
}

.dropdown_column h3,
.dropdown_column a {
    padding-left: 1rem;
}

.dropdown_column h3 {
    font-size: 9pt;
    margin: 0 auto;
}

.dropdown_column:first-child {
    max-width: 15rem;
    padding-left: 0;
}

.dropdown_column ul {
    list-style: none;
    padding: 0;
    font-size: 11pt;
}

.dropdown_column ul li {
    margin-bottom: 5px;
    position: relative;
}

.dropdown_column ul li a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    padding-left: 1rem;
    line-height: 1.4em;
}

.dropdown_column ul li a::before {
    content: "";
    display: block;
    margin-left: -1rem;
    padding-left: 1rem;
}

.wp-lightbox-overlay .scrim {
	background-color: var(--background-color) !important;
}

.wp-lightbox-container button{
display: none;
}

/* --- SLIDESHOW --- */

.slideshow_frame {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 5px;
}

.slideshow_container {
    position: relative;
    width: 96%;
    margin: 0 auto;
    padding: 5.3rem 0 0 0;
    overflow: hidden;
}

.slideshow_container .slideshow {
    display: flex;
    width: 100%;
    height: 78vh;
    border-radius: 20px;
    transition: transform 1s ease;
}

.slideshow_container .slideshow .slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slideshow_container .freshnews {
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 50%;
    gap: 2rem;
    margin: -100px auto 0;
    position: relative;
    z-index: 1;
}

.slideshow_container .freshnews .newscard {
    position: relative;
    width: 250px;
    height: 150px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--newscard-shadow) 0px 7px 29px 0px;
}

.slideshow_container .freshnews .newscard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.slideshow_container .freshnews .newscard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.slideshow_container .freshnews .newscard p {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    margin: 0 auto;
    width: 85%;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.global_container {
    padding: 20px;
    width: 50%;
    margin: 0 auto;
    display: flex;
}

.global_container .pagetitle {
    height: 2rem;
    overflow: hidden;
    margin-bottom: 20px;
    padding-top: 2rem;
    padding-bottom: 1.6rem;
    display: flex;
    text-align: start;
    background-color: none;
}

.global_container .pagetitle h1 {
    margin: 0;
    padding: 0;
    font-size: 40px;
    text-transform: uppercase;
    font-family: "Montserrat";
    font-weight: 800;
}

.fa-newspaper {
    margin-right: 1rem;
}

.global_container .allnews {
    width: 82.5ch;
    margin: 0 auto;
    margin-top: 0;
}

.global_container .allnews .post {
    margin-bottom: 2rem;
}

.global_container .allnews .post img {
    padding: 1rem;
    border-radius: 20px;
    margin: 0 auto;
    display: flex;
}

.global_container .allnews .post iframe {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border-radius: 5px;
}

.posttitle-date {
    display: flex;
    align-items: center;
}

.posttitle h2 a {
    text-decoration: none;
    color: inherit;
    padding-left: 0;
    font-family: "DM Serif Text", sans-serif;
    letter-spacing: 0.5px;
}

.global_container .allnews .post .posttitle {
    margin-bottom: 10px;
}

.global_container .allnews .post .posttitle h2 {
    margin: 0;
    font-size: 21px;
    margin-bottom: 0.75rem;
}

.global_container .allnews .post .posttitle p {
    margin: 5px 0 0;
    margin-bottom: 0.7rem;
    color: #888;
    font-size: 10pt;
}

.daystwo {
    font-size: 10pt;
    display: flex;
    margin-right: 0.4rem;
    margin-bottom: 0.3rem;
    color: #888;
}

.separator-line {
    width: 50%;
    height: 1px;
    background-color: #888;
    margin: 0 auto;
    margin-top: 3rem;
    margin-bottom: 2rem;
    opacity: 50%;
}

.global_container .allnews .post .postpreview_pic img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.global_container .allnews .post .postcontent {
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.global_container .allnews .post .postcontent p {
    margin: 15px 0 0;
    font-weight: 400;
    line-height: 1.5em;
    text-align: left;
    font-size: 12pt;
}

/* ------------ CONTENT SITE LOAD MORE NEWS BUTTON ------------*/

.global_container .allnews button {
    display: none;
    width: auto;
    padding: 10px 20px;
    background-color: transparent;
    /* Background is transparent */
    color: var(--logo-text-color);
    /* Light grey color for text */
    border-radius: 40px;
    margin: 0 auto;
    margin-top: 3rem;
    margin-bottom: 5rem;
    cursor: pointer;
    font-size: 11pt;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* --- BUTTON HOVER EFFECTS --- */

.global_container .allnews button:hover {
    color: var(--logo-text-color);
    border: none;
    background: none;
    box-shadow: none;
}

#load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: 1px solid var(--logo-text-color);
    border-radius: 8px;
    opacity: 1;
    transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease, opacity 0.4s ease;
}

#load-more .button-text {
    color: var(--logo-text-color);
}

#load-more:hover {
    background-color: #800020;
    border: 1px solid var(--background-color);
}

#load-more:hover .button-text {
    color: white;
}

#load-more.is-fading {
    opacity: 0;
    pointer-events: none;
}

#load-more:disabled {
    color: #6D6D6D;
    cursor: default;
    border: none;
}

#load-more:disabled:hover {
    background: none;
}

.post.is-loading {
    opacity: 0;
    transform: translateY(30px);
}

.post.is-visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    position: relative;
    width: 100%;
    padding-bottom: 3rem;
    background: var(--background-color);
}

.footer_container {
    max-width: 85ch;
    margin: 0 auto;
}

.footer_content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 1.5rem;
    border-top: 0.5px solid var(--footerborder);
    color: var(--text-color);
}

.footer-maininfo {
    padding-left: 1.25rem;
    padding-right: 3rem;
    border-right: 0.5px solid var(--footerborder);
    padding-top: 2rem;
}

.footer-secinfo {
    padding-top: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 2rem;
}

.footer-secinfo_logo {
    justify-self: end;
    align-self: start;
    display: inline-flex;
    padding-right: 1rem;
}

.footer-secinfo_logo img {
    display: block;
    height: 38px;
    width: auto;
    filter: var(--logo-footer);
}

.footer_content p {
    margin: 0 0 1rem 0;
    font-size: 11pt;
    line-height: 1.35;
    text-indent: 0;
}

.footer-title {
    margin-bottom: 1.25rem;
    letter-spacing: .5px;
}

.footital {
    margin-top: 3.5rem;
    font-style: italic;
    opacity: 0.9;
}

.footital a {
    color: var(--text-color);
    text-decoration: none;
    padding-left: 0;
    margin-left: 0;
    font-size: 9pt;
}

.footital a:hover {
    color: var(--text-color);
    text-decoration: none !important;
}

.footital .mrko:hover {
    cursor: pointer;
    font-weight: 700;
}

@media (max-width:768px) {
    .footer_container {
        width: 83%;
    }
    .footer_content {
        position: relative;
        display: block;
        padding-top: 1rem;
    }
    .footer-maininfo {
        border: none;
        padding: 0;
    }
    .footer-secinfo {
        padding: 0;
        display: block;
    }
    .footer-secinfo_logo {
        position: absolute;
        top: 1rem;
        right: 0;
        padding: 0;
    }
    .footer-secinfo_logo img {
        height: 42px;
    }
    .footer-maininfo,
    .footer-secinfo_text {
        max-width: 90%;
    }
    .footer-title {
        margin-bottom: .5rem;
    }
    .footer-maininfo p,
    .footer-secinfo_text p {
        margin-bottom: .5rem;
        text-align: left;
        padding-left: 0;
    }
    .footital {
        display: none;
    }
    .footer-secinfo_text p:last-child::after {
        content: "© Bajai III. Béla Gimnázium. Minden jog fenntartva.";
        display: block;
        margin-top: 1rem;
        font-size: 9pt;
        font-style: italic;
        opacity: .9;
    }
    .footer-maininfo {
        margin-bottom: 0;
    }
    .footer_content p {
        font-size: 10pt;
        line-height: 1.45;
    }
    #scrollTopBtn {
        right: 35px !important;
        bottom: 30px !important;
        scale: 0.9;
    }
    button#load-more {
        margin-bottom: 2rem;
    }
    .archive-title h1 {
        font-size: 16pt;
    }
    footer {
        padding-bottom: 1.5rem;
    }
    .archivepost-title p a {
        font-size: 14pt;
    }
}

/* --- ARCHIVE PAGE STYLING -- */

.archive-content-area {
    padding-top: 5rem;
    width: 80ch;
    margin: 0 auto;
    flex: 1;
}

.archive-content-area .archivesite-main .archivepost-title p {
    margin: 0;
    padding-left: 0;
}

.archive-content-area .archivesite-main .archivepost-title a {
    font-size: 16pt;
    color: var(--text-color);
    font-family: "DM Serif Text", serif;
    padding-left: 0;
    font-weight: bold;
    text-decoration: none;
}

.archivepost-title {
    font-size: 12pt;
    margin-bottom: 0.3rem;
}

.archivepost-date {
    font-size: 10pt;
    margin-top: 0;
    padding-top: 0;
}

.archivepost-date i {
    margin-right: 0.2rem;
}

.archive-title h1 .highlight {
    color: #9c0406;
    font-family: "DM Serif Text", serif;
}

.archive-content-area .nav-links {
    padding: 2rem 0;
    text-align: center;
}

.post-excerpt {
    margin-bottom: 2rem;
}

.posttags p {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: start;
    text-decoration: none;
    margin-top: 0.5rem;
}

.posttags p a {
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    margin: 0.4rem 5px 0 0;
    display: inline-block;
}

.posttags p a:first-child {
    margin-left: 0.4rem;
}

.posttags a {
    background-color: var(--post-tag-color);
    transition: background-color 0.2s ease;
}

.posttags a:hover {
    background-color: var(--post-tag-color-hover);
    opacity: 1;
    text-decoration: none !important;
}

/*PRELOADER*/

#preloader {
    background: var(--background-color);
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 999999900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
    opacity: 1;
    visibility: visible;
}

svg {
    overflow: visible;
    width: 100px;
    height: 150px;
}

svg g {
    animation: slide 2s linear infinite;
}

svg g:nth-child(2) {
    animation-delay: 0.5s;
}

svg g:nth-child(2) path {
    animation-delay: 0.5s;
    stroke-dasharray: 0px 157px;
    stroke-dashoffset: 1px;
}

svg path {
    stroke: url(#gradient);
    stroke-width: 20px;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 0 157px;
    stroke-dashoffset: 0;
    animation: escalade 2s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}

@keyframes slide {
    0% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(50px);
    }
}

@keyframes escalade {
    0% {
        stroke-dasharray: 0 157px;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 157px 157px;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dasharray: 157px 157px;
        stroke-dashoffset: -156px;
    }
}

@media (max-width: 1800px) {
    .slideshow_container .freshnews,
    .global_container {
        width: 90%;
    }
    .archive-content-area {
        margin: 0 auto;
    }
}

.header-portable {
    display: none;
    width: 100vw;
    height: 80px;
    background-color: var(--background-color-header);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3 ease;
}

.header-portable.scrolled {
    background-color: var(--background-color-header);
}

.portable_topheader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    padding-left: 1.75rem;
    width: 100vw;
}

.portable_topheader .portable_logo {
    display: flex;
    align-items: center;
    width: 200px;
}

.portable_topheader .portable_logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.portable_topheader .portable_logo img {
    height: 40px;
    filter: var(--logo);
}

.portable_topheader .portable_logo .logotext {
    font-weight: 700;
    font-size: 9pt;
    color: var(--logo-text-color);
    font-family: "Montserrat", sans-serif;
}

.portable_hamburger {
    padding-right: 1.5rem;
}

.portable_hamburger button {
    background: none;
    border: none;
    font-size: 16pt;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.portable_hamburger button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: var(--text-color);
}

.portable_dropdown-menu,
.portable_dropdown-content {
    overflow-x: hidden;
}

.portable_dropdown-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    z-index: 999;
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
}

.portable_dropdown-menu.active {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    overflow: hidden;
}

.portable_dropdown-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    overflow: hidden;
    padding: 1.5rem;
    background-color: var(--background-color-header);
}

.portable_dropdown-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -500px;
    height: 500px;
    background: var(--background-color-header);
}

.portable_searchbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 1rem;
    box-sizing: border-box;
    justify-content: center;
}

.portserach {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-right: 1rem;
}

.portable_searchicon {
    font-size: 16pt;
    margin-right: 1rem;
}

#portable_searchform {
    flex-grow: 1;
    position: relative;
}

#portable_s {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background-color: transparent;
    color: var(--text-color);
    font-size: 1rem;
    font-style: italic;
    font-family: "Montserrat", sans-serif;
}

#portable_s::placeholder {
    color: #888;
}

#portable_s:focus {
    outline: none;
}

.portable_quicklinks {
    display: flex;
    align-items: center;
}

.portable_quicklinks a {
    margin-left: 2rem;
    padding: 1rem 0 .3rem 0;
}

.portable_quicklinks a:first-child {
    margin-left: 0;
}

.portable_quicklinks img {
    filter: var(--hambmenu);
    height: 25px;
    vertical-align: middle;
}

.portable_navmenu {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.portable_navmenu::-webkit-scrollbar {
    display: none;
}

.portable_navmenu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: none;
}

.portable_navmenu>ul>li {
    padding: 0;
}

.portable_navmenu li {
    position: relative;
}

.portable_navmenu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    display: block;
    padding: 0;
    margin: 0;
}

.portable_navmenu>ul>li>a.portmainname {
    padding: 0.9rem 3rem 0.9rem 0;
    margin: 0;
    line-height: 2;
}

.portable_navmenu a:hover {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.portmainname {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 3rem 0.75rem 0;
    position: relative;
    font-size: 12pt;
}

.portmainname::after {
    content: "\f078";
    /* fa-chevron-down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: .8;
    color: var(--text-color);
    transition: transform .25s ease, opacity .25s ease;
}

.portable_navmenu>ul>li.active>.portmainname::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

.portable_navmenu>ul>li>.portmainname {
    position: relative;
}

.portable_navmenu>ul>li:not(:last-child)>.portmainname::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--footerborder);
}

/* --- DROPDOWN MENU --- */

.portable_dropdown_menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.portable_dropdown_menu.active {
    max-height: 1000px;
    opacity: 1;
}

.portable_dropdown_menu li {
    padding: 8px 0;
}

.portable_dropdown_menu li a {
    font-weight: normal;
    padding-bottom: 0.1rem;
}

.portable_dropdown-menu li:first-child {
    margin-top: 1rem;
}

.portable_navmenu li.active>.portable_dropdown_menu {
    max-height: 2000px;
    opacity: 1;
    pointer-events: auto;
}

.portable_navmenu li.active>.portable_dropdown_menu {
    max-height: 2000px;
    opacity: 1;
    padding-bottom: 1.5rem;
    pointer-events: auto;
}

.portable_dropdown_menu {
    pointer-events: none;
}

.portable_dropdown-menu .menu-item-has-children {
    background: none;
}

.portable_dropdown_menu .sub-menu {
    position: relative;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1rem;
    margin: 0;
    list-style: none;
    background: none;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.portable_dropdown-menu .sub-menu li:first-child {
    margin-top: 0;
}

.portable_navmenu li.active>.sub-menu {
    max-height: 1000px;
    opacity: 1;
    padding: 0.5rem 2rem 1rem;
}

.portable_dropdown_menu .sub-menu a,
.portable_dropdown_menu li a {
    font-weight: 600;
    font-size: 10.5pt;
}

.portable_dropdown_menu .sub-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    z-index: -1;
}

/* --- SUB-MENU LINK COLORS --- */

.portable_dropdown_menu .sub-menu a {
    color: #fff;
    padding: 0;
}

.portable_dropdown_menu #menu-item-259 {
    padding-top: 0;
    margin-top: .5rem;
}

.portable_navmenu>ul>li.active>.portable_dropdown_menu a {
    color: var(--text-color);
}

.portable_bottombar {
    position: sticky;
    bottom: 0;
    padding: 1rem 0 0.75rem;
    background: var(--background-color-header);
}

.portable_pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--footerborder);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.portable_pill input[type="search"] {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-color);
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

.pill_icon {
    border: 0;
    background: transparent;
    color: var(--text-color);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

#portableThemeSwitch.rotate i {
    animation: pillSpin 0.65s ease;
}

@keyframes pillSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.pill_divider {
    width: 1px;
    height: 22px;
    background: var(--footerborder);
}

.portable-theme-switch.rotate i {
    animation: rotate 0.35s ease-in-out;
}

.portable_additional-info {
    padding: 20px 0 0rem;
    border-top: 1px solid #555;
    overflow: hidden;
    width: 100%;
}

.addinfo {
    width: 100%;
    height: 20px;
    position: relative;
    overflow: hidden;
}

.words {
    position: absolute;
    white-space: nowrap;
    animation: move-words 30s linear infinite;
    padding-left: 100%;
    font-size: 10pt;
}

@keyframes move-words {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.addinfo:hover .words {
    animation-play-state: paused;
}

/*SCROLL TO TOP BUTTON*/

#scrollTopBtn {
    position: fixed;
    right: 46px;
    bottom: 46px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #800020;
    color: #fff;
    transform: translateX(210%);
    transition: transform .35s ease, opacity .35s ease;
}

#scrollTopBtn.visible {
    transform: translateX(0);
}

#scrollTopBtn .scroll-icon {
    font-size: 20px;
    line-height: 1;
}

#scrollTopBtn:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/*404 PAGE*/

#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.page-content,
.a404player {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-right: 2rem;
    margin-left: 2rem;
}

.page-content i {
    margin-right: 0.5rem;
}

#portable_searchform {
    display: flex;
    align-items: center;
    justify-content: center;
}

#portable_s {
    margin-right: 0.5rem;
    text-align: left;
}

.page-title {
    margin-bottom: 0rem;
    padding: 0;
}

.search404 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    padding-top: 1rem;
}

.text {
    font-size: 10pt;
    font-family: "Montserrat", sans-serif;
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8);
}

@media (min-width: 1930px) {
    .slideshow_container .slideshow {
        height: 83vh;
    }
}

@media (max-width: 1300px) {
    .header_main {
        display: none;
    }
    .slideshow_container .slideshow {
        height: 63vh;
    }
    header {
        position: fixed;
        top: 0;
        width: 100vw;
        z-index: 10;
        transform: translateX(60%);
    }
    .header-portable {
        display: flex;
    }
    .slideshow_container {
        padding: 6rem 0 0 0;
    }
    .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 9999;
        transition: max-height 1s ease, opacity 1s ease;
        max-height: none;
        opacity: 0;
        overflow: visible;
        flex-direction: column;
    }
    .menu-item-has-children {
        position: relative;
        transition: max-height 1s ease, opacity 1s ease;
        overflow: visible;
    }
    .menu-item-has-children>a {
        position: relative;
        display: block;
        width: 100%;
        box-sizing: border-box;
        transition: max-height 1s ease, opacity 1s ease;
    }
    .menu-item-has-children.open {
        transition: max-height 1s ease, opacity 1s ease;
    }
    .menu-item-has-children.open>a {
        color: white;
        padding-bottom: 1rem;
        margin-top: 0 !important;
        padding-top: 0 !important;
        text-transform: uppercase;
        font-weight: bold;
        transition: max-height 1s ease, opacity 1s ease;
    }
    .menu-item-has-children.open .sub-menu {
        display: flex;
        padding-bottom: 0;
        opacity: 1;
        transition: max-height 1s ease, opacity 1s ease;
        overflow-y: visible;
        overflow-x: hidden;
    }
    #scrollTopBtn {
        z-index: 9;
    }
    ul.sub-menu .menu-item-1212::after,
    ul.sub-menu .menu-item-200::after,
    ul.sub-menu .menu-item-202::after {
        border-color: var(--footerborder);
        transform: none;
        left: 0;
        width: 85%;
        bottom: .2em;
    }
}

@media (max-width: 767.98px) {
    .slideshow_container .freshnews {
        display: none;
    }
    .dropdown_menu {
        flex-direction: column;
        align-items: flex-start;
    }
    .dropdown_menu>* {
        margin: 10px 0;
    }
    .nav-divider-dropdown {
        display: none;
    }
    .globalsearch,
    .hidnav {
        visibility: hidden;
    }
}

@media (max-width: 1000px) {
    .global_container .pagetitle {
        padding-top: 1.2rem;
        padding-bottom: 0rem;
        margin-bottom: 12px;
    }
    .global_container .pagetitle h1 {
        font-size: 16pt;
    }
    .posttitle h2 a {
        font-size: 14pt;
    }
    a {
        color: var(--text-color);
        text-decoration: none;
    }
    .global_container .allnews .post .postcontent p {
        line-height: 1.5rem;
        font-size: 11.5pt;
    }
    .separator-line {
        margin-top: 2rem;
    }
    .fa-newspaper {
        margin-right: 0.5rem;
    }
    .slideshow_container .slideshow {
        height: 85vh;
    }
    .portable_topheader .portable_logo .logotext {
        text-indent: 0;
        line-height: 1.2;
    }
    .archive-content-area {
        padding-top: 7.5rem;
        width: 85%;
    }
}

/* --- DESKTOP UNDERLINE --- */

@media (hover: hover) and (pointer: fine) {
    a:hover {
        text-decoration: underline !important;
    }
    .header_main .logo a:hover,
    .portable_topheader .portable_logo a:hover {
        text-decoration: none !important;
    }
}

/* --- MOBILE NEVER UNDERLINE --- */

@media (hover: none) {
    a:hover,
    a:active,
    a:focus {
        text-decoration: none !important;
    }
}

html {
    -webkit-tap-highlight-color: transparent;
}