body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

header {
    background-color: white;
    padding: 20px;
}

header .logo {
    max-width: 70px;
    max-height: 70px;
    display: inline-block;
}

nav {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    /* Sets in the theme custom options */
    /*background-color: white;*/
    padding: 15px;
    box-shadow: none;
    float: right;
}

nav h1 {
    margin: 0;
    color: #162642;
}


nav li:hover > a {
    color: #4374cb;
}

/***************/
.navbar {
    background-color: #333;
    padding: 15px;
    display: flex;
    /*align-items: center;*/
    justify-content: space-between;
}

.menu-icon {
    cursor: pointer;
    display: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
}

.menu {
    list-style-type: none;
    display: flex;
    align-self: flex-end;
}

.menu li {
    margin-right: 20px;
}

/*.navbar li:hover {
    scale: 1.1;
}*/

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

.sub-menu {
    display: none;
    background-color: #fff;
    padding: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%; /* Set sub-menu width to match the parent */
    max-width: 200%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow */
    list-style: none;
    z-index: 100;
}

.sub-menu li {
    margin: 12px 0px;
}

.menu-item-has-children {
    position: relative; /* Make the parent relative for absolute positioning of the sub-menu */
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.menu-item-has-children > a::after {
    content: '\25BC'; /* Unicode character for down arrow */
    display: inline-block;
    margin-left: 5px;
    color: #aaa;
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

nav li.current-menu-item > a, nav li.current-menu-parent > a {
    color: #4374cb;
}
/***************/

section {
    height: calc(100vh - 100px - 100px);
    overflow: hidden;
    position: relative;
}

#welcome-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    text-transform: uppercase;
}

#welcome-text h1 {
    color: white;
    font-size: 36px;
}

#background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*position: absolute;
    top: 0;
    left: 0;
    z-index: -1;*/
    /*filter: brightness(60%);*/
}

#top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

#bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    /*Set in the front-page.php in inline style*/
    /*background: linear-gradient(rgba(22, 38, 66, 0), rgba(22, 38, 66, 1));*/
}

.page-banner {
    padding: 80px 0 40px 0;
    position: relative;
}

.page-banner__bg-image {
    opacity: 0.33;
    background-size: cover;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-repeat: no-repeat;
    background-position: center; 
}

.container {
    margin: 0 auto;
    position: relative;
}

.container.container--narrow {
    max-width: 960px;
}

.page-section p {
    margin: 0;
}

.metabox {
    padding: 10px 0;
}

.generic-content {
    padding: 10px 0;
}

.headline--medium {
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
    padding: .89rem 0;
}

.headline--post-title a {
    text-decoration: none;
}

.metabox--with-home-link a {
    text-decoration: none;
    color: grey;
}

.pagination {
    text-align: center;
    font-size: 1.2rem;
}

.pagination .current {
    color: #162642;
}

.pagination a {
    text-decoration: none;
}

footer {
    /*Declared in theme settings*/
    /*background-color: #162642;*/
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

footer .logo {
    max-width: 200px;
    max-height: 200px;
    min-width: 100px;
    min-height: 100px;
}
footer .socials {
    font-size: 6rem;
}

footer .socials a {
    text-decoration: none;
    color: #ffffff;
}

.logo img {
    width: 100%;
    height: auto;
}

nav .menu-item {
    text-transform: uppercase;
}

@media only screen and (max-width: 768px) {
    /***********/
    nav {
        display: flex;
        flex-direction: column;
        float: none;
        padding: 0px;
    }

    nav > div {
        width: 100%;
    }

    .menu-icon {
        display: block;
        text-align: right;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: initial;
        width: 100%;
        background-color: #fff;
        clear: both;
        padding: 0;
    }

    .menu li {
        padding: 5px 0px;
        margin: 0;

    }

    .menu.show {
        display: flex;
    }

    .sub-menu {
        display: block;
        position: initial;
        padding: 10px 0px 0px 10px;
        box-shadow: none;
    }

    .menu > li > .sub-menu > li:last-child {
        padding-bottom: 0;
    }
    /***********/

    .container--narrow {
        padding: 0 5px;
    }

    footer {
        flex-direction: column;
    }

    footer .socials {
        font-size: 3rem;
    }

}
