﻿/* ============================================ */
/* فونت‌های فارسی - Vazir */
/* ============================================ */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ============================================ */
/* Reset و تنظیمات پایه */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff7b54;
    --secondary-color: #16213e;
    --accent-color: #ff5a2c;
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================ */
/* هدر و ناوبری */
/* ============================================ */
header {
    background: var(--dark-gradient);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.logo-image {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.persian-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: white;
}

.english-name {
    font-size: 1rem;
    color: var(--primary-color);
    margin-top: 5px;
    font-weight: 300;
}

/* ناوبری */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    background-color: var(--primary-color);
    color: white;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    left: 15px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    transform: scaleX(1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================ */
/* بخش هیرو */
/* ============================================ */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/slider/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: white;
    animation: fadeInUp 1s ease 0.2s both;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================ */
/* دکمه‌ها */
/* ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

/* ============================================ */
/* بخش‌های اصلی */
/* ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================ */
/* اسلایدر تصاویر */
/* ============================================ */
.image-slider-section {
    background-color: white;
    padding: 80px 0;
}

.slider-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.swiper {
    width: 100%;
    height: 500px;
    border-radius: 15px;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.swiper-slide:hover .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

/* ناوبری Swiper */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transform: scale(0.8);
    transition: all 0.3s ease;
    opacity: 0;
}

.slider-container:hover .swiper-button-next,
.slider-container:hover .swiper-button-prev {
    opacity: 1;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.5rem;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1);
}

.swiper-pagination-bullet {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    opacity: 1;
}

/* ============================================ */
/* دوره‌های آموزشی */
/* ============================================ */
.courses {
    background-color: #f0f0f0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
}

.course-card-content {
    padding: 25px;
}

.course-card-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.course-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-card-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    min-height: 72px;
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.feature i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.feature span {
    color: #333;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price-old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.price-new {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: bold;
}

.price-discount {
    background-color: #ffeb3b;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.course-btn {
    width: 100%;
    text-align: center;
}

.featured-course {
    border: 2px solid var(--primary-color);
}

.featured-btn {
    background-color: var(--accent-color);
}

.featured-btn:hover {
    background-color: var(--primary-color);
}

/* ============================================ */
/* مطالب آموزشی و ویدیو */
/* ============================================ */
.educational-content {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    border-right: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.educational-content h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
}

.lesson-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.lesson-text {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.lesson-text h4 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.lesson-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.lesson-list li {
    margin-bottom: 12px;
    padding-right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.lesson-benefits {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border-right: 3px solid #4CAF50;
}

.lesson-benefits h5 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.lesson-benefits p {
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-benefits p::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
}

/* ویدیو */
.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
}

.video-player {
    position: relative;
    width: 100%;
    background-color: #000;
}

.video-player video {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    border-radius: 15px 15px 0 0;
}

/* کنترل‌های سفارشی */
.custom-controls {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player:hover .custom-controls {
    opacity: 1;
}

.custom-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.custom-controls button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.play-pause-btn {
    font-size: 1.5rem !important;
}

.progress-container {
    flex: 1;
    margin: 0 15px;
    position: relative;
    height: 20px;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    width: 0%;
}

.progress-slider {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.time-display {
    color: white;
    font-size: 0.9rem;
    font-family: monospace;
    margin: 0 10px;
    min-width: 100px;
}

.volume-slider {
    width: 80px;
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.volume-slider:hover {
    opacity: 1;
}

/* اطلاعات ویدیو */
.video-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.download-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* فهرست مطالب */
.video-chapters {
    padding: 20px;
    background-color: white;
    border-top: 1px solid #eee;
}

.video-chapters h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.chapters-list {
    list-style: none;
    padding: 0;
}

.chapters-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-right: 3px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapters-list li:hover {
    background-color: #e9ecef;
    transform: translateX(-5px);
}

.chapters-list li::after {
    content: '▶';
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cta-section {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 30px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.cta-btn {
    font-size: 1.2rem;
    padding: 15px 40px;
}

/* ============================================ */
/* سوالات متداول */
/* ============================================ */
.faq-section {
    margin-top: 60px;
}

.faq-section h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    padding: 20px;
    max-height: 500px;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
}

.faq-answer li {
    margin-bottom: 10px;
    padding-right: 25px;
    position: relative;
}

.faq-answer li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
}

/* ============================================ */
/* بخش تضمین */
/* ============================================ */
.guarantee {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 60px;
    border: 2px dashed var(--primary-color);
    position: relative;
    overflow: hidden;
}

.guarantee::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 123, 84, 0.1), transparent);
    animation: shine 3s infinite;
}

.guarantee-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.guarantee h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.guarantee p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
}

/* ============================================ */
/* بخش تماس با ما - طراحی یکپارچه */
/* ============================================ */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
}

/* اطلاعات تماس - زمینه گرادیانت بنفش */
.contact-info {
    background: var(--purple-gradient);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2em;
    color: white;
}

.contact-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: white;
}

.contact-details a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: opacity 0.3s;
}

.contact-details a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
}

.contact-note {
    margin-top: 5px;
    font-size: 0.9em;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.social-section {
    margin-top: 30px;
}

.social-section h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

/* فرم ثبت‌نام - زمینه سفید */
.contact-form-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    color: #333;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--purple-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-notice {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-right: 4px solid #667eea;
}

.form-notice p {
    margin: 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-notice i {
    color: #667eea;
    font-size: 1.2em;
}

/* اعتبارسنجی فرم */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.error {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.valid {
    border-color: #28a745 !important;
    background-color: #f8fff8 !important;
}

/* لودینگ */
.loading {
    display: none;
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin-bottom: 20px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

#loading i {
    font-size: 3rem;
    color: var(--primary-color);
}

#loading span {
    color: #333;
    font-size: 1.2rem;
}

/* ============================================ */
/* مدال موفقیت */
/* ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s;
}

.modal-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.modal-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================ */
/* پیش‌لودینگ */
/* ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.music-note {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: musicNote 2s ease-in-out infinite;
}

.preloader-content p {
    color: white;
    font-size: 1.5rem;
    animation: fadeInOut 2s infinite;
}

/* ============================================ */
/* دکمه بازگشت به بالا */
/* ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ============================================ */
/* فوتر */
/* ============================================ */
footer {
    background: var(--dark-gradient);
    color: white;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.footer-logo h3 {
    margin: 0;
    color: white;
    font-size: 1.3em;
}

.footer-tagline {
    color: var(--primary-color);
    font-size: 0.9em;
    margin-top: 5px;
}

.footer-description {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '›';
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #ddd;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.footer-contact .contact-item i {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-top: 3px;
}

.footer-contact span {
    display: block;
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 2px;
}

.footer-contact a,
.footer-contact p {
    color: white;
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-newsletter {
    margin-top: 25px;
}

.footer-newsletter h4 {
    color: white;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #222;
    color: white;
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    width: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #764ba2;
}

/* کپی‌رایت */
.copyright-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.copyright-content p {
    color: #aaa;
    margin-bottom: 10px;
}

.copyright-content strong {
    color: white;
}

.developer-note {
    color: var(--primary-color) !important;
    font-style: italic;
}

.site-info {
    color: #888;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.badge {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================ */
/* کلاس‌های کمکی */
/* ============================================ */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================ */
/* انیمیشن‌ها */
/* ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes musicNote {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-10deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(10deg); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================ */
/* ریسپانسیو - طراحی واکنش‌گرا برای موبایل */
/* ============================================ */

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* هدر و منو */
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--secondary-color);
        padding: 30px;
        transition: right 0.3s ease;
        z-index: 9999;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    nav a {
        display: block;
        padding: 12px 15px;
        color: white;
    }
    
    nav a:hover,
    nav a.active {
        background: var(--primary-color);
    }
    
    /* هیرو */
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* دوره‌ها */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-card-content h3 {
        font-size: 1.3rem;
    }
    
    .feature {
        background-color: #e9ecef;
        border: 1px solid #dee2e6;
    }
    
    .feature span {
        color: #212529;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* بخش تماس - یکپارچه و بدون تداخل */
    .contact-info {
        padding: 25px;
    }
    
    .contact-info .contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: right;
    }
    
    .contact-info .contact-details {
        text-align: right;
    }
    
    .contact-info .social-icons {
        justify-content: flex-start;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    /* فوتر */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-contact .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .newsletter-form {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .course-card-content {
        padding: 20px;
    }
    
    .feature {
        width: 100%;
        justify-content: center;
    }
    
    .contact-info {
        padding: 20px 15px;
    }
    
    .contact-info .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-info .contact-details {
        text-align: center;
    }
    
    .contact-info .social-icons {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 20px 15px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* ============================================ */
/* تنظیمات چاپ */
/* ============================================ */
@media print {
    header, footer, .hero-buttons, .contact-form, .scroll-top-btn,
    .preloader, .modal, #loading {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
}