/*
Theme Name: Atlas 2.0
Theme URI: https://wordpress.org/
Author: Jonas Hornblad
Author URI: https://jonashornblad.com/
Description: Atlas 2.0 is a Twenty Twenty-Four Child theme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

body {
    --wp--preset--font-family--body: 'Titillium Web', sans-serif;
    --tec-font-family-sans-serif: 'Titillium Web', sans-serif;
    --tec-color-link-accent: #34358c;
    --tec-font-size-3: var(--wp--preset--font-size--large);

}
main::before,
div.entry-content::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 140px,
        rgba(0, 0, 0, 0.00) 240px
    );

    pointer-events: none;
    z-index: 0;
}

@media (max-width: 767px) {
    body {
        --wp--preset--font-size--mega-large: 2.5em;
    }
}

input.gform_button.button {
    background-color: #000 !important;
}

div.main-logo.wp-block-site-logo>a>img {
    /* position: relative; */
    z-index: 10;
}

header {
    position: relative;
    z-index: 10;
}

main.wp-block-group,
main.top-hero {
}

li.current-menu-item a {
    color: white !important;
}

ul.wp-block-navigation__container.short-menu li.is-medlem {
    border: 2px solid var(--wp--preset--color--gul);
    border-radius: 50px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

body.password-protected ul.wp-block-navigation__container.short-menu li.is-medlem {
    border: 2px solid white;
    border-radius: 50px;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    background-color: #fff;
    color: #000 !important;
}

body.password-protected ul.wp-block-navigation__container.short-menu li.is-medlem a {
    color: #000 !important;
}

@media (max-width: 819px) {
    ul.wp-block-navigation__container.short-menu {
        display: none !important;
    }
}

figure.wp-block-post-featured-image {
    border-top: 8px solid var(--wp--preset--color--bla);
}


/*------Navbar------*/
#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated,
#mega-menu-wrap-max_mega_menu_2 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated,
#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-blocks-right .mega-toggle-block {
    z-index: 999999999;
}

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

    #mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle+#mega-menu-max_mega_menu_4,
    #mega-menu-wrap-max_mega_menu_2 .mega-menu-toggle+#mega-menu-max_mega_menu_2 {

        padding-top: 100px;
        min-height: 100vh;
    }
}

#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle.mega-menu-open~button.mega-close {
    visibility: visible;
    opacity: 1;
    right: 0 !important;
    left: auto;
}

#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle.mega-menu-open+#mega-menu-max_mega_menu_4 {
    right: 0;
    padding-top: 80px;
}
@media (min-width: 800px) {
    #mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle.mega-menu-open+#mega-menu-max_mega_menu_4 {
        padding-right: 80px;
    }
}

body.mega-menu-max_mega_menu_4-mobile-open #mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner,
body.mega-menu-max_mega_menu_4-mobile-open #mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::before,
body.mega-menu-max_mega_menu_4-mobile-open #mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::after,
body.mega-menu-max_mega_menu_2-mobile-open #mega-menu-wrap-max_mega_menu_2 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner,
body.mega-menu-max_mega_menu_2-mobile-open #mega-menu-wrap-max_mega_menu_2 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::before,
body.mega-menu-max_mega_menu_2-mobile-open #mega-menu-wrap-max_mega_menu_2 .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::after,
#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle.mega-menu-open .mega-toggle-block-2 .mega-toggle-animated-inner,
#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle.mega-menu-open .mega-toggle-block-2 .mega-toggle-animated-inner::before,
#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle.mega-menu-open .mega-toggle-block-2 .mega-toggle-animated-inner::after {
    background-color: black !important;
}

#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle.mega-menu-open .mega-toggle-block-1 .mega-search .search-icon:before {
    color: #000;
}

#mega-menu-wrap-max_mega_menu_4 #mega-menu-max_mega_menu_4 > li.mega-menu-item {
    padding-left: 20px;
    padding-right: 20px;
}
#mega-menu-wrap-max_mega_menu_4 #mega-menu-max_mega_menu_4 > li.mega-menu-item > a.mega-menu-link {
    padding-left: 0;
    padding-right: 0;

}
#mega-menu-wrap-max_mega_menu_4 #mega-menu-max_mega_menu_4 > li.mega-menu-item  {
    border-top: 1px solid white !important;

    padding-left: 0;
    padding-right: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-left: 20px;
    margin-right: 20px;
}
#mega-menu-wrap-max_mega_menu_4 #mega-menu-max_mega_menu_4 > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
    font-size: 14px;
    font-weight: normal;
    padding: 0px 0px;
    line-height: 24px
}
#mega-menu-wrap-max_mega_menu_4 #mega-menu-max_mega_menu_4 > li.mega-menu-flyout ul.mega-sub-menu {
    margin-bottom: 0em !important;
}

.wp-block-search__input {
    border-radius: 99px;
    padding-left: 20px;
    border: 2px solid #000;
}

button.wp-block-search__button {
    border-radius: 99px;
    padding-left: 30px;
    padding-right: 30px;
}

button.wp-block-search__button:hover {
    background-color: #000;
    color: #000;
}

li.mega-menu-item a.mega-menu-link {
    transition: all 0.3s ease-in-out !important;
}

@media (min-width: 920px) {
    #mega-menu-max_mega_menu_4 {
        position: absolute;
        top: 0;
        right: 0;
        margin-left: 50vw !important;
        width: 50vw !important;
        z-index: 1000;
        /* Adjust this value as needed to ensure it appears on top */
    }
}

@media (min-width: 1200px) {
    #mega-menu-max_mega_menu_4 {
        position: absolute;
        top: 0;
        right: 0;
        margin-left: 70vw !important;
        width: 50vw !important;
        z-index: 1000;
        /* Adjust this value as needed to ensure it appears on top */
    }

}



#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-block-1 .mega-search.expand-to-right,
#mega-menu-wrap-max_mega_menu_2 .mega-menu-toggle .mega-toggle-block-1 .mega-search.expand-to-right {
    left: auto;
    right: 0;
}
#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-block-2 .mega-toggle-animated-inner, #mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-block-2 .mega-toggle-animated-inner::before, #mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-block-2 .mega-toggle-animated-inner::after {
    background: #000 !important;
}
.mega-toggle-on {
    font-weight: 700 !important;
} 
#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle~button.mega-close,
#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle.mega-menu-open~button.mega-close {
    right: 12px !important;
    top: 20px;
}
@media (min-width: 800px) {
    #mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle~button.mega-close,
    #mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle.mega-menu-open~button.mega-close {
        right: 92px !important;
        top: 20px;
    }
}
#mega-menu-wrap-max_mega_menu_4 .mega-menu-toggle .mega-toggle-block-1 .mega-search.expand-to-right .search-icon {
    font-size: 30px;
}


/*------Cookies-----*/
#cookie-law-info-bar,
.wt-cli-cookie-bar,
.cli-bar-popup {
    padding: 20px !important;
    text-align: left;
}

.cli-bar-message {
    margin-bottom: 20px;
}

.cli-modal .cli-modal-close {
    width: 50px;
    height: 50px;
}

.cli-modal .cli-modal-close {
    padding: 15px;
}

.cli-switch input:checked+.cli-slider,
.wt-cli-privacy-save-btn {
    background-color: #006ba9 !important;
}

.wt-cli-privacy-accept-btn,
.wt-cli-privacy-accept-btn:hover {
    padding: 1em 1em !important;
    font-size: 1em !important;
    border: 0 !important;
    border-radius: 999px !important;
}

.cli-tab-footer .wt-cli-privacy-accept-btn {
    background-color: #006ba9 !important;
}

.cli-tab-footer .wt-cli-privacy-accept-btn:hover {
    color: #fff;
    border: 0;
}

.cli-style-v2 {
    font-size: 1.2em !important;
    line-height: 1.5 !important;
}

.cli-plugin-button,
.cli-plugin-button:visited,
.medium.cli-plugin-button,
.medium.cli-plugin-button:visited {
    font-size: 1em !important;
}

.cli-modal-content {
    border-radius: 0;
}

.cli-style-v2 .cli-bar-btn_container .cli-plugin-button {

    display: inline-block;
    padding: 1em 1em !important;
    border-radius: 999px !important;
    margin: 0 10px 0 0 !important;
}

.cli_settings_button {
    border-bottom: 0 !important;
    line-height: 1;
    color: rgb(51, 51, 51) !important;
    background-color: rgb(222, 223, 224) !important;
    display: inline-block;
    padding: 1em 1em;
    border-radius: 999px !important;
}

@media (max-width: 767px) {
    .cli-style-v2 .cli-bar-btn_container a.cli-plugin-button {
        display: block;
        width: 100%;
        margin-left: 0 !important;
        box-sizing: border-box;
        margin-right: 0 !important;
    }

    #wt-cli-settings-btn {
        box-sizing: border-box;
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
}

.cli-modal-backdrop.cli-show {
    opacity: .5;
}

table.cookielawinfo-winter thead th {
    background: #444 !important;
}

table.cookielawinfo-winter tbody tr {
    background: #eee !important;
}

table.cookielawinfo-winter tbody tr:hover {
    background: #e0e0e0 !important;
}

.cli-tab-container h4,
.cli-wrapper h5 {
    font-size: 24px !important;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 15px;
}

.cli-tab-header {
    border-radius: 0 !important;
}


/*------FAQ------*/
.ewd-ufaq-faq-categories {
    display: none;
}



a.wp-block-button__link {
    transition: all 0.3s ease-in-out;
}

a.wp-block-button__link:hover {
    background-color: #34358c !important;
    color: #fff !important;
    border-color: #34358c;
}
a.wp-block-button__link.has-vit-color:hover {
    background-color: #fff !important;
    color: #34358c !important;
    border-color: #fff;
}
a.wp-block-button__link.has-bla-background-color:hover {
    background-color: #fff !important;
    color: #34358c !important;
    border-color: #34358c !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color, .has-background):hover {
    border-color: #34358c !important;
}



.wp-tuppen-button {
    background-color: transparent;
    color: #000;
    border-radius: 999px;
    padding: .25 1em;
    font-size: 1em;
    border: 0;
    transition: all 0.3s ease-in-out;
    border: 2px solid black;
    border-radius: 50px;
    margin-top: 1em !important;
}


.post-password-form input[type="submit"] {
    background-color: var(--wp--preset--color--bla);
    border-radius: 50px;
    border-color: var(--wp--preset--color--contrast);
    border-width: 0;
    color: var(--wp--preset--color--vit);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    font-style: normal;
    font-weight: 500;
    line-height: inherit;
    padding-top: 0.6rem;
    padding-right: 1rem;
    padding-bottom: 0.6rem;
    padding-left: 1rem;
    text-decoration: none;
    margin-top: 1em;
}

.post-password-form input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    padding: .6em 1em;
    margin-top: 1em;
    border-radius: 0;
    border: 1px solid #888;
}

.post-password-form {
    padding-right: 2em;
}

@media (max-width: 767px) {
    .custom-logo-link img {
        
    }
}

body.search .wp-block-post-featured-image {
    display: none;
}

table td {
    vertical-align: top;
}


.scroll-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.scroll-menu.visible {
  transform: translateY(0);
}


.pubyear-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #f1f1f1;
    border: none;
    border-radius: 999px;

    padding: 0.6rem 2.5rem 0.6rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: #000;

    cursor: pointer;
    line-height: 1.2;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 10px;
}

.pubyear-dropdown select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}


.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-datetime {
    text-align: left !important;
}
.tribe-common--breakpoint-medium.tribe-events-widget .tribe-events-widget-events-list__event-row {
    border-top: 1px solid #ccc;
    padding-top: 15px;
}
.tribe-common--breakpoint-medium.tribe-events-widget .tribe-events-widget-events-list__event-row:last-child {
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
}
header.tribe-events-header,
div.tribe-events-c-subscribe-dropdown__container {

    display: none !important;
}

    .wp-block-media-text>.wp-block-media-text__content {
        padding: 1rem 4rem !important;
    }

@media (max-width: 1490px) {
    .wp-block-media-text>.wp-block-media-text__content {
        padding: 1rem 1rem !important;
    }
}

.tribe-common--breakpoint-medium.tribe-common .tribe-common-h6 {
    font-size: var(--wp--preset--font-size--large) !important;
}


.newsletterform {
    width: 100%;
}
/* Put email and button on one row */
.newsletterform input[name="pf_Email"],
.newsletterform input[type="submit"] {
  display: inline-block;
  vertical-align: middle;
}

/* Email field takes the remaining width */
.newsletterform input[name="pf_Email"] {
  width: calc(100% - 130px); /* adjust based on button width */
  padding: 9px 12px;
  border: 1px solid #000;
  background-color: #fff;
  box-sizing: border-box;
  border-radius: 50px;
}

/* Submit button styling and color */
.newsletterform input[type="submit"] {
  padding: 8px 16px;
  background-color: transparent;
  width: 120px;
  color: #34358c;
border: 2px solid;
padding: .667em 1.333em;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 50px;
}

.newsletterform input[type="submit"]:hover {
  padding: 8px 16px;
  background-color: #34358c;
  width: 120px;
  color: #fff;
border: 2px solid #34358c;
padding: .667em 1.333em;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 50px;
}


.newsletterform .wp-block-button__link {
    height: auto !important;
}

.header-logo img {
    height: 46px !important;
    width: auto;
}