:root {
  --avior-blue: white;
  --avior-blue-2: #1769c2;
  --avior-light: #edf5fc;
  --avior-border: #dfe8f1;
  --text: #102a43;
  --muted: #6d8095;
  --white: #123b68;
  --page: #f5f8fb;
  --radius: 16px;
  --shadow: 0 5px 20px rgba(18, 59, 104, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button { font: inherit; }

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--page);
}

.site-header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color:#1c488a;
  margin-bottom:5px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
}

.brand-mark img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
  margin-left:4px;
}

.brand strong {
  display: block;
  color: var(--avior-blue);
  font-size: 27px;
  letter-spacing: -.04em;
}

.brand small {
  display: block;
  color: #7790a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button,
.profile-button {
  border: 0;
  background: transparent;
  color: var(--avior-blue);
  cursor: pointer;
}

.icon-button {
  position: relative;
  font-size: 25px;
}

.notification span {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: #e94b4b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--avior-blue);
  color: #1769c2;
  font-weight: 700;
}

.profile-name { font-weight: 650; }
.chevron { color: var(--muted); }

/* Desktop quick navigation */

.quick-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.quick-nav-item {
  min-height: 82px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--avior-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(18,59,104,.025);
  color: var(--avior-blue-2);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  transition: .18s ease;
}

.quick-nav-item span { font-size: 21px; }

.quick-nav-item:hover,
.quick-nav-item.active {
  background: var(--avior-light);
  border-color: #cfe3f8;
  transform: translateY(-1px);
}

/* Main */

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 4px 13px;
}

.section-heading h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: .025em;
}

.section-heading a {
  color: var(--avior-blue-2);
  font-size: 14px;
  font-weight: 650;
}

.news-list {
  display: grid;
  gap: 10px;
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr 20px;
  gap: 16px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--avior-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: .18s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 25px rgba(18,59,104,.10);
}

.news-card img {
  width: 132px;
  height: 96px;
  object-fit: cover;
  border-radius: 11px;
}

.news-copy time {
  color: var(--muted);
  font-size: 12px;
}

.news-copy h2 {
  margin: 2px 0 3px;
  font-size: 16px;
  line-height: 1.25;
}

.news-copy p {
  margin: 0;
  color: #61758b;
  font-size: 13px;
  line-height: 1.4;
}

.news-arrow {
  color: var(--avior-blue);
  font-size: 27px;
}

/* =========================================================
   NIEUWSARTIKEL
   ========================================================= */

.article-page {
    padding: 42px 24px 100px;
}

.article {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

/* Terug naar nieuws */

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 28px;

    color: var(--avior-blue-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.article-back:hover {
    text-decoration: underline;
}


/* Datum / categorie */

.article-meta {
    margin-bottom: 12px;

    color: #718096;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* Titel */

.article h1 {
    margin: 0;

    color: var(--avior-blue-2);

    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -.02em;
}


/* Intro */

.article-intro {
    margin: 18px 0 32px;

    color: #64748b;

    font-size: 20px;
    line-height: 1.55;
}


/* Afbeelding */

.article-image {
    margin: 0 0 38px;

    overflow: hidden;
    border-radius: 16px;
}

.article-image img {
    display: block;

    width: 100%;
    height: auto;
}


/* Tekst */

.article-body {
    color: #263d52;

    font-size: 17px;
    line-height: 1.8;
}

.article-body p {
    margin: 0 0 1.4em;
}

.article-body h2 {
    margin: 2.2em 0 .7em;

    color: var(--avior-blue-2);

    font-size: 25px;
    line-height: 1.25;
}

.article-body h3 {
    margin: 2em 0 .6em;

    color: var(--avior-blue-2);

    font-size: 20px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.article-body li {
    margin-bottom: .5em;
}


/* Vorig / volgend artikel */

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    margin-top: 60px;
    padding-top: 28px;

    border-top: 1px solid #dce3e9;
}

.article-navigation a {
    display: flex;
    flex-direction: column;

    padding: 18px;

    background: #f5f8fa;
    border-radius: 12px;

    color: var(--avior-blue-2);
    text-decoration: none;

    transition: transform .15s ease,
                background .15s ease;
}

.article-navigation a:hover {
    background: #edf3f7;
    transform: translateY(-2px);
}

.article-navigation small {
    margin-bottom: 5px;

    color: #718096;
    font-size: 12px;
    font-weight: 700;
}

.article-navigation strong {
    font-size: 15px;
    line-height: 1.35;
}

.article-prev {
    align-items: flex-start;
}

.article-next {
    align-items: flex-end;
    text-align: right;
}


/* Sidebar */

.sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.welcome-card,
.account-card,
.quote-card {
  background: #fff;
  border: 1px solid var(--avior-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.welcome-card {
  padding: 25px;
  background: linear-gradient(135deg, #e9f4ff, #fff);
}

.eyebrow {
  color: var(--avior-blue-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.welcome-card h2 {
  margin: 9px 0 7px;
  font-size: 24px;
  line-height: 1.15;
}

.welcome-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.account-card { overflow: hidden; }

.card-heading {
  padding: 18px 20px 9px;
}

.card-heading h2 {
  margin: 0;
  font-size: 18px;
}

.account-card a {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #edf1f5;
  color: #486079;
  font-size: 14px;
}

.account-card a:hover { background: #f8fbfe; }

.quote-card {
  min-height: 210px;
  padding: 28px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(235,245,253,.15), rgba(235,245,253,.9)),
    url("https://images.unsplash.com/photo-1552667466-07770ae110d0?auto=format&fit=crop&w=700&q=80") center/cover;
}

.quote-card strong {
  color: var(--avior-blue);
  font-size: 22px;
  line-height: 1.15;
}

/* Footer */

.footer {
  margin: 26px 0 20px;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7d8fa2;
  font-size: 11px;
}

.footer strong { color: var(--avior-blue); }
.footer div { margin-left: auto; display: flex; gap: 18px; }

/* Mobile navigation */

.mobile-nav { display: none; }

/* Tablet */

@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar {
    grid-template-columns: 1fr 1fr;
  }
  .quote-card { display: none; }
}

/* Phone */

@media (max-width: 680px) {
  body {
    padding-bottom: 74px;
  }

  .app-shell {
    width: 100%;
    padding: 0 14px;
  }

  .site-header {
    min-height: 82px;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
    border: 0;
  }

  .brand-mark img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
  }

  .brand strong { font-size: 21px; }
  .brand small { font-size: 8px; }
  .profile-name,
  .chevron { display: none; }

  .header-actions { gap: 8px; }

  .quick-nav { display: none; }

  .main-grid { display: block; }

  .section-heading {
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .section-heading h1 { font-size: 21px; }

  .section-heading a {
    font-size: 12px;
    white-space: nowrap;
  }

  .news-list { gap: 8px; }

  .news-card {
    grid-template-columns: 82px 1fr 12px;
    gap: 11px;
    padding: 8px;
    border-radius: 13px;
  }

  .news-card img {
    width: 82px;
    height: 72px;
    border-radius: 9px;
  }

  .news-copy time { font-size: 10px; }

  .news-copy h2 {
    font-size: 13px;
    margin: 2px 0;
  }

  .news-copy p {
    display: none;
  }

  .news-arrow { font-size: 22px; }

  .sidebar {
    margin-top: 14px;
    display: block;
  }

  .welcome-card,
  .account-card,
  .quote-card {
    display: none;
  }

  .footer {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 2000;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--avior-border);
    box-shadow: 0 -5px 20px rgba(18,59,104,.08);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #718398;
    font-size: 21px;
  }

  .mobile-nav small {
    font-size: 10px;
    font-weight: 650;
  }

  .mobile-nav .selected {
    color: var(--avior-blue-2);
  }

  .mobile-nav .selected span {
    font-weight: 800;
  }
}


/* Popup menus */

.popup-wrap {
  position: relative;
}

.profile-button {
  position: relative;
  z-index: 102;
}

.popup-menu {
  position: absolute;
  z-index: 101;
  top: calc(100% + 10px);
  right: 0;
  width: 265px;
  padding: 8px;
  display: none;
  background: #fff;
  border: 1px solid var(--avior-border);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(18, 59, 104, .16);
}

.popup-menu.is-open {
  display: block;
  animation: popup-in .14s ease-out;
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.popup-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 13px;
}

.popup-user strong,
.popup-user small {
  display: block;
}

.popup-user strong { font-size: 14px; }
.popup-user small { color: var(--muted); font-size: 11px; margin-top: 2px; }

.popup-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 9px;
  color: #486079;
  font-size: 13px;
}

.popup-menu a:hover {
  background: var(--avior-light);
  color: var(--avior-blue);
}

.popup-divider {
  height: 1px;
  margin: 7px 4px;
  background: #edf1f5;
}

.notification-menu {
  top: 52px;
  right: 58px;
  width: 310px;
}

.notification-menu .popup-title {
  padding: 9px 10px 8px;
  color: var(--avior-blue);
  font-size: 15px;
  font-weight: 750;
}

.notification-menu a {
  display: grid;
  grid-template-columns: 7px 1fr;
  column-gap: 9px;
  align-items: start;
  min-height: 52px;
  padding: 9px 10px;
}

.notification-menu a small {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.notification-menu .dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--avior-blue-2);
}

.notification-menu .popup-link {
  display: block;
  min-height: auto;
  padding: 8px 10px;
  color: var(--avior-blue-2);
  font-weight: 650;
}

/* Mobile bottom-sheet */

.mobile-more-button {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #718398;
  font-size: 21px;
  cursor: pointer;
}

.mobile-more-button small {
  font-size: 10px;
  font-weight: 650;
}

.mobile-more-button[aria-expanded="true"] {
  color: var(--avior-blue-2);
}

.mobile-more-overlay,
.mobile-more-menu {
  display: none;
}

@media (max-width: 680px) {
  .notification-menu {
    position: fixed;
    z-index: 120;
    top: 72px;
    left: 14px;
    right: 14px;
    width: auto;
  }

  .profile-menu {
    position: fixed;
    z-index: 120;
    top: 72px;
    right: 14px;
    width: min(265px, calc(100vw - 28px));
  }

  .mobile-more-overlay {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: block;
    background: rgba(16, 42, 67, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .mobile-more-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-more-menu {
    position: fixed;
    z-index: 201;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 9px 16px calc(82px + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -15px 40px rgba(18, 59, 104, .18);
    transform: translateY(105%);
    transition: transform .23s ease;
  }

  .mobile-more-menu.is-open {
    transform: translateY(0);
  }

  .mobile-sheet-handle {
    width: 38px;
    height: 4px;
    margin: 2px auto 9px;
    border-radius: 99px;
    background: #d7e0e9;
  }

  .mobile-sheet-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 9px;
  }

  .mobile-sheet-heading strong {
    font-size: 20px;
    color: var(--avior-blue);
  }

  .mobile-sheet-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f8;
    color: var(--avior-blue);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-more-menu > a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 47px;
    padding: 0 8px;
    border-radius: 10px;
    color: #486079;
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-more-menu > a:hover {
    background: var(--avior-light);
  }

  .mobile-more-menu > a > span {
    width: 28px;
    color: var(--avior-blue-2);
    text-align: center;
    font-size: 20px;
  }

  .mobile-sheet-divider {
    height: 1px;
    margin: 6px 8px;
    background: #edf1f5;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 680px) {

    .article-page {
        padding: 24px 18px 100px;
    }

    .article {
        max-width: none;
    }

    .article-back {
        margin-bottom: 22px;
        font-size: 14px;
    }

    .article-meta {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .article h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .article-intro {
        margin: 14px 0 25px;

        font-size: 17px;
        line-height: 1.5;
    }

    .article-image {
        margin-bottom: 28px;
        border-radius: 12px;
    }

    .article-body {
        font-size: 16px;
        line-height: 1.75;
    }

    .article-body h2 {
        margin-top: 1.9em;
        font-size: 22px;
    }

    .article-body h3 {
        font-size: 19px;
    }

    .article-navigation {
        grid-template-columns: 1fr 1fr;
        gap: 10px;

        margin-top: 45px;
    }

    .article-navigation a {
        padding: 14px 12px;
    }

    .article-prev {
        align-items: flex-start;
    }

    .article-next {
        align-items: flex-end;
        text-align: right;
    }

}