:root {
    --primary-color: #00796B; /* A calm, professional teal */
    --primary-color-dark: #004D40;
    --accent-color: #f0f4f8;  /* A very light, clean blue-gray */
    --text-color: #333;
    --heading-color: #2c3e50;
    --light-gray-bg: #f8f9fa;
    --border-color: #dee2e6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 0;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

header nav ul li a:hover, header nav ul li a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Button Styles */
.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(45deg, var(--primary-color), #009688); /* Updated gradient */
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    color: white;
    font-weight: 700;
}

/* Forms (Appointment, Promo, etc.) */
.appointment-form, .promo {
    background-color: var(--accent-color);
    padding: 60px 0;
    text-align: center;
}

.appointment-form form, .promo form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 1.5rem;
}

.appointment-form input, .promo input {
    padding: 12px;
    width: 280px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.appointment-form input:focus, .promo input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.2);
}

.appointment-form textarea, .promo textarea, .faq-form textarea {
    padding: 12px;
    width: 280px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

.appointment-form textarea:focus, .promo textarea:focus, .faq-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* General Section Styles */
.why-us, .symptoms, .services, .specialists, .faq, .reviews, .contacts-page, .about-content, .doctors-list, .services-list, .pricing-table {
    padding: 80px 0;
}

/* Why Us Section */
.why-us .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-us .feature-item, .symptoms .symptom-item {
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-us .feature-item:hover, .symptoms .symptom-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* Symptoms Section */
.symptoms .symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Services Section */
.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.services .service-item {
    border: 1px solid var(--border-color);
    padding: 25px;
    background-color: var(--light-gray-bg);
    border-radius: 8px;
}

/* Specialist and Doctor Cards */
.specialists .specialist-card, .doctors-list .specialist-card {
    border: 1px solid var(--border-color);
    background-color: white;
    padding: 25px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}

/* Swiper Styles */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* FAQ Section */
.faq-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}
.faq-list { flex: 2; min-width: 300px; }
.faq-form { flex: 1; min-width: 300px; }

.faq-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.faq-item div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}

.faq-answer {
    padding: 0 15px;
    background-color: var(--light-gray-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding: 15px;
}

/* Page Title for inner pages */
.page-title {
    background-color: var(--accent-color);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}
.page-title h1 {
    color: var(--heading-color);
    font-weight: 700;
}

/* --- Services Page Specifics --- */
.service-item-full {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}
.service-item-full h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* --- Contacts Page Specifics --- */
.contacts-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.map-container iframe {
    display: block;
    border: 0;
}
.contact-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.contact-details ul {
    list-style: none;
    padding: 0;
}
.contact-details li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.contact-details li svg {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    fill: var(--primary-color);
}

/* Pricing Page */
.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.pricing-table th, .pricing-table td {
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
}
.pricing-table th {
    background-color: var(--light-gray-bg);
}

/* Footer Styles */
footer {
    background-color: var(--heading-color);
    color: #f4f4f4;
    padding: 60px 0 0 0;
    border-top: 4px solid var(--primary-color);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h3 {
    color: white;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.footer-col p, .footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-col a, .footer-col p > a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover, .footer-col p > a:hover {
    color: white;
}
.footer-col li a {
    display: inline-block;
    padding: 5px 0;
}
.footer-col li a:hover {
    padding-left: 5px;
}
.home-contacts {
    text-align: center;
}
.home-contacts p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.legal-info {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}
.legal-info p {
    margin: 5px 0;
}
.legal-info a {
    color: #ccc;
    text-decoration: underline;
}
.copyright {
    background-color: rgba(0,0,0,0.2);
    margin-top: 40px;
    padding: 20px 0;
}
.copyright p {
    margin: 0;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.3rem; }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    header nav ul li a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .appointment-form form, .promo form {
        flex-direction: column;
        align-items: center;
    }
    .appointment-form input, .promo input, .appointment-form textarea, .promo textarea, .faq-form textarea {
        width: 100%;
        max-width: 400px;
    }

    .faq-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3 {
        padding-bottom: 5px;
        margin-bottom: 10px;
    }

    .contacts-content {
        grid-template-columns: 1fr;
    }

}
