.ai-fresh-container *{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

.ai-fresh-container{
  max-width:1100px;
  margin:40px auto;
  font-family:'Vazirmatn','Tahoma',sans-serif;
  direction:rtl;
}

.ai-fresh-card{
  background:#fff;
  border-radius:40px;
  overflow:hidden;
  box-shadow:0 20px 45px rgba(0,0,0,.08);
  border:1px solid #e5e7eb;
}

/* هدر */

.ai-fresh-header{
  background:linear-gradient(135deg,#0f172a,#1e40af,#7c3aed);
  color:white;
  padding:35px;
  position:relative;
  overflow:hidden;
}

.ai-fresh-header::before{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  background:rgba(255,255,255,.08);
  border-radius:50%;
  top:-150px;
  left:-80px;
}

.ai-fresh-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.15);
  padding:8px 18px;
  border-radius:30px;
  font-size:.9rem;
  margin-bottom:15px;
}

.ai-fresh-title{
  font-size:2rem;
  font-weight:800;
  line-height:1.6;
  margin-bottom:15px;
}

.ai-fresh-date{
  color:#dbeafe;
  font-size:.95rem;
}

/* محتوا */

.ai-fresh-content{
  padding:35px;
}

.ai-fresh-lead{
  background:#f8fafc;
  border-right:5px solid #2563eb;
  padding:20px;
  border-radius:20px;
  line-height:2;
  color:#334155;
  margin-bottom:30px;
}

.ai-section-title{
  font-size:1.4rem;
  color:#1e293b;
  margin-bottom:18px;
  display:flex;
  align-items:center;
  gap:10px;
}

.ai-section-title i{
  color:#7c3aed;
}

.ai-fresh-content p{
  line-height:2;
  color:#475569;
  margin-bottom:20px;
}

/* قابلیت‌ها */

.ai-feature-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
  margin:30px 0;
}

.ai-feature-card{
  background:linear-gradient(145deg,#ffffff,#f8fafc);
  border-radius:24px;
  padding:22px;
  text-align:center;
  border:1px solid #e2e8f0;
  transition:.3s;
}

.ai-feature-card:hover{
  transform:translateY(-5px);
}

.ai-feature-card i{
  font-size:2rem;
  color:#7c3aed;
  margin-bottom:12px;
}

.ai-feature-card h4{
  color:#1e293b;
  margin-bottom:10px;
}

.ai-feature-card p{
  font-size:.9rem;
  margin:0;
}

/* نکته آموزشی */

.ai-tip-box{
  background:linear-gradient(135deg,#eff6ff,#f5f3ff);
  border-radius:30px;
  padding:28px;
  margin:35px 0;
  border:1px solid #c7d2fe;
}

.ai-tip-box h3{
  color:#4338ca;
  margin-bottom:15px;
}

/* پیام آموزشی */

.ai-message{
  background:linear-gradient(135deg,#7cacb4,#b8d2d4);
  color:white;
  border-radius:30px;
  padding:30px;
  margin-top:35px;
}

.ai-message h3{
  margin-bottom:15px;
}

.ai-message p{
  color:white;
  margin:0;
  line-height:2;
}

/* منبع */

.ai-source{
  text-align:center;
  margin-top:25px;
  color:#64748b;
  font-size:.9rem;
  padding:15px;
  border-top:1px dashed #cbd5e1;
}

@media(max-width:768px){

  .ai-fresh-title{
      font-size:1.5rem;
  }

  .ai-fresh-content{
      padding:20px;
  }

}
.ai-news-image{
    margin:30px 0;
    text-align:center;
}

.ai-news-image img{
    width:50%;
    border-radius:24px;
    display:block;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.ai-news-image .caption{
    margin-top:12px;
    color:#64748b;
    font-size:.9rem;
    line-height:1.8;
}
/* پایان استایل تازه ها */
/* شروع استایل ابزار */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    background: linear-gradient(145deg, #e0e7ff 0%, #f1f5f9 100%);
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    padding: 40px 20px;
  }
  .meshy-wrapper {
    max-width: 1200px;
    margin: 0 auto;
  }
  .meshy-main-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 35px;
    max-width: 950px;
    margin: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  }
  /* هدر */
  .meshy-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
  }
  .meshy-icon {
    background: linear-gradient(135deg, #0782c6, #c734e5);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(7,130,198,0.4);
  }
  .meshy-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
  }
  .meshy-sub-title {
    margin: 5px 0 0 0;
    font-size: 16px;
    color: #555;
  }
  /* کارت‌های محتوا */
  .meshy-topic-card {
    display: flex;
    gap: 15px;
    background: #f8f9ff;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 20px;
    transition: 0.3s;
  }
  .meshy-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  .meshy-topic-number {
    background: linear-gradient(135deg, #0782c6, #c734e5);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
  }
  .meshy-topic-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1e293b;
  }
  .meshy-topic-content p {
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 8px;
  }
  /* لیست حرفه‌ای */
  .meshy-fancy-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
  }
  .meshy-fancy-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }
  .meshy-list-icon {
    font-size: 20px;
    min-width: 30px;
    color: #ffa401;
  }
  /* جدول کاربردها */
  .applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
  }
  .app-card {
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    transition: 0.2s;
  }
  .app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .app-card i {
    font-size: 30px;
    color: #0782c6;
    margin-bottom: 10px;
    display: inline-block;
  }
  .app-card h5 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #1e293b;
  }
  .app-card p {
    font-size: 12px;
    color: #64748b;
  }
  /* نقل قول از معلم‌ها */
  .quote-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
  }
  .quote-card i {
    font-size: 35px;
    color: #ffa401;
    margin-bottom: 15px;
    display: inline-block;
  }
  .quote-card p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
  }
  .quote-author {
    font-size: 13px;
    opacity: 0.8;
  }
  /* CTA */
  .meshy-cta {
    background: linear-gradient(90deg, #0782c6, #c734e5);
    color: white;
    text-align: center;
    padding: 18px;
    border-radius: 15px;
    font-weight: bold;
    margin-top: 30px;
    font-size: 16px;
    transition: 0.3s;
    cursor: pointer;
  }
  .meshy-cta:hover {
    transform: scale(1.02);
    background: linear-gradient(90deg, #ffa401, #ff512f);
  }
  @media (max-width: 650px) {
    .meshy-main-card {
      padding: 20px;
    }
    .meshy-header {
      flex-direction: column;
      text-align: center;
    }
    .meshy-topic-card {
      flex-direction: column;
    }
    .applications-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
/* پایان استایل ابزار */
/* استایل آموزش */

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      background: linear-gradient(145deg, #f9f3e6 0%, #fff4e8 100%);
      font-family: 'Vazirmatn', 'Tahoma', sans-serif;
      padding: 30px 20px;
    }
    /* کانتینر اصلی با کلاس منحصربه‌فرد برای عدم تداخل */
    .art-ai-wonderland {
      max-width: 1300px;
      margin: 0 auto;
    }
    /* هدر جذاب */
    .magic-header {
      background: linear-gradient(135deg, #1e3c72, #2a5298, #8b5cf6, #ec489a);
      border-radius: 60px;
      padding: 40px 30px;
      text-align: center;
      color: white;
      margin-bottom: 40px;
      box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
    }
    .magic-header h1 {
      font-size: 2.5rem;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
      flex-wrap: wrap;
    }
    .magic-header h1 i {
      background: rgba(255,255,255,0.2);
      padding: 15px;
      border-radius: 60px;
      font-size: 2rem;
    }
    .magic-header p {
      font-size: 1.2rem;
      max-width: 700px;
      margin: 0 auto;
      line-height: 1.7;
    }
    /* کارت ابزارها */
    .tools-section {
      margin: 50px 0;
    }
    .tools-section h2 {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 30px;
      color: #2d3e50;
    }
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 25px;
    }
    .tool-card {
      background: white;
      border-radius: 35px;
      padding: 25px 20px;
      text-align: center;
      transition: all 0.3s ease;
      box-shadow: 0 10px 25px rgba(0,0,0,0.05);
      border: 1px solid rgba(139, 92, 246, 0.2);
    }
    .tool-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 35px rgba(0,0,0,0.1);
    }
    .tool-card i {
      font-size: 3rem;
      background: linear-gradient(135deg, #8b5cf6, #ec489a);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin-bottom: 15px;
    }
    .tool-card h3 {
      font-size: 1.5rem;
      margin-bottom: 10px;
    }
    .tool-card p {
      color: #4b5563;
      line-height: 1.6;
    }
    /* بخش نقاشی تعاملی */
    .paint-lab {
      background: linear-gradient(110deg, #ffffff, #fef7e0);
      border-radius: 55px;
      padding: 35px;
      margin: 50px 0;
      box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    }
    .paint-lab h2 {
      text-align: center;
      font-size: 2rem;
      color: #1f2937;
      margin-bottom: 15px;
    }
    .paint-lab h2 i {
      color: #f59e0b;
    }
    .canvas-area {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: center;
      margin-top: 30px;
    }
    .draw-box {
      flex: 1;
      min-width: 280px;
      text-align: center;
    }
    canvas {
      border: 4px solid #8b5cf6;
      border-radius: 28px;
      background: white;
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
      cursor: crosshair;
      width: 100%;
      max-width: 500px;
      height: auto;
      background-image: radial-gradient(circle, #ddd 1px, transparent 1px);
      background-size: 20px 20px;
    }
    .button-group {
      margin-top: 15px;
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
    }
    .btn {
      padding: 10px 24px;
      border: none;
      border-radius: 40px;
      font-weight: bold;
      font-family: inherit;
      cursor: pointer;
      transition: 0.2s;
      font-size: 1rem;
    }
    .btn-purple {
      background: #8b5cf6;
      color: white;
    }
    .btn-purple:hover {
      background: #7c3aed;
      transform: scale(1.02);
    }
    .btn-gold {
      background: #f59e0b;
      color: #1f2937;
    }
    .btn-gold:hover {
      background: #d97706;
      color: white;
    }
    .btn-outline {
      background: white;
      border: 2px solid #8b5cf6;
      color: #8b5cf6;
    }
    .result-box {
      flex: 1;
      min-width: 280px;
      background: #f3f0ff;
      border-radius: 32px;
      padding: 20px;
      text-align: center;
    }
    .result-box h3 {
      color: #6d28d9;
      margin-bottom: 15px;
    }
    #aiResult {
      background: white;
      border-radius: 24px;
      padding: 20px;
      min-height: 250px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 15px;
    }
    .preview-img {
      max-width: 100%;
      border-radius: 20px;
      border: 3px solid #f59e0b;
    }
    /* نقل قول هنری */
    .quote-box {
      background: #1f2937;
      color: white;
      border-radius: 40px;
      padding: 35px;
      text-align: center;
      margin-top: 40px;
    }
    .quote-box i {
      font-size: 3rem;
      color: #fbbf24;
      margin-bottom: 15px;
    }
    .quote-box p {
      font-size: 1.3rem;
      line-height: 1.7;
    }
    footer {
      text-align: center;
      margin-top: 40px;
      color: #6b7280;
    }
    @media (max-width: 700px) {
      .magic-header h1 { font-size: 1.7rem; }
      .tools-grid { grid-template-columns: 1fr; }
      .paint-lab { padding: 20px; }
    }

/* آموزش استایل ابزار */