/*
Theme Name: Stand
Theme URI: https://stand.no
Author: Mathis Andre Fenne
Author URI: https://fenne.com
GitHub Theme URI: https://github.com/understrap/understrap
Description: A custom template for Stand.no. Based on UnderStrap.
Version: 1.5.2
License: UnderStrap WordPress Theme, Copyright 2013-2017 Holger Koenemann
UnderStrap is distributed under the terms of the GNU GPL version 2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: understrap
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready

This theme, like WordPress, is licensed under the GPL.
UnderStrap is based on Underscores https://underscores.me/, (C) 2012-2016 Automattic, Inc.

Resource Licenses:
Font Awesome: http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
Bootstrap: https://getbootstrap.com | https://github.com/twbs/bootstrap/blob/master/LICENSE (Code licensed under MIT, documentation under CC BY 3.0.)
and of course
jQuery: https://jquery.org | (Code licensed under MIT)
WP Bootstrap Navwalker by Edward McIntyre: https://github.com/twittem/wp-bootstrap-navwalker | GNU GPL
*/

/*
This file is just used to identify the theme in WordPress.
The compiled CSS output can be found in /css/theme.css
The SASS sources for it can be found in /sass/
The dependencies can be found in /src/ after running "gulp copy-assets" terminal command

...and now go out and play!
*/

:root {
    --d-teal: #265a58;
    --d-color-1: #094882;
    --d-color-1-light: #1a60a1;
    --d-color-2: #e9eef1;
    --d-color-3: #e9eef1;
    --d-light-teal: #e3e9e9;
    --max-width-desktop: 1560px;
    --d-light-gray: #f4f5f5;
    --d-gray: #cdd4d4;
    --d-hover-color: #007bff;
}


#page .btn-success:hover {
  color: #fff;
  background-color: var(--d-hover-color);
  border-color: unset;
}


body #process-list .stand-hist-panel ul.list li {
  border-top: 2px solid var(--d-gray);
  padding: 8px 0;
}

.process-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 11px;
  padding-bottom: 7px;
}

html body {
  font-family: "Source Sans", sans-serif;
}

body .lists li:nth-child(n+4) {
  display: block;
}

body .artwork img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding: 0;
  width: auto;
  margin-bottom: 10px;
}

.d-log {
  display: block;
  background: url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2012H19'%20stroke='%23F2A60D'%20stroke-width='2'%20stroke-linejoin='bevel'/%3e%3cpath%20d='M12%205L19%2012L12%2019'%20stroke='%23F2A60D'%20stroke-width='2'%20stroke-linejoin='bevel'/%3e%3c/svg%3e") no-repeat 96% center;
  background-color: var(--d-color-1);
  padding: 19px 20px;
  width: 480px;
  text-align: left;
  color: #fff;
  font-size: 20px;
  text-decoration: none !important;
  color: white !important;
}

body #process-list .stand-hist-panel h3 {
  font-weight: medium;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 16px;
}


body #process-list .stand-hist-panel ul.list li:last-child {
  border-bottom: 2px solid var(--d-gray);
}

body .download_list .d-tidsfrister {
  border-top: unset;
  padding: 15px;
  margin-top: 6px;
  font-weight: 500;
  background: var(--d-color-2 );
}

body .download_list .d-tidsfrister:first-of-type {
  margin-top: 20px !important;
}

body .downloads .list_header {
  display: inline-flex;
}

body div.icon {
  width: 46px;
  height: 100px;
}

body .artwork {
  background-color: transparent;
  object-fit: unset;
  width: 26%;
  height: unset;
  justify-content: unset;
  align-items: unset;
    
}

#page-wrapper .download_wrapper a{
  text-decoration: none !important;
}

body ul.list li:last-child {
  border-bottom: unset;
}

body ul.list li {
  border-top: 1px solid var(--d-light-teal);
  padding: 8px 0;
}

.d-full-width {
  width: 100%;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  pointer-events: none;
}

.d-content-width {
  max-width: var(--max-width-desktop);
  width: 100%;
  pointer-events: none;
}

#page .video .swidget_media_video {
  overflow-x: hidden;
  margin-bottom: 75px;
  background-color: var(--d-color-2);
}


.page-template-frontpage .d-submenu  {
  background: white;
}



@media (max-width: 1149px) {
  body .d-side-menu-desktop {
    display: none;
  }

  #page-wrapper .container {
      padding-left: 60px;
      padding-right: 60px;
  }

  #page-wrapper .row.player {
    margin-left: 0px; 
    margin-right: 0px; 
    padding-left: 0px;
  }

  .d-log {
    padding: 19px 20px;
    width: 271px;
    font-size: 16px;
  }

  body .d-top-menu-desktop {
    display: none;
  }
  body .d-top-menu-arrowchain.is-visible {
    display: none;
  }

  body .container .row {
    padding: 0px;
  }

  #content .d-md-block {
    display: none!important;
  }

    .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
  }
  


  body .d-tile {
    width: 50%;
  }
  
}

@media (max-width: 600px) {
  .d-search-results { font-size: 0.95em; }

  #page-wrapper .container {
    padding-left: 30px;
    padding-right: 30px;
  }

 .page-template-videos #page-wrapper .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

body .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  padding: 0px 90px;
}

.page-template-page-templatescustom-php #primary {
  margin-top: 220px;
}

html {
  scroll-padding-top: 356px;
}

.page-template-frontpage #primary {
  margin-top: 0;
}

.d-tile {
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ltt-tile {
  width: 90%;
}

.d-logo-navy path {
  fill:#094882 !important;
  
}


.d-side-menu-desktop {
  top: 235px;
  left: 0;
  z-index: 2000;
  width: 339px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #eee;
  /* box-shadow: 2px 0 8px rgba(0,0,0,0.04); */
  /* padding: 0.5em 0; */
  height: 88vh;
  overflow: auto;
  /* padding: 0px 36px; */
  margin-left: 20px;
  /* margin-right: 103px; */
  padding-right: 52px;
  position: relative;
  pointer-events: all;
}



body .hero-video-section {
  min-height: unset;
}



body  #process-list .stand-hist-panel {
  margin-bottom: 30px;
  font-size: 20px;
  background: var(--d-light-teal);
  height: 572px;
  padding: 20px;
}

body  #process-list .stand-hist-panel a{
  text-decoration: none;
}

#wrapper-footer-full {
  position: absolute;
  z-index: 2000;
  width: 100%;
}





body #wrapper-hero h1 {
  margin-top: unset;
}

#page .d-underline span {
  position: relative;
  text-decoration: none;
}

body .btn-success:focus, .btn-success.focus {
  color: #fff;
  background-color: #094882;
  border-color: #172436;
  box-shadow: 0 0 0 .2rem rgb(138 154 179 / 50%);
}

#page .d-underline::after {
  content: '';
  position: absolute;
  bottom: 10px;
  width: 69%;
  height: 2px;
  left: 15%;
  background-color: var(--d-color-1);
  transition: width 0.3s ease-in-out;
}

#page .d-underline.d-active::after,
#page .d-underline:hover::after {
  width: 100%;
}

/* Alternative: Slide in from center */
#page .d-underline.d-center-slide::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Alternative: Different colors for different menu levels */



/* Smooth transitions on menu items */
#page .d-menu-link,
#page .d-top-menu-link {
  transition: color 0.2s ease;
}

#page .d-underline:hover {
  color: #005a87; /* Slightly darker text on hover */
}

.d-top-menu-arrowchain {
  display: flex;
  align-items: center;
  padding: 3px 1rem;
  min-height: 44px;
  z-index: 1000;
  position: relative;
  top: 57.5px;
  /* max-width: 1560px!important; */
  width: 100%!important;
  margin-left: auto;
  margin-right: auto;
  background: white;
  justify-content: center;

  }
  .d-top-menu-arrowchain {
    overflow: hidden; /* Crop items that move outside bounds */
  }

  .d-top-menu-arrowchain .d-top-menu-item {
    display: flex;
    align-items: center;
    background: none;
    color: #222;
   
  }

  /* CSS Variables for clip-path shapes */
  .d-top-menu-arrowchain {
    --middle-clip-path: polygon(
      0 0,              /* top left */
      100% 0,           /* top right */
      100% 100%,        /* bottom right */
      0 100%,           /* bottom left */
      20px 50%          /* inward triangle tip */
    );
    --middle-clip-path-outward: polygon(
      0 0,              /* top left */
      calc(100% - 20px) 0,     /* top right before arrow */
      100% 50%,         /* outward arrow tip */
      calc(100% - 20px) 100%,  /* bottom right before arrow */
      0 100%,           /* bottom left */
      20px 50%          /* inward triangle tip */
    );
    --last-clip-path: polygon(
      0 0,              /* top left */
      100% 0,           /* top right */
      100% 100%,        /* bottom right */
      0 100%,           /* bottom left */
      20px 50%          /* inward triangle tip on left */
    );
    --last-clip-path-outward: polygon(
      0 0,              /* top left */
      calc(100% - 20px) 0,     /* top right before arrow */
      100% 50%,         /* outward arrow tip */
      calc(100% - 20px) 100%,  /* bottom right before arrow */
      0 100%            /* bottom left - no triangle tip */
    );
  }

  /* Base animation for all menu items */
  .d-top-menu-item a {
    opacity: 0;
    animation: fadeInSequential 175ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  /* First item styling */
  .d-top-menu-item:first-of-type a {
    border-bottom-left-radius: .25rem;
    border-top-left-radius: .25rem;
    animation-delay: 0ms;
    clip-path: var(--last-clip-path-outward);
    padding-left: 18px;
  }


  /* Sequential delays for middle items */
  .d-top-menu-item:nth-of-type(2) a {
    animation-delay: 30ms;
  }

  .d-top-menu-item:nth-of-type(3) a {
    animation-delay: 60ms;
  }

  .d-top-menu-item:nth-of-type(4) a {
    animation-delay: 90ms;
  }

  .d-top-menu-item:nth-of-type(5) a {
    animation-delay: 120ms;
  }

  .d-top-menu-item:nth-of-type(6) a {
    animation-delay: 150ms;
  }
  .d-top-menu-item:nth-of-type(7) a {
    animation-delay: 180ms;
  }
  .d-top-menu-item:nth-of-type(8) a {
    animation-delay: 210ms;
  }
  .d-top-menu-item:nth-of-type(9) a {
    animation-delay: 240ms;
  }

  /* Middle items styling (second to second-last) - fallback for items beyond 6 */
  .d-top-menu-item:not(:first-of-type):not(:last-of-type) a {
    clip-path: var(--middle-clip-path-outward);
  }

  /* Last item styling */
  .d-top-menu-item:last-of-type a {
    clip-path: var(--last-clip-path);
    border-bottom-right-radius: .25rem;
    border-top-right-radius: .25rem;
    animation-delay: 180ms;
    padding-left: 36px;
  }

  /* Keyframe animation */
  @keyframes fadeInSequential {
    from {
      opacity: 0;
      transform: translateX(-10px) translateY(-15px);
    }
    to {
      opacity: 1;
      transform: translateX(0) translateY(0);
    }
  }





  .d-top-menu-arrowchain .d-top-menu-link {
    background: linear-gradient(90deg, #ebf0f0 0%, #e2e9e9 100%);
    color: #222;
    display: flex;
    align-items: center;
    padding: 0 1.2em 0 0.8em;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    position: relative;
    z-index: 2;
    border-radius: 0;
    padding: 11px 25px;
    margin-left: -15px;
}
.d-top-menu-arrowchain .d-top-menu-link .process-index {
    margin-right: 2px;
}
  .d-top-menu-arrowchain .d-top-menu-link:hover {
    color: #007bff;
  }
  .d-top-menu-arrowchain .d-top-menu-arrow {
    display: block;
    width: 0;
    height: 0;
    border-top: 26px solid transparent;
    border-bottom: 26px solid transparent;
    border-left: 16px solid #e2e9e9;
    margin-left: -2px;
    z-index: 2000;
  }
  .d-top-menu-arrowchain .d-top-menu-arrow-svg {
    display: none;
  }
  .d-top-menu-arrowchain .d-top-menu-arrow-svg polygon {
    fill: #e2e9e9;
  }


/* Felleskrav collapsible styles */
.d-felleskrav-collapsible {
  margin: 1.5em 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.wrapper.downloads .video .container {
  padding-left: 0px;
  padding-right: 0px;
}

#d-main-nav {
  margin-left: 12px;
}

#d-main-nav .d-submenu a {
  color: black;

}

#d-menu-primary a:hover {
  color: #d5d3df;
  text-decoration: underline;
}

#d-main-nav .d-submenu a:hover, #d-main-nav .d-submenu a:focus {
  color: var(--d-color-1);

}

.d-side-menuhtml {
    position:fixed;top:0;left:0;z-index:9999;
    display: none;
}

.d-top-menuhtml {
    position:fixed;top:0;left:0;z-index:9999;
    display: none;
}

.navbar-expand-md.override {
    display: block;
}

.d-felleskrav-header {
    display: flex;
    align-items: center;
    padding-right: 15px;
}

.d-felleskrav-usage {
    margin-left: auto;
}

.d-felleskrav-title {
  max-width: 590px;
}

#footer_menuNavDropdown {
  display: none;
}

#content .col-md-3 {
  display: none;
}

.col-xs-6.col-md-3.left h3 {
  display: none;
}

.d-felleskrav-toggle {
    text-align: left;
    border: none;
    padding: 1em;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    outline: none;
    transition: background 0.2s;
    background: transparent;
    margin-right: 5px;
}

.d-felleskrav-content {
    padding: 1em;
    border-top: 1px solid #ddd;
}

.d-search-group { position: relative; }
.d-search-results {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  width: 100%;
  z-index: 10000;
  max-height: 320px;
  overflow-y: auto;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
  border-radius: 0 0 4px 4px;
  font-size: 1em;
}
.d-search-result {
    padding: 0.75em 1em;
    border-bottom: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.d-search-result:last-child { border-bottom: none; }
.d-search-result a {
    color: #222;
    text-decoration: none;
    display: block;
}
.d-search-result a:hover, .d-search-result.d-search-active a {
    background: #f0f0f0;
}
.d-search-active {
    background: #e6f7e6;
}
.d-search-noresults, .d-search-loading {
    padding: 0.75em 1em;
    color: #888;
    background: #fff;
}


/* Header Search Styling */
.d-header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.d-header-search .d-search-form {
    margin: 0;
}

.d-header-search .d-search-group {
    position: relative;
    margin-bottom: 0px;
}

.d-header-search .d-search-input {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 8px 40px 8px 15px;
    font-size: 14px;
    background: #fff;
    width: 100%;
}

.d-header-search .d-search-results {
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 8px;
    margin-top: 5px;
}

.d-search-pdf-icon {
    font-size: 0.9em;
    margin-right: 5px;
}

.d-search-pdf {
    background: #f8f9fa;
    border-left: 3px solid #007bff;
}

.d-search-pdf a {
    color: #495057;
}

.d-search-pdf:hover {
    background: #e9ecef;
}

/* See all results link */
.d-search-more {
    border-top: 1px solid #ddd;
    background: #f8f9fa;
    padding: 0.5em 1em;
}

.d-search-see-all {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.25em 0;
    text-align: center;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.d-search-see-all:hover {
    background: #e3f2fd;
    color: #0056b3;
    text-decoration: none;
}

/* Live search type headings */
.d-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f7f7f7;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
    color: #555;
}

.d-search-heading:first-child {
    border-top: none;
}

.d-search-hide-btn {
    border: none;
    background: transparent;
    color: #999;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.d-search-hide-btn:hover {
    color: #333;
}

/* Show desktop logo by default, hide mobile */
.logo-desktop {
  display: block;
  width: 430px;
}


#main-nav .logo-mobile {
  display: none;
  height: 41px;
  width: auto;
  position: fixed;
  left: 18px;
}


body.page-template-frontpage #main {
  margin-top: 152px;
}


/* On mobile screens, hide desktop and show mobile */
@media (max-width: 1149px) {
  .page-template-page-templatescustom-php #primary {
    margin-top: 143px;
  }

  body.page-template-frontpage #main {
    margin-top: 102px;
  }


  #content .prosesser-right {
    padding-right: 8px;
    padding-left: 8px;
  }

  .d-felleskrav-header {
    padding-right: 5px;
}

.d-felleskrav-usage {
  padding-left: 5px;
}

  .logo-desktop {
      display: none;
  }
  #main-nav .logo-mobile {
      display: block;
  }

  #process-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}



#main-nav .d-header-search {
  display: none;
}



.d-top-menu-desktop {
  background: var(--d-color-1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 105px;
  width: 100%;
  left: 0;
}

body .menu-item {
  padding: 0;
}

/* .navbar a {
  color: black;
} */

.d-menu-link {
  color: white;
}

.d-top-menu-desktop-inner {
  display: flex;
  gap: 8px;
  max-width: var(--max-width-desktop);
  width: var(--max-width-desktop);
}

body .navbar {
  padding: 0;
  padding-top: 14px;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .d-header-search {
        max-width: 100%;
        margin: 10px 0;
        order: 3;
    }
    
    .navbar .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .d-header-search .d-search-input {
        height: 45px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Sidebar submenu for indexed sections */
.prosesser-section-list {
    margin: 0 0 0 1.5em;
    padding: 0;
    list-style: none;
    border-left: 2px solid #e0e0e0;
}
.prosesser-section-item {
    margin: 0;
    padding: 0.2em 0 0.2em 1em;
    font-size: 0.97em;
    border-left: 2px solid transparent;
    transition: border-color 0.2s;
}
.prosesser-section-item.level-3 {
    padding-left: 2em;
    font-size: 0.93em;
    color: #666;
}
.prosesser-section-item a {
    color: #333;
    text-decoration: none;
    display: block;
    border-radius: 3px;
    padding: 2px 4px;
}
.prosesser-section-item a:hover, .prosesser-section-item a:focus {
    background: #e6f7e6;
    color: #007b55;
    outline: none;
}

#wrapper-navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
  }

.page-template-prosesser #main {
    margin-top: 63px;
}

body #breadcrumbs {
    background-color: #f4f5f5;
    font-size: 14px;
    display: none;
    margin-bottom: 60px;
    padding: 7.5px 0;
    position: fixed;
    top: 200px;
}

#main-nav .d-changelog-link {
    background: var(--d-color-1);
    color: white;
}

.d-top-menu-arrowchain.is-visible.d-muted {
  opacity: 0.2;
}

#wrapper-hero .row {
    margin-top: 150px;
}


.d-menu-arrow {
  pointer-events: none;
}

.page-template-frontpage .d-top-menu-arrowchain {
    display: none;
}



.d-side-menu-item {
     display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.d-level-2 {
    margin-left: 8px;
}
.d-level-3 {
    margin-left: 16px;
}

.d-side-menu-item.d-side-menu-level-1 {
    display: flex;
    flex-direction: column;
}

.d-side-menu-item.d-side-menu-level-2 {
    display: flex;
    flex-direction: column;
}

.d-level-3.d-active {
  color: var(--d-color-1);
  font-weight: 700;
}

.d-level-1.d-level-active, .d-level-2.d-level-active {
    border-bottom: 1px solid var(--d-light-teal);
}


.d-side-menu-link {
  color: black;
  display: flex;
  align-items: center;
  padding: 10px 0px;
  font-weight: 400;
  text-decoration: none;
  font-size: 19px;
  /* border: none; */
  position: relative;
  z-index: 2;
  border-radius: 0;
}

.d-side-menu-link.d-scroll-active {
  font-weight: 700;
  color: var(--d-color-1);
}

.d-side-menu-link.d-scroll-side-menu-level-1.d-active a:first-child, .d-side-menu-link.d-scroll-side-menu-level-2.d-active a:first-child {
    border-bottom: 1px solid aqua;
}

body .d-side-menu-link:hover, body .d-side-menu-link:focus {
  color: var(--d-color-1);
  text-decoration: none;
}


body .lang-item-no a::after {
  padding-left: 4px;
  color: white;
}


.d-side-menu-arrow {
  display: block;
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 16px solid #e2e9e9;
  margin-left: -2px;
  z-index: 2000;
}
.d-side-menu-level-2 .d-side-menu-link { margin-left: 20px; }
.d-side-menu-level-3 .d-side-menu-link { margin-left: 40px; }
.d-side-menu-level-4 .d-side-menu-link { margin-left: 60px; }
.d-side-menu-level-5 .d-side-menu-link { margin-left: 80px; }

/* Enhanced search loading states */
.d-search-loading {
  padding: 1em;
  text-align: center;
  color: #666;
  font-style: italic;
}

.d-scrollable-y {
  /* Custom scrollbar styles */
  pointer-events: all;
  scrollbar-width: thin;
  scrollbar-color: #d0d4db transparent;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar for WebKit browsers (Chrome, Edge, Safari) */
.d-scrollable-y::-webkit-scrollbar {
  width: 8px;
}

.d-scrollable-y::-webkit-scrollbar-thumb {
  background: #d0d4db;
  border-radius: 4px;
}

.d-scrollable-y::-webkit-scrollbar-thumb:hover {
  background: #b0b6c2;
}

/* Frontpage process index styling */
.stand-hist-panel .process-index {
    font-weight: 600;
    color: #007bff;
}

.stand-hist-panel .lists .process-index {
    font-weight: 500;
    color: #007bff;
    font-size: 0.95em;
}

.d-search-loading small {
  color: #999;
  font-size: 0.85em;
  display: block;
  margin-top: 0.5em;
}

.d-search-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: d-search-spin 1s linear infinite;
  margin-top: 0.5em;
}

@keyframes d-search-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced PDF search indicators */
.d-search-loading .d-search-pdf-icon {
  font-size: 1.2em;
  margin-right: 0.3em;
}

/* PDF loading and no results states */
.d-search-pdf-loading {
  padding: 0.5em 1em;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.d-search-no-pdfs {
  padding: 0.5em 1em !important;
  background: #f8f9fa !important;
  border-bottom: 1px solid #eee !important;
  cursor: default !important;
}

.d-search-no-pdfs:hover {
  background: #f8f9fa !important;
}

.d-search-heading small {
  font-size: 0.8em;
  margin-left: 0.5em;
}

/* New Menu System Styles */
.d-main-nav { position: relative; z-index: 2000; }
.d-submenu { z-index: 2100; }
.d-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.d-menu-item {
  position: relative;
  display: flex;
  align-items: center;
}


.d-menu-toggle,
.d-menu-link {
      /* background: linear-gradient(90deg, #ebf0f0 0%, #e2e9e9 100%); */
      color: white;
      display: flex;
      align-items: center;
      padding: 10px 23px;
      font-weight: 500;
      text-decoration: none;
      font-size: 1rem;
      border: none;
      border-radius: 0;
      cursor: pointer;
      font-family: inherit;
      margin-left: -15px;
      position: relative;
      z-index: 2;
      background: transparent;
}



.d-menu-arrow { display: inline-flex; width: 16px; height: 16px; margin-left: 8px; align-items: center; justify-content: center; }
.d-menu-arrow::after { content: ''; }

ul.d-submenu {
  margin-block-start: 0;
  padding-inline-start: 0;
}

.d-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--d-color-2);
  min-width: 200px;
  z-index: 2000;
  outline: none;
  border-bottom-left-radius: .25rem;
  border-bottom-right-radius: .25rem;
  display: none;
}

.d-submenu.d-submenu-open {
  display: block;
}

.d-submenu .d-menu-item {
  display: block;
  width: 100%;
}



body .downloads .artwork {
  background-color: transparent;
  object-fit: unset;
  width: 51px;
  height: unset;
  justify-content: unset;
  align-items: unset;
  margin-right: 10px;
}

.d-download-svg {
  width: 100px !important;
  height: auto;
}

.d-submenu .d-menu-link {
  width: 100%;
  margin-left: 0;
  padding: 12px 16px;
  
  border-bottom: 1px solid #eee;
  outline: none;
}

.d-submenu .d-menu-link:last-child {
  border-bottom: none;
}

.d-submenu .d-menu-link:hover,
.d-submenu .d-menu-link:focus {
  color: var(--d-color-1) !important;
  text-decoration: none;
}

.d-menu-link .process-index {
  font-weight: 600;
  color: #007bff;
  margin-right: 2px;
}

.d-changelog-link {
  background: var(--d-color-1) !important;
  color: white !important;
}

.d-changelog-link:hover,
.d-changelog-link:focus {
  background: var(--d-hover-color) !important;
  color: white !important;
}

/* Mobile Menu Overlay System */
.d-mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.d-btn {
  white-space: normal;
  -ms-touch-action: unset;
  touch-action: unset;
  position: relative;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  text-align: inherit;
  line-height: normal;
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
  cursor: pointer;
  pointer-events: all;
  -webkit-appearance: none;
  padding: 10px;
  
}

.d-mobilenav {
  display: none;
  background: var(--d-color-1);
  color: white;
  stroke: none;
  width: 35px;
  height: 35px;
  position: fixed;
  right: 20px;
  top: 24px;
  border-radius: 3px;
  padding-top: 6px;
  font-size: 16px;
}

/* Bot Query Container */
.d-bot-query {
  position: relative;
  display: inline-block;
}

body #wrapper-hero {
  padding: 0!important;
  position: relative;
  top: 140px;
}

body .hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 382px;
}

#main-nav {
  background: var(--d-color-2);
  width: 100%;
  position: fixed;
  top: 0;
  height: 110px;
}



.page-template-prosesser #main {
  margin-top: 63px;
}

a.video-btn {
  content: "";
  background: url(img/video.svg) no-repeat left center;
  background-size: 48px 48px;
  width: 48px;
  height: 48px;
  left: 0;
  top: 10%;
  padding: 20px 0px 20px 60px;
  transform: translateY(-10%);
}

@media (max-width: 1149px) {

  .page-template-prosesser #main {
    margin-top: 0px;
}

  #main-nav {
    height: 80px;
  }

  body .hero-content-grid {

    grid-template-columns: 1fr;
    gap: 0px;

  }


  body #wrapper-hero {
 
    top: 80px;
  }


  .d-mobilenav {
    display: block;
  }

  .d-bot-query {
    display: none;
  }
}

.d-mobile-menu-overlay.d-mobile-menu-hidden {
  opacity: 0;
  visibility: hidden;
}

.d-mobile-menu-overlay.d-mobile-menu-visible {
  opacity: 1;
  visibility: visible;
}

.d-mobile-menu-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.d-mobile-menu-visible .d-mobile-menu-container {
  transform: translateX(0);
}

.d-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--d-color-1);
  color: white;
  min-height: 60px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.d-mobile-menu-back,
.d-mobile-menu-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.d-mobile-menu-back:hover,
.d-mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.d-mobile-menu-back.d-mobile-menu-back-hidden {
  opacity: 0;
  pointer-events: none;
}

.d-mobile-menu-panels {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.d-mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.d-mobile-menu-panel.d-mobile-menu-panel-active {
  transform: translateX(0);
}

.d-mobile-menu-item {
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.d-mobile-menu-item:hover {
  background: #f8f9fa;
}

.d-mobile-menu-item:last-child {
  border-bottom: none;
}

.d-mobile-menu-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  min-height: 60px;
}

.d-mobile-menu-link .process-index {
  font-weight: 600;
  color: var(--d-color-1);
  margin-right: 0.5rem;
}

.d-mobile-menu-arrow {
  color: #999;
  font-size: 1.2rem;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.d-mobile-menu-item:hover .d-mobile-menu-arrow {
  transform: translateX(4px);
  color: var(--d-color-1);
}

/* Custom scrollbar for mobile menu panels */
.d-mobile-menu-panel {
  scrollbar-width: thin;
  scrollbar-color: #d0d4db transparent;
}

.d-mobile-menu-panel::-webkit-scrollbar {
  width: 6px;
}

.d-mobile-menu-panel::-webkit-scrollbar-thumb {
  background: #d0d4db;
  border-radius: 3px;
}

.d-mobile-menu-panel::-webkit-scrollbar-thumb:hover {
  background: #b0b6c2;
}

/* Mobile menu styles */
@media (max-width: 767px) {
  .d-top-menu-desktop {
    display: none;
  }
  
  .d-menu-list {
    flex-direction: column;
    align-items: stretch;
  }
  
  .d-menu-toggle,
  .d-menu-link {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  
  .d-submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid #eee;
    border-radius: 0;
  }

}

/* Mobile menu always available - visibility controlled elsewhere */
.d-mobile-menu-overlay {
  display: block;
}

/* Hero Video Section */
.hero-video-section {
  background-image: url('img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; */
  min-height: 70vh;
  position: relative;
  padding: 2rem 0;
  width: 100%;
}


/* .hero-video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
} */

.hero-content-wrapper {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0px 177px;
  position: relative;
  z-index: 2;
  height: 100%;
}



.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 60vh;
}

.hero-text-column {
  color: white;
}

#ltt-tile-1 .ltt-btn path {
  fill: var(--d-color-2);
}

#ltt-tile-2 .ltt-btn path {
  fill: var(--d-color-3);
}


#ltt-tile-3 .ltt-btn path {
  fill: var(--d-color-2);
}


#ltt-tile-4 .ltt-btn path {
  fill: var(--d-color-3);
}


#ltt-tile-5 .ltt-btn path {
  fill: var(--d-color-3);
}


#ltt-tile-6 .ltt-btn path {
  fill: var(--d-color-2);
}


#ltt-tile-7 .ltt-btn path {
  fill: var(--d-color-3);
}


#ltt-tile-8 .ltt-btn path {
  fill: var(--d-color-2);
}


.ltt-tile svg {
  width: 140% !important;
  margin-left: -20% !important;
  height: auto !important;
  transform: translate3d(0px, 0px, 0px) !important;
}

/* .col-lg-3 {
  background: #92ffff5e;
} */

.page-template-frontpage .d-log {
  margin-top: 30px;
}



#ltt-tiles .col-lg-3 {
  height: 353px;
}

#hero-header {
  text-align: left;
}

#hero-header h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 2rem;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); */
  line-height: 1.2;
  color: black;
}

/* #hero-header h1 span {
  display: block;
  font-size: 0.7em;
  font-weight: normal;
  margin-top: 0.5rem;
} */



#page-wrapper {
  margin-top: 187px;
}

/* #page-wrapper #footer_menuNavDropdown {
  position: fixed;
  top: 200px;
} */

.hero-text-content {
  color: white;
}

.custom-logo-link img {
  width: 238px;
}

.hero-text-content img {
  display: none !important;
}

.hero-text-content .box-shadow-wrapper,
.hero-text-content .box-shadow-yellow {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.hero-video-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video-container {
  width: 100%;
  max-width: 600px;
  /* background: rgba(255, 255, 255, 0.1); */
  border-radius: 10px;
  padding: 8px;
  backdrop-filter: blur(10px);
}

.hero-video-container iframe {
  width: 100%;
  height: 315px;
  border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-content-wrapper {
    max-width: 1200px;
  }
  
  .hero-content-grid {
    gap: 30px;
  }
}

#ltt-tiles {
  padding: 0px 90px;

}

#error-404-wrapper {
  margin-top: 194px;
}

@media (max-width: 1149px) {

  #error-404-wrapper {
    margin-top: 94px;
  }


  #ltt-tiles {
    padding: 0px 0px;
    max-width: 580px;
  
  }

  #page-wrapper {
    margin-top: 135px;
  }


  #hero-header h1 {
    font-size: 2rem;
    margin-bottom: 0px;
  }
  
  .hero-video-section {
    min-height: 50vh;
    padding: 30px 0;
  }
  
  .hero-content-wrapper {
    padding: 0 15px;
  }
  
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  
  #hero-header {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-video-container iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .hero-video-container iframe {
    height: 200px;
  }
}

.d-top-menu-arrowchain.is-hidden {
  display: none;
}
.d-top-menu-arrowchain.is-visible {
  display: flex;
}

.d-top-menu-arrowchain-inner {  
    display: flex;
  width: 1560px;
}

.d-menu-item.d-arrowchain-source > .d-submenu {
  display: none !important;
}

@media (max-width: 767px) {
  .d-menu-item.d-arrowchain-source > .d-submenu {
    display: block !important;
  }
}


@font-face {
  font-family: "Source Sans";
  font-weight: 400;
  font-style : normal;
         src : url('fonts/SourceSans-Regular.woff') format('woff');
}


@font-face {
  font-family: "Source Sans";
  font-weight: 400;
  font-style : italic;
         src : url('fonts/SourceSans-Italic.woff') format('woff');
}

@font-face {
  font-family: "Source Sans";
  font-weight: 700;
  font-style : normal;
         src : url('fonts/SourceSans-Bold.woff') format('woff');
}

@font-face {
  font-family: "Source Sans";
  font-weight: 300;
  font-style : normal;
         src : url('fonts/SourceSans-Light.woff') format('woff');
}

/* Bot Modal Styles */
.d-bot-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow: hidden;
}



.d-bot-input {
  background: white;
  border-radius: 50px;
  padding: 7px 45px 7px 17px;
  padding-left: 14px;
  padding-bottom: 8px;
  padding-top: 8px;
  padding-right: 43px;
  border: 1px solid #ddd;
  min-width: 270px;
  font-size: 1rem;
  position: relative;
}

/* Placeholder for contenteditable */
.d-bot-input:empty::before {
  content: attr(data-placeholder);
  color: #999;
  pointer-events: none;
}

.d-bot-input:focus:empty::before {
  color: #ccc;
}

.d-open-bot {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  /* width: 32px; */
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  padding: 0;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#d-mobile-menu-container .d-open-bot-mobile {
  top: 95px;
  top: 108px;
  right: 12px;
  
}

#d-mobile-menu-container .d-bot-input-mobile {
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 10px;
  margin-left: 5px;
  margin-right: 5px;
}



.d-bot-input-mobile:focus-visible  {
  outline: none;
  outline-offset: none;
}



.d-open-bot:hover {
  background: rgba(0, 0, 0, 0.1);
}

.d-bot-lottie {
      /* width: 20px; */
    /* height: 20px; */
    pointer-events: none;
    width: 100%;
    height: 100%;

}

.d-bot-fallback-icon {
  font-size: 14px;
  color: #666;
}

/* Screen reader only text */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.d-bot-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.d-bot-modal-content {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 90%;
  height: 90%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 650px;
  max-height: 950px;
}

.d-bot-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: #00000052;
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.d-bot-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  transform: scale(1.1);
}

.d-bot-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 8px 8px;
  flex: 1;
}

/* Show modal when active */
.d-bot-modal.d-bot-modal-open {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .d-bot-modal-content {
    top: 2%;
    left: 2%;
    width: 96%;
    height: 96%;
  }
  
  .d-bot-modal-close {
    top: 10px;
    right: 15px;
    font-size: 25px;
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .d-bot-modal-content {
    top: 1%;
    left: 1%;
    width: 98%;
    height: 98%;
  }
}

/* Video Modal Styles */
.d-video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow: hidden;
}

.d-video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.d-video-modal-content {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 90%;
  height: 90%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 1004px;
  max-height: 670px;
}

.d-video-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: #00000052;
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.d-video-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  transform: scale(1.1);
}

.d-video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 8px 8px;
  flex: 1;
}

/* Show modal when active */
.d-video-modal.d-video-modal-open {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .d-video-modal-content {
    top: 2%;
    left: 2%;
    width: 96%;
    height: 96%;
  }
  
  .d-video-modal-close {
    top: 10px;
    right: 15px;
    font-size: 25px;
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .d-video-modal-content {
    top: 1%;
    left: 1%;
    width: 98%;
    height: 98%;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Screen reader only content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Improved focus management - only remove outline for mouse users */
*:not(:focus-visible) {
  outline: none;
}

/* Ensure focus is visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--d-color-1) !important;
  outline-offset: 2px !important;
}

/* Specific focus styles for menu elements */
.d-menu-toggle:focus-visible,
.d-menu-link:focus-visible {
  outline: 2px solid var(--d-color-1) !important;
  outline-offset: 2px !important;
  background: rgba(9, 72, 130, 0.1) !important;
}

/* Arrowchain focus styles */
.d-top-menu-link:focus-visible {
  outline: 2px solid var(--d-color-1) !important;
  outline-offset: 2px !important;
  background: rgba(9, 72, 130, 0.1) !important;
  color: var(--d-color-1) !important;
  text-decoration: underline !important;
}

/* Mobile menu focus styles */
.d-mobile-menu-back:focus-visible,
.d-mobile-menu-close:focus-visible {
  outline: 2px solid white !important;
  outline-offset: 2px !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.d-mobile-menu-item:focus-visible {
  outline: 2px solid var(--d-color-1) !important;
  outline-offset: -2px !important;
  background: rgba(9, 72, 130, 0.1) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .d-menu-toggle,
  .d-menu-link,
  .d-top-menu-link {
    border: 1px solid currentColor;
  }
  
  .d-submenu {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .d-submenu,
  .d-mobile-menu-overlay,
  .d-mobile-menu-container,
  .d-top-menu-arrowchain {
    transition: none !important;
    animation: none !important;
  }
}

/* Better color contrast for links */
.d-submenu .d-menu-link {
  color: #333 !important;
}

.d-submenu .d-menu-link:hover,
.d-submenu .d-menu-link:focus {
  color: var(--d-color-1) !important;
  background: rgba(9, 72, 130, 0.05) !important;
}

/* Ensure minimum touch target sizes (44px) */
.d-menu-toggle,
.d-menu-link,
.d-top-menu-link,
.d-mobile-menu-back,
.d-mobile-menu-close {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
}

/* Skip link styles */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999999;
  padding: 8px 16px;
  background: var(--d-color-1);
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  left: 6px;
  top: 7px;
  outline: 2px solid white;
  outline-offset: 2px;
}


