.site-logo .custom-logo {
      width: var(--logo-width);
    height: auto;
}


.header-container { 
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
}

.header-container a {
  color: var(--color-main-font);
  text-decoration: none;
}
.header-container a:hover {
  color: var(--color-main-font-hover);
  text-decoration: underline;
} 

/*Menyen*/

/*Hvilke meny som vises paa skjermstorrelse*/
.desktop-menu-code {
  display: block;
}
.mobile-menu-code {
  display: none;
}
@media (max-width: 991px) {
  .desktop-menu-code, .deskt-menu-div-left {
    display: none !important;
  }
  .mobile-menu-code {
    display: block;
  }
}

/*Design av desktopmeny*/

.desktop-menu {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu li a {
	text-decoration: none;
  font-weight: 400;
  color: var(--color-main-font);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.3s ease, color 0.3s ease;
  position: relative;
  padding: 8px 18px 10px 18px;
  font-size: 1.1rem;
}

@media screen and (min-width: 850px) {
	.header23-feat-menu li.menu-item a  {
	font-size: 1.3rem;
	}
}

.desktop-menu li a:hover,
.desktop-menu li.current-menu-item > a,
.desktop-menu li.current-menu-parent > a,
.desktop-menu li.current_page_item > a {
  color: var(--color-main-font);
  text-decoration: none;
  border-color: #ddd;
  background-color: #fdfdfd;
}

.thbs-menu-wrapper {
  position: relative;
  z-index: 1000;
}

/* Menu bars, can be customized by changing the spans */

.thbs-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 40px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.thbs-menu-toggle span {
  display: block;
  height: 3px;
  background-color: var(--color-main-font); 
  border-radius: 5px;
  transition: width 0.3s ease, background-color 0.3s ease;
  margin-left: auto;
}

.thbs-menu-toggle span:nth-child(1) {
  width: 100%;
}
.thbs-menu-toggle span:nth-child(2) {
  width: 70%;
}
.thbs-menu-toggle span:nth-child(3) {
  width: 50%;
}
.thbs-menu-toggle span:nth-child(4) {
  width: 70%;
}

.thbs-menu-toggle:hover span:nth-child(1) {
  width: 70%;
}
.thbs-menu-toggle:hover span:nth-child(2) {
  width: 50%;
}
.thbs-menu-toggle:hover span:nth-child(3) {
  width: 70%;
}
.thbs-menu-toggle:hover span:nth-child(4) {
  width: 100%;
}

/* Close button */

.thbs-close-btn {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.3s ease;
}

.thbs-close-btn span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-mob-menu-font);
  border-radius: 2px;
  transform-origin: center;
}

/* Make the X */
.thbs-close-btn span:first-child {
  transform: translateY(-50%) rotate(45deg);
}
.thbs-close-btn span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

.thbs-close-btn:hover,
.thbs-close-btn:focus {
  transform: scale(1.15);
  outline: none;
}

/* Default to off screen */
.thbs-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  height: 100vh;
  background: var(--color-mob-menu);
  color: var(--color-mob-menu-font);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  text-align: start;
  padding-left: 5%;
}

/* Visible when toggled */
.thbs-mobile-nav.open {
  transform: translateX(0);
}

.thbs-hamburger-menu-list {
  list-style: none;
  padding: 2rem;
  margin: 0;
}


.thbs-hamburger-menu-list .menu-item {
    margin-top: 1em;
    font-size: 1.4rem;
    text-decoration: none; 
}

.thbs-hamburger-menu-list li a {
    color: var(--color-main-font);
    text-decoration: none; 
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}


.thbs-hamburger-menu-list li.current-menu-item > a,
.thbs-hamburger-menu-list li.current-page-item > a,
.thbs-hamburger-menu-list li.current_page_item > a {
  color: var(--color-main-font);
  text-decoration: none;
}

.thbs-hamburger-menu-list a:hover {
  color: var(--color-main-font);
  text-decoration: none;
  font-weight: 600;
}

.thbs-hamburger-menu-list li.current-menu-item > a::before,
.thbs-hamburger-menu-list li.current-page-item > a::before,
.thbs-hamburger-menu-list li.current_page_item > a::before {
  content: ">";
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--color-main-font);
}

.thbs-hamburger-menu-list li.current-menu-item > a,
.thbs-hamburger-menu-list li.current-page-item > a,
.thbs-hamburger-menu-list li.current_page_item > a {
  font-weight: 600;
}

/* Backdrop */

.thbs-menu-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(17, 31, 22, 0.6);
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.thbs-mobile-nav.open + .thbs-menu-backdrop,
.thbs-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}



/*Hopp til innhold ved tabbing*/

.skip-to-content {
    transform: translateY(-100%);
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    padding-right: 1em;
    padding-left: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    transition-duration: 0.4s;
    transition-property: transform;
    background-color: #fff;
    color: #000;
    border: 1px solid blue
}

.skip-to-content:focus {
    transform: translateY(1px);
}


/*Footer styling*/

.footer-content {
  background-color: var(--color-footer);
  color: var(--color-footer-font);
  border-radius: 15px;
}
.footer-content a { 
    color: var(--color-footer-font);
}
.footer-content a:hover {
    color: var(--color-footer-font-hover);
}

.footer-logo {
    display: block;
    width: 80px;
    height: auto;
    margin-top: -40px;
    margin-bottom: 40px;
}

.footer-text {
  max-width: 500px;
  font-weight: 600;
}

.footer-valis-link {
    margin: 0.5em 0;
    font-weight: 400;
}

.copyright-field {
  font-size: 0.95rem;
  font-weight: 400;
}
