/*
Theme Name: NVK Theme
Theme URI:
Author: Document Manager
Description: Modern WordPress theme inspired by nvk.nl design. Professional medical/organizational styling with gradient hero, card-based layouts, and full compatibility with the Document Manager plugin.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
Text Domain: nvk-theme
*/

/* ===========================================
   CSS CUSTOM PROPERTIES
   =========================================== */
:root {
    /* Colors */
    --nvk-primary: #0080c9;
    --nvk-secondary: #00a182;
    --nvk-tertiary: #522582;
    --nvk-accent: #c8057f;
    --nvk-black: #000;
    --nvk-white: #fff;
    --nvk-bg: #f2f2f2;
    --nvk-text: #333;
    --nvk-text-light: #666;
    --nvk-border: #e0e0e0;

    /* Transparencies */
    --nvk-white-10: rgba(255, 255, 255, 0.1);
    --nvk-white-20: rgba(255, 255, 255, 0.2);
    --nvk-white-60: rgba(255, 255, 255, 0.6);
    --nvk-white-70: rgba(255, 255, 255, 0.7);

    /* Typography */
    --nvk-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nvk-font-heading: 'Rubik', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --nvk-space-xs: 0.5rem;
    --nvk-space-s: 1rem;
    --nvk-space-m: 1.5rem;
    --nvk-space-l: 2.5rem;
    --nvk-space-xl: 4rem;

    /* Radius */
    --nvk-radius: 1.2rem;
    --nvk-radius-s: 0.6rem;
    --nvk-radius-circle: 50%;

    /* Shadows */
    --nvk-shadow-s: 0 2px 8px rgba(0, 0, 0, 0.08);
    --nvk-shadow-m: 0 4px 20px rgba(0, 0, 0, 0.1);
    --nvk-shadow-l: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Layout */
    --nvk-max-width: 1600px; /* gelijk aan .dm-frontend-wrapper zodat header/footer/content dezelfde breedte hebben */
    --nvk-header-height: 90px;
    --nvk-topbar-height: 40px;
}

/* ===========================================
   RESET & BASE
   =========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--nvk-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--nvk-text);
    background-color: var(--nvk-bg);
}

a {
    color: var(--nvk-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--nvk-tertiary);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nvk-font-heading);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--nvk-tertiary);
}

h1 { font-size: 2.565rem; font-weight: 500; }
h2 { font-size: 2rem; font-weight: 500; }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 600; }

/* ===========================================
   TOPBAR
   =========================================== */
.nvk-topbar {
    background: var(--nvk-tertiary);
    color: var(--nvk-white);
    height: var(--nvk-topbar-height);
    display: flex;
    align-items: center;
    font-size: 14px;
}

.nvk-topbar .nvk-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nvk-topbar-left {
    display: flex;
    align-items: center;
    gap: var(--nvk-space-s);
}

.nvk-topbar-right {
    display: flex;
    align-items: center;
    gap: var(--nvk-space-m);
}

.nvk-topbar a {
    color: var(--nvk-white-70);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 13px;
}

.nvk-topbar a:hover {
    color: var(--nvk-white);
}

.nvk-topbar-separator {
    color: var(--nvk-white-20);
}

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */
.nvk-header {
    background: var(--nvk-white);
    box-shadow: var(--nvk-shadow-s);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--nvk-primary);
}

.nvk-header-inner {
    display: flex;
    align-items: center;
    height: var(--nvk-header-height);
    gap: var(--nvk-space-m);
}

.nvk-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--nvk-space-s);
    text-decoration: none;
    color: var(--nvk-tertiary);
    font-family: var(--nvk-font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.nvk-logo img {
    display: block;
    height: 48px;
    width: auto;
    margin: 0;
}

/* Wide horizontal SVG wordmark — viewBox includes descender of "g" */
.nvk-logo .nvk-logo-svg {
    height: 50px;
    max-width: 100%;
}

.nvk-logo-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--nvk-tertiary);
    border-left: 1px solid var(--nvk-border);
    padding-left: var(--nvk-space-s);
}


.nvk-logo-text small {
    display: block;
    font-size: 0.65em;
    font-weight: 400;
    color: var(--nvk-text-light);
}

/* Primary Navigation */
.nvk-nav {
    display: flex;
    align-items: center;
    margin-left: auto; /* logo flush-left, nav naar rechts */
}

.nvk-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.nvk-nav li {
    position: relative;
}

.nvk-nav a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    color: var(--nvk-text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    border-radius: var(--nvk-radius-s);
    white-space: nowrap;
}

.nvk-nav a:hover,
.nvk-nav .current-menu-item > a,
.nvk-nav .current_page_item > a {
    color: var(--nvk-primary);
    background: rgba(0, 128, 201, 0.06);
}

/* Dropdown */
.nvk-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nvk-white);
    box-shadow: var(--nvk-shadow-m);
    border-radius: 0 0 var(--nvk-radius-s) var(--nvk-radius-s);
    min-width: 240px;
    padding: 0.5rem 0;
    z-index: 100;
    flex-direction: column;
}

.nvk-nav li:hover > .sub-menu {
    display: flex;
}

.nvk-nav .sub-menu a {
    padding: 0.6rem 1.2rem;
    font-size: 14px;
    border-radius: 0;
}

.nvk-nav .sub-menu a:hover {
    background: rgba(0, 128, 201, 0.08);
}

/* Mobile toggle — strakke hamburger met X-animatie als 'ie open is */
.nvk-menu-toggle {
    display: none;
    position: relative;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #1f1b3a;
    border-radius: 8px;
    transition: background 0.18s ease;
}

.nvk-menu-toggle:hover,
.nvk-menu-toggle:focus-visible {
    background: rgba(91, 42, 134, 0.08);
    outline: none;
}

.nvk-menu-toggle span {
    display: block;
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
    margin: 0;
}

.nvk-menu-toggle span:nth-child(1) {
    top: 14px;
    transform: translateX(-50%);
}
.nvk-menu-toggle span:nth-child(2) {
    top: 21px;
    transform: translateX(-50%);
}
.nvk-menu-toggle span:nth-child(3) {
    top: 28px;
    transform: translateX(-50%);
}

/* Open state: hamburger → kruis */
.nvk-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}
.nvk-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nvk-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ===========================================
   CONTAINER
   =========================================== */
.nvk-container {
    max-width: var(--nvk-max-width);
    margin: 0 auto;
    padding: 0 var(--nvk-space-m);
}

/* ===========================================
   HERO SECTION
   =========================================== */
.nvk-hero {
    background: linear-gradient(135deg, var(--nvk-tertiary) 0%, var(--nvk-primary) 50%, var(--nvk-secondary) 100%);
    padding: var(--nvk-space-xl) 0;
    color: var(--nvk-white);
    position: relative;
    overflow: hidden;
}

.nvk-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--nvk-radius-circle);
}

.nvk-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.nvk-hero h1 {
    color: var(--nvk-white);
    font-size: 2.8rem;
    margin: 0 0 var(--nvk-space-s) 0;
    font-weight: 700;
}

.nvk-hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--nvk-white-70);
    margin: 0 0 var(--nvk-space-l) 0;
}

.nvk-hero .nvk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--nvk-white-20);
    color: var(--nvk-white);
    border: 1px solid var(--nvk-white-60);
    border-radius: var(--nvk-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nvk-hero .nvk-btn:hover {
    background: var(--nvk-white);
    color: var(--nvk-tertiary);
    border-color: var(--nvk-white);
}

/* ===========================================
   BUTTONS
   =========================================== */
.nvk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--nvk-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.nvk-btn-primary {
    background: var(--nvk-primary);
    color: var(--nvk-white);
}

.nvk-btn-primary:hover {
    background: #006ba3;
    color: var(--nvk-white);
    transform: translateY(-1px);
    box-shadow: var(--nvk-shadow-m);
}

.nvk-btn-accent {
    background: var(--nvk-accent);
    color: var(--nvk-white);
}

.nvk-btn-accent:hover {
    background: #a50466;
    color: var(--nvk-white);
    transform: translateY(-1px);
    box-shadow: var(--nvk-shadow-m);
}

.nvk-btn-outline {
    background: transparent;
    color: var(--nvk-primary);
    border: 2px solid var(--nvk-primary);
}

.nvk-btn-outline:hover {
    background: var(--nvk-primary);
    color: var(--nvk-white);
}

/* ===========================================
   CARDS
   =========================================== */
.nvk-card {
    background: var(--nvk-white);
    border-radius: var(--nvk-radius);
    overflow: hidden;
    box-shadow: var(--nvk-shadow-s);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.nvk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nvk-shadow-l);
}

.nvk-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.nvk-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.nvk-card:hover .nvk-card-image img {
    transform: scale(1.03);
}

.nvk-card-body {
    padding: var(--nvk-space-m);
}

.nvk-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nvk-accent);
    margin-bottom: 0.5rem;
}

.nvk-card-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--nvk-primary);
}

.nvk-card-title a {
    color: inherit;
    text-decoration: none;
}

.nvk-card-title a:hover {
    color: var(--nvk-tertiary);
}

.nvk-card-excerpt {
    font-size: 14px;
    color: var(--nvk-text-light);
    line-height: 1.6;
    margin-bottom: var(--nvk-space-s);
}

/* Werkboek-card meta: versie, datum, aantal hoofdstukken */
.nvk-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 13px;
    color: var(--nvk-text-light);
    margin-bottom: var(--nvk-space-s);
}

.nvk-card-meta-item {
    display: inline-flex;
    align-items: center;
}

.nvk-card-meta-item + .nvk-card-meta-item::before {
    content: '·';
    margin-right: 1rem;
    color: var(--nvk-border);
}

.nvk-card-werkboek .nvk-card-title {
    font-size: 1.3rem;
    color: var(--nvk-tertiary);
    line-height: 1.35;
}

.nvk-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--nvk-primary);
}

.nvk-card-link:hover {
    gap: 0.6rem;
    color: var(--nvk-tertiary);
}

/* Card Grid */
.nvk-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--nvk-space-m);
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */
.nvk-section {
    padding: var(--nvk-space-xl) 0;
}

.nvk-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--nvk-space-l);
}

.nvk-section-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--nvk-tertiary);
}

/* ===========================================
   CONTENT AREA
   =========================================== */
.nvk-content-area {
    display: flex;
    gap: var(--nvk-space-l);
    padding: var(--nvk-space-xl) 0;
}

.nvk-main-content {
    flex: 1;
    min-width: 0;
}

.nvk-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Article */
.nvk-article {
    background: var(--nvk-white);
    border-radius: var(--nvk-radius);
    padding: var(--nvk-space-l);
    box-shadow: var(--nvk-shadow-s);
    margin-bottom: var(--nvk-space-m);
}

.nvk-article-header {
    margin-bottom: var(--nvk-space-l);
    padding-bottom: var(--nvk-space-m);
    border-bottom: 2px solid var(--nvk-border);
}

.nvk-article-title {
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
}

.nvk-article-meta {
    font-size: 14px;
    color: var(--nvk-text-light);
    display: flex;
    align-items: center;
    gap: var(--nvk-space-s);
}

.nvk-article-content {
    font-size: 16px;
    line-height: 1.8;
}

.nvk-article-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nvk-border);
}

.nvk-article-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
}

.nvk-article-content p {
    margin: 1em 0;
}

.nvk-article-content ul,
.nvk-article-content ol {
    margin: 1em 0;
    padding-left: 2rem;
}

.nvk-article-content li {
    margin: 0.5em 0;
}

.nvk-article-content blockquote {
    border-left: 4px solid var(--nvk-primary);
    padding: var(--nvk-space-s) var(--nvk-space-m);
    margin: var(--nvk-space-m) 0;
    background: rgba(0, 128, 201, 0.04);
    border-radius: 0 var(--nvk-radius-s) var(--nvk-radius-s) 0;
    font-style: italic;
    color: var(--nvk-text-light);
}

.nvk-article-content img {
    border-radius: var(--nvk-radius-s);
    box-shadow: var(--nvk-shadow-s);
}

.nvk-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--nvk-space-s) 0;
    font-size: 0.95rem;
}

.nvk-article-content th {
    background: var(--nvk-bg);
    color: var(--nvk-tertiary);
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    line-height: 1.35;
    border-bottom: 2px solid var(--nvk-primary);
}

.nvk-article-content td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--nvk-border);
    line-height: 1.4;
}

.nvk-article-content tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* ===========================================
   SIDEBAR WIDGETS
   =========================================== */
.nvk-widget {
    background: var(--nvk-white);
    border-radius: var(--nvk-radius);
    padding: var(--nvk-space-m);
    box-shadow: var(--nvk-shadow-s);
    margin-bottom: var(--nvk-space-m);
}

.nvk-widget-title,
.nvk-sidebar .widget-title {
    font-family: var(--nvk-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nvk-tertiary);
    margin: 0 0 var(--nvk-space-s) 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--nvk-primary);
}

.nvk-sidebar .widget {
    background: var(--nvk-white);
    border-radius: var(--nvk-radius);
    padding: var(--nvk-space-m);
    box-shadow: var(--nvk-shadow-s);
    margin-bottom: var(--nvk-space-m);
}

.nvk-sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nvk-sidebar .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--nvk-border);
}

.nvk-sidebar .widget li:last-child {
    border-bottom: none;
}

.nvk-sidebar .widget a {
    color: var(--nvk-text);
    font-size: 14px;
}

.nvk-sidebar .widget a:hover {
    color: var(--nvk-primary);
}

/* ===========================================
   FOOTER
   =========================================== */
.nvk-footer {
    font-family: var(--nvk-font-body);
}

/* Footer main: NVK-blauwe band met contactblokken */
.nvk-footer-main {
    background: var(--nvk-primary);
    color: var(--nvk-white);
    padding: clamp(2.5rem, 4vw, 4.5rem) 0 clamp(2rem, 3.5vw, 3.5rem) 0;
}

.nvk-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

/* Partner-/lidmaatschapslogo's in de footer */
.nvk-footer-col--logo .nvk-footer-logo-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.25rem;
    padding: 0;
    background: transparent;
    border-radius: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nvk-footer-col--logo .nvk-footer-logo-link:hover,
.nvk-footer-col--logo .nvk-footer-logo-link:focus {
    opacity: 0.85;
    transform: translateY(-1px);
    outline: none;
    text-decoration: none;
}

.nvk-footer-logo-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 56px;
}

.nvk-footer-logo-image--thuisarts {
    max-height: 38px;
}

.nvk-footer-main h3 {
    color: var(--nvk-white);
    font-family: var(--nvk-font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.005em;
    margin: 0 0 1rem 0;
}

.nvk-footer-main p,
.nvk-footer-main a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
}

.nvk-footer-main a {
    text-decoration: none;
    transition: color 0.18s ease;
}

.nvk-footer-main a:hover,
.nvk-footer-main a:focus {
    color: var(--nvk-white);
    text-decoration: underline;
}

.nvk-footer-main ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nvk-footer-main li {
    padding: 0;
}

/* Social-icons (LinkedIn, Instagram) — outline circles */
.nvk-footer-social {
    flex-direction: row !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem;
}

.nvk-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--nvk-radius-circle);
    color: var(--nvk-white);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nvk-footer-social a:hover,
.nvk-footer-social a:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--nvk-white);
    transform: translateY(-2px);
    outline: none;
    text-decoration: none;
}

.nvk-footer-social svg {
    width: 20px;
    height: 20px;
}

/* Footer sub: WITTE band met disclaimer + legal links */
.nvk-footer-sub {
    background: var(--nvk-white);
    color: var(--nvk-text);
    padding: 1.5rem 0;
    border-top: 1px solid var(--nvk-border, #e5e7eb);
    font-size: 0.85rem;
}

.nvk-footer-sub-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.nvk-footer-sub-copy {
    margin: 0;
    color: var(--nvk-text-light, #555);
    line-height: 1.55;
    font-size: 0.85rem;
}

.nvk-footer-sub-legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.nvk-footer-sub-legal li {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nvk-footer-sub-legal li + li::before {
    content: "";
    position: absolute;
    left: -0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 0.85em;
    background: var(--nvk-border, #d1d5db);
}

.nvk-footer-sub-legal a {
    color: var(--nvk-text);
    text-decoration: none;
    transition: color 0.18s ease;
}

.nvk-footer-sub-legal a:hover,
.nvk-footer-sub-legal a:focus {
    color: var(--nvk-primary);
    text-decoration: underline;
}

.nvk-footer-sub-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--nvk-text-light, #555);
}

/* ===========================================
   PAGINATION
   =========================================== */
.nvk-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: var(--nvk-space-l) 0;
}

.nvk-pagination a,
.nvk-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: var(--nvk-radius-s);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.nvk-pagination a {
    background: var(--nvk-white);
    color: var(--nvk-text);
    box-shadow: var(--nvk-shadow-s);
    border: 1px solid var(--nvk-border);
}

.nvk-pagination a:hover {
    background: var(--nvk-white);
    color: var(--nvk-primary);
    border-color: var(--nvk-primary);
}

.nvk-pagination .current {
    background: var(--nvk-white);
    color: var(--nvk-primary);
    border: 1px solid var(--nvk-primary);
    font-weight: 600;
}

/* ===========================================
   BREADCRUMBS
   =========================================== */
.nvk-breadcrumbs {
    font-size: 14px;
    color: var(--nvk-text-light);
    padding: var(--nvk-space-s) 0;
}

.nvk-breadcrumbs a {
    color: var(--nvk-primary);
}

.nvk-breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #999;
}

/* ===========================================
   SEARCH FORM
   =========================================== */
.nvk-search-form {
    display: flex;
}

.nvk-search-form input[type="search"] {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--nvk-border);
    border-right: none;
    border-radius: var(--nvk-radius) 0 0 var(--nvk-radius);
    font-size: 14px;
    font-family: var(--nvk-font-body);
    outline: none;
    transition: border-color 0.2s;
}

.nvk-search-form input[type="search"]:focus {
    border-color: var(--nvk-primary);
}

.nvk-search-form button {
    padding: 0.6rem 1.2rem;
    background: var(--nvk-primary);
    color: var(--nvk-white);
    border: none;
    border-radius: 0 var(--nvk-radius) var(--nvk-radius) 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.nvk-search-form button:hover {
    background: #006ba3;
}

/* ===========================================
   404 PAGE
   =========================================== */
.nvk-404 {
    text-align: center;
    padding: var(--nvk-space-xl) 0;
}

.nvk-404-code {
    font-size: 8rem;
    font-weight: 900;
    font-family: var(--nvk-font-heading);
    background: linear-gradient(135deg, var(--nvk-tertiary), var(--nvk-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

.nvk-404 h1 {
    font-size: 2rem;
    margin: var(--nvk-space-s) 0;
}

.nvk-404 p {
    color: var(--nvk-text-light);
    max-width: 500px;
    margin: 0 auto var(--nvk-space-l) auto;
}

/* ===========================================
   WORDPRESS SPECIFIC
   =========================================== */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--nvk-text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

.alignleft {
    float: left;
    margin: 0 var(--nvk-space-m) var(--nvk-space-s) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--nvk-space-s) var(--nvk-space-m);
}

.aligncenter {
    display: block;
    margin: var(--nvk-space-s) auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* WordPress admin bar compatibility */
body.admin-bar .nvk-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nvk-header {
        top: 46px;
    }
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media screen and (max-width: 1180px) {
    .nvk-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        row-gap: 2.25rem;
    }

    /* Het laatste partner-logo (Volg ons) zakt netjes naar regel 2 */
    .nvk-footer-grid > .nvk-footer-col:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .nvk-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nvk-footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 2rem;
    }

    /* Volg ons (5e kolom) spant in 2-koloms-grid de volle breedte */
    .nvk-footer-grid > .nvk-footer-col:nth-child(5) {
        grid-column: 1 / -1;
    }

    .nvk-hero h1 {
        font-size: 2.2rem;
    }

    /* iPad-portrait en kleiner: hamburger ipv volle navigatie */
    .nvk-menu-toggle {
        display: inline-flex;
    }

    .nvk-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nvk-white);
        box-shadow: var(--nvk-shadow-m);
        padding: var(--nvk-space-s);
        border-top: 1px solid var(--nvk-border);
    }

    .nvk-nav.is-open {
        display: block;
    }

    .nvk-nav ul {
        flex-direction: column;
    }

    .nvk-nav li > a {
        padding: 0.85rem 1rem;
        min-height: 44px;
    }

    .nvk-nav .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: var(--nvk-space-m);
        display: none;
    }

    .nvk-nav li.is-open > .sub-menu {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --nvk-header-height: 60px;
    }

    /* Content layout */
    .nvk-content-area {
        flex-direction: column;
    }

    .nvk-sidebar {
        width: 100%;
    }

    .nvk-card-grid {
        grid-template-columns: 1fr;
    }

    .nvk-footer-grid {
        grid-template-columns: 1fr;
    }

    .nvk-hero {
        padding: var(--nvk-space-l) 0;
    }

    .nvk-hero h1 {
        font-size: 1.8rem;
    }

    .nvk-article {
        padding: var(--nvk-space-m);
    }

    .nvk-article-title {
        font-size: 1.55rem;
    }

    .nvk-footer-sub-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        align-items: center;
    }

    .nvk-footer-sub-legal {
        justify-content: center;
    }

    .nvk-topbar {
        display: none;
    }
}

/* ===========================================
   LIGHTBOX (werkboek-afbeeldingen)
   =========================================== */
img.nvk-lightbox-trigger {
    cursor: zoom-in;
    transition: opacity 0.15s ease;
}

img.nvk-lightbox-trigger:hover {
    opacity: 0.9;
}

.nvk-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000; /* hoger dan WP admin-bar (99999) en elke modal */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.nvk-lightbox.is-open {
    display: flex;
}

.nvk-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 0;
}

.nvk-lightbox-figure {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.nvk-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--nvk-radius-s);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.nvk-lightbox-caption {
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    max-width: 800px;
    line-height: 1.4;
}

.nvk-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 3;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.nvk-lightbox-close:hover,
.nvk-lightbox-close:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

/* ===========================================
   AI CHANGELOG PAGE
   =========================================== */
.nvk-hero-compact {
    padding: 3rem 0 2.5rem;
}

.nvk-hero-compact .nvk-hero-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.nvk-hero-compact .nvk-hero-content p {
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}

.nvk-hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--nvk-white-70);
    margin-bottom: 0.75rem;
}

.nvk-changelog-hero {
    background: linear-gradient(135deg, var(--nvk-tertiary) 0%, var(--nvk-primary) 60%, var(--nvk-secondary) 100%);
}

.nvk-changelog-content {
    max-width: 880px;
    margin: 0 auto;
}

.nvk-changelog-content > * + * {
    margin-top: 1rem;
}

/* Release entry card */
.nvk-changelog-release {
    background: var(--nvk-white);
    border: 1px solid var(--nvk-border);
    border-left: 4px solid var(--nvk-primary);
    border-radius: var(--nvk-radius-s);
    padding: 1.75rem 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--nvk-shadow-s);
}

.nvk-changelog-release + .nvk-changelog-release {
    margin-top: 1.25rem;
}

.nvk-changelog-release header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.nvk-changelog-release h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--nvk-tertiary);
}

.nvk-changelog-release time {
    font-size: 0.85rem;
    color: var(--nvk-text-light);
    font-weight: 500;
}

.nvk-changelog-release .nvk-changelog-tag {
    display: inline-block;
    background: rgba(0, 128, 201, 0.1);
    color: var(--nvk-primary);
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nvk-changelog-release .nvk-changelog-tag.is-new {
    background: rgba(0, 161, 130, 0.12);
    color: var(--nvk-secondary);
}

.nvk-changelog-release .nvk-changelog-tag.is-fix {
    background: rgba(200, 5, 127, 0.12);
    color: var(--nvk-accent);
}

.nvk-changelog-release ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.nvk-changelog-release ul li {
    margin-bottom: 0.4rem;
    line-height: 1.55;
}

.nvk-changelog-release ul li strong {
    color: var(--nvk-tertiary);
}

.nvk-changelog-intro {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--nvk-text);
    background: var(--nvk-bg);
    padding: 1.25rem 1.5rem;
    border-radius: var(--nvk-radius-s);
    border-left: 4px solid var(--nvk-secondary);
}

.nvk-changelog-credits {
    max-width: 880px;
    margin: 2rem auto 3rem;
    padding: 1.1rem 1.4rem;
    background: var(--nvk-bg);
    border-radius: var(--nvk-radius-s);
    border: 1px solid var(--nvk-border);
}

/* Changelog statistieken (iteraties + tokens) */
.nvk-changelog-stats {
    max-width: 880px;
    margin: 3rem auto 1.5rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, rgba(0, 128, 201, 0.06) 0%, rgba(82, 37, 130, 0.06) 100%);
    border-radius: var(--nvk-radius-s);
    border: 1px solid var(--nvk-border);
}

.nvk-changelog-stats h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--nvk-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nvk-changelog-stats-intro {
    margin: 0 0 1.25rem;
    color: var(--nvk-text);
    line-height: 1.6;
}

.nvk-changelog-stats-grid {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.nvk-changelog-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    background: var(--nvk-white);
    border: 1px solid var(--nvk-border);
    border-radius: var(--nvk-radius-s);
}

.nvk-changelog-stat-value {
    font-family: var(--nvk-font-heading);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--nvk-primary);
    letter-spacing: -0.01em;
}

.nvk-changelog-stat-label {
    font-size: 0.82rem;
    color: var(--nvk-text-light);
    line-height: 1.3;
}

.nvk-changelog-stats-note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--nvk-text-light);
    line-height: 1.55;
}

@media (max-width: 720px) {
    .nvk-changelog-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nvk-changelog-credits h2 {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    color: var(--nvk-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nvk-changelog-credits p {
    margin: 0 0 0.5rem;
    line-height: 1.55;
    font-size: 0.95rem;
    color: var(--nvk-text);
}

.nvk-changelog-credits p:last-child {
    margin-bottom: 0;
}

.nvk-changelog-credits-meta {
    font-size: 0.85rem;
    color: var(--nvk-text-light);
}

.nvk-medonline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: var(--nvk-text);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nvk-medonline-badge .icon {
    display: inline-flex;
    width: 1.05em;
    height: 1.05em;
    color: currentColor;
}

.nvk-medonline-badge .icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nvk-medonline-badge .text {
    letter-spacing: 0.01em;
}

.nvk-medonline-badge:hover,
.nvk-medonline-badge:focus {
    color: var(--nvk-primary);
    border-bottom-color: var(--nvk-primary);
    outline: none;
}

/* Footer "Powered by MEDonline" badge */
.nvk-subfooter-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-left: 0.75em;
    font-size: 0.85em;
    opacity: 0.75;
}

.nvk-subfooter-credit::before {
    content: "·";
    margin-right: 0.5em;
    opacity: 0.5;
}

.nvk-subfooter-credit .nvk-medonline-badge {
    color: inherit;
    font-weight: 500;
    border-bottom: none;
}

.nvk-subfooter-credit .nvk-medonline-badge:hover,
.nvk-subfooter-credit .nvk-medonline-badge:focus {
    color: var(--nvk-white, #fff);
    border-bottom: none;
}

@media (max-width: 640px) {
    .nvk-changelog-release {
        padding: 1.25rem 1.25rem;
    }
    .nvk-changelog-credits,
    .nvk-changelog-stats {
        padding: 1.25rem 1.25rem;
    }
}
