/*
---------------------------------------------------------
ORDLISTAN
---------------------------------------------------------*/


.ordlistan {
    border: 1px solid #e4e4e4;
    background: #ffffff;
    padding: 1em 1em 1.5em 1em;
  	 margin: 1em 0em 1em 0em;
 }

.ordlistan ul {
  list-style: none;
  margin: 0;
  display: flex;        /* radlayout */
  flex-wrap: wrap;      /* gör att det bryts till ny rad */
  gap: 20px;            /* avstånd mellan */
}

.ordlistan ul li {
  background: #f5f5f5;
  padding: 5px 12px;
  border-radius: 5px; /* lite rundade hörn om du vill */
}

.ordlistan ul li a:hover {
  text-decoration: underline !important; /* valfritt: underline på hover */
}

.ordlistan ul li a {
  text-decoration: none !important;  /* tar bort underline */
}



/*
---------------------------------------------------------
PRESSRUM: NYHETSLISTNING
---------------------------------------------------------*/

.press-news-list {
    background: #ffffff;
 }
 
 .press-news-list ul {
   list-style: none;
   padding: 0;
   margin: 0 -10px;
   display: flex;
   flex-wrap: wrap;
 }
 
 .press-news-list li {
   width: 50%;
   max-width: 50% !important; /* Ser till att artikeln aldrig blir bredare */
   height: 325px;
   margin: 0 0 20px;
   padding: 0 10px;
   box-sizing: border-box;
   display: flex;
   flex-direction: column; /* Säkerställer korrekt layout */
   flex: 1 0 auto;
   position: relative;
 }
 
 .press-news-list .litenxtext {
   position: absolute;
   top: 0;
   left: 10px;
   background: #f6840c;
   background: rgba(246, 132, 12, 0.9);
   color: #fff;
   font-size: 1.4rem;
   font-weight: bold;
   padding: 6px 8px;
 }
 
 .press-news-list-item {
   border: 1px solid #e4e4e4;
   overflow: hidden;
 }
 
 .press-news-list-image {
   width: 40%;
   height: 325px;
   position: relative;
   overflow: hidden;
   float: left;
 }
 
 .sv-archive-portlet .press-news-list-image img {
   width: 100% !important;
   height: 100% !important;
   object-fit: cover;
   position: absolute;
   top: 0;
   left: 0;
 }
 
 .sv-archive-portlet .press-news-list-image img:empty {
   top: 50%;
   left: 50%;
   -webkit-transform: translate(-50%, -50%);
   -moz-transform: translate(-50%, -50%);
   -ms-transform: translate(-50%, -50%);
   -o-transform: translate(-50%, -50%);
   transform: translate(-50%, -50%);
 }
 
 .press-news-list-content {
   width: 60%;
   padding: 20px;
   box-sizing: border-box;
   float: right;
 }    

 
 .press-news-list-content h2 {
   display: block !important;
   margin: 0 0 15px !important;
   line-height: 110%;
 }
 
 .press-news-list-content h2 a {
   font-size: 2.2rem;
   text-decoration: none;
   color: #f6840c;
   font-weight: 600;
 }
 
 .press-news-list-content h2 a:hover,
 .press-news-list-content h2 a:focus {

 }

/* Anpassning för större skärmar */
@media screen and (min-width: 668px) {
    .press-news-list .litenxtext {
        font-size: 1.6rem;
        padding: 8px 10px;
    }

    .press-news-list-content h2 a {
        font-size: 2.5rem;
    }
    
    .press-news-list-content {
        padding: 25px;
    }
}


/* Anpassning av ingresstext för små skärmar */

@media (max-width: 667px) {
  .pressmeddelande-arkiv-ingress-big {
    font-size: 1.4rem !important;
  }
}




/*
---------------------------------------------------------
PRESSRUM: PRESSMEDDELANDE
---------------------------------------------------------*/


.press-news-layout {
    background: #ffffff;
    max-width: 650px;
    padding: 0.8em 1.2em 0.3em 1.2em;
    margin: 0 auto;
}

@media (min-width: 668px) {
    .press-news-layout {
        padding: 1.7em 2em 1em 2em;
    }
}
