/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #20195b;
    /* آبی تیره */
    --secondary-color: #221d58;
    /* آبی روشن */
    --accent-color: #ff7d00;
    /* نارنجی */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --text-light: #fff;
}

body {
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: var(--light-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-left: 40px;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 32px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Clinics Section */
.clinics {
    padding: 80px 0;
    background-color: #fff;
}
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .clinics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clinics-grid {
        grid-template-columns: 1fr;
    }
}

.clinic-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.clinic-card:hover {
    transform: translateY(-10px);
}

.clinic-card h3 {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px;
    font-size: 20px;
}

.clinic-card p {
    padding: 15px;
}

.clinic-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appointment-methods {
    padding: 15px;
}

.appointment-methods h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.appointment-methods ul {
    list-style: none;
    margin-bottom: 15px;
}

.appointment-methods ul li {
    margin-bottom: 8px;
}

.appointment-methods ul li a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.appointment-methods ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-color);
}

.note {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Location Section */
.location {
    padding: 80px 0;
    background-color: var(--light-color);
}

.map {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.map iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    margin-left: 10px;
    color: var(--accent-color);
    font-size: 20px;
}

.contact-form {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-about h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact ul li i {
    margin-left: 10px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Responsive Styles */
@media (max-width: 992px) {

    .hero .container,
    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .hero-content,
    .about-text {
        padding-left: 0;
        margin-bottom: 30px;
    }

    .hero-image,
    .about-image {
        text-align: center;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* استایل برای لینک شماره تلفن */
.sms-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: bold;
}
.sms-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* استایل برای بهتر نمایش دادن لیست‌ها */
.about-text ul {
    padding-right: 20px;
    line-height: 1.8;
}
.about-text li {
    margin-bottom: 8px;
}

/* استایل برای عکس مطب شخصی */
.clinic-image img {
    object-fit: cover;
    object-position: bottom;
}
