/* --- Custom Properties & Theme --- */
:root {
    /* Colors */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --navy: #0A192F;
    --navy-light: #112240;

    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA8C2C;

    --white: #ffffff;
    --black: #000000;
    --success: #10b981;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    /* Transitions & Shadows */
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--slate-700);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-xxl) 0;
}

.bg-light {
    background-color: var(--slate-50);
}

.text-white {
    color: var(--white) !important;
}

.text-gray {
    color: var(--slate-300) !important;
}

.text-gold {
    color: var(--gold) !important;
}

/* --- Typography Helpers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--slate-600);
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--gold);
    margin: var(--space-md) auto;
}

.display-none {
    display: none !important;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--slate-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--gold);
}

.logo i {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--slate-700);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--navy);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--slate-200);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-weight: 500;
    border-bottom: 1px solid var(--slate-100);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 180px 0 100px;
    background-color: var(--navy);
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%231e293b" fill-opacity="0.4"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(17, 34, 64, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.hero-title .highlight {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--gold);
    opacity: 0.3;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-300);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--gold);
}

.stat-text {
    font-size: 0.875rem;
    color: var(--slate-300);
    font-weight: 500;
}

/* --- Cards Grid (Voorwaarden) --- */
.grid {
    display: grid;
    gap: 2rem;
}

.cards-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--gold);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-size: 1.75rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* --- Timeline (Werkwijze) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background-color: var(--slate-200);
    z-index: 1;
}

.timeline-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 0 0 5px var(--white);
}

.step-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    flex-grow: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* --- Pricing Section --- */
.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.diy-pricing-wrapper {
    margin-top: 5rem;
    text-align: center;
}

.diy-pricing-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    background-color: var(--white);
    border: 2px dashed var(--gold);
    padding: 3rem;
    text-align: left;
}

.diy-pricing-content {
    flex: 1;
}

.diy-pricing-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.diy-pricing-content p {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
}

.diy-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
}

.diy-pricing-action {
    flex-shrink: 0;
    text-align: center;
    background-color: var(--slate-50);
    padding: 2rem 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
}

.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 3rem 2rem;
    border: 1px solid var(--slate-200);
}

.pricing-card.highlighted {
    border: 2px solid var(--gold);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.pricing-highlight-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gold);
    color: var(--navy);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-100);
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 1rem;
}

.pricing-card.highlighted .pricing-header h3 {
    color: var(--navy);
}

.price {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
}

.price span {
    font-size: 1.5rem;
    color: var(--slate-400);
}

.pricing-desc {
    font-size: 0.95rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    text-align: center;
    min-height: 80px;
}

.pricing-features {
    list-style: none;
    margin-top: auto;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--slate-700);
}

.pricing-features i {
    margin-top: 0.25rem;
}

/* --- FAQ Accordion --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--gold);
}

.faq-question .icon {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-question.active .icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--slate-600);
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--navy);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.contact-features {
    list-style: none;
    margin: 2rem 0;
}

.contact-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.contact-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.125rem;
}

.detail-item h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.detail-item p {
    color: var(--slate-300);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--slate-700);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.row {
    display: flex;
    gap: 1.5rem;
}

.form-group.row .col {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--slate-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background-color: var(--white);
}

.btn-submit {
    width: 100%;
    font-size: 1.125rem;
    margin-top: 1rem;
}

.form-disclaimer {
    font-size: 0.75rem;
    text-align: center;
    color: var(--slate-500);
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    margin-bottom: 2rem;
    color: var(--slate-600);
}

/* --- Footer --- */
.footer {
    background-color: var(--slate-900);
    color: var(--slate-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.logo-footer {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--slate-400);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* --- Client Portal Styles --- */
.portal-body {
    display: flex;
    min-height: 100vh;
    background-color: var(--slate-50);
    overflow-x: hidden;
}

.portal-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--navy);
    font-size: 1.25rem;
    transition: opacity 0.3s ease;
}

.portal-loader i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.portal-sidebar {
    width: 280px;
    background-color: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.portal-brand h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--gold);
}

.portal-brand span {
    font-family: var(--font-heading);
    color: var(--gold);
}

.portal-subtitle {
    font-size: 0.8rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--slate-300);
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.portal-nav-link:hover,
.portal-nav-link.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.portal-nav-link.active i {
    color: var(--gold);
}

.portal-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-email {
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--slate-400);
    font-size: 0.8rem;
    text-align: left;
    padding: 0;
    margin-top: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: var(--gold);
}

.portal-main {
    flex: 1;
    margin-left: 280px;
    padding: 3rem;
    max-width: 1200px;
}

.portal-header {
    margin-bottom: 2.5rem;
}

.portal-header h1 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.portal-header p {
    color: var(--slate-500);
}

.portal-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.portal-tab.active {
    display: block;
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--navy);
    color: var(--white);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.upload-zone {
    border: 2px dashed var(--slate-300);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--white);
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.02);
}

.upload-zone p {
    color: var(--slate-500);
    margin-bottom: 1.5rem;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 70vh;
    padding: 0;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--slate-50);
}

.chat-message {
    max-width: 80%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-message.client {
    align-self: flex-end;
    background-color: var(--navy);
    color: var(--white);
    border-bottom-right-radius: 0.25rem;
}

.chat-message.lawyer {
    align-self: flex-start;
    background-color: var(--white);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    border-bottom-left-radius: 0.25rem;
}

.chat-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    display: block;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    background-color: var(--white);
    border-top: 1px solid var(--slate-200);
    gap: 0.75rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--slate-200);
    border-radius: 2rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--gold);
}

.btn-icon {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Blog & Knowledge Base --- */
.blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--slate-200); /* Fallback kleur als de afbeelding niet laadt */
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-card p {
    color: var(--slate-600);
    margin-bottom: 2rem;
    flex: 1;
}

.read-more {
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.read-more:hover {
    color: var(--navy);
}

.article-hero {
    background-color: var(--navy);
    color: var(--white);
    padding: 180px 0 60px;
    position: relative;
}

.back-link {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--white);
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--slate-400);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-markdown {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate-700);
}

.article-markdown h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-markdown h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-markdown p {
    margin-bottom: 1.5rem;
}

.article-markdown ul,
.article-markdown ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-markdown li {
    margin-bottom: 0.5rem;
}

.article-markdown strong {
    color: var(--navy);
}

.article-markdown blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--slate-600);
    margin: 2rem 0;
    background-color: var(--slate-50);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.author-box {
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--slate-50);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

/* --- Responsive Design --- */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 992px) {

    .cards-grid,
    .pricing-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.highlighted {
        transform: none;
    }

    .diy-pricing-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    
    .diy-features {
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .portal-main {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .portal-sidebar {
        position: relative;
        height: auto;
        width: 100%;
        padding: 1.5rem;
    }

    .portal-body {
        flex-direction: column;
    }

    .portal-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .portal-nav-link {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .navbar .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .cards-grid,
    .pricing-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

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

    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .form-group.row {
        flex-direction: column;
        gap: 0;
    }

    .timeline-line {
        left: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .timeline-step {
        gap: 1.25rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* --- Checkbox Animation --- */
.checkbox-label:hover {
    transform: translateX(10px);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--gold);
}