.logo-wrap {
  text-decoration: none !important;
}
.beretning-title_header {
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 1px;
    margin-top: 15px;
}

@media screen and (min-width: 768px) {
  .logo-wrap {
      display: flex;
      align-items: center;
      gap: 20px;
  }
.beretning-title_header {
    border-left: #002848 2px solid;
    padding: 10px 10px 0px 10px;
    margin-top: 0;
}
}

.thbs-hamburger-menu-list .sub-menu {
  list-style: none;
  margin: 0;
  padding-left: 20px;
}
/* === Ikoner foran menypunkter === */

/* Hovedmeny */
.thbs-hamburger-menu-list > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  margin-top: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M4 2l4 4-4 4' fill='none' stroke='%2300a8e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* Undermeny */
.thbs-hamburger-menu-list .sub-menu li a {
  padding-left: 24px; 
}


.thbs-hamburger-menu-list .sub-menu li > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -3px;
  transform: translateY(-50%);
  width: 14px;
  height: 12px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'><path d='M1 6h10M8 3l3 3-3 3' fill='none' stroke='%2300c9a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/*Breakpoint mellom menyer*/

.header-menu-mobile {display: flex;}
.header-menu-prim { display: none;}

@media screen and (min-width: 999999px) {
    .header-menu-mobile {
        display: none;
    }
    .header-menu-prim {
        display: flex;
    }
}


/*THB - mobile menu*/

.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;
  /* Change thicknes of menu bars */
  height: 3px;
  background-color: var(--color-prim-menu-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;
  border: none;
  background: transparent;
}

.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);
  /* scales 15% larger on hover */
  outline: none;
}

/* Default to off screen */
.thbs-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  /* Width up to 992px */
  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: 0.1em;
    font-size: 1.4rem;
    text-decoration: none; 
}
.sub-menu a {
  font-weight: 300 !important;
  font-size: 1.35rem !important;
}

.thbs-hamburger-menu-list li a {
    color: var(--color-mob-menu-font);
    text-decoration: none; 
    position: relative;
    display: inline-block;
    padding: 5px 0 5px 28px; /* plass til ikon */
    font-weight: 400;
    line-height: 1;
}


.thbs-hamburger-menu-list a:hover, .thbs-hamburger-menu-list li.current-menu-item a {
  color: var(--color-mob-menu-font-hover);
}



/* Backdrop */

.thbs-menu-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  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;
}




/*Styling av meny stor skjerm*/

.prim-menu-list .menu-item {
    font-size: 1.2rem;
}


.prim-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; 
  gap: 40px; 
}

.prim-menu-list a {
  color: var(--color-prim-menu-font);
  font-family: var(--font-primary);
  text-decoration: none;
    position: relative;
    padding: 5px 0px;
    font-weight: 600;
}

.prim-menu-list a:hover, .prim-menu-list li.current-menu-item a {
  color: var(--color-prim-menu-font-hover);
}

.prim-menu-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--color-prim-menu-font-hover);
  transition: width 0.3s ease;
}

.prim-menu-list li.current-menu-item a::after {
  content: none;
}

.prim-menu-list a:hover::after {
  width: 100%;
}


/*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);
}




/* HEADER TILPASNING*/
/* Standard header (mobil) */
.header, .header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-header);
}

.logo-svg {
  width: 220px;
  height: auto;
}
