:root {
    --bs-primary: #5f7add; /* Use your logo's purple shade */
    --bs-primary-dark: #495eab; /* Darker shade for hover effects */
}
/* Base styles */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    padding-top: 76px; /* Account for fixed navbar */
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}
/* Links styling */
a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus, a:active {
    color: var(--bs-primary-dark);
    text-decoration: none;
}
/* Section title styling without sticky behavior and transparent background */
.section-title {
    /* Remove white background to avoid clash with gray sections */
    background: transparent;
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
    font-weight: 400;
    color: #333;
    text-align: center;
}
/* Add a subtle underline to section titles */
.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--bs-primary);
    margin: 0.75rem auto 0;
}
/* Ensure sections have proper spacing */
section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
    scroll-margin-top: 80px; /* Adjust scroll position for fixed navbar */
}
/* Add more space before the first section */
section:first-of-type {
    padding-top: 6rem;
}
/* Navbar styling */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.navbar-brand {
    font-weight: 500;
    color: var(--bs-primary);
}
.navbar-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.nav-link {
    color: #555;
    font-weight: 400;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    line-height: 1.5;
}
.nav-link:hover, .nav-link:focus {
    color: var(--bs-primary);
}
.nav-link.active {
    color: var(--bs-primary) !important;
    /*font-weight: 500;*/
}
/* Hero section */
.hero {
    background-color: #f8f9fa; /* Fallback color */
    background-image: url('../images/corridor-unfocused.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5rem 0;
    position: relative;
}

/* Add an overlay to ensure text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}
/* Buttons */
.btn {
    border-radius: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--bs-primary-dark);
    border-color: var(--bs-primary-dark);
    transform: translateY(-2px);
}
.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--bs-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}
/* Cards */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Tables */
table {
    border-color: rgba(0, 0, 0, 0.05);
}
th, td {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem !important;
}
/* News items */
.news-item {
    margin-bottom: 1.5rem;
}
.news-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
/* Schedule */
.schedule-day {
    /*font-weight: 500;*/
}
.badge {
    background-color: #e0e0e0; /* neutral light gray */
    color: #333;               /* dark gray for good readability */
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 0.25rem;
    display: inline-block;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.badge-odbery {
    background-color: #dc3545;
    color: white;
}
.badge-vysetreni {
    background-color: #17a2b8;
    color: white;
}
.badge-ordinace {
    background-color: #6c757d;
    color: white;
}
.badge-objednani {
    background-color: #198754;
    color: white;
}
.badge-pracujici {
    background-color: #fd7e14;
    color: white;
}
/* Schedule cards for mobile */
.schedule-card {
    margin-bottom: 1rem;
}
.schedule-card .card-header {
    background-color: rgba(0,0,0,.03);
    font-weight: 500;
}
/* Contact info */
.contact-info {
    margin-bottom: 2rem;
}
.contact-info i {
    color: var(--bs-primary);
    font-size: 1.25rem;
    margin-right: 0.5rem;
    width: 25px;
    text-align: center;
}

/* ===== 9. CONTACT SECTION ===== */
.contact-info {
    margin-bottom: 2rem;
}

.contact-info h5 {
    margin-bottom: 0.5rem; /* Reduce spacing after person names */
}

.contact-info p {
    margin-bottom: 0.3rem; /* Reduce spacing after person names */
}

.contact-info i {
    color: var(--bs-primary);
    font-size: 1.25rem;
    margin-right: 0.5rem;
    width: 25px;
    text-align: center;
}

.contact-person {
    margin-bottom: 1.5rem;
}

/* Map container styling */
.ratio-map {
    --bs-aspect-ratio: 50%;
}

.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}

.ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.1);
}

/* Insurance companies */
.insurance-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
}
.insurance-item i {
    color: var(--bs-primary);
    font-size: 1.5rem;
    margin-right: 1rem;
}
/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}
.back-to-top:hover {
    background-color: var(--bs-primary-dark);
}
/* Modal forms */
.modal-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 2rem 0;
}
/* Honeypot field for bot detection */
.honeypot-field {
    display: none;
}

/* Update the bg-light sections to have a light purple tint */
.bg-light {
    background-color: #fcfbfd !important; /* Light purple tint instead of default gray */
}

/* Media queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    /* Stack buttons in hero section on mobile */
    .hero .d-sm-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    /* Hide table on mobile and show cards instead */
    .schedule-table-container {
        display: none;
    }
    .schedule-cards-container {
        display: block;
    }
}
@media (min-width: 769px) {
    /* Show table on desktop and hide cards */
    .schedule-table-container {
        display: block;
    }
    .schedule-cards-container {
        display: none;
    }
}

/* Quick links card styling */
.quick-links-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    margin: 0 auto;
    max-width: 800px; /* Increased to accommodate 4 columns */
}

.quick-links-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 500;
}

/* Default for small screens: 1x4 (mobile) */
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Medium screens: 2x2 layout */
@media (min-width: 576px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens: 4x1 layout */
@media (min-width: 992px) {
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.btn-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    color: #333;
}

.btn-quick-link:hover {
    background-color: var(--bs-primary);
    color: white;
}

.btn-quick-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}


/* This class is used for dynamic content reloading
   When new content is loaded via AJAX, it preserves the original DOM structure
   Used in page-loader.js for smooth content transitions without page refresh */
.content-slug-reloaded {
    display: contents;
}