/* ===== Base ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f6fa;
  color: #222;
  line-height: 1.6;
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, #004d7a, #008793);
  color: white;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  position: static;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

nav a, .dropbtn {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
  font-size: 15px;
}

nav a:hover, .dropbtn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ===== Dropdown ===== */
.dropdown {
  position: relative;
}

.dropbtn {
  background: transparent;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 999;
}

.dropdown-content a {
  color: #004d7a;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== Search ===== */
#search {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border 0.3s, box-shadow 0.3s;
  font-size: 14px;
}

#search:focus {
  outline: none;
  border: 1px solid #008793;
  box-shadow: 0 0 5px rgba(0, 135, 147, 0.4);
}

/* ===== Articles Grid ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  padding: 40px 30px;
  max-width: 1600px;
  margin: 0 auto;
}

/* ===== Article Cards ===== */
.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dde5ec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: #008793;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.article-card h3 {
  font-size: 18px;
  color: #004d7a;
  margin: 0 0 10px;
  line-height: 1.4;
}

.article-card p {
  font-size: 14px;
  color: #555;
  margin: 0 0 12px;
  white-space: pre-wrap; /* 🟢 behoudt line breaks */
}

/* ===== Load More Button ===== */
.lolbutton {
  display: block;
  margin: 30px auto 50px;
  padding: 14px 24px;
  font-size: 15px;
  background: #005789;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.lolbutton:hover {
  background: #003f63;
  transform: translateY(-2px);
}

/* ===== No Results Message ===== */
#no-results {
  text-align: center;
  font-size: 16px;
  color: #777;
  margin: 40px 0;
  display: none;
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, #004d7a, #008793);
  color: white;
  text-align: center;
  padding: 18px 30px;
  font-size: 14px;
  margin-top: 60px;
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.15);
}

/* ===== Responsive ===== */
@media (max-width: 1400px) { .articles-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { 
  header { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav { flex-direction: column; align-items: flex-start; gap: 8px; }
  #search { width: 100%; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) { .articles-grid { grid-template-columns: 1fr; } }

/* ===== Alle <a> in artikel cards + body behouden normale links (header uitgesloten) ===== */
.article-card a {
  color: #008793;
  text-decoration: none;
}

.article-card a:hover {
  text-decoration: underline;
  color: #004d7a;
}
/* =========================
   DARK MODE (GDN STYLE)
   ========================= */
body.dark {
  background: #23364e;
  color: #e6eaf0;
}

/* Header */
body.dark header {
  background: linear-gradient(135deg, #022c43, #035e6e);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

/* Nav links */
body.dark nav a,
body.dark .dropbtn {
  color: #e6eaf0;
}

body.dark nav a:hover,
body.dark .dropbtn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Dropdown */
body.dark .dropdown-content {
  background: #253246;
}

body.dark .dropdown-content a {
  color: #8fd6ff;
}

body.dark .dropdown-content a:hover {
  background: #2b3c54;
}

/* Search */
body.dark #search {
  background: #1b2637;
  color: #e6eaf0;
  border: 1px solid #2a3442;
}

/* Articles */
body.dark .article-card {
  background: #223c63;
  border: 1px solid #2a3442;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

body.dark .article-card:hover {
  border-color: #4da3ff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.7);
}

body.dark .article-card h3 {
  color: #8fd6ff;
}

body.dark .article-card p {
  color: #c8d0dc;
}

body.dark .article-card img {
  border-bottom: 1px solid #2a3442;
}

/* Article links */
body.dark .article-card a {
  color: #4da3ff;
}

body.dark .article-card a:hover {
  color: #8fd6ff;
}

/* Buttons */
body.dark .lolbutton {
  background: #035e6e;
}

body.dark .lolbutton:hover {
  background: #024554;
}

/* Footer */
body.dark footer {
  background: linear-gradient(135deg, #022c43, #035e6e);
}

/* Cookie banner stays dark-friendly */
body.dark .cookie-banner {
  background: #1e2e46;
  border: 1px solid #2a3442;
}

body.dark a:visited:not(.header) {
  color: #2c6ca4;
}

body.dark a:not(.header) {
  color: #38A2FF;
}


