/* 
 * Kardiologie Aurich - Professional Medical Website
 * Author: Professional Web Development
 * Version: 1.0.0
 * License: MIT
 */

/* ===== VARIABLES ===== */
:root {
    /* Brand Colors */
    --primary-color: #2c5aa0;
    --secondary-color: #1e3a5f;
    --accent-color: #4a90e2;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --white: #ffffff;
    --dark: #212529;
    
    /* Typography */
    --font-family-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-pill: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 12px rgba(44, 90, 160, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: #333;
    direction: ltr;
    text-align: left;
    margin: 0;
    padding: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
}

/* ===== PROFESSIONAL LOGO SYSTEM ===== */
.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Logo Image Styles - Compact Navbar */
.logo-image {
    width: 55px;
    height: 42px;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-primary);
    transition: var(--transition-normal);
    background: white;
    padding: 3px;
    border: 2px solid var(--primary-color);
}

.logo-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Legacy logo icon styles (keeping for fallback) */
.logo-icon {
    width: 45px;
    height: 45px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    transition: var(--transition-normal);
}

.logo-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.logo-icon::before {
    content: "💙";
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: var(--font-weight-normal);
    color: var(--secondary-color);
    letter-spacing: 0.3px;
    line-height: 1.1;
}

/* Main Hero Logo Showcase - First Impression for Clients */
.hero-logo-showcase {
    text-align: center;
    margin: 0 0 2rem 0;
    position: relative;
    padding-top: 0.5rem; /* Minimal space to show full border */
}

.main-hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.2);
    transition: var(--transition-normal);
    background: white;
    padding: 15px;
    border: 2px solid var(--primary-color);
    position: relative;
    z-index: 2;
}

.main-hero-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 90, 160, 0.3);
}

/* Clean hero logo showcase */
.hero-logo-showcase {
    background: transparent;
}

/* About Section Logo Styles */
.about-logo-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.about-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.2);
    transition: var(--transition-normal);
    background: white;
    padding: 15px;
    border: 2px solid var(--primary-color);
}

.about-logo:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 30px rgba(44, 90, 160, 0.3);
}

/* Footer Logo Styles */
.footer-logo {
    width: 60px;
    height: 45px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    background: white;
    padding: 3px;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Animated pulse effect */
.logo-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* ===== NAVIGATION - Compact Height ===== */
.navbar {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    background-color: var(--white) !important;
    box-shadow: var(--shadow-sm);
    min-height: 60px;
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: #333 !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    margin-top: 60px; /* Account for fixed navbar */
}

.hero-content {
    text-align: center;
}

.hero-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.doctor-info {
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-pill);
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    min-height: 44px; /* Minimum touch target for accessibility */
    line-height: 1.4;
    text-align: center;
    touch-action: manipulation; /* Improves touch responsiveness */
    user-select: none; /* Prevents text selection on mobile */
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
    color: var(--white);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.2);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-height: 48px;
}

/* ===== MOBILE BUTTON ENHANCEMENTS ===== */
/* Improve button spacing and touch targets on all mobile devices */
@media (max-width: 991px) {
    .btn {
        margin: 0.2rem 0.1rem;
    }
    
    /* Ensure proper spacing between buttons in hero section */
    .hero-content .btn + .btn {
        margin-left: 0.5rem;
    }
    
    /* Contact section button improvements for tablets */
    .contact-info .btn + .btn {
        margin-left: 0.4rem;
    }
}

/* ===== VERTICAL BUTTON STACKING FOR MOBILE ===== */
@media (max-width: 768px) {
    /* Force all buttons to stack vertically */
    .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
    }
    
    /* Remove horizontal margins and force vertical stacking */
    .hero-content .btn + .btn,
    .contact-info .btn + .btn,
    .card-body .btn + .btn,
    .btn + .btn {
        margin-left: 0;
        margin-top: 0.8rem;
    }
    
    /* Hero section vertical stacking */
    .hero-content .mt-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    /* Contact section vertical stacking */
    .contact-info .mt-4,
    .card-body .mt-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    /* Any button container should stack vertically */
    .d-flex .btn,
    .btn-group .btn {
        flex: 1 1 100%;
        margin: 0.4rem 0;
    }
}

/* Medium mobile devices (tablets) */
@media (max-width: 991px) and (min-width: 769px) {
    .btn {
        padding: 0.8rem 2.2rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.95rem 2.8rem;
        font-size: 1.05rem;
    }
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
    min-height: 350px;
}

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

.card-body {
    padding: var(--spacing-xl);
}

.card h5 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

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

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

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

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* ===== CONTACT SECTION ===== */
.contact-info p {
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.contact-info i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.map-placeholder {
    min-height: 200px;
    border: 2px dashed #dee2e6;
    transition: var(--transition-normal);
    border-radius: var(--border-radius-md);
}

.map-placeholder:hover {
    border-color: var(--primary-color);
    background-color: rgba(44, 90, 160, 0.05);
}

/* Google Maps Integration - Enhanced */
.map-container-enhanced {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border: 2px solid var(--primary-color);
}

.map-container-enhanced:hover {
    box-shadow: 0 12px 30px rgba(44, 90, 160, 0.3);
    transform: translateY(-3px);
}

.map-container-enhanced iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: none;
    transition: var(--transition-normal);
}

/* Location Info Card */
.location-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-info-card h6 {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
}

.location-info-card .btn {
    font-weight: var(--font-weight-medium);
    transition: var(--transition-normal);
}

.location-info-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.2);
}

/* Legacy Map Container (keeping for compatibility) */
.map-container {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.map-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 300px;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(44, 90, 160, 0.2);
}

/* Location Landmarks Styling */
.location-landmarks {
    margin-top: 0.5rem;
}

.location-landmarks small {
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.location-landmarks i {
    color: var(--primary-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.location-landmarks strong {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--secondary-color) !important;
    color: var(--white);
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--white);
    opacity: 0.8;
}

.social-links a {
    transition: var(--transition-normal);
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--accent-color) !important;
}

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-muted { color: var(--text-muted) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0 2rem 0;
        min-height: 60vh;
        margin-top: 55px; /* Account for smaller navbar on mobile */
    }
    
    /* Enhanced Map Mobile Layout */
    .map-container-enhanced {
        border-width: 2px;
        margin-bottom: var(--spacing-xl);
    }
    
    .map-container-enhanced iframe {
        min-height: 350px;
    }
    
    .location-info-card {
        min-height: auto;
        padding: var(--spacing-xl) !important;
        border-left: none !important;
        border-top: 3px solid var(--primary-color) !important;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon::before {
        font-size: 16px;
    }
    
    .logo-main {
        font-size: 1.2rem;
    }
    
    .logo-sub {
        font-size: 0.8rem;
    }
    
    /* Mobile Logo Adjustments */
    .logo-image {
        width: 45px;
        height: 34px;
        padding: 2px;
    }
    
    .main-hero-logo {
        max-width: 250px;
        width: 80%;
        padding: 12px;
        border-width: 2px;
    }
    
    .logo-main {
        font-size: 1rem;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
    
    .navbar {
        min-height: 55px;
        padding: 0.4rem 0;
    }
    
    .footer-logo {
        width: 50px;
        height: 38px;
    }
    
    /* Mobile Button Vertical Stacking - Override previous styles */
    .btn {
        font-size: 0.95rem;
        padding: 0.8rem 1.8rem;
        display: block !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0.6rem auto !important;
        text-align: center;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.9rem 2rem;
        max-width: 300px !important;
    }
    
    /* Hero Section Button Vertical Stacking */
    .hero-content .btn {
        margin: 0.6rem auto !important;
        width: 100% !important;
        max-width: 280px !important;
    }
    
    .hero-content .mt-4 {
        text-align: center;
        margin-top: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.6rem !important;
    }
    
    /* Contact Section Button Vertical Stacking */
    .contact-info .btn,
    .card-body .btn {
        margin: 0.6rem auto !important;
        width: 100% !important;
        max-width: 260px !important;
        display: block !important;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        margin-top: 50px; /* Account for even smaller navbar */
        padding: 1rem 0 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: var(--spacing-lg);
    }
    
    /* Enhanced Small Mobile Button Vertical Stacking */
    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        display: block !important;
        width: 100% !important;
        max-width: 260px !important;
        margin: 0.7rem auto !important;
        text-align: center;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.85rem 1.8rem;
        max-width: 280px !important;
    }
    
    /* Hero Section Small Mobile Button Stack */
    .hero-content .btn {
        margin: 0.7rem auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 250px !important;
    }
    
    .hero-content .mt-4 {
        text-align: center;
        margin-top: 2.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.7rem !important;
    }
    
    /* Contact Section Small Mobile Button Stack */
    .contact-info .btn,
    .card-body .btn {
        margin: 0.7rem auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 230px !important;
    }
    
    /* Remove any horizontal spacing between buttons */
    .btn + .btn {
        margin-left: 0 !important;
        margin-top: 0.7rem !important;
    }
    
    /* Ensure buttons don't break on very small screens */
    .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Phone number button special handling */
    .btn[href^="tel:"] {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    
    /* Enhanced Map Mobile Optimization */
    .map-container-enhanced {
        border-width: 2px;
        border-radius: var(--border-radius-md);
    }
    
    .map-container-enhanced iframe {
        min-height: 300px;
    }
    
    .location-info-card {
        min-height: auto;
        margin-top: var(--spacing-lg);
        padding: var(--spacing-lg) !important;
    }
    
    .location-landmarks small {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* ===== EXTRA SMALL MOBILE DEVICES ===== */
@media (max-width: 400px) {
    /* Ultra-compact button styles for very small screens - Vertical Stack */
    .btn {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
        display: block !important;
        width: 100% !important;
        max-width: 240px !important;
        margin: 0.8rem auto !important;
        min-height: 44px; /* Minimum touch target size */
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        max-width: 260px !important;
        min-height: 48px;
    }
    
    /* Hero buttons for very small screens - Vertical Stack */
    .hero-content .btn {
        max-width: 230px !important;
        margin: 0.8rem auto !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* Contact buttons for very small screens - Vertical Stack */
    .contact-info .btn,
    .card-body .btn {
        max-width: 210px !important;
        margin: 0.8rem auto !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* Adjust button text for phone numbers on small screens */
    .btn[href^="tel:"] {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    /* Hero section spacing adjustments */
    .hero-content .mt-4 {
        margin-top: 2rem !important;
    }
    
    .hero-content .mt-4 .btn:first-child {
        margin-bottom: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar, .btn, footer, .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ===== LOADING STATES ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== COMPONENT SPECIFIC STYLES ===== */
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Service Image Styling - Complete Image Display */
.service-image {
    height: 200px;
    width: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition-normal);
    background-color: #f8f9fa;
    padding: 10px;
}

.card:hover .service-image {
    transform: scale(1.02);
    background-color: #ffffff;
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    margin: 0 auto var(--spacing-lg);
}

.team-avatar::before {
    content: "👨‍⚕️";
    font-size: 4rem;
}

/* ===== SEO CONTENT STYLING ===== */
.seo-content {
    background-color: var(--light-bg);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
}

.seo-content strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

/* ===== IMAGE GALLERY STYLES ===== */
.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* About Section Images */
.about-images {
    position: relative;
}

.about-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-normal);
    border-radius: var(--border-radius-md);
}

.about-images img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Unified Practice Gallery - One Seamless Photo */
.unified-gallery {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 800px;
}

/* 3-Photo Grid Layout - Balanced Design */
.practice-photo-grid-three {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Main photo takes 2/3, side photos take 1/3 */
    grid-template-rows: 1fr 1fr;
    gap: 2px; /* Minimal gap for seamless look */
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.3);
    border: 3px solid var(--primary-color);
    background: white;
    padding: 3px;
}

/* Legacy 4-photo grid (keeping for compatibility) */
.practice-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.3);
    border: 3px solid var(--primary-color);
    background: white;
    padding: 3px;
}

.photo-section {
    position: relative;
    overflow: hidden;
    background: white;
}

/* 3-Photo Layout Positioning */
.photo-section.main-photo {
    grid-row: 1 / 3; /* Spans both rows */
    grid-column: 1; /* First column */
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.photo-section.side-photo.top {
    grid-row: 1; /* Top row */
    grid-column: 2; /* Second column */
    border-radius: 0 var(--border-radius-md) 0 0;
}

.photo-section.side-photo.bottom {
    grid-row: 2; /* Bottom row */
    grid-column: 2; /* Second column */
    border-radius: 0 0 var(--border-radius-md) 0;
}

/* Legacy 4-photo positioning (keeping for compatibility) */
.photo-section.top-left {
    border-radius: var(--border-radius-md) 0 0 0;
}

.photo-section.top-right {
    border-radius: 0 var(--border-radius-md) 0 0;
}

.photo-section.bottom-left {
    border-radius: 0 0 0 var(--border-radius-md);
}

.photo-section.bottom-right {
    border-radius: 0 0 var(--border-radius-md) 0;
}

.practice-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-normal);
}

.photo-section:hover .practice-image {
    transform: scale(1.05);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44, 90, 160, 0.9));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.photo-section:hover .photo-info {
    transform: translateY(0);
}

.photo-label {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Image Loading Animation */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive Image Adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        margin-bottom: var(--spacing-xl);
    }
    
    .about-images img {
        height: 150px;
        margin-bottom: var(--spacing-md);
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .service-image {
        height: 180px;
        padding: 8px;
    }
    
    .card {
        min-height: 320px;
    }
    
    /* Unified Gallery Mobile - 3 Photos - Better Layout */
    .practice-photo-grid-three {
        height: 400px;
        gap: 2px;
        border-width: 2px;
        padding: 3px;
        grid-template-columns: 1fr 1fr; /* Side by side layout for mobile */
        grid-template-rows: 1fr 1fr;
    }
    
    .practice-photo-grid-three .photo-section.main-photo {
        grid-row: 1 / 3; /* Spans both rows */
        grid-column: 1; /* Left side */
        border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    }
    
    .practice-photo-grid-three .photo-section.side-photo.top {
        grid-row: 1; /* Top right */
        grid-column: 2;
        border-radius: 0 var(--border-radius-md) 0 0;
    }
    
    .practice-photo-grid-three .photo-section.side-photo.bottom {
        grid-row: 2; /* Bottom right */
        grid-column: 2;
        border-radius: 0 0 var(--border-radius-md) 0;
    }
    
    /* Legacy 4-photo mobile */
    .practice-photo-grid {
        height: 400px;
        gap: 1px;
        border-width: 2px;
        padding: 2px;
    }
    
    .photo-info {
        padding: 0.3rem 0.5rem;
        transform: translateY(0);
        background: rgba(44, 90, 160, 0.9);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .photo-label {
        font-size: 0.7rem;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 576px) {
    .about-images .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .about-images img {
        height: 180px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .service-image {
        height: 160px;
        padding: 6px;
    }
    
    .card {
        min-height: 300px;
    }
    
    /* Small Mobile Unified Gallery */
    .unified-gallery {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Small Mobile - 3 Photos - Clean Horizontal Layout */
    .practice-photo-grid-three {
        height: 300px;
        gap: 2px;
        border-width: 2px;
        padding: 3px;
        grid-template-columns: 1fr 1fr; /* Keep side-by-side even on small screens */
        grid-template-rows: 1fr 1fr;
    }
    
    .practice-photo-grid-three .photo-section.main-photo {
        grid-row: 1 / 3; /* Main photo spans full height on left */
        grid-column: 1;
        border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    }
    
    .practice-photo-grid-three .photo-section.side-photo.top {
        grid-row: 1; /* Top right */
        grid-column: 2;
        border-radius: 0 var(--border-radius-md) 0 0;
    }
    
    .practice-photo-grid-three .photo-section.side-photo.bottom {
        grid-row: 2; /* Bottom right */
        grid-column: 2;
        border-radius: 0 0 var(--border-radius-md) 0;
    }
    
    /* Smaller labels for very small screens */
    .photo-info {
        padding: 0.2rem 0.3rem;
    }
    
    .photo-label {
        font-size: 0.65rem;
        font-weight: 700;
    }
    
    /* Legacy 4-photo small mobile */
    .practice-photo-grid {
        height: 300px;
        gap: 1px;
        border-width: 2px;
        padding: 2px;
    }
    
    .photo-info {
        padding: 0.4rem;
    }
    
    .photo-label {
        font-size: 0.75rem;
    }
    
    /* Small Mobile Logo Adjustments */
    .logo-image {
        width: 40px;
        height: 30px;
        padding: 2px;
    }
    
    .main-hero-logo {
        max-width: 200px;
        width: 75%;
        padding: 10px;
        border-width: 1px;
    }
    
    .logo-main {
        font-size: 0.9rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
    }
    
    .navbar {
        min-height: 50px;
        padding: 0.3rem 0;
    }
    
    .footer-logo {
        width: 45px;
        height: 34px;
    }
}