﻿/* Grunnoppsett */
body {
  font-size: 19px;
}
html {
font-size: 17px;
}
.hudportalen h1 {
font-weight: 700;
line-height: 1;
}
.hudportalen h2, .hudportalen h3, .hudportalen h4 {
font-weight: 700;
line-height: 1;
}
.sponsors img {
  max-height: 70px;
  max-width: 150px;
}
.sponsors figure {
  height: 80px;
  line-height: 80px;
  text-align: center;
}
.hudportalen #content img {
overflow: hidden;
}
.item_swift_poster {
  position: relative;
  overflow: hidden;

}
.item_swift_poster::before {
  content: '';
  position: absolute; /* eller fixed, avhengig av behov */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
  rgba(255, 255, 255, 1) 30%,
  rgba(255, 255, 255, 0) 100%
);
  pointer-events: none; /* slik at den ikke hindrer klikk */
  z-index: 1;
}
.hero-title .gap-md-4 {
  gap: 1rem !important;
}
.hero-title .p-3 {
  padding: 3rem 1rem !important;
  position: relative;
  z-index: 2;
}
.hero-title .p-3 h2, .hero-title .p-3 p {
  max-width: 790px;
}
.hero-title .p-3 h2 strong {
  font-weight: 700;
  display: block;
  color: #197D8A;
}
.hero-title .p-3 p {
  margin-bottom: 30px!important;
}
.front-articles .col.d-flex.flex-column.p-3 {
  padding: 2rem!important;
}
.badge {
  background-color: #197D8A !important;
  color: #FFF !important;
}
.theme.pef-dark-blue-bck .badge {
  background-color: #FFF !important;
  color: #197D8A !important;
}
.portal-pages .g-col:hover h2 {
  text-decoration: underline;
}
.portal-pages .g-col figure img {
  border-radius: 10px;
}
.portal-pages .g-col .stretched-link {
  color: #FFF;
  font-size: 1px;
  line-height: 1px;
}

/* 
  Write your custom styles here
*/
.item_swift_offcanvasnavigation {
  border-radius: 30px;
  padding: 0 20px;
  height: 50px;
  line-height: 50px;
  background: #197D8A;
  border: 1px solid #197D8A;
}
.item_swift_offcanvasnavigation:hover {
  background: #FFF;
  color: #197D8A;
}
.item_swift_offcanvasnavigation svg {
  width: 1rem;
  height: 1rem;
}

.search-button button {
  border-radius: 30px;
  height: 50px;
  line-height: 50px;
  width: 50px;
  padding: 10px;
  text-align: center;
}
.search-button button svg {
  height: 30px;
  width: 30px;
  color: #197D8A;
}
.search-button button:hover {
  background: #197D8A;
}
.search-button button:hover svg {
  color: #FFF;
}
.shortcuts .item_swift_feature {
  position: relative;
  z-index: 5;
  margin: 1px;
}
.shortcuts .item_swift_feature a {
  margin: 0 auto;
}
.shortcuts .item_swift_feature a p {
  margin: 10px 0 0 0 !important;
  max-width: 300px;
}
.shortcuts .item_swift_feature svg {
  fill: #FFFFFF;
  background-color: #197D8A;
  border-radius: 50%;
  padding: 5px;
  transform: scale(1);
  transition: all 0.3s ease;
}
.shortcuts .item_swift_feature:hover svg {
  transform: scale(1.15);
  padding: 7px;
}

@media (min-width: 768px) {
  .min-vh-md-75 {
    min-height: 66vh !important;
  }
}

@media (min-width: 1200px) {
.hudportalen .container-compressed {
max-width: 680px;
}
.hudportalen .container-xl {
max-width: 1170px;
}
}

/* Søk */
.search-button button {
border:none;
background-color: transparent;
color: #197D8A;
}
.search-toggle {
display: flex;
align-items: center;
background: none;
border: none;
cursor: pointer;
}
.search-toggle .icon-close {
display: none;
}
.search-toggle.active .icon-search {
display: none;
}
.search-toggle.active .icon-close {
display: inline;
}
.search-wrapper {
height: 0px;
overflow: hidden;
}
.search-wrapper.open {
height: auto;
overflow: visible;
}
.search-wrapper .container-xl {
padding-bottom: 2rem !important;
padding-top: 3rem !important;
}
/* Gå til innhold */
.skip-link {
position: absolute;
top: -130px;
left: 20px;
z-index: 99999;
background-color: #197D8A;
color: #FFF!important;
text-decoration: none;
font-weight: 600;
padding: 10px 20px;
}
.skip-link:focus {
top: 30px;
}