/* Reset و تنظیمات پایه */
:root {
    --primary-color: #4a6fa5;
    --primary-hover: #3a5a8f;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    
}

html {
    scroll-behavior: smooth;
    max-width: 1366px;
    margin: auto; /* اضافه کردن این خط */
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    direction: rtl;
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: var(--transition);
    /* -webkit-user-select: none;
    user-select: none; */
    position: relative;
    max-width: 1366px;
    margin: auto; /* این خط را اصلاح کنید */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: inherit;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* نوار ناوبری */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    margin: auto;
    max-width: 90%;
    margin-top: 5px;
    border-radius: 15px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    gap: 10px;
}

.logo img {
    height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
}

.nav-links ul {
    display: flex;
    gap: 7px;
}

.nav-links a {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* منوی موبایل */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: var(--transition);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--border-radius);
}

.mobile-menu a:hover, .mobile-menu a.active {
    background-color: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--gray-medium);
}

/* بخش اصلی */
main {
    padding-top: 80px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* بخش معرفی */
.hero-section {
    padding: 60px 0;
    max-width: 1366px;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray-dark);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.profile-image {
    border-radius: var(--border-radius);
    box-shadow: 0 0 15px #00000069;
    max-width: 400px;
    width: 100%;
}

/* بخش دوره‌ها */
.courses-section {
    padding: 60px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-level {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.course-meta i {
    margin-left: 5px;
}

.course-description {
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price .current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.course-price .original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--gray-dark);
    margin-right: 10px;
}

/* بخش مقالات */
.blog-section {
    padding: 60px 0;
    background-color: var(--gray-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-thumbnail {
    height: 200px;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.blog-category {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

.blog-date {
    color: var(--gray-dark);
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.blog-excerpt {
    margin-bottom: 15px;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-read-more:hover {
    text-decoration: underline;
}

/* بخش درباره من */
.about-section {
    padding: 60px 0;
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    flex: 1;
}

.about-text {
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.skills {
    margin: 30px 0;
}

.skills-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill {
    background-color: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 400px;
    width: 100%;
}

/* بخش تماس با من */
.contact-section {
    padding: 60px 0;
    background-color: var(--gray-light);
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-link {
    color: var(--gray-dark);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* پاورقی */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo img {
    height: 30px;
}

.footer-description {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-right: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* حالت‌های پاسخگو */
@media (max-width: 992px) {
    .hero-section .container,
    .about-section .container {
        flex-direction: column;
    }
    
    .hero-content,
    .about-content {
        text-align: center;
    }
    
    .hero-actions,
    .skills-list {
        justify-content: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 1205px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .courses-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* استایل اسلایدرها */
.courses-slider, .blog-slider {
    width: 100%;
    overflow-x: auto;
    cursor: grab;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* برای اسکرول نرم در iOS */
    scrollbar-width: none; /* مخفی کردن اسکرولبار در فایرفاکس */
    margin-bottom: 20px;
}

.courses-slider::-webkit-scrollbar, 
.blog-slider::-webkit-scrollbar {
    display: none; /* مخفی کردن اسکرولبار در کروم/سافاری */
}

.slider-container {
    display: flex;
    gap: 20px;
    padding-bottom: 15px; /* فضای برای اسکرول */
    width: max-content; /* عرض بر اساس محتوا */
    overflow-x: auto;
}

.course-card, .blog-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 300px; /* عرض ثابت برای هر کارت */
}

/* برای دستگاه‌های موبایل */
@media (max-width: 768px) {
    .course-card, .blog-card {
        width: 280px;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* ==================== */
/* فوتر شناور صفحه اصلی */
/* ==================== */
.main-footer {
    position: relative;
    background: linear-gradient(135deg, #2b2d42, #1a1a2e);
    color: #fff;
    padding-top: 80px;
    margin-top: 100px;
    overflow: hidden;
  }
  
  .footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%232b2d42" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%232b2d42" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%232b2d42"/></svg>');
    background-size: cover;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
  }
  
  .footer-brand {
    margin-bottom: 30px;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
  }
  
  .footer-logo i {
    color: #4a6fa5;
    font-size: 1.8rem;
  }
  
  .footer-motto {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
  }
  
  .footer-social {
    display: flex;
    gap: 15px;
  }
  
  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
  }
  
  .footer-social a:hover {
    background: #4a6fa5;
    transform: translateY(-3px);
  }
  
  .links-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .links-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #4a6fa5;
  }
  
  .links-column ul {
    list-style: none;
  }
  
  .links-column li {
    margin-bottom: 12px;
  }
  
  .links-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .links-column a:hover {
    color: white;
    padding-right: 5px;
  }
  
  .contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
  }
  
  .contact-info i {
    width: 20px;
    text-align: center;
    
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
  }
  
  .footer-legal {
    display: flex;
    gap: 20px;
  }
  
  .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: all 0.3s ease;
  }
  
  .footer-legal a:hover {
    color: white;
  }
  
  /* حالت شناور */
  .main-footer {
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
  }
  
  .main-footer.visible {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* حالت تیره */
  .dark-mode .main-footer {
    background: linear-gradient(135deg, #121212, #1a1a1a);
  }
  
  .dark-mode .footer-wave {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23121212" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23121212" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23121212"/></svg>');
  }
  
  /* رسپانسیو */
  @media (max-width: 768px) {
    .footer-content {
      grid-template-columns: 1fr;
    }
    
    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }
    
    .footer-legal {
      flex-direction: column;
      gap: 10px;
    }
  }


/* به فایل main.css اضافه کنید */
.courses-slider, .blog-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .slider-container {
    display: flex;
    gap: 20px;
    padding-bottom: 10px; /* فضای برای اسکرول بار */
    scrollbar-width: none; /* برای فایرفاکس */
  }
  
  .slider-container::-webkit-scrollbar {
    display: none; /* مخفی کردن اسکرول بار در کروم */
  }
  
  .course-card, .blog-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    cursor: grab;
    user-select: none;
  }
  
  .course-card:active, .blog-card:active {
    cursor: grabbing;
  }

  /* استایل فوتر با لینک‌های افقی */
.main-footer {
    background: linear-gradient(135deg, #2b2d42, #1a1a2e);
    color: #fff;
    padding: 40px 0 20px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 30px;
  }
  
  .footer-brand {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
  }
  
  .footer-logo i {
    color: #4a6fa5;
  }
  
  .footer-motto {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
  }
  
  /* لینک‌های افقی */
  .footer-links-horizontal {
    flex: 2;
    display: flex;
    gap: 40px;
    min-width: 300px;
  }
  
  .links-group {
    flex: 1;
  }
  
  .links-group h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
  }
  
  .links-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #4a6fa5;
  }
  
  .links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .links-group li {
    margin: 0;
  }
  
  .links-group a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
  }
  
  .links-group a:hover {
    color: white;
    transform: translateX(-5px);
  }
  
  /* بخش تماس */
  .footer-contact {
    flex: 1;
    min-width: 200px;
  }
  
  .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
  }
  
  .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #4a6fa5;
  }
  
  .contact-info {
    list-style: none;
  }
  
  .contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
  }
  
  .contact-info i {
    width: 20px;
    text-align: center;
  }
  
  /* بخش پایینی فوتر */
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  
  .copyright {
    font-size: 0.9rem;
    opacity: 0.7;
  }
  
  .footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: all 0.3s ease;
  }
  
  .footer-legal a:hover {
    color: white;
  }
  
  .footer-legal span {
    opacity: 0.5;
  }
  
  /* حالت تیره */
  .dark-mode .main-footer {
    background: linear-gradient(135deg, #2b2d42, #1a1a2e);
  }
  
  /* رسپانسیو */
  @media (max-width: 768px) {
    .footer-links-horizontal {
      flex-direction: column;
      gap: 20px;
    }
    
    .footer-top {
      gap: 30px;
    }
  }
  
  @media (max-width: 480px) {
    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }
  }

  @media (max-width: 992px) {
    .decorations {
      display: none;
    }
  }
  

  
  .decorations svg{
    position: absolute;
  }

  .decoration {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.4;
    transition: var(--transition);
    
  }
  
  /* ستاره */
  .decoration.star {
    top: 10%;
    left: 10%;
    width: 30px;
    height: 30px;
    animation: rotate 30s linear infinite;
  }
  
  /* دایره */
  .decoration.circle {
    top: 10%;
    right: 35%;
    width: 20px;
    height: 20px;
    animation: float 20s ease-in-out infinite alternate;
  }
  
  /* موج پایین صفحه */
  .decoration.wave {
    bottom: 10%;
    left: 0;
    width: 100%;
    height: 100px;
  }

  /* موقعیت ها */
  .code-icon {
    top: 15%;
    right: 10%;
    animation: float 20s ease-in-out infinite alternate;
  }
  
  
  .terminal-icon {
    bottom: 17%;
    right: 30%;
    animation: rotate 50s linear infinite reverse;
  }
  

  .java-icon{
    z-index: -1;
    width: 170px;
    height: 170px;
    top: 12%;
    left: 7%;
    animation: float2 25s ease-in-out infinite alternate;
  }

  .python-icon{
    z-index: -1;
    width: 180px;
    height: 180px;
    top: 10%;
    left: 45%;
    animation: float2 25s ease-in-out infinite alternate;
  }

  .cpp-icon{
    z-index: -1;
    width: 100px;
    height: 100px;
    top: 3%;
    left: 50%;
    animation: float2 25s ease-in-out infinite alternate;
  }

  .R-logo{
    z-index: -1;
    width: 170px;
    height: 170px;
    top: 3%;
    left: 7%;
    animation: float2 25s ease-in-out infinite alternate;
  }

  
  /* انیمیشن چرخش */
  @keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* انیمیشن حرکت نرم */
  @keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
  }

  /* انیمیشن حرکت نرم */
  @keyframes float2 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
  }
  
  /* دارک مود */
  body.dark-mode .decoration {
    color: #4a7bd9; /* در دارک مود رنگ آبی تاکیدی */
  }
  

  .code-icon,
  .laptop-icon,
  .file-icon,
  .terminal-icon {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.5;
    width: 40px;
    height: 40px;
    transition: var(--transition);
  }
  



/* نمایش دکمه ورود/ثبت‌نام در منوی موبایل */
.mobile-menu .auth-mobile-item {
  padding: 10px 15px;
  margin-top: 10px;
}

.mobile-menu .mobile-auth-btn {
  width: 100%;
  text-align: center;
  display: block;
}

/* در حالت دسکتاپ دکمه را در منوی موبایل مخفی می‌کنیم */
@media (min-width: 992px) {
  .mobile-menu .auth-mobile-item {
      display: none;
  }
}

/* در حالت موبایل دکمه اصلی را مخفی می‌کنیم */
@media (max-width: 991px) {
  .nav-actions .btn-primary {
      display: none;
  }
}

.dark-mode .section-title{
  color: #becddd;
}