/* MDL specific additional styles */

/* Center the second row of cards */
.centered-row {
    display: flex;
    justify-content: center;
}

.centered-row .content-section {
    max-width: 500px;
}

/* Ensure centered row works well on mobile */
@media (max-width: 768px) {
    .centered-row {
        display: block; /* Stack on mobile */
    }
    
    .centered-row .content-section {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Team separator styles */
.team-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 40px auto;
    width: 80%;
}

.team-heading {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2.2rem;
    padding: 15px;
    border-bottom: 2px solid var(--accent-color);
    border-top: 2px solid var(--accent-color);
    background-color: rgba(49, 130, 206, 0.05);
    max-width: 800px;
    margin: 40px auto 30px;
}

.team-heading i {
    margin-right: 10px;
    color: var(--accent-color);
}

.founder-profile {
    margin-bottom: 40px;
}

.founder-content {
    padding: 0 15px;
}

/* Insurance grid for visual representation */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0 30px;
}

.insurance-grid span {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 3px solid var(--accent-color);
}

.insurance-grid span:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.insurance-grid i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Logistics container */
.logistics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.logistics-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-color);
}

.logistics-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.logistics-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.logistics-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.logistics-item p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Pathology reporting cards */
.pathology-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.pathology-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 25px 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 3px solid var(--accent-color);
}

.pathology-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pathology-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.pathology-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

.pathology-card ul {
    list-style-type: none;
    padding-left: 0;
}

.pathology-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.pathology-card ul li:before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

@media (max-width: 768px) {
    .logistics-container, 
    .pathology-cards {
        grid-template-columns: 1fr;
    }
    
    .insurance-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
:root {
    /* Additional variables for consistent component styling */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 6px 16px rgba(0,0,0,0.15);
}

/* Base responsive container class */
.container-responsive {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

/* Text alignment classes */
.text-justified {
    text-align: justify;
    hyphens: auto;
}

.text-center {
    text-align: center;
}
.profile-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(49, 130, 206, 0.05);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
}

/* Standardized icon list component */
.icon-list {
    list-style-type: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.icon-list li i {
    color: var(--accent-color);
    margin-right: var(--spacing-sm);
    width: 20px;
    text-align: center;
    margin-top: 3px; /* Align icon with first line of text */
}

/* Custom animation for the logo */
.brand-logo img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); /* Add shadow to logo for better visibility */
}

.brand-logo:hover img {
    transform: scale(1.1);
}

/* Logo enhancements */
.brand-logo {
    padding: 12px 0; /* Adjusted padding to accommodate larger logo */
}

@media (max-width: 480px) {
    .brand-logo img {
        height: 45px; /* Slightly smaller on mobile */
    }
    .brand-logo {
        font-size: 1.1rem; /* Smaller font on mobile */
    }
}

/* Enhanced visibility for the logo and navigation */
.navbar {
    background-color: rgba(64, 75, 95, 0.92); /* Lighter blue-gray color */
    backdrop-filter: blur(8px); /* Increased blur effect for modern browsers */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 3px 20px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Beta notice styling */
.beta-notice {
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    margin-top: var(--spacing-md);
    text-align: center;
    font-size: 0.95rem;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

/* Footer quick links styling fix */
.footer-section a {
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
    padding: 5px 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section a:hover {
    color: #ffffff;
    border-bottom: 1px solid var(--accent-color);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Additional mobile-specific adjustments */
    .container-responsive {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Improve text readability on mobile */
    .text-justified {
        text-align: left;
        hyphens: none;
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Better touch targets for mobile */
    .nav-menu li a {
        padding: 16px 20px;
    }
    
    .footer-section a {
        padding: 8px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer-section a:hover {
        border-bottom: 1px solid var(--accent-color);
    }
}

@media (max-width: 480px) {
    /* Smaller vertical spacing on mobile */
    .main-content {
        padding-top: 85px;
    }
    
    /* Ensure carousel captions are readable */
    .carousel-caption {
        padding: 10px 10px 35px;
    }
    
    /* Fix menu toggle display on iPhone */
    .navbar-toggle {
        padding-right: 15px !important;
        padding-left: 15px !important;
        white-space: nowrap !important;
        overflow: visible !important;
        width: auto !important;
    }
    
    .navbar-toggle span {
        display: inline-block !important;
    }
    
    /* Improve nav container spacing */
    .nav-container {
        padding: 0 10px;
        justify-content: space-between; /* Ensure good spacing between elements */
    }
    
    /* Hide logo on mobile to prevent menu overlap */
    .brand-logo img {
        display: none;
    }
    
    /* Adjust title position when logo is hidden */
    .brand-logo {
        padding-left: 5px;
        margin-right: 15px; /* Add space between title and menu button */
    }
    
    /* Ensure full title is visible on mobile */
    .brand-logo span {
        white-space: normal;
        overflow: visible;
        font-size: 1rem; /* Smaller font size to fit the full title */
        line-height: 1.2;
        max-width: 200px; /* Limit width to prevent overlap with menu button */
    }
}

.brand-logo span {
    text-shadow: 0 2px 4px rgba(0,0,0,0.7); /* Stronger text shadow for better readability */
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff; /* Ensure text is white for maximum contrast */
    position: relative;
    z-index: 2; /* Ensure text is above any backgrounds */
}

/* Custom styling for emphasis text */
.emphasis {
    color: var(--accent-color);
    font-weight: 600;
}

/* Call to action button */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #2c5282;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Quote styling */
.quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--secondary-color);
    position: relative;
    padding: 20px 30px;
    margin: 30px 0;
    text-align: center;
}

.quote:before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 0;
}

.quote:after {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    bottom: -30px;
    right: 0;
}

/* Enhanced standardized card component */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    border-bottom: 3px solid transparent;
}

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

/* Maintain existing card styling for content-section */
.content-section {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Specific styling for Dr. Muhlbauer's photo */
#jan-muhlbauer-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 280px; /* Control width of container */
    margin: 0 auto; /* Center on small screens */
}

#jan-muhlbauer-photo img {
    object-fit: contain;
    object-position: center;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Thumbnail style for staff photos */
.staff-photo {
    max-width: 280px !important; /* Enforce thumbnail size */
    height: 320px !important; /* More appropriate height for a portrait */
}

.content-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(49, 130, 206, 0.05);
    transition: height 0.3s ease;
    z-index: 0;
}

.content-section:hover:before {
    height: 100%;
}

.content-section:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.content-section > * {
    position: relative;
    z-index: 1;
}