/* =========================================================
   RELATERADE SIDOR
   ========================================================= */

.lan-related-pages > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}

/* 3 kolumner DEFAULT */
.lan-related-pages > ul > li {
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
  flex: 0 0 33.3334%;
  max-width: 33.3334%;
  margin: 0;
}

/* Kortet */
.lan-related-pages__result-content {
  background: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
  position: relative;
  top: 0;
}

.lan-related-pages__result-item {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Bild */
.lan-related-pages__result-item-image {
  position: relative;
}

/* Bild – samma som lan-newsbox (standard: 200px) */
.lan-related-pages__result-item-image img {
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  font-family: "object-fit: cover; object-position: center;";
  max-width: 100% !important;
  width: 100% !important;
  max-height: 100% !important;
  height: 200px !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}

/* Wide (om du använder .lan-related-pages--wide på wrappern) */
.lan-related-pages.lan-related-pages--wide > ul > li img {
  height: auto !important;
}

/* Innehåll */
.lan-related-pages__result-content__inner {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

/* Rubrik + text */
.lan-related-pages__result-content__inner > h2 {
  font-size: 1em;
  margin: 0 0 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.lan-related-pages__result-content__inner > p.normal {
  font-size: 0.9em;
  line-height: 1.5em;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Datum */
.lan-related-pages__result-content__inner > time.normal {
  margin-top: auto;
  margin-bottom: 5px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lan-related-pages__result-content__inner > time.normal:before {
  font-family: "Font Awesome 5 Free";
  content: "\f133";
  font-weight: 400;
}

/* Hover */
.lan-related-pages > ul > li:hover .lan-related-pages__result-content {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  top: -10px;
}

/* 2 kolumner på tablet */
@media (max-width: 1024px) {
  .lan-related-pages > ul > li {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* 1 kolumn på mobil */
@media (max-width: 736px) {
  .lan-related-pages > ul > li {
    flex: 0 0 100%;
    max-width: 100%;
  }
}