/* =========================
   NIEUWS — homepage
   ========================= */

/* --- Homepage nieuwsblok --- */
.home-news{
  margin-top:18px;
}

.home-news.wrapper{
  padding-top:34px;
  padding-bottom:36px;
}

.home-news__head{
  margin-bottom:18px;
}

@media (max-width: 640px){
  body.page--home .home-news__head .h-underline{
    font-size:24px;
  }
}

.home-news__footer{
  display:flex;
  justify-content:center;
  margin-top:22px;
}

.home-news__more-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:200px;
  text-decoration:none;
}

.home-news__grid--editorial{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(12, minmax(0, 1fr));
}

.home-news__card{
  grid-column:span 4;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.28));
  overflow:hidden;
  transition:transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
  position:relative;
}

.home-news__card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:linear-gradient(180deg, #f97b0a, #1a8fb8);
  opacity:.95;
  z-index:1;
}

.home-news__card:hover{
  transform:translateY(-2px);
  border-color:rgba(160,110,255,.28);
  background:linear-gradient(180deg, rgba(18,18,26,.88), rgba(12,12,18,.72));
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

.home-news__card:hover::after{
  color:#ff9a32;
}

.home-news__card--featured{
  grid-column:span 8;
}

.home-news__media{
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:rgba(0,0,0,.4);
  position:relative;
}

.home-news__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.home-news__content{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px 14px 14px 18px;
}

.home-news__kermis{
  font-size:11.5px;
  color:#c9c9dc;
  opacity:.95;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.home-news__title{
  font-weight:900;
  color:#fff;
  font-size:18px;
  line-height:1.18;
}

.home-news__card--featured .home-news__title{
  font-size:clamp(30px, 3.5vw, 40px);
  line-height:1.06;
}

.home-news__meta{
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  color:rgba(255,255,255,.84);
}

.home-news__excerpt{
  font-size:13px;
  line-height:1.5;
  color:#ececff;
  opacity:.92;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.home-news__card::after{
  content:"Lees meer →";
  margin-top:auto;
  font-size:13px;
  font-weight:900;
  letter-spacing:.01em;
  color:#f97b0a;
  opacity:1;
  padding:4px 14px 14px 18px;
  text-align:right;
}

/* Foto-credits op card-media — bewust subtiel (artikelpagina heeft duidelijkere stijl) */
.news-photo-credit{
  font-size:9px;
  line-height:1.25;
  color:rgba(255,255,255,.78);
}

.news-photo-credit a{
  color:rgba(255,255,255,.94);
  text-decoration:underline;
}

.news-photo-credit--overlay{
  position:absolute;
  right:6px;
  bottom:6px;
  z-index:2;
  padding:2px 6px;
  border-radius:6px;
  background:rgba(0,0,0,.28);
  backdrop-filter:blur(1px);
  font-size:8px;
  font-weight:500;
  letter-spacing:.015em;
}

/* --- Responsive (home) --- */
@media (max-width: 1099px){
  .home-news__card,
  .home-news__card--featured{
    grid-column:span 6;
  }
}

@media (max-width: 700px){
  .home-news__card,
  .home-news__card--featured{
    grid-column:1 / -1;
  }

  /* Max 3 nieuwskaarten op mobiel */
  .home-news__grid--editorial:not(.home-news__grid--with-wire) > .home-news__card:nth-child(n+4){
    display:none;
  }
  /* Met wire (c1,c2,wire,c3…): 4e kaart is 5e kind */
  .home-news__grid--with-wire > .home-news__card:nth-child(n+5){
    display:none;
  }

  /* Wire tussen 1e en 2e editorial-item */
  .home-news__grid--with-wire > .home-news__card:first-child{
    order:1;
  }
  .home-news__grid--with-wire > .home-news-wire--in-grid{
    order:2;
  }
  .home-news__grid--with-wire > .home-news__card:nth-child(2){
    order:3;
  }
  .home-news__grid--with-wire > .home-news__card:nth-child(n+4){
    order:4;
  }

  .home-news__footer{
    margin-top:18px;
  }

  .home-news__more-btn{
    width:100%;
    max-width:320px;
  }
}

@media (max-width: 600px){
  .home-news.wrapper{
    padding-left:20px;
    padding-right:20px;
  }
}

/* --- home-news-wire (from Kermis) --- */
.home-news-wire{
  margin-top:0;
  padding:0;
  border-top:none;
}
.home-news-wire--in-grid{
  grid-column:1 / -1;
  margin:4px 0;
  padding:18px 16px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.28));
}
.home-news-wire--solo{
  margin-top:0;
  padding:18px 16px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.28));
}
.home-news-wire__title{
  margin:0 0 14px;
  font-size:clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight:900;
  line-height:1.15;
  letter-spacing:.01em;
  color:#fff;
}
.home-news-wire__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.home-news-wire__item{
  margin:0;
}
.home-news-wire__link{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:rgba(255,255,255,.92);
  padding:14px 14px 14px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.28));
  box-shadow:inset 3px 0 0 0 #f97b0a;
  transition:transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.home-news-wire__link:hover{
  transform:translateY(-1px);
  border-color:rgba(160,110,255,.28);
  background:linear-gradient(180deg, rgba(18,18,26,.88), rgba(12,12,18,.72));
  box-shadow:
    inset 3px 0 0 0 #ff9a32,
    0 10px 24px rgba(0,0,0,.35);
}
.home-news-wire__link:hover .home-news-wire__headline{
  color:#ffb07a;
}
.home-news-wire__link:hover .home-news-wire__chev{
  color:#ff9a32;
  transform:translateX(2px);
}
.home-news-wire__body{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.home-news-wire__headline{
  font-weight:800;
  font-size:1.02rem;
  line-height:1.35;
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.home-news-wire__flag{
  width:18px;
  height:12px;
  object-fit:cover;
  border-radius:2px;
  flex:0 0 auto;
  box-shadow:0 0 0 1px rgba(0,0,0,.15);
}
.home-news-wire__date{
  font-size:.82rem;
  font-weight:600;
  color:rgba(255,255,255,.55);
}
.home-news-wire__chev{
  flex:0 0 auto;
  font-size:1.35rem;
  font-weight:700;
  line-height:1;
  color:rgba(255,176,114,.75);
  transition:transform .14s ease, color .14s ease;
}
.home-news-wire__cta-slot{
  display:flex;
  justify-content:center;
  margin:14px 0 2px;
  padding:0;
}
.home-news-wire__cta{
  min-width:min(100%, 300px);
  justify-content:center;
  text-decoration:none;
  font-weight:800;
}

@media (max-width: 600px){
  .home-news.wrapper{
    padding-left:20px;
    padding-right:20px;
  }
  .home-news-wire--in-grid,
  .home-news-wire--solo{
    padding:14px 12px 12px;
  }
  .home-news-wire__link{
    padding:12px 12px 12px 14px;
  }
  .home-news-wire__headline{
    font-size:.98rem;
  }
  .home-news-wire__cta{
    width:100%;
    max-width:320px;
  }
}
