:root {
    --rugpijn-primary: #1a494f;
    --rugpijn-primary-dark: #12383d;
    --rugpijn-accent: #26c4a4;
    --rugpijn-accent-dark: #20aa8d;
    --rugpijn-soft: #eef7f5;
    --rugpijn-soft-2: #f7fbfa;
    --rugpijn-text: #263334;
    --rugpijn-muted: #6d7a7c;
    --rugpijn-border: #dce8e6;
    --rugpijn-footer: #20292b;
    --rugpijn-radius: 1.25rem;
    --rugpijn-shadow: 0 14px 38px rgba(0, 0, 0, .08);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--rugpijn-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background: #fff;
}

a {
    color: var(--rugpijn-primary);
}

a:hover {
    color: var(--rugpijn-accent-dark);
}

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

.site-header {
    z-index: 1030;
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

.topbar {
    background: var(--rugpijn-primary);
    color: #fff;
    font-size: .9rem;
    padding: .45rem 0;
}

.topbar-link {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
}

.topbar-mail {
    margin-left: 0;
}

.topbar-link:hover {
    color: #fff;
    text-decoration: underline;
}

.navbar {
    min-height: 82px;
}

.navbar-brand {
    color: var(--rugpijn-primary);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.navbar-brand:hover {
    color: var(--rugpijn-primary);
}

.brand-text {
    font-size: 1.15rem;
}

.nav-link {
    color: var(--rugpijn-primary);
    font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--rugpijn-accent-dark);
}

.dropdown-menu {
    border-radius: 1rem;
    border-color: var(--rugpijn-border);
    box-shadow: var(--rugpijn-shadow);
}

.dropdown-item {
    font-weight: 600;
}

.dropdown-item:hover {
    background: var(--rugpijn-soft);
    color: var(--rugpijn-primary);
}

.dropdown-item:active {
    background: var(--rugpijn-primary);
    color: #fff;
}

.search-form .form-control {
    border-radius: 999px;
}

.btn-rugpijn {
    background: var(--rugpijn-accent);
    border-color: var(--rugpijn-accent);
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
}

.btn-rugpijn:hover,
.btn-rugpijn:focus {
    background: var(--rugpijn-accent-dark);
    border-color: var(--rugpijn-accent-dark);
    color: #fff;
}

.btn-outline-rugpijn {
    border-color: var(--rugpijn-primary);
    color: var(--rugpijn-primary);
    font-weight: 750;
    border-radius: 999px;
}

.btn-outline-rugpijn:hover,
.btn-outline-rugpijn:focus {
    background: var(--rugpijn-primary);
    color: #fff;
}

.hero-section {
    position: relative;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(26, 73, 79, .94), rgba(26, 73, 79, .58)),
        url('/images/slides/rugpijn.jpg') center / cover no-repeat;
    padding: clamp(4rem, 9vw, 7rem) 0;
}

.hero-section h1 {
    max-width: 880px;
    font-size: clamp(2.35rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 900;
    margin-bottom: 1.25rem;
}

.hero-lead {
    max-width: 720px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 1.75rem;
}

.eyebrow {
    color: var(--rugpijn-accent);
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-size: .84rem;
    margin-bottom: .75rem;
}

.bg-soft {
    background: var(--rugpijn-soft);
}

.section-title {
    color: var(--rugpijn-primary);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.045em;
    margin-bottom: 1rem;
}

.content-card {
    font-size: 1.075rem;
}

.content-card h2,
.content-card h3,
.content-card h4 {
    color: var(--rugpijn-primary);
    font-weight: 850;
    letter-spacing: -0.03em;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-card h2:first-child,
.content-card h3:first-child {
    margin-top: 0;
}

.content-card p {
    margin-bottom: 1.4rem;
}

.content-card ul,
.content-card ol {
    margin-bottom: 1.5rem;
}

.content-card li {
    margin-bottom: .4rem;
}

.intro-card {
    background: #fff;
    border: 1px solid var(--rugpijn-border);
    border-radius: var(--rugpijn-radius);
    padding: clamp(1.25rem, 4vw, 2.25rem);
    box-shadow: var(--rugpijn-shadow);
}

.topic-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--rugpijn-border);
    border-radius: var(--rugpijn-radius);
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}

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

.topic-icon {
    display: inline-flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.15rem;
}

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

.topic-card h3 {
    color: var(--rugpijn-primary);
    font-size: 1.25rem;
    line-height: 1.22;
    font-weight: 850;
    margin-bottom: .75rem;
}

.topic-text {
    color: var(--rugpijn-muted);
    margin-bottom: 1.2rem;
}

.topic-text p:last-child {
    margin-bottom: 0;
}

.safety-box {
    background: #fff8ef;
    border-left: 5px solid #f4a261;
    border-radius: 1rem;
    padding: 1.5rem;
}

.safety-box h2 {
    color: var(--rugpijn-primary);
    font-size: 1.35rem;
    font-weight: 850;
    margin-bottom: .75rem;
}

.ad-wrapper {
    position: relative;
    min-height: 280px;
    margin: 2.5rem 0;
    padding: 1rem;
    background: var(--rugpijn-soft-2);
    border: 1px solid var(--rugpijn-border);
    border-radius: 1rem;
    overflow: hidden;
}

.ad-label {
    position: absolute;
    top: .5rem;
    left: .75rem;
    font-size: .75rem;
    color: var(--rugpijn-muted);
}

.site-footer {
    background: var(--rugpijn-footer);
    color: rgba(255, 255, 255, .78);
    padding: 4rem 0 2rem;
}

.footer-title {
    color: var(--rugpijn-accent);
    font-size: 1.1rem;
    font-weight: 850;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-list li {
    margin-bottom: .45rem;
}

.footer-list a,
.site-footer a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

.footer-list a:hover,
.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .9rem;
}

@media (max-width: 1199.98px) {
    .search-form {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 991.98px) {
    .brand-text {
        font-size: 1rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .navbar {
        min-height: 74px;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        letter-spacing: -0.04em;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .ad-wrapper {
        min-height: 250px;
    }
}

.page-hero {
    background:
        linear-gradient(90deg, rgba(26, 73, 79, .94), rgba(26, 73, 79, .72)),
        url('/images/slides/rugpijn.jpg') center / cover no-repeat;
    color: #fff;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.page-hero h1 {
    max-width: 860px;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
    margin-bottom: 1rem;
}

.page-lead {
    max-width: 760px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, .88);
    margin-bottom: 0;
}

.breadcrumb-nav .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .7);
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .82);
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
}

.breadcrumb-nav .breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb a:hover {
    text-decoration: underline;
}

.related-card {
    background: #fff;
    border: 1px solid var(--rugpijn-border);
    border-radius: var(--rugpijn-radius);
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rugpijn-shadow);
}

.related-card h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 850;
    margin-bottom: 1rem;
}

.related-card h3 a {
    color: var(--rugpijn-primary);
    text-decoration: none;
}

.related-card h3 a:hover {
    color: var(--rugpijn-accent-dark);
    text-decoration: underline;
}

.related-link {
    font-weight: 750;
    text-decoration: none;
}

.related-link:hover {
    text-decoration: underline;
}

.py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 3rem 0;
    }
}

/* =====================================================
   Layoutcorrecties na eerste Bootstrap-versie
===================================================== */

/* Header compacter en rustiger */
.navbar {
    min-height: 78px;
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.navbar-brand {
    max-width: 260px;
    white-space: normal;
    line-height: 1.05;
}

.navbar-brand img {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
}

.brand-text {
    display: block;
    max-width: 170px;
    font-size: 1rem;
    line-height: 1.05;
    font-weight: 850;
}

/* Navigatie minder grof */
.navbar-nav {
    align-items: center;
}

.nav-link {
    font-size: .94rem;
    line-height: 1.25;
    padding-left: .55rem !important;
    padding-right: .55rem !important;
    white-space: normal;
}

.dropdown-toggle::after {
    margin-left: .25rem;
}

/* Zoekformulier compacter */
.search-form {
    flex-shrink: 0;
}

.search-form .form-control {
    width: 130px;
    height: 34px;
    font-size: .9rem;
}

.search-form .btn {
    height: 34px;
    padding: .25rem .7rem;
    font-size: .85rem;
}

/* Page hero minder massief */
.page-hero {
    padding: clamp(2.75rem, 5vw, 4.5rem) 0;
    background:
        linear-gradient(90deg, rgba(26, 73, 79, .96), rgba(26, 73, 79, .78)),
        url('/images/slides/rugpijn.jpg') center / cover no-repeat;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.65rem);
    max-width: 820px;
    margin-bottom: 1rem;
}

.page-lead {
    max-width: 720px;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* Breadcrumb subtieler */
.breadcrumb-nav .breadcrumb {
    font-size: .85rem;
    margin-bottom: 1.75rem !important;
}

/* Content iets prettiger leesbaar */
.content-card {
    font-size: 1.02rem;
    line-height: 1.75;
}

.intro-card {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(1.4rem, 3vw, 2rem);
}

/* Koppen minder extreem zwaar */
.content-card h2,
.content-card h3,
.content-card h4 {
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.content-card h2 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.content-card h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

/* Advertenties rustiger plaatsen */
.ad-wrapper {
    max-width: 970px;
    margin: 2rem auto;
    border-radius: .75rem;
}

/* Advertentie direct onder hero iets minder dicht tegen hero */
.page-hero + .py-5 .ad-wrapper:first-child,
main > .ad-wrapper:first-child {
    margin-top: 1.75rem;
}

/* Mobiel */
@media (max-width: 1199.98px) {
    .navbar-nav {
        align-items: flex-start;
    }

    .nav-link {
        white-space: normal;
    }

    .search-form .form-control {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand {
        max-width: 230px;
    }

    .brand-text {
        max-width: 150px;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand img {
        width: 48px;
        height: 48px;
    }

    .brand-text {
        font-size: .95rem;
        max-width: 145px;
    }

    .page-hero {
        padding: 2.5rem 0;
    }

    .page-hero h1 {
        font-size: 2.1rem;
    }

    .intro-card {
        border-radius: 1rem;
    }
}

/* Homepage hero compacter */
.hero-section {
    min-height: auto;
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    background:
        linear-gradient(90deg, rgba(26, 73, 79, .94), rgba(26, 73, 79, .72)),
        url('/images/slides/rugpijn.jpg') center / cover no-repeat;
}

.hero-section h1 {
    max-width: 760px;
    font-size: clamp(2.8rem, 5.8vw, 4.9rem);
    line-height: .98;
    letter-spacing: -0.06em;
    margin-bottom: 1.5rem;
}

.hero-lead {
    max-width: 700px;
    font-size: clamp(1.1rem, 1.7vw, 1.3rem);
    line-height: 1.35;
    margin-bottom: 1.8rem;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3.25rem 0;
    }

    .hero-section h1 {
        font-size: 2.45rem;
        letter-spacing: -0.04em;
    }
}

.navbar-brand {
    min-width: 210px;
}

.navbar-brand img {
    width: 56px;
    height: 56px;
}

.brand-text {
    color: var(--rugpijn-primary);
    font-weight: 850;
    font-size: 1rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

@media (max-width: 1199.98px) {
    .navbar-brand {
        min-width: auto;
    }
}

/* Eigen advertentieblokken rustig houden */
.ad-wrapper {
    max-width: 920px;
    margin: 2.25rem auto;
    min-height: 250px;
    background: #f8fbfb;
    border: 1px solid var(--rugpijn-border);
    border-radius: 1rem;
    overflow: hidden;
}

.ad-label {
    position: absolute;
    top: .5rem;
    left: .75rem;
    font-size: .75rem;
    color: var(--rugpijn-muted);
}

@media (max-width: 767.98px) {
    .ad-wrapper {
        min-height: 220px;
        margin: 1.75rem auto;
    }
}

/* Contentkolom rustiger en breder */
.intro-card {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-card {
    font-size: 1.02rem;
    line-height: 1.7;
}

.content-card h2 {
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    line-height: 1.15;
    margin-top: 2.25rem;
}

.content-card h3 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.2;
}

.hero-section {
    padding: clamp(3.75rem, 6vw, 5.5rem) 0;
}

.hero-section h1 {
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    max-width: 760px;
}

.hero-lead {
    max-width: 680px;
}

.hero-section {
    padding: clamp(3.75rem, 6vw, 5.5rem) 0;
}

.hero-section h1 {
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    max-width: 760px;
}

.hero-lead {
    max-width: 680px;
}

.intro-card {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-card {
    font-size: 1.02rem;
    line-height: 1.7;
}