/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #5799c7 0%, #3c6b8f 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    animation: fadeIn 0.6s ease-in;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #5799c7;
}

/* Clinic Logo */
.clinic-logo {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Language Switcher */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 30px;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #7d7d7d;
    transition: color 0.3s ease;
    padding: 0 5px;
}

.lang-btn.active, .lang-btn:hover {
    color: #5799c7;
}

.clinic-name {
    font-size: 2.5rem;
    color: #5799c7;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 15px;
    color: #5799c7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #3c6b8f;
}

/* Contact Info Section */
.contact-info {
    margin-bottom: 40px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #1c9a6b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(87, 153, 199, 0.2);
}

.info-card h2 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.phone-link {
    display: inline-block;
    font-size: 1.8rem;
    color: #5799c7;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #3c6b8f;
}

address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.image-scroll-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.clinic-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* Directions Section */
.directions-section {
    text-align: center;
    margin: 40px 0;
}

.directions-button {
    display: inline-block;
    background: linear-gradient(135deg, #1c9a6b 0%, #157a54 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(28, 154, 107, 0.4);
}

.directions-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(28, 154, 107, 0.6);
}

/* Directions Content */
.directions-content {
    margin-bottom: 30px;
}

.directions-content p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #555;
}

.directions-content strong {
    color: #5799c7;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-link-wrapper {
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
}

.map-link-wrapper a {
    color: #5799c7;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.map-link-wrapper a:hover {
    color: #3c6b8f;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
    color: #999;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .lang-switch {
        position: static;
        margin-bottom: 15px;
        text-align: right;
    }
    
    .clinic-logo {
        width: 100px;
    }
    
    .container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .clinic-name {
        font-size: 2rem;
    }
    
    .phone-link {
        font-size: 1.5rem;
    }
    
    .directions-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .info-card {
        padding: 20px;
    }

    .image-scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .clinic-photo {
        width: 180%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .clinic-logo {
        width: 80px;
    }

    .clinic-name {
        font-size: 1.7rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .phone-link {
        font-size: 1.3rem;
    }
    
    address {
        font-size: 1rem;
    }
}
