/* =============================================
   MijnSlaapGids — Main Stylesheet
   Mobile-first responsive design
   ============================================= */

/* === CSS VARIABLES === */
:root {
    --bg: #f4f6f5;
    --surface: #ffffff;
    --navy: #0c1a28;
    --navy-deep: #080f18;
    --text: #111a24;
    --text-sub: #3d4f5f;
    --text-muted: #8696a4;
    --accent: #1a7a5a;
    --accent-glow: #22c68a;
    --accent-light: rgba(26, 122, 90, 0.15);
    --coral: #d4644a;
    --gold: #d4a94a;
    --dglass-bg: rgba(12, 26, 40, 0.45);
    --dglass-border: rgba(255, 255, 255, 0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-pill: 24px;
    --transition: 0.3s ease;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --reading-width: 720px;
}

/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

ul, ol {
    list-style: none;
}

/* === SKIP LINK === */
.msg-skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-size: 0.875rem;
}
.msg-skip-link:focus {
    top: 16px;
}

/* === HEADER === */
.msg-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), backdrop-filter var(--transition);
}
.msg-header.scrolled {
    background: rgba(12, 26, 40, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.msg-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}
.msg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    z-index: 1001;
}
.msg-logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.msg-nav {
    display: none;
}
.msg-nav-list {
    display: flex;
    gap: 28px;
    list-style: none;
}
.msg-nav-list li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-weight: 400;
    transition: color var(--transition);
}
.msg-nav-list li a:hover {
    color: #fff;
}
.msg-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.msg-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}
.msg-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.msg-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.msg-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === MOBILE MENU === */
.msg-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(12, 26, 40, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.msg-mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.msg-mobile-nav-list {
    list-style: none;
    text-align: center;
}
.msg-mobile-nav-list li {
    margin-bottom: 24px;
}
.msg-mobile-nav-list li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    font-weight: 500;
    transition: color var(--transition);
}
.msg-mobile-nav-list li a:hover {
    color: var(--accent-glow);
}

/* === BADGES === */
.msg-badge {
    display: inline-block;
    background: rgba(26, 122, 90, 0.2);
    color: var(--accent-glow);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(34, 198, 138, 0.25);
}

/* === CATEGORY PILLS === */
.msg-cat-pill {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
}
.msg-cat-pill {
    background: rgba(26, 122, 90, 0.15);
    color: var(--accent-glow);
}
.msg-cat-slaaphygiene,
.msg-cat-slaaptips {
    background: rgba(26, 122, 90, 0.15);
    color: var(--accent-glow);
}
.msg-cat-wetenschap {
    background: rgba(26, 122, 90, 0.15);
    color: var(--accent-glow);
}
.msg-cat-slaaptrackers {
    background: rgba(56, 152, 210, 0.15);
    color: #5ab8f5;
}
.msg-cat-slaapstoornissen {
    background: rgba(180, 100, 200, 0.15);
    color: #c88adf;
}

/* === META === */
.msg-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === HERO SECTION === */
.msg-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.msg-hero-bg {
    position: absolute;
    inset: 0;
    background: url('') center/cover no-repeat;
    opacity: 0.3;
    animation: kenburns 25s ease-in-out infinite alternate;
}
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.msg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 42, 35, 0.88), rgba(12, 26, 40, 0.92), rgba(20, 18, 40, 0.85));
}
.msg-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.msg-hero-content {
    flex: 1;
}
.msg-hero-content h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 16px 0;
}
.msg-hero-content > p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 420px;
}
.msg-hero-btns {
    display: flex;
    gap: 12px;
}
.msg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.msg-btn:hover {
    transform: translateY(-1px);
}
.msg-btn-primary {
    background: #fff;
    color: var(--navy);
    border: none;
}
.msg-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.msg-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Featured card in hero */
.msg-hero-featured {
    flex: 1;
}
.msg-featured-card {
    display: block;
    background: var(--dglass-bg);
    border: 1px solid var(--dglass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition);
}
.msg-featured-card:hover {
    transform: translateY(-4px);
}
.msg-featured-img {
    height: 160px;
    overflow: hidden;
    position: relative;
}
.msg-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.msg-featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a4a3a, #1a5a4a, #2a6a5a);
    display: flex;
    align-items: center;
    justify-content: center;
}
.msg-featured-placeholder svg {
    width: 36px;
    height: 36px;
    opacity: 0.4;
}
.msg-featured-body {
    padding: 16px 18px;
}
.msg-featured-body h2 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 8px 0;
}
.msg-featured-body .msg-meta {
    color: rgba(255, 255, 255, 0.4);
}

/* Scroll indicator */
.msg-scroll-indicator {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 0 32px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.6875rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.msg-scroll-arrow {
    display: block;
    margin-top: 8px;
    font-size: 1.125rem;
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* === TRUST STRIP === */
.msg-trust {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
}
.msg-trust-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.msg-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}
.msg-trust-star {
    color: var(--gold);
    font-size: 0.875rem;
}

/* === ARTICLES SECTION === */
.msg-articles-section {
    background: var(--bg);
    padding: 40px 20px;
}
.msg-articles-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.msg-articles-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}
.msg-articles-header h2 {
    color: var(--text);
    font-size: 1.375rem;
    font-weight: 700;
}
.msg-category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.msg-category-pills::-webkit-scrollbar {
    display: none;
}
.msg-pill {
    display: inline-flex;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #d0d5d3;
    background: var(--surface);
    color: var(--text-sub);
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--transition);
    flex-shrink: 0;
}
.msg-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.msg-pill-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* === CARD GRID === */
.msg-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.msg-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.msg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.msg-card-link {
    display: flex;
    flex-direction: row;
    height: 100%;
}
.msg-card-img {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
}
.msg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.msg-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, #0a5a3a, #1a8a5a, #2aaa7a);
}
.msg-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.msg-card-body h3 {
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 6px 0;
}
.msg-card-body p {
    color: var(--text-sub);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 8px;
    display: none;
}

/* === ABOUT SECTION === */
.msg-about {
    background: var(--navy);
    padding: 48px 20px;
}
.msg-about-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.msg-about-content {
    flex: 1;
}
.msg-about-content h2 {
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    margin: 14px 0;
}
.msg-about-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    line-height: 1.7;
}
.msg-about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.msg-stat {
    background: var(--dglass-bg);
    border: 1px solid var(--dglass-border);
    border-radius: var(--radius);
    padding: 24px 12px;
    text-align: center;
}
.msg-stat-num {
    display: block;
    color: var(--accent-glow);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.msg-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* === FOOTER === */
.msg-footer {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 20px 0;
}
.msg-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 32px;
}
.msg-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}
.msg-footer-logo .msg-logo-icon {
    width: 24px;
    height: 24px;
}
.msg-footer-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}
.msg-footer-links {
    display: flex;
    gap: 40px;
}
.msg-footer-col h3 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.msg-footer-list {
    list-style: none;
}
.msg-footer-list li {
    margin-bottom: 8px;
}
.msg-footer-list li a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    transition: color var(--transition);
}
.msg-footer-list li a:hover {
    color: var(--accent-glow);
}
.msg-footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.msg-footer-copy,
.msg-footer-disclaimer {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.6875rem;
}
.msg-footer-disclaimer {
    font-style: italic;
}

/* === ARCHIVE HERO === */
.msg-archive-hero {
    background: linear-gradient(135deg, rgba(10, 42, 35, 0.92), rgba(12, 26, 40, 0.95));
    padding: 120px 20px 48px;
}
.msg-archive-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.msg-archive-hero h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 12px;
}
.msg-archive-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    margin-top: 8px;
}

/* === READING PROGRESS BAR === */
.msg-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}
.msg-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow), var(--coral));
    transition: width 0.1s linear;
}

/* === ARTICLE HERO === */
.msg-article-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.msg-article-hero-bg {
    position: absolute;
    inset: 0;
}
.msg-article-hero-bg img,
.msg-article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.msg-article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 26, 40, 0.3) 0%, rgba(12, 26, 40, 0.95) 100%);
}
.msg-article-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}
.msg-breadcrumbs {
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}
.msg-breadcrumbs a {
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition);
}
.msg-breadcrumbs a:hover {
    color: var(--accent-glow);
}
.msg-breadcrumb-sep {
    margin: 0 6px;
}
.msg-article-hero-content h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0;
    max-width: var(--reading-width);
}
.msg-article-meta {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.msg-meta-sep {
    margin: 0 2px;
}

/* === ARTICLE BODY === */
.msg-article {
    background: var(--bg);
    padding: 40px 20px;
}
.msg-article-body {
    max-width: var(--reading-width);
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
}
.msg-article-body h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2em 0 0.75em;
    color: var(--text);
    scroll-margin-top: 80px;
}
.msg-article-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
    color: var(--text);
}
.msg-article-body p {
    margin-bottom: 1.25em;
    color: var(--text-sub);
}
.msg-article-body ul,
.msg-article-body ol {
    margin: 0 0 1.25em 1.5em;
    list-style: disc;
}
.msg-article-body ol {
    list-style: decimal;
}
.msg-article-body li {
    margin-bottom: 0.5em;
    color: var(--text-sub);
}
.msg-article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin: 1.5em 0;
    background: var(--surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-sub);
}
.msg-article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(26, 122, 90, 0.3);
    text-underline-offset: 2px;
}
.msg-article-body a:hover {
    text-decoration-color: var(--accent);
}
.msg-article-body img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}
.msg-article-body strong {
    font-weight: 600;
    color: var(--text);
}

/* === TABLE OF CONTENTS === */
.msg-toc {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 1.5em 0 2em;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.msg-toc-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}
.msg-toc-list {
    list-style: none;
    counter-reset: toc-counter;
    margin: 0;
    padding: 0;
}
.msg-toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}
.msg-toc-list li::before {
    content: counter(toc-counter) ".";
    color: var(--accent);
    font-weight: 600;
    margin-right: 8px;
    font-size: 0.8125rem;
}
.msg-toc-list li a {
    color: var(--accent);
    font-size: 0.875rem;
    transition: color var(--transition);
}
.msg-toc-list li a:hover {
    color: var(--accent-glow);
}

/* === TAGS === */
.msg-tags {
    max-width: var(--reading-width);
    margin: 24px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.msg-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    color: var(--text-sub);
    transition: all var(--transition);
}
.msg-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* === RELATED ARTICLES === */
.msg-related {
    background: var(--bg);
    padding: 0 20px 48px;
}
.msg-related-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.msg-related-inner h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

/* === PAGINATION === */
.msg-pagination {
    margin-top: 40px;
    text-align: center;
}
.msg-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.msg-pagination a,
.msg-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-sub);
    transition: all var(--transition);
}
.msg-pagination a:hover {
    background: var(--surface);
    color: var(--accent);
}
.msg-pagination .current {
    background: var(--accent);
    color: #fff;
}

/* === NO RESULTS === */
.msg-no-results {
    text-align: center;
    padding: 60px 20px;
}
.msg-no-results h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.msg-no-results a {
    color: var(--accent);
    text-decoration: underline;
}

/* === WIDGET === */
.msg-widget {
    margin-bottom: 24px;
}
.msg-widget-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* =============================================
   RESPONSIVE — TABLET (640px+)
   ============================================= */
@media (min-width: 640px) {
    .msg-hero-content h1 {
        font-size: 2.5rem;
    }
    .msg-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .msg-card-link {
        flex-direction: column;
    }
    .msg-card-img {
        width: 100%;
        height: 160px;
    }
    .msg-card-body p {
        display: block;
    }
    .msg-trust-inner {
        flex-direction: row;
        justify-content: center;
    }
    .msg-trust-item:not(:last-child) {
        padding-right: 28px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    .msg-trust-item:not(:first-child) {
        padding-left: 28px;
    }
    .msg-articles-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .msg-footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .msg-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    .msg-article-hero-content h1 {
        font-size: 2rem;
    }
}

/* =============================================
   RESPONSIVE — DESKTOP (1024px+)
   ============================================= */
@media (min-width: 1024px) {
    .msg-header-inner {
        padding: 16px 40px;
    }
    .msg-nav {
        display: block;
    }
    .msg-hamburger {
        display: none;
    }
    .msg-mobile-menu {
        display: none;
    }
    .msg-hero-inner {
        flex-direction: row;
        align-items: center;
        padding: 0 40px;
        min-height: 100vh;
    }
    .msg-hero-content {
        flex: 1.2;
    }
    .msg-hero-content h1 {
        font-size: 2.75rem;
    }
    .msg-hero-featured {
        flex: 0.8;
    }
    .msg-featured-img {
        height: 180px;
    }
    .msg-trust {
        padding: 20px 40px;
    }
    .msg-articles-section {
        padding: 56px 40px;
    }
    .msg-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .msg-about {
        padding: 64px 40px;
    }
    .msg-about-inner {
        flex-direction: row;
        align-items: center;
    }
    .msg-footer {
        padding: 48px 40px 0;
    }
    .msg-archive-hero {
        padding: 140px 40px 56px;
    }
    .msg-archive-hero h1 {
        font-size: 2.5rem;
    }
    .msg-article-hero {
        min-height: 400px;
    }
    .msg-article-hero-content {
        padding: 60px 40px;
    }
    .msg-article-hero-content h1 {
        font-size: 2.5rem;
    }
    .msg-article {
        padding: 56px 40px;
    }
    .msg-related {
        padding: 0 40px 64px;
    }
}

/* =============================================
   RESPONSIVE — LARGE DESKTOP (1280px+)
   ============================================= */
@media (min-width: 1280px) {
    .msg-hero-content h1 {
        font-size: 3rem;
    }
}
/* =============================================
   PAGE TEMPLATE — Plak dit onderaan main.css
   ============================================= */

/* === PAGE HERO === */
.msg-page-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 42, 35, 0.95), rgba(12, 26, 40, 0.98));
    padding: 140px 20px 64px;
    text-align: center;
    overflow: hidden;
}
.msg-page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(34, 198, 138, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.msg-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(34, 198, 138, 0.04), transparent 50%);
    pointer-events: none;
}
.msg-page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
}
.msg-page-hero .msg-breadcrumbs {
    margin-bottom: 20px;
}
.msg-page-hero .msg-badge {
    margin-bottom: 16px;
}
.msg-page-hero h1 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 16px 0 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.msg-page-hero-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    margin: 16px auto 0;
}

/* === PAGE CONTENT === */
.msg-page-content {
    background: var(--bg);
    padding: 56px 20px 64px;
}
.msg-page-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
}

/* Typografie binnen pagina-content */
.msg-page-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5em 0 0.75em;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
}
.msg-page-body h2:first-child {
    margin-top: 0;
}
.msg-page-body h3 {
    font-size: 1.1875rem;
    font-weight: 600;
    margin: 1.75em 0 0.5em;
    color: var(--text);
}
.msg-page-body p {
    margin-bottom: 1.25em;
    color: var(--text-sub);
}
.msg-page-body ul,
.msg-page-body ol {
    margin: 0 0 1.25em 1.5em;
    list-style: disc;
}
.msg-page-body ol {
    list-style: decimal;
}
.msg-page-body li {
    margin-bottom: 0.5em;
    color: var(--text-sub);
}
.msg-page-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    margin: 1.75em 0;
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-sub);
}
.msg-page-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(26, 122, 90, 0.3);
    text-underline-offset: 2px;
}
.msg-page-body a:hover {
    text-decoration-color: var(--accent);
}
.msg-page-body img {
    border-radius: var(--radius);
    margin: 1.75em 0;
}
.msg-page-body strong {
    font-weight: 600;
    color: var(--text);
}

/* Highlight blokken via wp-block-group of handmatige divs */
.msg-page-body .wp-block-group,
.msg-page-body .msg-highlight {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 2em 0;
}

/* === RESPONSIVE — TABLET === */
@media (min-width: 640px) {
    .msg-page-hero h1 {
        font-size: 2.75rem;
    }
    .msg-page-hero-sub {
        font-size: 1.0625rem;
    }
}

/* === RESPONSIVE — DESKTOP === */
@media (min-width: 1024px) {
    .msg-page-hero {
        padding: 160px 40px 80px;
    }
    .msg-page-hero h1 {
        font-size: 3rem;
    }
    .msg-page-content {
        padding: 72px 40px 80px;
    }
}