/* فونت‌ها */
@import url('https://fonts.googleapis.com/css2?family=IranSans&display=swap');

/* متغیرهای رنگ */
:root {
    --primary-color: #6D8B74;
    --primary-light: #9EB384;
    --primary-dark: #435F48;
    --secondary-color: #D0C9C0;
    --light-color: #F5F5F5;
    --dark-color: #333333;
    --text-color: #444444;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IranSans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #c0b8ad;
}

.btn-login {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-right: 15px;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-dark);
    font-size: 28px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-light);
    margin: 15px auto;
}

/* هدر */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    margin-left: 10px;
}

.logo h1 {
    color: var(--primary-dark);
    font-size: 22px;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* بخش معرفی */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-left: 30px;
}

.hero-text h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* مقالات */
.articles-section {
    padding: 80px 0;
    background-color: var(--white);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.article-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.article-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 14px;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.read-more:hover {
    color: var(--primary-dark);
}

.btn-view-all {
    display: block;
    text-align: center;
    margin: 0 auto;
    width: 200px;
}

/* دوره‌های آموزشی */
.courses-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.courses-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 25px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-info {
    padding: 20px;
}

.course-info h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-color);
}

.course-meta span {
    display: flex;
    align-items: center;
}

.course-meta i {
    margin-left: 5px;
    color: var(--primary-color);
}

.course-info p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 14px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 16px;
}

.btn-enroll {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-size: 14px;
}

.btn-enroll:hover {
    background-color: var(--primary-dark);
}

/* نوبت دهی */
.appointment-section {
    padding: 80px 0;
    background-color: var(--white);
}

.appointment-section .container {
    display: flex;
    gap: 40px;
}

.appointment-form {
    flex: 1;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.appointment-form h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 139, 116, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

.appointment-info {
    flex: 1;
}

.appointment-info h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 24px;
}

.appointment-info p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.benefits-list {
    margin-bottom: 30px;
}

.benefits-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.benefits-list i {
    color: var(--primary-color);
    margin-left: 10px;
}

.contact-info {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--primary-color);
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* فروشگاه */
.shop-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 16px;
}

.product-info p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 14px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-add-to-cart:hover {
    background-color: var(--primary-dark);
}

/* اخبار */
.news-section {
    padding: 80px 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    display: flex;
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 14px;
    margin-top: 5px;
}

.news-content {
    padding: 15px;
    flex: 1;
}

.news-content h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 16px;
}

.news-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 14px;
}

/* پاورقی */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-right: 5px;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.footer-contact ul li i {
    margin-left: 10px;
    color: var(--primary-light);
}

.footer-newsletter p {
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.6;
}

.footer-newsletter form {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-newsletter button {
    padding: 0 20px;
    background-color: var(--primary-light);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* مودال ورود */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.login-form h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

.login-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.forgot-password {
    color: var(--primary-color);
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
}

.btn-login-submit:hover {
    background-color: var(--primary-dark);
}

.register-link {
    text-align: center;
    font-size: 14px;
}

.register-link a {
    color: var(--primary-color);
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-text {
        padding-left: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .appointment-section .container {
        flex-direction: column;
    }
    
    .appointment-form {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .header .container {
        padding: 10px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .courses-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: right;
    }
    
    .tab-btn.active {
        border-bottom: none;
        border-left: 3px solid var(--primary-color);
    }
}