/* ===================================
   DoelenKwartet Custom Theme
   Kleuren: Wit-Groen / Rood-Blauw / Lichte tinten
   =================================== */

:root {
    /* Primaire kleuren - Groen tinten */
    --primary-green: #2d5f4f;
    --primary-green-light: #4a8570;
    --primary-green-lighter: #7ab39e;
    --primary-green-pale: #e8f4f0;

    /* Accent kleuren - Rood-Blauw */
    --accent-red: #c94848;
    --accent-blue: #4a7bb5;
    --accent-teal: #2a8b9c;

    /* Neutrale kleuren - Lichte tinten */
    --white: #ffffff;
    --off-white: #fafbfc;
    --light-gray: #f5f7f9;
    --soft-gray: #e8ecef;
    --mid-gray: #b8c5d0;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;

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

    /* Spacing */
    --spacing-unit: 8px;
}

/* ===================================
   Global Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

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

a:hover {
    color: var(--primary-green-light);
}

.content-wrapper {
    padding-top: 80px;
    min-height: 100vh;
}

/* ===================================
   Navigation
   =================================== */

.menu-header {
    position: relative;
    z-index: 1000;
}

#mainNav {
    background: linear-gradient(135deg, rgba(45, 95, 79, 0.98) 0%, rgba(42, 139, 156, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    background: linear-gradient(135deg, rgba(45, 95, 79, 1) 0%, rgba(42, 139, 156, 1) 100%);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-text {
    background: linear-gradient(90deg, #ffffff 0%, #e8f4f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
}

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

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    color: var(--white);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--primary-green-pale);
    transform: translateY(-3px);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 50%, var(--accent-blue) 100%);
    background-image:
            url('/img/photo-1465847899084-d164df4dedc6.jpg'),
            linear-gradient(135deg, rgba(45, 95, 79, 0.85) 0%, rgba(42, 139, 156, 0.85) 50%, rgba(74, 123, 181, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-buttons .btn-primary {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.hero-buttons .btn-primary:hover {
    background: #b03838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 72, 72, 0.4);
}

.hero-buttons .btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   Animations
   =================================== */

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Page Headers
   =================================== */

.page-header-section {
    background: linear-gradient(135deg, var(--primary-green-pale) 0%, var(--light-gray) 100%);
    padding: 4rem 0 2.5rem;
    border-bottom: 3px solid var(--primary-green-light);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.single-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 100%);
    color: var(--white);
}

.single-header .page-title,
.single-header .breadcrumb-item,
.single-header .breadcrumb-item a,
.single-header .breadcrumb-item.active {
    color: var(--white);
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0.9;
}

.meta-date,
.meta-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================
   Cards
   =================================== */

.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.content-card,
.blog-card,
.related-card {
    position: relative;
}

.content-card:hover,
.blog-card:hover,
.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(45, 95, 79, 0.15) !important;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

.card-overlay,
.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(45, 95, 79, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-overlay,
.card:hover .blog-card-overlay {
    opacity: 1;
}

.card-body {
    padding: 1.5rem;
}

.card-title a {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.card:hover .card-title a {
    color: var(--primary-green);
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-meta,
.card-footer-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--soft-gray);
}

.blog-meta .badge {
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
}

.bg-accent {
    background: var(--accent-teal) !important;
}

.read-more-link {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--primary-green);
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* ===================================
   Featured Section
   =================================== */

.featured-section {
    padding: 3rem 0;
}

.featured-image-wrapper {
    position: relative;
}

.featured-image-wrapper img {
    position: relative;
    z-index: 2;
}

.image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-green-pale);
    border-radius: 16px;
    z-index: 1;
}

.section-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.body-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.btn-accent {
    background: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: #b03838;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 72, 72, 0.3);
}

/* ===================================
   Content / Markdown
   =================================== */

.intro-content,
.markdown-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-body p {
    margin-bottom: 1.25rem;
}

.markdown-body a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.markdown-body a:hover {
    color: var(--accent-teal);
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

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

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

/* ===================================
   Article Specific
   =================================== */

.article-content {
    max-width: 1200px;
}

.hero-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.article-tags {
    padding: 1.5rem 0;
}

.tags-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-share {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===================================
   Related Articles Section
   =================================== */

.related-articles-section {
    padding: 3rem 0;
    background: var(--off-white);
    border-radius: 16px;
}

.section-header {
    margin-bottom: 2rem;
}

/* ===================================
   Pagination
   =================================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 0.5rem;
}

.page-link {
    border: 2px solid var(--primary-green-light);
    color: var(--primary-green);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.page-item.disabled .page-link {
    border-color: var(--soft-gray);
    color: var(--mid-gray);
}

/* ===================================
   Section Dividers
   =================================== */

.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-green-light), transparent);
    margin: 3rem 0;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.footer-links i {
    color: var(--primary-green-pale);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-icon-footer:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-copyright {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 991.98px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .navbar-nav {
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin-top: 1rem;
    }

    .social-links {
        justify-content: center;
        padding-top: 1rem;
    }

    .image-accent {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .page-header-section {
        padding: 3rem 0 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons .btn {
        width: 100%;
    }
}

/* ===================================
   Utilities
   =================================== */

.bg-light-subtle {
    background-color: var(--off-white) !important;
}

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

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ===================================
   Smooth Scrolling
   =================================== */

html {
    scroll-behavior: smooth;
}

/* ===================================
   Focus Styles (Accessibility)
   =================================== */

*:focus-visible {
    outline: 3px solid var(--primary-green-light);
    outline-offset: 2px;
}
