/* ===== Versie 7 Modern Styling ===== */

:root {
    --primary-color: #1E5A96;
    --primary-color-dark: #15406f;
    --primary-color-soft: #4A90E2;
    --secondary-color: #c62828;
    --light-bg: #f4f6f9;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
    --shadow-blue: 0 10px 24px rgba(74, 144, 226, 0.18);
}

/* ===== GENERAL STYLING ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    background-color: #f7f8fb;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 24px;
}

h2,
h3,
h4 {
    color: var(--primary-color);
}

/* ===== CONDITIONS LIST ===== */

.condition-page {
    padding: 20px 0 60px;
}

.condition-header {
    padding: 40px 0 20px;
    margin-bottom: 10px;
}

.condition-page-title {
    text-align: left;
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    margin-bottom: 12px;
}

.condition-page-intro {
    max-width: 640px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.condition-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #d0d0d0;
    background: white;
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.condition-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.condition-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.condition-card--horizontal {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: stretch;
    gap: 20px;
}

.condition-media {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.condition-media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
}

.condition-media-placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
}

.condition-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-color-soft);
}

.condition-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
    width: fit-content;
}

.condition-category.venous {
    background: #6c63ff;
    color: white;
}

.condition-category.arterial {
    background: #dc3545;
    color: white;
}

.condition-category.lymphatic {
    background: #28a745;
    color: white;
}

.condition-category.other {
    background: #ffc107;
    color: #856404;
}

.condition-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.3;
}

.condition-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.condition-symptoms {
    font-size: 0.9rem;
    color: #666;
    background: #f8fafb;
    padding: 12px;
    border-radius: 4px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.condition-treatments {
    font-size: 0.9rem;
    color: #666;
    background: #f8fafb;
    padding: 12px;
    border-radius: 4px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.condition-treatments-title {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: 600;
}

.condition-link {
    display: block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.condition-link:hover {
    background: var(--primary-color-dark);
}

/* ===== CONDITION DETAIL ===== */

.condition-detail-page {
    padding: 10px 0 60px;
}

.condition-detail-header {
    padding: 40px 0 30px;
    border-bottom: 1px solid #dfe6ef;
}

.condition-detail-badge {
    margin-bottom: 15px;
}

.condition-badge {
    display: inline-block;
    padding: 8px 16px;
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.condition-badge.venous {
    background: #6c63ff;
}

.condition-badge.arterial {
    background: #dc3545;
}

.condition-badge.lymphatic {
    background: #28a745;
}

.condition-badge.other {
    background: #ffc107;
    color: #856404;
}

.condition-detail-title {
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.condition-summary-box {
    background: #f7fbff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color-soft);
    margin-top: 25px;
}

.condition-summary-text {
    font-size: 1.05rem;
    color: #1f2937;
    line-height: 1.8;
    margin: 0;
}

.condition-quick-nav {
    padding: 30px 0;
    border-bottom: 1px solid #dfe6ef;
}

.condition-quick-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.condition-quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.condition-quick-link {
    padding: 8px 16px;
    background: white;
    border: 1px solid #dfe6ef;
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.condition-quick-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.condition-hero-image {
    margin: 40px 0;
    text-align: center;
}

.condition-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.condition-section {
    padding: 40px 0;
}

.condition-section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f1fb;
}

.condition-section-box {
    background: #f7fbff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color-soft);
}

.condition-related {
    padding: 40px 0;
}

.condition-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.condition-related-card {
    background: white;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.condition-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-color-soft);
}

.condition-related-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.condition-related-summary {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.condition-related-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.condition-detail-cta {
    background: #f7fbff;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0 40px;
    border: 1px solid #e8f1fb;
}

.condition-detail-cta h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.condition-detail-cta p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.condition-detail-cta-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.condition-detail-cta-primary,
.condition-detail-cta-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.condition-detail-cta-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 14px rgba(74, 144, 226, 0.18);
}

.condition-detail-cta-primary:hover {
    background: var(--primary-color-dark);
    color: white;
}

.condition-detail-cta-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.condition-detail-cta-secondary:hover {
    border-color: var(--primary-color-dark);
    color: var(--primary-color-dark);
}

.condition-detail-cta-contact {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.condition-detail-cta-contact strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.condition-detail-cta-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.condition-detail-cta-contact a:hover {
    color: var(--primary-color-dark);
}

/* Markdown content styling */
.condition-content h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f1fb;
}

.condition-content h3,
.condition-content h4 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.condition-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.condition-content ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.condition-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
}

.condition-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.condition-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.condition-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.condition-content table thead {
    background: var(--primary-color);
    color: white;
}

.condition-content table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.condition-content table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
    color: #444;
}

.condition-content table tr:last-child td {
    border-bottom: none;
}

.condition-content table tr:hover {
    background: #f7fbff;
}

@media (max-width: 768px) {
    .condition-section-title {
        font-size: 1.5rem;
    }

    .condition-content h3,
    .condition-content h4 {
        font-size: 1.2rem;
    }

    .condition-content p,
    .condition-content li {
        font-size: 1rem;
    }
}

.condition-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.condition-symptoms-title {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: 600;
}

.condition-symptoms-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.condition-cta {
    margin-top: 60px;
    padding-bottom: 40px;
}

.condition-cta-box {
    background: #f8fafb;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.condition-cta-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.condition-cta-box p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.condition-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.condition-cta-primary,
.condition-cta-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.condition-cta-primary {
    background: var(--primary-color);
    color: #fff;
}

.condition-cta-primary:hover {
    background: var(--primary-color-dark);
    color: #fff;
}

.condition-cta-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.condition-cta-secondary:hover {
    border-color: var(--primary-color-dark);
    color: var(--primary-color-dark);
}

@media (max-width: 768px) {
    .condition-page-title {
        font-size: 2rem;
    }

    .condition-grid {
        grid-template-columns: 1fr;
    }

    .condition-card--horizontal {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 7px 16px;
    }
}

h5,
h6 {
    color: #274a78;
}

/* ===== INTRO SCREEN ===== */

.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.7s ease;
    opacity: 1;
    z-index: 1000;
}

.intro.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-logo {
    position: absolute;
    top: 45%;
    left: 50%;
    height: 50%;
    max-width: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.8s ease, opacity 0.6s ease;
}

.intro-logo.fade-out {
    transform: translate(0, 0) scale(0.4);
}

.intro-text {
    position: absolute;
    top: 78%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    font-size: 1.7rem;
    max-width: 90%;
    line-height: 1.6;
    color: var(--primary-color);
    text-align: center;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.6s ease;
}

.intro-text.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

/* ===== HEADER & NAVIGATION ===== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 1; /* Visible by default on pages without intro */
    transition: opacity 0.5s ease;
    padding: 0;
}

/* Hide header when page has intro screen AND no scroll yet */
body:has(.intro) header {
    opacity: 0;
    pointer-events: none;
}

/* Make header visible when .visible class is added (on scroll past intro) */
body:has(.intro) header.visible,
header.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Bootstrap compatibility overrides */
header nav.navbar {
    background-color: white !important;
    box-shadow: none !important;
    padding: 15px 0;
}

.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active {
    color: var(--primary-color-dark);
}

.dropdown-menu .dropdown-item {
    color: var(--primary-color);
}

.dropdown-menu {
    z-index: 1050;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: #fff;
    background-color: var(--primary-color);
}

.dropdown-menu .dropdown-item:active {
    color: #fff;
    background-color: var(--primary-color-dark);
}

/* ===== ALERT BANNERS ===== */

.alert-banner {
    width: 100%;
    margin: 0;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-top: 80px;
}

.alert-banner:first-child {
    margin-top: 80px;
}

.alert-banner + .alert-banner {
    margin-top: 8px;
}

.alert-banner i {
    font-size: 1.2em;
    flex-shrink: 0;
}

.alert-banner-warning {
    color: #f57c00;
}

.alert-banner-warning i {
    color: #ffa726;
}

.alert-banner-danger {
    color: #c62828;
}

.alert-banner-danger i {
    color: #ef5350;
}

.alert-banner-info {
    color: #1565c0;
}

.alert-banner-info i {
    color: #42a5f5;
}

.alert-banner-success {
    color: #2e7d32;
}

.alert-banner-success i {
    color: #66bb6a;
}


/* ===== BUTTONS ===== */

.btn-primary,
.btn-danger,
.btn-outline-primary {
    border-radius: 4px;
    font-weight: 600;
}

.btn-primary,
.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-danger:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-outline-primary:active,
.btn-outline-primary:focus {
    background-color: #082a47;
    border-color: #082a47;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(8, 42, 71, 0.25);
}

/* Custom appointment button */
.btn-appointment {
    background-color: #c62828;
    border-color: #c62828;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

.btn-appointment:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

.btn-appointment:active,
.btn-appointment:focus {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.25);
}

/* Custom dropdown agenda button */
.btn-dropdown-agenda {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
}

.btn-dropdown-agenda:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: #fff;
}

.btn-dropdown-agenda:active,
.btn-dropdown-agenda:focus {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

/* Navbar dropdown styling */
.navbar-nav .nav-link.dropdown-toggle:focus,
.navbar-nav .nav-link.dropdown-toggle:active {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(8, 42, 71, 0.25);
}

/* ===== MAIN CONTENT ===== */

main {
    background: linear-gradient(#ffffff, var(--light-bg));
    padding-bottom: 60px;
}

/* Pages WITH intro screen - minimal padding since intro is fixed overlay */
body:has(.intro) main {
    padding-top: 80px;
}

/* Pages WITHOUT intro screen - padding for fixed header */
body:not(:has(.intro)) main {
    padding-top: 120px; /* More space below fixed header */
}

/* If alert banner is present, reduce spacing under it */
body:has(.alert-banner):not(:has(.intro)) main {
    padding-top: 5px;
}


/* For backwards compatibility if .no-intro class is used */
main.no-intro {
    padding-top: 80px;
}

section {
    padding: 56px 32px;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* ===== HOMEPAGE ===== */

.homepage-logo {
    max-width: 360px;
    width: 60%;
    margin: 0 auto 24px;
    display: block;
}

.homepage-doctors-photo {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

/* ===== DOCTORS ===== */

.doctor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.doctor-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-margin-top: 100px;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-color-soft);
}

.doctor-media {
    flex: 0 0 280px;
    aspect-ratio: 3 / 4;
    background: #f5f7fb;
    border-right: 1px solid var(--border-light);
    display: grid;
    place-items: center;
    padding: 0;
}

.doctor-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    color: var(--text-light);
    font-size: 0.85rem;
}

.doctor-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doctor-name {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.doctor-discipline {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

.doctor-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* ===== TREATMENTS ===== */

.treatment-page-intro {
    color: var(--text-light);
    max-width: 720px;
    margin: 0 auto 24px;
}

.agenda-page-intro {
    color: var(--text-light);
    margin: 16px 0 24px 0;
    text-align: left;
}

.treatment-group {
    margin: 12px 0 16px;
}

.treatment-group-header {
    text-align: center;
    margin-bottom: 18px;
}

.treatment-group-header p {
    color: var(--text-light);
    margin: 6px auto 0;
    max-width: 760px;
}

.treatment-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.treatment-row {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.treatment-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.treatment-media {
    display: block;
    background: #f5f7fb;
    overflow: hidden;
    border-right: 1px solid var(--border-light);
}

.treatment-media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
}

.treatment-placeholder {
    height: 100%;
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.treatment-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.treatment-title {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
}

.treatment-summary {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.treatment-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
}

.treatment-link:hover {
    text-decoration: underline;
}

.treatment-empty {
    color: var(--text-light);
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .treatment-row {
        grid-template-columns: 1fr;
    }

    .treatment-media {
        border-right: 0;
        border-bottom: 1px solid var(--border-light);
    }
}

@media (max-width: 768px) {
    .doctor-card {
        flex-direction: column;
    }

    .doctor-media {
        flex: 0 0 auto;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--border-light);
    }
}

/* ===== HOMEPAGE LOCATIONS SECTION ===== */

.praktijk-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
    margin-top: 40px;
}

.praktijk-tegel {
    width: 280px;
    min-width: 280px;
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.praktijk-tegel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-color-soft);
}

.praktijk-tegel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.praktijk-tegel h3 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.praktijk-tegel p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.4;
}

.praktijk-detail-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: color 0.3s ease;
}

.praktijk-detail-link:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ===== MEDIA SURFACES ===== */

#map {
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
    background: var(--light-bg);
}

.carousel-inner {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

/* ===== FOOTER ===== */

.footer-modern {
    margin-top: 0;
    padding: 48px 0 0;
    background: #f7f8fa;
    color: var(--text-dark);
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.footer-text {
    color: var(--text-light);
    margin: 0;
}

.footer-contact a {
    color: var(--text-dark);
    text-decoration: none;
}

.footer-contact {
    display: grid;
    gap: 8px;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-contact-link i {
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--secondary-color);
}

.footer-contact-link:hover i {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.footer-bottom {
    margin-top: 32px;
    padding: 16px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-light);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-copyright {
    color: var(--text-light);
}

.footer-legal-links {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--secondary-color);
}

.footer-divider {
    color: var(--text-light);
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* ===== CARDS & TILING ===== */

.art-card,
.location-card,
.treatment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateY(40px);
}

.art-card.fade-in,
.location-card.fade-in,
.treatment-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.art-card:hover,
.location-card:hover,
.treatment-card:hover {
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-color-soft);
    transform: translateY(-5px);
}

.art-foto,
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    background-color: var(--light-bg);
    box-sizing: border-box;
}

.card-info {
    text-align: center;
    margin-top: 15px;
    flex-grow: 1;
}

.card-info h3 {
    margin: 0 0 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.card-bio,
.card-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--primary-color);
}

.card-link:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ===== CONTAINER LAYOUTS ===== */

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
}

/* ===== GOOGLE MAPS ===== */

.map-container {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.custom-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: sans-serif;
}

.custom-marker img {
    width: 36px;
    height: 36px;
    transition: transform 0.2s ease;
}

.custom-marker:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px var(--secondary-color));
}

.custom-marker span {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-top: 4px;
    font-weight: 500;
}

/* ===== SCROLL TO TOP BUTTON ===== */

.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    font-size: 1.6rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: opacity 0.4s ease;
    opacity: 0;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
}

.scroll-to-top:hover {
    background-color: #c00000;
}

/* ===== RESPONSIVE ===== */

/* Fix navbar toggler position - prevent it from shifting left when menu opens */
.navbar-toggler {
    margin-left: auto !important;
}

@media (max-width: 768px) {
    .navbar-collapse {
        width: 100%;
    }

    .navbar-nav {
        width: 100%;
        padding: 10px 20px;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-link,
    .navbar-nav .btn.btn-appointment {
        display: inline-block;
    }

    header {
        padding: 15px 20px;
    }

    .intro-text {
        top: 85%;
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 20px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    section {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .map-container {
        height: 300px;
    }

    main {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 15px;
    }

    .logo-header {
        height: 30px;
    }

    nav a {
        padding: 8px;
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .intro-text {
        font-size: 0.9rem;
    }

}

/* ===== DOCTOR DETAIL ===== */

.doctor-detail-title {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.doctor-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 2rem 0;
}

.doctor-detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 100%;
}

.doctor-detail-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.doctor-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doctor-detail-name {
    color: var(--primary-color);
    margin: 0;
}

.doctor-detail-discipline {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.doctor-detail-description {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.doctor-detail-locations {
    margin: 3rem 0;
    padding: 2rem 0;
    text-align: center;
}

.doctor-detail-locations h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.doctor-detail-cta {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.doctor-detail-cta h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.doctor-detail-cta p {
    color: var(--text-light);
    line-height: 1.6;
}

.doctor-detail-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.doctor-detail-cta-primary,
.doctor-detail-cta-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.doctor-detail-cta-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.doctor-detail-cta-primary:hover {
    background: var(--primary-color-dark);
    box-shadow: var(--shadow-md);
}

.doctor-detail-cta-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.doctor-detail-cta-secondary:hover {
    background: var(--light-bg);
    border-color: var(--primary-color-dark);
    color: var(--primary-color-dark);
}

/* Mobile first - stacked layout */
@media (max-width: 768px) {
    .doctor-detail-title {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }

    .doctor-detail-header {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1rem 0 !important;
    }

    .doctor-detail-image {
        max-width: 100% !important;
        width: 100% !important;
    }

    .doctor-detail-img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .doctor-detail-cta {
        padding: 1.5rem !important;
        margin: 2rem 0 !important;
    }

    .doctor-detail-cta h2 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .doctor-detail-title {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .doctor-detail-header {
        gap: 1rem !important;
        padding: 0.5rem 0 !important;
    }

    .doctor-detail-discipline {
        font-size: 0.95rem !important;
    }

    .doctor-detail-description {
        font-size: 0.95rem !important;
    }

    .doctor-detail-cta-primary,
    .doctor-detail-cta-secondary {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
}

/* ===== UTILITY CLASSES ===== */

.transition-all {
    transition: all 0.3s ease;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-light-custom {
    background-color: var(--light-bg);
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE FONT SCALING FOR DESKTOP ===== */

/* Increase base font size slightly on desktop for better readability */
@media (min-width: 992px) {
    html {
        font-size: 17px;
    }
}

/* Further increase on larger desktops */
@media (min-width: 1400px) {
    html {
        font-size: 18px;
    }
}
