#skiptocontent {
    display: none;
}
html.menu-open,
body.menu-open {
    overflow: hidden;
}
header.main {
    width: 100%;
    max-width: 1359px;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /*background: #E9EFF2;*/
    transition: .3s ease-in-out;
}

.menu-open header.main {
    backdrop-filter: unset!important;
    background: transparent!important;
    height: 100%;
}
.logo-wrap {
    position: absolute;
    z-index: 9999;
    top: 37px;
    pointer-events: all;
}
.scrolled .logo-wrap {
        top: 21px;
    }
.logo-wrap svg {
    width: 100px;
    transition: .3s ease-in-out;
    transition-delay: .2s;
}
@media only screen and (max-width: 1400px) {
    .logo-wrap {
        position: absolute;
        z-index: 9999;
        top: 41px;
        left: 1rem;
    }
    
}
@media only screen and (max-width: 1024px) {
    .logo-wrap {
        position: absolute;
        transform: unset;
        top: 1rem;
    }
    .scrolled .logo-wrap {
        top: 21px;
    }
    .menu-open header.main {
        overflow-y: scroll;
    }
}
@media screen and (min-width: 1400px) {
    header.main {
        height: 130px;
        top: 0;
        left: 0;
    }
}
header.main.scrolled {
    position: fixed;
    z-index: 999;
    pointer-events: none;
    /*background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(9px);*/
    top: 1rem;
    height: 80px;
    border-radius: 12px;
    padding: 0 1rem;
    
    transform: scale(0.979);
}
@media only screen and (max-width: 1400px) {
    header.main.scrolled {
        padding: 0;
    }
}
@media only screen and (max-width: 1024px) {
    .menu-open header.main.scrolled {
        background: none;
        backdrop-filter: unset;
        height: 100%;
    }
}

header.main.scrolled .navigation__nav {
    pointer-events: all;
}
body.menu-open .logo-wrap svg {
    opacity: 1!important;
    pointer-events: all!important;
}
.navigation__checkbox {
    display: none;
}

.navigation__button {
    position: absolute;
    top: 10px;
    right: 0.5rem;
    height: 50px;
    width: 50px;
    text-align: center;
    border-radius: 50%;
    z-index: 300;
    cursor: pointer;
    pointer-events: all;
    display: block;
}
.scrolled .navigation__button {
    top: 1rem;
}

@media screen  and (min-width: 1024px) {
    .navigation__button {
        display: none;
    }
}

.navigation__background {
    position: absolute;
    top: 0;
    right: 1rem;
    height: 80px;
    width: 100%;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: rgba(255,255,255, 0.5);
    background-size: cover;
    background-position: center;
    z-index: 100;
    transition: all 400ms cubic-bezier(0.86, 0, 0.07, 1);
    display: block;
    opacity: 0;
}
@media only screen and (max-width: 1400px) {
    .navigation__background {
        right: 0;
    }
}
.scrolled .navigation__background {
    opacity: 1;
}
.navigation__nav {
    position: relative;
    max-width: 1359px;
    top: 0;
    height: 100%;
    opacity: 1;
    width: 100%;
    visibility: visible;
    z-index: 200;
    transition: all 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.menu-hovedmenu-container {
    position: relative;
}
 @media only screen and (max-width:650px) {
    .menu-hovedmenu-container {
        margin-top: 4rem;
    }
    .navigation__nav {
        gap: 0px;
    }
 }
.navigation {
    position: absolute;
    width: 100%;
}
.bolig-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    background: #0F9E99;
    border-radius: 45px;
    border: 2px solid #0F9E99;
    padding: .5rem 3rem;
    color: #fff;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    transition: .3s ease-in-out;
    opacity: 1;
    pointer-events: all;
    font-size: 0.8rem;
    text-decoration: none;
}
.bolig-btn:hover {
    background: transparent;
    border-color: #000;
    color: #000!important;
}
@media only screen and (max-width: 1200px) {
    .bolig-btn {
        padding: .3rem 2rem;
    }
}
@media only screen and (max-width: 1024px) {
    .bolig-btn {
        padding: 15px 45px;
        position: relative;
        right: 65px;
    }
}
@media only screen and (max-width: 650px) {
    .bolig-btn {
        padding: 8px 25px;
        position: relative;
        right: 55px;
    }
    .scrolled .bolig-btn {
        top: 9px;
    }
}
.navigation__checkbox:checked~.navigation__background {
    position: absolute;
    top: 0.5rem;
    left: unset;
    bottom: 0.5rem;
    right: 0.5rem;
    height: calc(100vh - 1rem);
    width: calc(100vw - 1rem);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: rgba(255,255,255, 0.5);
    z-index: 100;
    transition: all 800ms cubic-bezier(0.86, 0, 0.07, 1);
    display: block;
    opacity: 1;
}

.navigation__checkbox:checked~.navigation__nav {
    width: 100%;
    visibility: visible;
    opacity: 1;
}

.navigation__icon {

    position: relative;
    margin-top: 24px;
}

@media screen and (min-width: 768px) {
    .navigation__icon {
        margin-top: 24px;
    }
}

.navigation__icon,
.navigation__icon::before,
.navigation__icon::after {
    display: inline-block;
    width: 22px;
    height: 2px;
    background-color: #000;
}

@media (min-width: 768px) {
    .navigation__icon,
    .navigation__icon::before,
    .navigation__icon::after {
        width: 22px;
    }
}

.navigation__icon::before,
.navigation__icon::after {
    content: '';
    position: absolute;
    left: 0;
    transition: all 200ms;
}

.navigation__icon::before {
    top: -6px;
}

.navigation__icon::after {
    top: 6px;
}

.navigation__button:hover .navigation__icon::before {
    width: 100%;
    left: 0;
}

.navigation__button:hover .navigation__icon::after {
    width: 100%;
    left: 0;
}

.navigation__checkbox:checked+.navigation__button .navigation__icon {
    background-color: transparent;
}

.navigation__checkbox:checked+.navigation__button .navigation__icon::before {
    top: 0;
    transform: rotate(135deg);
    width: 100%;
    left: 0;
}

.navigation__checkbox:checked+.navigation__button .navigation__icon::after {
    top: 0;
    transform: rotate(-135deg);
    width: 100%;
    right: unset;
    left: 0;
}


@media only screen and (min-width: 768px) {
    .address {
        display: block;
    }
}
.navigation__checkbox:checked~.address {
    opacity: 1;
}
.some {
    position: absolute;
    bottom: 45px;
    right: 25px;
}
.some ul {
    list-style-type: none;
    display: flex;
}
.some ul li a {
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    display: inline-block;
    transition: .2s ease-in-out;
}
.some ul li {
    margin-left: 25px;
}
@media only screen and (min-width: 768px) {
    .some {
        right: 0px;
        bottom: 100px;
    }
}

.top-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    position: relative;
    top: 37px;
    z-index: 9999;
}
.top-row a {
    cursor: pointer;
}
@media only screen and (max-width: 1400px) {
    .top-row {
        padding-right: 1rem;
    }
}
@media only screen and (max-width: 1024px) {
    .top-row {
        top: 1rem;
    }
}

.scrolled .top-row {
    top: 13px;
}
.top-row .menu {
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 2rem;
    padding-right: 2rem;
    list-style: none;
    position: relative;
    padding-inline-start: 0;
    z-index: 9999;
}
.sub-menu {
    display: none!important;
}
@media only screen and (max-width: 1200px) {
    .top-row .menu {
        gap: 1.4rem;
        padding-right: 1.4rem;
    }
}
@media only screen and (max-width: 1024px) {
    .top-row .menu {
        position: absolute;
        top: 0;
        left: 0;
        width: calc(100% - 2rem);
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        gap: 0;
    }
    .menu-open .top-row .menu {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        margin-top: 4rem;
        padding-left: 1rem;
    }
    #menu-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0,0,0, 0.1);
    }
    .submenu-indicator {
        top: 0;
        margin-left: 0!important;
        width: 32px;
        height: 32px;
        background: #0f9e99;
        display: flex!important;
        flex-direction: column;
        justify-content: center!important;
        align-items: center!important;
        border-radius: 8px;
        z-index: 999;
    }
    .submenu-indicator svg {
        fill: #fff!important;
    }
    #menu-menu li.open a {
        color: #000!important;
    }
    
    .col.submenu {
        display: none!important;
    }
    #menu-menu ul.sub-menu.submenu-visible {
        display: block!important;
        margin: 0;
        padding-left: 0.5rem;
    }
    ul.sub-menu li {
        padding: 0.5rem!important;
        border-bottom: none!important;
    }
    ul.sub-menu li a {
        font-size: 1rem!important;
        font-family: 'DM Sans', sans-serif!important;
        padding: 0;
    }
}

.megamenu {
    /* display: none; */
    position: absolute;
    padding: 0px 25px 25px 25px;
    top: -25px;
    left: -25px;
    background: linear-gradient(45deg, rgb(222 255 254 / 35%) 0%, rgb(255 255 255 / 53%) 34%);
    width: 100%;
    height: auto;
    max-height: 400px;
    padding-top: 130px;
    z-index: 999;
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 800ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: rgb(0 0 0 / 0%) 0px 3px 4px;
    max-height: 0px;
    opacity: 0;
    visibility: hidden;
}

.megamenu.active {
    opacity: 1;
    height: auto;
    max-height: 2000px;
    visibility: visible;
    box-shadow: rgb(0 0 0 / 5%) 0px 1px 4px;
}
@media only screen and (max-width: 1024px) {
    .navigation {
        height: 100%;
    }
    .menu-open .megamenu {
        position: relative;
        top: unset;
        left: 0;
        bottom: 0;
        max-height: unset;
        padding-top: 0;
        padding-bottom: 4rem;
        padding-left: 1rem;
        opacity: 1;
        visibility: visible;
        height: auto!important;
        backdrop-filter: unset;
        border-radius: 0;
        background: none!important;
    }
}
.bottom-row {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-top: 2rem;
}

.bottom-row .col {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bottom-row .contact {
    display: flex;
    flex-direction: column;
    height: 100%;
    
}
.bottom-row.submenu {
    flex: 2;
}
.bottom-row .contact .plat {
    font-family: 'Plat', serif;
    font-size: 1.4rem;
}
.bottom-row a {
    text-decoration: none;
    font-weight: 500;
    color: #000;
    display: inline-block;
}
.bottom-row a.kandidatlogin {
    color: #0F9E99;
}
.bottom-row .contact a:last-of-type {
    margin-top: 2rem;
}
.bottom-row p {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem!important;
    color: #000;

}
@media only screen and (max-width: 1024px) {
    .bottom-row {
        flex-direction: column-reverse;
        position: absolute;
        bottom: 0rem;
        left: 1rem;
    }
    .bottom-row .contact {
        display: none;
    }
}
.col.copy {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0!important;
}
#menu-menu li a {
    text-decoration: none;
    font-weight: 600;
    color: #000;
    transition: .3s ease-in-out;
}
@media only screen and (max-width: 1200px) {
    #menu-menu li a {
        font-size: 0.9rem;
    }
}
@media only screen and (max-width: 1024px) {
    #menu-menu li a {
        font-size: 1.3rem;
        font-family: 'Plat', serif;
        display: flex;
        justify-content: space-between;
    }
}
#menu-menu li.open a,
#menu-menu li.current-menu-item a {
    color: #0F9E99;
}
#menu-menu li.open svg {
    fill: #0F9E99;
}
#submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
#submenu li a {
    position: relative;
    font-size: 2rem;
    font-family: 'Plat', sans-serif;
    color: #0F9E99;
    top: -9px;
}
#submenu li a::before {
    content: '';
    position: absolute;
    top: 18px;
    left: -40px;
    background-image: url('/wp-content/themes/curia/images/arrow-large.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 1rem;
    height: 1rem;
    transition: all 350ms cubic-bezier(0.86, 0, 0.07, 1);
    opacity: 0;
}
#submenu li a:hover::before {
    opacity: 1;
    left: -20px;
}
#submenu li.current-menu-item a {
    color: #000;
}
#menu-menu li.current-page-ancestor a {
    color: #0F9E99;
}
#menu-menu li.current-page-ancestor a svg {
    fill: #0F9E99;
}

@media only screen and (max-width:650px) {
    ul.menu li a span {
        top: 1px;
    }
    .bottom-row {
        flex-direction: column;
        padding: 25px;
        flex: 1;
        height: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1rem;
    }
    .bottom-row .col:first-of-type:not(.bottom-row .col .col:first-of-type) {
        gap: 1rem;
    }
    .bottom-row .col {
        gap: 1;
        flex-direction: column;
        align-items: flex-start;
    }
    .bottom-row .contact-col {
        flex-direction: column;
        gap: 0;
    }
    .bottom-row .col.copy {
        flex-direction: column-reverse;
    }
}
/* Hide submenus by default (for safety) */
.sub-menu {
  display: none;
}

.menu-item-has-children > a[aria-expanded="true"] + .sub-menu {
  display: block;
}
.submenu-indicator {
    position: relative;
    top: 2px;
    margin-left: 5px;
    display: inline-block;
}
/* Chevron styling */
.submenu-indicator svg {
  width: 14px;
  height: 14px;
  fill: #000;
  transition: .3 ease-in-out;
}

.menu-item-has-children > a[aria-expanded="true"] .submenu-indicator svg {
  transform: rotate(180deg);
}

/* Optional: hover-based submenu for desktop */
@media (min-width: 768px) {
 /* .menu-item-has-children:hover > .sub-menu {
    display: block !important;
  }*/

  .menu-item-has-children > a {
    pointer-events: auto;
  }
}
ul.sub-menu {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

/* JOBS TINGS */

.col.jobs {
    align-items: flex-end;
    flex: 1;
}
.menu-jobs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.menu-jobs .job {
    display: flex;
}
.menu-jobs .text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0 0.5rem;
    max-width: 250px;
}
.menu-jobs .text-wrapper p {
    font-weight: 600;
}
.menu-jobs .text-wrapper a {
    font-weight: 600;
    color: #0f9e99;
}
.menu-jobs img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}
@media only screen and (max-width: 1024px) {
    .col.jobs {
        display: none;
    }
}
/* Base hidden state for menu items on mobile */
@media only screen and (max-width: 1024px) {
  .top-row .menu li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* When menu is open, reveal items with a stagger */
  .menu-open .top-row .menu li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Add staggered delay per item */
  .menu-open .top-row .menu li:nth-child(1) { transition-delay: 0.45s; }
  .menu-open .top-row .menu li:nth-child(2) { transition-delay: 0.55s; }
  .menu-open .top-row .menu li:nth-child(3) { transition-delay: 0.65s; }
  .menu-open .top-row .menu li:nth-child(4) { transition-delay: 0.75s; }
  .menu-open .top-row .menu li:nth-child(5) { transition-delay: 0.85s; }
  .menu-open .top-row .menu li:nth-child(6) { transition-delay: 0.95s; }
  .menu-open .top-row .menu li:nth-child(7) { transition-delay: 1.05s; }
  .menu-open .top-row .menu li:nth-child(8) { transition-delay: 1.15s; }
  /* …extend if you have more menu items */
}
