/* Skillelinje og luft mellem nyhederne */
.nyhedsfeed ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.nyhedsfeed ul > li {
  border-bottom: 1px solid #cccccc !important;
  padding-bottom: 15px !important;
  margin-bottom: 15px !important;
}

.nyhedsfeed ul > li:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

/* Gør både li og eventuel indre article/div til flex-container */
.nyhedsfeed ul > li,
.nyhedsfeed ul > li > article,
.nyhedsfeed ul > li > div {
  display: flex !important;
  flex-direction: column !important;
}

/* 1. Overskrift øverst */
.nyhedsfeed h1,
.nyhedsfeed h2,
.nyhedsfeed h3,
.nyhedsfeed h4,
.nyhedsfeed h5,
.nyhedsfeed .mod-articles-title {
  order: 1 !important;
  margin-top: 0 !important;
  margin-bottom: 5px !important;
}

/* 2. Dato (dl.article-info) under overskrift */
.nyhedsfeed dl.article-info,
.nyhedsfeed .article-info {
  order: 2 !important;
  margin-bottom: 10px !important;
}

/* Skjul ordet "Detaljer" */
.nyhedsfeed .article-info-term {
  display: none !important;
}

/* 3. Tekst til sidst */
.nyhedsfeed p,
.nyhedsfeed .mod-articles-introtext {
  order: 3 !important;
}

/* Tving grøn farve på alle nyhedsoverskrifter (uanset om de er links eller ej) */
.nyhedsfeed h3,
.nyhedsfeed h4,
.nyhedsfeed .mod-articles-title,
.nyhedsfeed .mod-articles-title a {
  color: #198754 !important;
}

/* Hover-effekt hvis overskriften er et link */
.nyhedsfeed .mod-articles-title a:hover {
  color: #146c43 !important;
}