@import url('brevmodal.css');
@import url('brevgrid.css');

/* === Footer heilt nede === */
.body-innerwrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#sp-footer {
  margin-top: auto;
}



/* === Gjer søkefelt synleg frå 992 til 1199 px (overstyr Bootstrap sin d-lg-flex) === */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .d-none.d-lg-flex.header-modules {
    display: flex !important;
  }

  /* Smalare søkefelt i mellomstore skjermar */
  .header-modules .form-search input[type="text"] {
    max-width: 180px;
  }
}

/* ======================= */
/* Søkerute i header/offcanvas */
/* ======================= */
.form-search input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 12px 18px;
  border: 2px solid #ec430f; /* farga kant */
  border-radius: 35px;     /* Runde kantar */
  font-size: 1rem;
  font-weight: 500;
  background-color: #F8F7F6; /* Lys varm bakgrunn */
  color: #3b3b3b;
  box-shadow: 0 4px 12px rgba(140, 120, 100, 0.1); /* Mild skugge */
  transition: all 0.3s ease;
}

/* Placeholder-tekst i søkefelt */
.form-search input[type="text"]::placeholder {
  color: #8C7864;         /* Varm brungrå tone */
  opacity: 0.8;
  font-style: italic;
}

/* Fokus-effekt med skugge og kontrast */
.form-search input[type="text"]:focus {
  border-color: #8C7864;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 10px rgba(140, 120, 100, 0.25);
}

/* ======================= */
/* Awesomplete dropdown-style */
/* ======================= */
.awesomplete ul {
  background: #fff;
  border: 1px solid #8C7864;
  border-radius: 12px;
  margin-top: 6px;
  padding: 6px 0;
  box-shadow: 0 4px 8px rgba(140, 120, 100, 0.15);
  font-size: 1rem;
}

/* Enkel stil på forslag i lista */
.awesomplete li {
  padding: 10px 18px;
  cursor: pointer;
  color: #3b3b3b;
  transition: background 0.2s;
}

/* Når forslag vert markert eller peikt på */
.awesomplete li:hover,
.awesomplete li[aria-selected="true"] {
  background-color: #F0EDE9; /* Lys beige ved hover */
  color: #000;
}

/* ======================= */
/* Søkefelt i offcanvas meny */
/* ======================= */
.offcanvas-inner .form-search {
  margin: 1.2rem auto;
  display: flex;
  justify-content: center;
}

/* ======================= */
/* Vis søkefelt frå 992–1199px */
/* ======================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .header-modules {
    display: flex !important;
  }

  /* Smalare breidde på mellomstore skjermar */
  .header-modules .form-search input[type="text"] {
    max-width: 180px;
  }
}

/* ------- */

@media (min-width: 1400px) {
  section.hero h1 {
    font-size: 3rem !important;
  }
}



/* START: Stil for Les meir-knapp i kategoriblogg */
.article-list .article .readmore a {
  display: inline-block;
  font-size: 1rem;
  background-color: transparent;
  color: inherit;
  border: 1px solid #ec430f;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-list .article .readmore a:hover {
  background-color: #ec430f;
  color: #fff;
  text-decoration: none;
}
/* SLUTT: Stil for Les meir-knapp i kategoriblogg */


/* === Offcanvas meny: stil for nivå 1 og 2 === */
/* --- start: offcanvas meny-stil --- */

/* Nivå 1 – knappestil for <a> og <span> */
.offcanvas-menu .menu > li > a,
.offcanvas-menu .menu > li > span.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f5f1;
  padding: 0.75rem 1.25rem;
  margin: 0.25rem 0;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: #111;
  text-decoration: none;
  position: relative;
}

/* Hover/aktiv */
.offcanvas-menu .menu > li > a:hover,
.offcanvas-menu .menu > li > span.nav-header:hover,
.offcanvas-menu .menu > li > span.nav-header.expanded {
  background-color: #e0e0e0;
  color: #000;
  cursor: pointer;
}

/* Underpunkt-liste */
.offcanvas-menu .menu-child {
  margin: 0.25rem 0 0.5rem 1.5rem;
  list-style: none;
}

/* Underpunkt-lenker */
.offcanvas-menu .menu-child li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  border-radius: 0.25rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.offcanvas-menu .menu-child li a:hover {
  background-color: #f9f5f1;
}

/* Ikon (pil) ved alle nav-header med undermeny */
.offcanvas-menu .menu-parent > .nav-header::after {
  content: "\25BC"; /* nedoverpil ▼ */
  font-size: 0.8rem;
  margin-left: 0.75rem;
  transition: transform 0.2s ease;
}

/* Når undermeny er open – snu pila */
.offcanvas-menu .menu-parent > .nav-header.expanded::after {
  transform: rotate(180deg); /* oppoverpil */
}

.offcanvas-menu .offcanvas-inner ul.menu>li>a, .offcanvas-menu .offcanvas-inner ul.menu>li>span {
padding: 0.8rem;
}

/* Fjern innebygd pil (menu-toggler) */
.offcanvas-menu .menu-toggler {
  display: none !important;
}

/* --- slutt: offcanvas meny-stil --- */




.article-list .article  {
  background-color: #f9f5f1 !important;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.featured-article-badge {
    display: none;
}


.edocmandownloadlink {
    display:none;
}

@media (max-width: 1400px){
 .d-lg-flex {display: none !important}}
.breadcrumb {
    background-color: rgba(255, 255, 255,0);
    padding: 1.5rem 1rem 0.75rem 0rem;
}

#sp-main-body {
    padding:30px 0px 0px 0px;
}

.container-fluid {
padding-right: 0;
padding-left: 0;
}
.article-list .article {
    border: 1px solid #9DA2A5;
}
.related-article-list-container {
    margin-top:35px;
}
.article-full-image {
    margin-bottom:30px;
}
h2 {margin-bottom: 30px;}

.sidefelt {margin-bottom: 30px; padding: 20px; 
border: 1px solid #ced4da;}


.brukarikon::before {
    font-family: "Font Awesome 6 Free";
    content: "\f007"; /* fa-user */
    margin-right: 8px;
    font-weight: 900;
    display: inline-block;
}

.page-item.active .page-link {
    background-color: #222222;
    border-color:#222222;
}

.igui-width-48-48 {
margin-bottom: 30px;
}

.ig-img-extra-title, .ig-img-extra-1, .ig-img-extra-2, .ig-img-extra-3, .ig-img-extra-4 {
   font-size:0.8rem;
}
html, body {
    height: 100%;
    margin: 0;
}

.after-footer-bg .body-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #171717; /* Mørk bakgrunn berre etter DOM er klar */
}

#sp-main-body,
#sp-section-2,
#sp-section-1,
#sp-header,
#sp-component,
#sp-page-title {
    background-color: white;
    flex-shrink: 0;
}

.article-list .article .article-header h1, .article-list .article .article-header h2 {
font-size: 1.8rem;
    margin: 0 0 1.25rem 0;
}

.offcanvas-menu .menu-child {
  display: none;
  margin-left: 1rem;
}

.offcanvas-menu .menu-child.show {
  display: block;
}

.offcanvas-menu .nav-header {
  cursor: pointer;
}

.offcanvas-menu .nav-header.expanded {
  font-weight: bold;
}