/* فونت وزیر */
@font-face {
    font-family: 'Vazir';
    src: url('Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Vazir, sans-serif;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

body {
    background: #f8f9fa;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* استایل‌های هدر */
header {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 25px;
    order: 1;
}

.teacher-image {
    width: 100px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    margin-left: 15px;
    z-index: 2;
}

.teacher-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2) 0%, rgba(58, 12, 163, 0.1) 100%);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-text span {
    font-size: 0.9rem;
    display: block;
    color: #d0e7ff;
}

.main-menu {
    order: 2;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.main-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.4s ease;
    position: relative;
    font-size: 1rem;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-menu a.active {
    background: white;
    color: #4361ee;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.0rem;
    background: transparent;
    border: none;
    color: white;
    padding: 1px;
    margin-top: 1px;
}

/* بخش هیرو */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/classroom.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 35px;
    color: #e0f0ff;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #4cc9f0;
    color: white;
    border: 2px solid #4cc9f0;
}

.btn-primary:hover {
    background: #3a86ff;
    border-color: #3a86ff;
    transform: translateY(-5px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* محتوای اصلی */
.content-wrapper {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.section.active {
    transform: translateY(0);
    opacity: 1;
}

.section-title {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    color: white;
    padding: 20px 35px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
}

.section-title::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.section-title.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.section-content {
    padding: 35px;
    display: none;
}

.section-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* کارت‌ها */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 25px;
    border-top: 4px solid #4cc9f0;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 20px;
    background: #e0f2fe;
    border-bottom: 1px solid #bae6fd;
}

.card-body {
    padding: 25px;
    height: calc(100% - 70px);
    display: flex;
    flex-direction: column;
}

/* گریدها */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.form-section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* آیتم‌های منو */
.menu-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e6f0ff;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    background: #f0f8ff;
    transform: translateY(-10px);
    border-color: #4cc9f0;
}

.menu-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f72585;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.menu-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid #e6f0ff;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-image i {
    font-size: 3rem;
    color: #4361ee;
}

.menu-title {
    font-size: 1.4rem;
    color: #3a0ca3;
    margin-bottom: 10px;
}

.menu-desc {
    color: #555;
    line-height: 1.7;
}

/* اساتید */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.doctor-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.doctor-img {
    height: 250px;
    background: #f0f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-img i {
    font-size: 8rem;
    color: #4361ee;
    opacity: 0.7;
}

.doctor-info {
    padding: 20px;
}

.doctor-name {
    font-size: 1.4rem;
    color: #3a0ca3;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: #4361ee;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.doctor-experience {
    color: #666;
    margin-bottom: 15px;
}

.doctor-hours {
    background: #e0f2fe;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
}

/* بخش درباره ما */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* فرم‌ها */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3a0ca3;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e6f0ff;
    border-radius: 8px;
    background: white;
    font-family: Vazir, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* فوتر */
footer {
    background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4cc9f0;
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #b8e1ff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: white;
    padding-right: 10px;
}

.contact-info {
    color: #b8e1ff;
}

.contact-info div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info i {
    color: #4cc9f0;
    font-size: 1.2rem;
    min-width: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4cc9f0;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* استایل‌های مخصوص موبایل */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* هدر موبایل */
    header {
        padding: 10px 0;
    }
    
    .header-top {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .logo-area {
        flex-direction: row;
        align-items: center;
        text-align: right;
        gap: 15px;
        width: 100%;
        margin-bottom: 0px;
    }
    
    .teacher-image {
        width: 80px;
        height: 80px;
        margin: 0;
    }
    
    .logo-text {
        text-align: right;
        flex-grow: 1;
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 1rem;
    }
    
    .main-menu {
        width: 100%;
        order: 3;
    }
    
    /* منوی موبایل */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 10px 0;
        width: 100%;
    }
    
    .main-menu ul {
        display: none;
        flex-direction: column;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 5px;
    }
    
    .main-menu ul.active {
        display: flex;
    }
    
    .main-menu a {
        padding: 10px;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
    }
    
    /* هیرو موبایل */
    .hero-section {
        height: 70vh;
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/classroom.jpg');
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        width: 80%;
    }
    
    /* بخش‌های محتوا */
    .content-wrapper {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .section {
        margin-bottom: 30px;
    }
    
    .section-title {
        padding: 15px 20px;
        font-size: 1.4rem;
    }
    
    .section-content {
        padding: 20px;
    }
    
    /* شبکه‌بندی‌ها */
    .menu-grid,
    .doctors-grid,
    .form-section-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* بخش درباره ما */
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    /* فرم‌ها */
    .form-card {
        margin-bottom: 20px;
    }
    
    /* فوتر */
    .footer-col {
        text-align: center;
    }
    
    .contact-info div {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .copyright {
        font-size: 0.9rem;
    }
}

/* استایل‌های مخصوص دسکتاپ */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
    
    /* بهبود منوی دسکتاپ */
    .main-menu ul {
        display: flex;
    }
    
    /* بهبود هیرو دسکتاپ */
    .hero-section {
        height: 90vh;
    }
    
    /* بهبود شبکه‌بندی‌ها */
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .doctors-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .form-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* استایل‌های مشترک برای همه دستگاه‌ها */
.form-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-content {
    flex-grow: 1;
}

/* پیام‌های وضعیت */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* استایل‌های جدید برای بخش خدمات آموزشی */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border-top: 4px solid #4361ee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.2);
    border-top-color: #4cc9f0;
}

.service-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f72585;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(247, 37, 133, 0.3);
}

.service-icon {
    height: 120px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #4361ee;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    color: white;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    color: #3a0ca3;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-desc {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e0f2fe;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4361ee;
    font-weight: 600;
}

.service-price {
    background: #e0f2fe;
    color: #3a0ca3;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.service-features {
    margin-top: 20px;
    background: #f8fbff;
    padding: 15px;
    border-radius: 10px;
}

.service-features h4 {
    color: #3a0ca3;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-features ul {
    list-style: none;
    padding-right: 15px;
}

.service-features li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 8px;
    color: #555;
}

.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: #4cc9f0;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
}