```css
/* =========================
   NEWS (The Mana Forge)
   ========================= */

.news-section {
    display: flex;
    flex-direction: column;
}

.news-item {
    border-bottom: none;
    padding: 0px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    color: #dcdcdc;
}

.news-item p {
    margin: 0;
    line-height: 1.8;
}

/* Stijl voor de links in nieuwsinhoud */
.news-item a {
    color: #f05454;
    text-decoration: none;
}

/* Stijlen voor de afbeelding in nieuwsitems */
.news-afbeelding img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 2px solid #f05454;
}

/* Tag + title inline */
.news-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.news-title p{
  margin:0;
  display:inline;      /* belangrijk: geen block */
  line-height:1.2;
}

/* Flexbox voor de nieuwsitems (afbeelding naast de tekst) */
.news-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    border-bottom: none;
    padding: 10px 0;
}

.news-tekst {
    flex: 1;
}

/* Alleen teaser afkappen (NIET alle <p>'s!) */
.news-inhoud{
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Uitgeklapt: alles zichtbaar */
.uitgebreid {
    display: none;
    margin-top: 10px;
    height: auto;
    overflow: visible;
}

.uitgebreid p {
    margin-bottom: 10px;
    white-space: normal;
    overflow: visible;
}

/* Extra: als je straks WotC HTML met images toont */
.news-html img{
    max-width: 100%;
    height: auto;
    display: block;
    margin: 14px 0;
}

/* Responsieve ontwerp - bij kleinere schermen de afbeelding boven de tekst plaatsen */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-afbeelding img {
        height: 100px;
    }
}

/* Show more knop */
.show-more {
    background-color: #f05454;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    display: inline-block;
}

.show-more:hover {
    background-color: #ff6f61;
}

/* Show less knop */
.show-less {
    margin-top: 10px;
    background-color: #f05454;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    display: none;
}

.show-less:hover {
    background-color: #ff6f61;
}

/* Show more knop (algemeen) */
.expand-knop {
    background-color: #f05454;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    display: inline-block;
}

.expand-knop:hover {
    background-color: #ff6f61;
}

/* Show Less knop onder de video */
.uitgebreid .expand-knop {
    margin-top: 10px;
    background-color: #f05454;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    display: none;
}

.uitgebreid .expand-knop:hover {
    background-color: #ff6f61;
}

/* Extra images in expanded news (only visible after "Show more") */
.news-media{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-media-img{
  width: calc(50% - 6px);
  height: 160px;
  object-fit: cover;
  border: 2px solid #f05454;
  border-radius: 6px;
}

@media (max-width: 768px){
  .news-media-img{
    width: 100%;
    height: 180px;
  }
}


/* Paginering (alleen weergeven als er meerdere pagina's zijn) */
.paginering {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.paginering a {
    color: #f05454;
    margin: 0 10px;
    text-decoration: none;
}

.paginering a:hover {
    text-decoration: none;
}

/* News tag badge (non-clickable button look) - Optie B (wit op rood pill) */
.news-tag {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 10px;
  border-radius: 999px;
  border: 1px solid #f05454;
  background: #f05454;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  vertical-align: middle;
  user-select: none;
  pointer-events: none; /* extra zekerheid: nooit clickable */
}

/* Divider onder ieder item */
.news-divider{
  border-top: 2px solid #f05454;
  margin: 18px 0;
  opacity: 0.9;
}

/* Wizards media gallery (only shown in expanded section) */
.news-media{
  margin-top: 12px;
}

.news-media-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.news-media-grid a{
  display: block;
  text-decoration: none;
}

.news-media-grid img{
  width: 100%;
  height: 110px;
  object-fit: cover;
  border: 2px solid #f05454;
  border-radius: 6px;
}

/* Safety net: if any <img> ever appears in expanded text, never allow fullscreen */
.uitgebreid img{
  max-width: 100%;
  height: auto;
  display: block;
}

.news-body-img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
  border: 2px solid #f05454;
  border-radius: 6px;
}

.news-body-list{
  margin: 10px 0 10px 20px;
}

.news-body a{
  color:#f05454;
  text-decoration:none;
}

/* TMF Wizards Digest (fix alpha values + nicer spacing) */
.tmf-wizards-digest{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 14px 14px 12px;
  background: rgba(0,0,0,.15);
}

.tmf-wizards-badge{
  display: inline-block;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,60,60,.16);
  border: 1px solid rgba(255,60,60,.35);
  margin-bottom: 8px;
}

.tmf-wizards-meta{
  opacity: .9;
  font-size: .95em;
  margin-bottom: 10px;
}

.tmf-wizards-section-title{
  margin: 10px 0 6px;
  font-weight: 800;
  color: #ff5b5b;
}

.tmf-wizards-list{
  margin: 0 0 10px 18px;
}

.tmf-wizards-img{
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
}

.tmf-wizards-footer{
  margin-top: 10px;
  opacity: .9;
  font-size: .95em;
}

/* Flexbox: allow the text column to shrink properly (prevents overflow/overlap) */
.news-tekst{ min-width: 0; }
.news-title{ min-width: 0; }
.news-title h2{ min-width: 0; }

/* Fixed left thumbnail column */
.news-afbeelding{ flex: 0 0 220px; max-width: 220px; }
.news-afbeelding img{ width: 220px; height: 220px; object-fit: cover; }

@media (max-width: 768px){
  .news-afbeelding{ flex: 0 0 auto; max-width: none; }
  .news-afbeelding img{ width: 100%; height: 160px; }
}

/* Contain media so it never spills outside the item */
.tmf-wizards-digest{ overflow: hidden; }
.tmf-wizards-images{ margin-top: 12px; }
.tmf-wizards-img{ max-width: 100%; height: auto; display:block; }

.tmf-wizards-para{ margin: 0 0 10px; line-height: 1.55; }
.tmf-wizards-subsection-title{ margin: 8px 0 4px; font-weight: 800; opacity: .95; }
.tmf-wizards-section-title{ margin: 10px 0 6px; }


/* =========================
   LOGIN BAR (existing)
   ========================= */

/* Login-bar container */
.header-container .login-bar {
    display: flex;
    justify-content: space-between; /* Plaats form en tekst netjes */
    align-items: center; /* Zorgt voor verticale uitlijning */
    background-color: #2d2d2d;
    background-image: -webkit-linear-gradient(top, #4a4a4a 0%, #1f1f1f 2px, #2d2d2d 92px, #2d2d2d 100%);
    background-image: linear-gradient(to bottom, #4a4a4a 0%, #1f1f1f 2px, #2d2d2d 92px, #2d2d2d 100%);
    background-repeat: repeat-x;
    padding: 10px 20px;
    color: white;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Algemeen voor login-bar */
.header-container .login-bar {
    display: flex;
    justify-content: center; /* Centreer de loginbar horizontaal */
    align-items: center; /* Zorg voor verticale uitlijning */
    gap: 15px; /* Ruimte tussen de elementen */
    flex-wrap: wrap; /* Sta toe dat items op meerdere regels worden geplaatst indien nodig */
    background-color: #2d2d2d;
    background-image: -webkit-linear-gradient(top, #4a4a4a 0%, #1f1f1f 2px, #2d2d2d 92px, #2d2d2d 100%);
    background-image: linear-gradient(to bottom, #4a4a4a 0%, #1f1f1f 2px, #2d2d2d 92px, #2d2d2d 100%);
    background-repeat: repeat-x;
    padding: 10px 20px;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Styling voor desktop login-formulier */
.header-container .login-bar .login-form {
    display: flex; /* Loginformulier naast elkaar */
    align-items: center;
    gap: 10px; /* Ruimte tussen de velden */
}

/* Formulier naast elkaar */
.header-container .login-bar .login-form {
    display: flex;
    align-items: center;
    gap: 10px; /* Ruimte tussen velden */
    justify-content: center; /* Zorgt dat de velden horizontaal gecentreerd zijn */
}

/* Inputvelden */
.header-container .login-bar input[type="text"],
.header-container .login-bar input[type="password"] {
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: white;
    font-size: 14px;
    width: 200px; /* Uniforme breedte voor de velden */
}

/* Checkbox label */
.header-container .login-bar label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #aaa;
    gap: 5px;
}

/* Knoppen */
.header-container .login-bar button,
.header-container .login-bar a {
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #f05454;
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border: none; /* Verwijdert standaard randen bij knoppen */
}

/* Hover-effect voor knoppen */
.header-container .login-bar button:hover,
.header-container .login-bar a:hover {
    background-color: #e53935;
}

/* Voor ingelogde gebruikers */
.header-container .login-bar .logged-in {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center; /* Centreer de inhoud voor ingelogde gebruikers */
}

/* Styling voor de mobiele knoppencontainer */
.header-container .mobile-buttons {
    display: none; /* Verberg standaard de mobiele knoppen op desktop */
}

/* Styling voor knoppen in de loginbar */
.header-container .btn-login-mobile,
.header-container .btn-register-mobile {
    display: inline-block; /* Zorgt dat de knoppen zichtbaar zijn */
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #f05454;
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    flex: 0 1 auto; /* Knoppen nemen alleen ruimte in voor hun inhoud */
    width: auto;
    max-width: 45%; /* Beperk de breedte van de knoppen */
    box-sizing: border-box;
}

/* Hover-effect voor knoppen */
.header-container .btn-login-mobile:hover,
.header-container .btn-register-mobile:hover {
    background-color: #e53935;
}

/* Responsief ontwerp */
@media (max-width: 768px) {
    .header-container .login-bar .login-form {
        display: none; /* Verberg het desktop loginformulier */
    }

    .header-container .mobile-buttons {
        display: flex; /* Toon de mobiele knoppen */
        flex-direction: row; /* Plaats de knoppen naast elkaar */
        justify-content: center; /* Centreer de knoppen horizontaal */
        gap: 10px; /* Ruimte tussen de knoppen */
        width: 100%; /* Zorg voor volledige breedte */
    }

    .header-container .login-bar {
        justify-content: center; /* Centreer de gehele loginbar */
        gap: 10px; /* Voeg ruimte toe tussen mobiele knoppen */
    }
}

/* Algemeen voor de login-sectie */
.login-section {
    max-width: 400px;
    margin: 50px auto; /* Centreer op de pagina */
    padding: 20px;
    background-color: #2a2a2a; /* Donkere achtergrond passend bij het thema */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #dcdcdc;
    text-align: center;
}

.login-section h2 {
    color: #f05454; /* Rode accentkleur */
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f05454; /* Divider onder de header */
    padding-bottom: 10px;
}

.login-section form {
    display: flex;
    flex-direction: column; /* Zet de velden onder elkaar */
    gap: 15px; /* Ruimte tussen de velden */
}

.login-section label {
    font-size: 1rem;
    color: #dcdcdc; /* Lichtgrijze tekstkleur */
    text-align: left; /* Links uitlijnen van labels */
}

.login-section input[type="text"],
.login-section input[type="password"] {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #444; /* Grijze rand passend bij het thema */
    border-radius: 5px;
    background-color: #2a2a2a; /* Donkere achtergrond */
    color: #dcdcdc; /* Tekstkleur */
    width: 80%; /* Laat de invoervelden de volledige breedte nemen */
}

.login-section input[type="checkbox"] {
    accent-color: #f05454; /* Rode checkbox-kleur */
}

.login-section button {
    padding: 10px 15px;
    font-size: 1rem;
    background-color: #f05454;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-section button:hover {
    background-color: #e53935; /* Lichtere rode kleur bij hover */
}

.login-section .error-message {
    background-color: #f05454;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.login-section a {
    color: #f05454;
    text-decoration: none;
    font-weight: bold;
}

.login-section a:hover {
    text-decoration: underline;
}

/* Responsieve ontwerp voor mobiele apparaten */
@media (max-width: 768px) {
    .login-section {
        padding: 15px;
        margin: 20px auto;
    }

    .login-section h2 {
        font-size: 1.5rem;
    }

    .login-section button {
        font-size: 0.9rem;
        padding: 10px;
    }
}

.bbcode-list {
    margin-bottom: 0;
}
```
