/* پالت رنگی لاجوردی */
:root {
  --primary-color: #1a237e; /* لاجوردی تیره */
  --secondary-color: #303f9f; /* لاجوردی متوسط */
  --accent-color: #536dfe; /* لاجوردی روشن */
  --light-color: #e8eaf6; /* لاجوردی خیلی روشن */
  --text-color: #212121; /* متن تیره */
  --text-light: #ffffff; /* متن سفید */
}

/* استایل کلی */
body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--text-color);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* هدر */
.main-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* منو */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.menu-item {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* دکمه بازگشت */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 30px;
    margin-bottom: 25px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-button:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);
}

/* لیست آموزش‌ها */
.tutorial-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tutorial-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-left: 4px solid var(--accent-color);
}

.tutorial-item h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.tutorial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-left: 4px solid var(--secondary-color);
}

/* محتوای صفحات */
.content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
    margin-top: 30px;
}

.content h3 {
    color: var(--secondary-color);
}

.content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 1px solid #eee;
}

.video-container {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

video {
    width: 100%;
    display: block;
}

/* فوتر */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px 12px 0 0;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

.menu-item {
    animation: fadeIn 0.6s ease-out forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .menu-item {
        padding: 20px;
    }
    
    .tutorial-list {
        grid-template-columns: 1fr;
    }
}