/* ── Header / navbar ───────────────────────────────── */
:root {
  --cassiopeia-color-primary: #1e2057;
  --cassiopeia-color-link:    #5bc4f5;
}
header.header,
.container-header {
  background: #1e2057 !important;
  background-image: none !important;
}

/* ── Navigatielinks ────────────────────────────────── */
.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #5bc4f5 !important;
}

/* ── Knoppen ────────────────────────────────────────── */
.btn-primary {
  background-color: #1e2057 !important;
  border-color: #1e2057 !important;
}
.btn-primary:hover {
  background-color: #5bc4f5 !important;
  border-color: #5bc4f5 !important;
}

/* ── Header: logo en menu op één regel (Variant A) ── */
@media (min-width: 768px) {
  header.header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 0.5rem 1.5rem;
  }

  header.header .grid-child {
    display: flex;
    align-items: center;
  }

  header.header .navbar-brand {
    flex-shrink: 0;
  }

  header.header .container-nav {
    flex-grow: 1;
    justify-content: flex-end;
  }

  .navbar-brand img {
    max-height: 70px;
    width: auto;
    height: auto;
  }
}

/* Logo op mobiel iets kleiner houden */
@media (max-width: 767px) {
  .navbar-brand img {
    max-height: 58px;
    width: auto;
    height: auto;
  }
}

/* ── Content area: zachtere achtergrond ── */
body {
  background-color: #e4e9f2;
}

.site-grid,
main,
.container-main {
  background-color: #e4e9f2;
}

/* ── Breadcrumb subtieler maken ── */
.breadcrumb,
nav[aria-label="Breadcrumbs"] {
  background-color: transparent;
  font-size: 0.85rem;
  color: #6b7280;
  padding: 0.5rem 1.5rem;
}

/* ── Breadcrumb verbergen op de homepage ── */
.itemid-101 nav[aria-label="Breadcrumbs"],
.itemid-101 .breadcrumb {
  display: none;
}

/* ── Nieuws sectie — homepage kaarten ───────────────────── */
.main-top.card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 2rem;
}
.main-top .card-body {
  padding: 0;
}
.main-top .card-header {
  background: transparent;
  border-bottom: 3px solid #1e2057;
  padding: 0 0 0.5rem 0;
  margin-bottom: 1.25rem;
}
.main-top .card-header h3,
.main-top .module-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e2057;
  margin: 0;
}
.mod-articles-items.grid-cols-3 {
  gap: 1.25rem !important;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mod-articles-items.grid-cols-3 > li {
  display: flex;
}
.mod-articles-item {
  background: #ffffff;
  border: 1px solid #d0d8e8;
  border-radius: 8px;
  padding: 1.25rem;
  width: 100%;
  box-shadow: 0 2px 6px rgba(30, 32, 87, 0.07);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.mod-articles-item:hover {
  box-shadow: 0 4px 16px rgba(30, 32, 87, 0.15);
  border-color: #5bc4f5;
}
.mod-articles-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.6rem;
}
.mod-articles-link {
  color: #1e2057;
  text-decoration: none;
}
.mod-articles-link:hover {
  color: #5bc4f5;
  text-decoration: none;
}
.mod-articles-item-content > p {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.55;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mod-articles-link::after {
  content: " →";
  color: #5bc4f5;
  font-size: 0.85rem;
  font-weight: 400;
}
.view-featured .page-header {
  display: none;
}

/* ── Agenda sectie — datum links van titel ───────────────── */
.mod-articles-items:not(.grid-cols-3) .mod-articles-item-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}
.mod-articles-items:not(.grid-cols-3) .mod-articles-title {
  flex: 1;
  margin: 0;
}
.mod-articles-items:not(.grid-cols-3) dl.list-unstyled {
  order: -1;
  white-space: nowrap;
  margin: 0;
  width: 150px;
  flex-shrink: 0;
}
.mod-articles-items:not(.grid-cols-3) dt { display: none; }
.mod-articles-items:not(.grid-cols-3) dd.mod-articles-date {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e2057;
  margin: 0;
}

/* ── Sponsorenbalk ───────────────────────────────────────── */
.main-bottom.card {
  background: transparent;
  border: none;
  box-shadow: none;
}
.main-bottom .card-body {
  padding: 0;
}
.sponsor-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1rem;
  border-top: 3px solid #1e2057;
  margin: 0;
}
.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 60px;
}
.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
}
.sponsor-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── Artikelpagina ───────────────────────────────────────── */
.view-article .page-header h1 { display: none; }
.view-article .main-top,
.view-article .main-bottom { display: none; }
.view-article .article-info,
.view-article dl.article-info,
.view-article .article-footer { display: none; }
.view-article .com-content-article {
  max-width: 820px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.view-article .com-content-article__body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #222;
}
.view-article h1.com-content-article__title,
.view-article h2.com-content-article__title {
  font-size: 1.75rem;
  color: #1e2057;
  margin-bottom: 1.25rem;
  border-bottom: 3px solid #1e2057;
  padding-bottom: 0.5rem;
}

/* ── Downloads pagina ───────────────────────────────────────── */
#phoca-dl-most-viewed-box { display: none; }

/* ── Nieuws module — verberg dubbele afbeelding ──────────────── */
.mod-articles-item figure:not(.mod-articles-image) { display: none; }

/* ── Footer ──────────────────────────────────────────────── */
footer.container-footer {
  background: #1e2057 !important;
}
footer.container-footer .grid-child,
footer.container-footer .mod-custom {
  width: 100%;
}
.site-footer {
  width: 100%;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
}
.site-footer .footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.site-footer .footer-sep {
  opacity: 0.4;
}
.site-footer .footer-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.site-footer .footer-link:hover {
  color: #5bc4f5;
}
