* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

header {
    background: #00a9be;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover,
nav a:focus-visible {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

main {
    min-height: calc(100vh - 300px);
}

.page {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.hero {
    text-align: center;
    padding: 4rem 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00a9be;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.cta-button {
    display: inline-block;
    background: #00a9be;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #00a9be;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    min-width: 0;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #00a9be;
    margin-bottom: 1rem;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    min-width: 0;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.doctor-info {
    padding: 1.5rem;
}

.doctor-info h3 {
    color: #00a9be;
    margin-bottom: 0.5rem;
}

.doctor-info .title {
    color: #00a9be;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.doctor-info .specialty {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    min-width: 0;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #00a9be;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    min-width: 0;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.contact-item span,
.contact-item strong {
    overflow-wrap: anywhere;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .logo h1 {
        font-size: 1.45rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #00a9be;
        padding: 1rem 20px 1.25rem;
        gap: 1rem;
        box-shadow: 0 6px 12px rgba(0,0,0,0.12);
        align-items: flex-start;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 3rem 16px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .container {
        padding: 2.5rem 16px;
    }

    .services,
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card,
    .doctor-info {
        padding: 1.5rem;
    }

    .doctor-image {
        height: 280px;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.25rem;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 320px;
    }

    .doctor-image {
        height: 240px;
    }
}
