    :root {
            --primary-color: #2c6da3;
            --secondary-color: #3498db;
            --accent-color: #1abc9c;
            --text-color: #333;
            --light-bg: #f8f9fa;
            --white: #ffffff;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
        }
        
/* Header and Responsive Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-left: 10px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: bold;
}

.mobile-nav-container {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.auth-buttons a {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.login-btn {
    color: var(--primary-color);
    margin-left: 10px;
}

.register-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.register-btn:hover {
    background-color: var(--secondary-color);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .mobile-nav-container {
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .mobile-nav-container.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li {
        margin: 5px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li a {
        padding: 12px 5px;
        display: block;
    }
    
    .auth-buttons {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .auth-buttons a {
        text-align: center;
        margin: 5px 0;
        width: 100%;
    }
    
    .login-btn {
        margin-left: 0;
    }
    
    /* Hamburger menu animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* When menu is open, add overlay */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

/* Adjust page content to accommodate fixed header */
main {
    margin-top: 80px; /* Should match header height */
}        
        
        
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Vazir', Tahoma, Arial, sans-serif;
        }
        
        body {
            background-color: var(--light-bg);
            color: var(--text-color);
            line-height: 1.6;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header */
        header {
            background-color: var(--white);
            box-shadow: var(--shadow);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo img {
            height: 50px;
            margin-left: 10px;
        }
        
        .logo h1 {
            color: var(--primary-color);
            font-size: 24px;
            font-weight: bold;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin: 0 15px;
        }
        
        nav ul li a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            transition: color 0.3s;
        }
        
        nav ul li a:hover {
            color: var(--accent-color);
        }
        
        .auth-buttons a {
            text-decoration: none;
            padding: 8px 20px;
            border-radius: var(--border-radius);
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .login-btn {
            color: var(--primary-color);
            margin-left: 10px;
        }
        
        .register-btn {
            background-color: var(--primary-color);
            color: var(--white);
        }
        
        .register-btn:hover {
            background-color: var(--secondary-color);
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(44, 109, 163, 0.8), rgba(26, 188, 156, 0.8)), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3') no-repeat center center/cover;
            height: 600px;
            display: flex;
            align-items: center;
            color: var(--white);
            margin-top: 80px;
        }
        
        .hero-content {
            text-align: center;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .hero h2 {
            font-size: 42px;
            margin-bottom: 20px;
        }
        
        .hero p {
            font-size: 18px;
            margin-bottom: 30px;
        }
        
        .search-box {
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow);
            margin-top: 40px;
        }
        
        .search-form {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
        }
        
        .search-form select, .search-form input {
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            flex-grow: 1;
            min-width: 200px;
        }
        
        .search-button {
            background-color: var(--accent-color);
            color: var(--white);
            border: none;
            padding: 12px 30px;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: background-color 0.3s;
            font-weight: bold;
            flex-grow: 1;
        }
        
        .search-button:hover {
            background-color: #16a085;
        }
        
        /* Specialties Section */
        .specialties {
            padding: 80px 0;
            background-color: var(--white);
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .section-title h2 {
            font-size: 32px;
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .section-title p {
            color: #777;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .specialty-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }
        
        .specialty-card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 30px 20px;
            text-align: center;
            transition: transform 0.3s;
        }
        
        .specialty-card:hover {
            transform: translateY(-10px);
        }
        
        .specialty-card i {
            font-size: 50px;
            color: var(--accent-color);
            margin-bottom: 20px;
        }
        
        .specialty-card h3 {
            margin-bottom: 15px;
            color: var(--primary-color);
        }
        
        /* Doctors Section */
        .doctors {
            padding: 80px 0;
            background-color: var(--light-bg);
        }
        
        .doctor-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }
        
        .doctor-card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s;
        }
        
        .doctor-card:hover {
            transform: translateY(-5px);
        }
        
        .doctor-img {
            height: 250px;
            width: 100%;
            object-fit: cover;
        }
        
        .doctor-info {
            padding: 20px;
            text-align: center;
        }
        
        .doctor-info h3 {
            color: var(--primary-color);
            margin-bottom: 5px;
        }
        
        .doctor-info p {
            color: #777;
            margin-bottom: 15px;
        }
        
        .book-btn {
            background-color: var(--accent-color);
            color: var(--white);
            padding: 8px 20px;
            border-radius: var(--border-radius);
            text-decoration: none;
            display: inline-block;
            transition: background-color 0.3s;
        }
        
        .book-btn:hover {
            background-color: #16a085;
        }
        
        /* Features Section */
        .features {
            padding: 80px 0;
            background-color: var(--white);
        }
        
        .feature-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .feature-card {
            display: flex;
            align-items: flex-start;
            background-color: var(--light-bg);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow);
        }
        
        
        .feature-icon {
            background-color: var(--primary-color);
            color: var(--white);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 20px;
            flex-shrink: 0;
        }
        
        .feature-icon i {
            font-size: 24px;
        }
        
        .feature-content h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        
/* Footer Styles - Responsive & Modern with Brand Colors */
footer {
    background-color: var(--primary-color); /* استفاده از رنگ اصلی قالب */
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    position: relative;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: var(--white); /* تغییر به سفید برای خوانایی بهتر روی زمینه */
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.footer-toggle {
    display: none;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.footer-toggle:hover {
    background-color: var(--accent-color);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 3px 0;
}

.footer-column a:hover {
    color: var(--white);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info li i {
    color: var(--accent-color);
    margin-left: 12px;
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.contact-info li span {
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-links a {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form .form-group {
    display: flex;
    margin-top: 15px;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    height: 46px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.newsletter-form input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    position: absolute;
    left: 3px;
    top: 3px;
    bottom: 3px;
    width: 40px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-toggle {
        display: flex;
    }
    
    .footer-column {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 15px 0;
    }
    
    .footer-column:last-child {
        border-bottom: none;
    }
    
    .footer-body {
        display: none;
        padding-top: 5px;
        padding-bottom: 15px;
        animation: fadeDown 0.3s ease-out;
    }
    
    .footer-column.active .footer-body {
        display: block;
    }
    
    .footer-header {
        margin-bottom: 0;
    }
    
    .footer-column.active .footer-header {
        margin-bottom: 15px;
    }
    
    @keyframes fadeDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

        /* Responsive Media Queries */
        @media (max-width: 992px) {
            .header-content {
                flex-direction: column;
            }
            
            nav {
                margin: 20px 0;
            }
        }
        
        @media (max-width: 768px) {
            nav ul {
                flex-direction: column;
                text-align: center;
            }
            
            nav ul li {
                margin: 10px 0;
            }
            
            .hero h2 {
                font-size: 32px;
            }
            
            .search-form {
                flex-direction: column;
            }
        }
        .login-container {
    margin-top: 120px;
    margin-bottom: 80px;
}

.login-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: white;
}

.login-card .card-header {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.login-card .card-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.login-card .card-body {
    padding: 30px;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.login-tab.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-form {
    margin-top: 20px;
}

.login-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.login-form label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
}

.login-form .form-control {
    height: 50px;
    border-radius: 8px;
    padding-right: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 109, 163, 0.15);
}

.login-form .input-icon {
    position: absolute;
    left: 15px;
    top: 45px;
    color: #94a3b8;
}

.login-form .form-control {
    padding-left: 40px;
}

.login-form .form-check {
    display: flex;
    align-items: center;
}

.login-form .form-check-input {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.login-form .form-check-label {
    margin-bottom: 0;
    cursor: pointer;
}

.login-btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
    height: 50px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-links p {
    margin-bottom: 10px;
}

.login-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.login-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.otp-section {
    margin-top: 20px;
}

.otp-timer {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    text-align: center;
}

.send-otp-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.send-otp-btn:hover {
    background-color: #16a085;
}

.otp-input {
    letter-spacing: 5px;
    text-align: center;
    font-weight: bold;
}

/* نمایش/عدم نمایش فرم‌ها */
.login-form-container {
    display: none;
}

.login-form-container.active {
    display: block;
}

/* انیمیشن ظاهر شدن */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.login-form-container.active {
    animation: fadeIn 0.4s ease-out forwards;
}


/* استایل اسلایدر پزشکان */
.doctors-slider {
    position: relative;
    margin: 0 -15px;
    padding: 0 15px;
}

.doctors-slider-container {
    overflow: hidden;
    padding: 15px 0;
    position: relative;
}

.doctors-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.doctor-card {
    flex: 0 0 calc(20% - 30px); /* 5 آیتم در هر ردیف */
    margin: 0 15px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.slider-arrow:hover {
    background: #0d6efd;
    color: white;
}

.prev-arrow {
    margin-right: -20px;
}

.next-arrow {
    margin-left: -20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #0d6efd;
    transform: scale(1.2);
}

/* رسپانسیو برای اسلایدر */
@media (max-width: 1200px) {
    .doctor-card {
        flex: 0 0 calc(25% - 30px); /* 4 آیتم در هر ردیف */
    }
}

@media (max-width: 992px) {
    .doctor-card {
        flex: 0 0 calc(33.333% - 30px); /* 3 آیتم در هر ردیف */
    }
}

@media (max-width: 768px) {
    .doctor-card {
        flex: 0 0 calc(50% - 30px); /* 2 آیتم در هر ردیف */
    }
}

@media (max-width: 576px) {
    .doctor-card {
        flex: 0 0 calc(100% - 30px); /* 1 آیتم در هر ردیف */
    }
}



/* بخش آمار */
.stats {
    background-color: #f0f4f8;
    padding: 60px 0;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.stats-item {
    background-color: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stats-item i {
    color: #0d6efd;
    font-size: 3rem;
    margin-bottom: 15px;
}

.stats-item .counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
}

.stats-item p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* رسپانسیو برای بخش آمار */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: row; /* مطمئن شویم که حتی در موبایل هم افقی باشد */
        overflow-x: auto; /* اسکرول افقی در صفحات کوچک */
        padding: 10px 0;
        gap: 20px;
    }
    
    .stat-box {
        flex: 0 0 250px; /* عرض ثابت برای هر باکس */
    }
}