﻿/* 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: #16568D;
}
.hero-title .p-3 p {
  margin-bottom: 30px!important;
}
.front-articles .col.d-flex.flex-column.p-3 {
  padding: 2rem!important;
}
.badge {
  background-color: #16568D !important;
  color: #FFF !important;
}
.theme.pef-dark-blue-bck .badge {
  background-color: #FFF !important;
  color: #16568D !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: #16568D;
  border: 1px solid #16568D;
}
.item_swift_offcanvasnavigation:hover {
  background: #FFF;
  color: #16568D;
}
.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: #054A91;
}
.search-button button:hover {
  background: #054A91;
}
.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: #054A91;
  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: #054A91;
}
.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: #054A91;
color: #FFF!important;
text-decoration: none;
font-weight: 600;
padding: 10px 20px;
}
.skip-link:focus {
top: 30px;
}
.language-nav {
    text-align: center;
}
.language-nav .flex-column {
    flex-direction: row !important;
    flex-flow: wrap;
    gap: 10px;
}
.language-nav .flex-column .nav-item a {
  border: 1px solid #ccc;
  padding: 10px 25px !important;
  border-radius: 10px;
}
.language-nav .flex-column .nav-item a:hover {
  background-color: #EEE;
}

.form-floating>.form-control, .form-floating>.form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}
/* Nyhetsbrev */
.js-cm-form {
  width: 500px;
  max-width: 100%;
  margin: 30px auto;
  background-color: #f1f5fa;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}
.js-cm-form input[type="text"], .js-cm-form input[type="email"]{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
    background-color: var(--swift-background-color);
    border: 1px solid rgba(var(--swift-foreground-color-rgb), .3);
    border-radius: .25rem;
    color: var(--swift-foreground-color);
    display: block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
    padding: 1rem .75rem;
    width: 100%;
    margin: 5px 0 15px 0;
    text-align: center;
}
.js-cm-form button {
    background-color: #054A91;
    border-color: #054A91;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 1rem 1.75rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
}
.likeperson-filter {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kolonner med like bredder */
  gap: 40px; /* 40px mellom rader og kolonner */
}
/* Responsivt: én kolonne på mobil */
@media (max-width: 600px) {
    .likeperson-filter {
        grid-template-columns: 1fr; /* 1 kolonne */
        gap: 5px;
    }
}
/* Informasjonsmateriell  */
  .Informasjonsmateriell .brosjyre{
    background-color: #f1f5fa;
    border: 10px solid #FFF;
    border-radius: 25px !important;
    padding: 30px;
    font-weight: bold;
  }
  .Informasjonsmateriell .brosjyre img{
    width: 200px !important;
    height: 300px !important;
    object-fit: contain;
  }
  .Informasjonsmateriell .brosjyre .fw-semibold {
    min-height: 80px;
  }
  .Informasjonsmateriell .brosjyre select{
    width: 100%;
  }
  .form-text {
    color: #000;
    font-size: 19px;
    margin-top: 1.2;
}
.form-text h2 {
    color: #054A91;
}