/* @import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css'); */
@import url('https://sahandan.ir/assets/fonts/vazir/vazir.css');
@import url('https://sahandan.ir/assets/fonts/lalezar/lalezar.css');
@font-face {
    font-family: 'ir';
    src: url('../fonts/ir/IRANSansDN_Fa_Num.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ir';
    src: url('../fonts/ir/IRANSansDN_FaNum-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ir';
    src: url('../fonts/ir/IRANSansDN_FaNum_Light.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ir';
    src: url('../fonts/ir/IRANSansDN_FaNum_Light.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ir';
    src: url('../fonts/ir/IRANSansDN_FaNum_Light.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ir';
    src: url('../fonts/ir/IRANSansDN_FaNum_Light.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
:root {
    --primary: #4D96FF;
    --primary-light: #eff6ff;
    --text: #1e293b;
    --bg: #f8fafc;
    --glass: rgba(255, 255, 255, 0.95);
    --kids-color: #10B981;
    --teens-color: #8B5CF6;
    --high-color: #3B82F6;
    --kids-bg: #D1FAE5;
    --teens-bg: #EDE9FE;
    --high-bg: #DBEAFE;
}

* { box-sizing: border-box; outline: none; }
body { margin: 0; font-family: 'ir', 'vazir', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* =========================================
   FIX: محدود کردن سایز تمام آیکون‌های سایت
   ========================================= */
svg {
    width: 24px;
    height: 24px;
    min-width: 24px; /* جلوگیری از له شدن */
    max-width: 24px; /* جلوگیری از غول شدن */
    display: inline-block;
    vertical-align: middle;
}

/* 1. نوار پیشرفت */
#progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 9999; }
#progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.1s; box-shadow: 0 0 10px var(--primary); }

/* 2. هدر */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.flex-center { display: flex; align-items: center; gap: 10px; }

/* 3. لوگو پیشرفته (کادر مربعی نئونی) */
.logo-wrapper {
    position: relative;
    width: 52px;  /* سایز کلی کادر */
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px; /* گوشه‌های گرد مربع */
    overflow: hidden;    /* بریدن اضافات */
    box-shadow: 0 8px 20px rgba(77, 150, 255, 0.2); /* سایه نرم */
    background: white;
}

/* انیمیشن نور چرخان (پشت زمینه) */
.logo-wrapper::before {
    content: '';
    position: absolute;
    width: 200%; 
    height: 200%;
    /* گرادینت که حکم نور چرخان را دارد */
    background: conic-gradient(transparent, transparent, transparent, var(--primary));
    animation: spin 4s linear infinite; /* سرعت چرخش */
}

/* لایه سفید داخلی (برای اینکه فقط حاشیه دیده شود) */
.logo-wrapper::after {
    content: '';
    position: absolute;
    inset: 3px; /* ضخامت خط دور لوگو */
    background: white; 
    border-radius: 14px;
}

/* خود عکس لوگو */
.logo-img {
    position: relative;
    width: 40px; 
    height: 40px; 
    border-radius: 10px; 
    object-fit: cover; 
    z-index: 5; /* عکس باید روی همه لایه‌ها باشد */
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* 4. منو و لینک‌ها */
.desktop-menu { display: flex; align-items: center; gap: 5px; }
.nav-link {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 12px;
    text-decoration: none; color: #64748b; font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
/* تنظیم سایز دقیق آیکون‌های منو */
.nav-link svg { width: 20px; height: 20px; stroke-width: 2px; }

.nav-link:hover { background-color: var(--primary-light); color: var(--primary); }
.nav-link:hover svg { transform: translateY(-3px); }

/* 5. دکمه ورود */
.auth-btn {
    background: var(--primary); color: white; padding: 10px 20px;
    border-radius: 14px; text-decoration: none; font-weight: bold; font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(77, 150, 255, 0.3);
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.auth-btn svg { width: 18px; height: 18px; stroke: white; } /* آیکون دکمه سفید باشد */
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(77, 150, 255, 0.5); }

/* رسپانسیو */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 5px; }

@media (max-width: 900px) {
    .desktop-menu { display: none; }
    .mobile-toggle { display: block; }
}

/* استایل کارت‌ها */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.card { background: white; border-radius: 20px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.3s; }
.card:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(77,150,255,0.15); }

/* ========================
   بخش قهرمان (Hero Section)
   ======================== */
.hero-section {
    position: relative;
    
    overflow: hidden;
    /* گرادینت محو آبی در پس‌زمینه */
    background: radial-gradient(circle at 10% 20%, rgba(77, 150, 255, 0.1) 0%, transparent 40%);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 10px !important;  /* فقط یک padding کم برای فاصله از هدر */
    padding-bottom: 10px !important;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* متن فضای بیشتر، تصویر کمتر */
    align-items: center;
    gap: 40px;
}

/* 1. کپسول شعار (وقتی شهر خوابه...) */
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(77, 150, 255, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 20px;
    border: 1px solid rgba(77, 150, 255, 0.2);
    box-shadow: 0 4px 10px rgba(77, 150, 255, 0.05);
}

/* 2. تیتر اصلی */
.hero-title {
    font-family: lalezar;
    font-size: 2.5rem; /* خیلی بزرگ */
    font-weight: 900;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-title span { color: var(--primary); } /* کلمه آکادمی رنگی شود */
.hero-desc span { color: var(--primary); } /* کلمه آکادمی رنگی شود */
/* 3. زیرتیتر */
.hero-desc {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 35px;
}

/* 4. دکمه بزرگ قهرمان */
.hero-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(77, 150, 255, 0.4);
    animation: pulse 2s infinite;
}
.hero-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(77, 150, 255, 0.6);
}

/* انیمیشن تپش دکمه */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(77, 150, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(77, 150, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(77, 150, 255, 0); }
}

/* 5. المان بصری سمت چپ (ساعت انتزاعی با CSS) */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* دایره شیشه‌ای بزرگ */
.glass-clock {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    animation: float 6s ease-in-out infinite;
}
/* عقربه‌های ساعت نمادین */
.clock-hand {
    position: absolute;
    bottom: 50%; left: 50%;
    transform-origin: bottom center;
    background: var(--primary);
    border-radius: 4px;
}
.hand-1 { width: 4px; height: 80px; animation: spin 12s linear infinite; }
.hand-2 { width: 4px; height: 50px; opacity: 0.7; animation: spin 60s linear infinite; }

/* شناور بودن */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* رسپانسیو */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-badge, .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-visual { height: 300px; margin-top: 30px; }
    .hero-title { font-size: 2.2rem; }
}

/* ========================
   بخش انتخاب مقطع (Grade Selector)
   ======================== */
.grade-section {
  padding: 20px 0; /* کاهش شدید پدینگ */
  text-align: center;
  background: #f8fafc; /* رنگ پس‌زمینه جدید */
  position: relative;
}

/* راهنمای متنی */
.grade-hint {
  font-size: 1rem; /* کمی کوچکتر */
  color: #64748b;
  margin-bottom: 20px; /* کاهش فاصله */
  font-weight: 500;
}
.grade-hint span {
  color: var(--primary);
  font-weight: 800;

}

/* گرید کارت‌ها - نسخه موبایل محور */
.grade-grid {
  display: grid;
  grid-template-columns: 1fr; /* پیش‌فرض برای موبایل: یک ستون */
  gap: 15px; /* فاصله کمتر بین کارت‌ها */
  max-width: 400px; /* محدود کردن عرض در موبایل برای جمع‌وجور شدن */
  margin: 0 auto; /* وسط‌چین کردن کادر */
  padding: 0 15px;
}

/* استایل کارت مقطع */
.grade-card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  padding: 20px 15px; /* کاهش پدینگ */
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

/* آیکون داخل کارت */
.grade-icon {
  width: 50px; /* کاهش سایز */
  height: 50px; /* کاهش سایز */
  border-radius: 14px;
  margin: 0 auto 15px; /* کاهش فاصله */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem; /* کاهش سایز فونت آیکون */
  transition: 0.3s;
}

/* عنوان کارت */
.grade-card h3 {
  margin: 0 0 5px 0 !important;
  font-size: 1.2rem !important; /* کاهش سایز فونت */
}

/* توضیح کارت */
.grade-card p {
  margin: 0 !important;
  font-size: 0.8rem !important; /* کاهش سایز فونت */
  color: #64748b;
}

/* تم‌های رنگی (بدون تغییر) */
.grade-kids {
  --theme: #10B981 !important;
  --bg-theme: #D1FAE5 !important;
}
.grade-kids .grade-icon {
  background: var(--bg-theme);
  color: var(--theme);
}

.grade-teens {
  --theme: #A29BFE;
  --bg-theme: #f3e5f5;
}
.grade-teens .grade-icon {
  background: var(--bg-theme);
  color: var(--theme);
}

.grade-high {
  --theme: #0066FF;
  --bg-theme: #e3f2fd;
}
.grade-high .grade-icon {
  background: var(--bg-theme);
  color: var(--theme);
}

/* هاور کارت‌ها (بدون تغییر) */
.grade-card:hover {
  transform: translateY(-5px);
  border-color: var(--theme);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.grade-card:hover .grade-icon {
  background: var(--theme);
  color: white;
  transform: scale(1.05) rotate(3deg);
}

/* کلاس فعال */
.grade-card.active {
  background: var(--theme);
  color: white;
  border-color: var(--theme);
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.grade-card.active .grade-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.grade-card.active p {
  color: rgba(255, 255, 255, 0.9) !important;
}
.grade-card.active .css-icon {
  color: white !important;
  border-color: white !important;
}
.grade-card.active .icon-rocket::before {
  border-top-color: #FFD700 !important;
}
.grade-card.active .icon-target::before {
  background: #FFD700 !important;
}
.grade-card.active .icon-bulb::before,
.grade-card.active .icon-bulb::after {
  background: white !important;
}

/* کانتینر محتوای وابسته */
#grade-content-area {
  margin-top: 30px;
  min-height: 100px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
#grade-content-area.show {
  opacity: 1;
  transform: translateY(0);
}

/* باکس پیام خالی (منتظر انتخاب شما هستیم...) */
.empty-state {
  background: transparent; /* پس‌زمینه شفاف تا رنگ #f8fafc دیده بشه */
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 30px 20px;
  color: var(--primary); /* رنگ آبی */
  text-align: center;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
}

.empty-state .fa-icon,
.empty-state .css-icon {
  color: var(--primary);
  font-size: 1.2rem;
}
/* ========================
   ریسپانسیو برای تبلت و بالاتر
   ======================== */
@media (max-width : 768px) {
    
      .grade-hint span {
        font-size:0.8rem;
      
  }
}
@media (min-width: 640px) {
  .grade-grid {
    max-width: 600px; /* عرض بیشتر برای تبلت */
    gap: 20px;
  }

  .grade-card {
    padding: 25px 20px;
  }

  .grade-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .grade-card h3 {
    font-size: 1.3rem !important;
  }

  .grade-card p {
    font-size: 0.9rem !important;
  }

}

/* برای لپتاپ، گرید به حالت سه ستونه برمی‌گرده */
@media (min-width: 900px) {
  .grade-section {
    padding: 40px 0;
  }

  .grade-grid {
    grid-template-columns: repeat(3, 1fr); /* سه ستون */
    max-width: 1000px;
    gap: 25px;
  }

  .grade-card {
    padding: 30px; /* پدینگ اصلی برای لپتاپ */
  }

  .grade-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .grade-card h3 {
    font-size: 1.4rem !important;
  }

  .grade-card p {
    font-size: 0.95rem !important;
  }

  .grade-hint {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .empty-state {
    padding: 40px;
    font-size: 1.1rem;
    display: flex;
  }
}

/* ========================
   بخش‌های وابسته (Dependent Sections)
   ======================== */
.dependent-section { padding: 40px 0; }
.section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 6px; height: 24px; background: var(--primary); border-radius: 4px; }

/* --- 1. بنر سحرخیزی (Gamification) --- */
.gami-banner {
    background: linear-gradient(135deg, #4D96FF 0%, #6C5CE7 100%);
    border-radius: 24px;
    padding: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(77, 150, 255, 0.3);
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
}
.gami-text h3 { font-size: 2rem; margin: 0 0 10px 0; font-weight: 900; }
.gami-text p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; line-height: 1.8; margin-bottom: 25px; }

/* آیکون خورشید با CSS خالص */
.sun-css {
    width: 80px; height: 80px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 40px #FFD700;
    position: relative;
    animation: sunPulse 3s infinite alternate;
}
@keyframes sunPulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.1); opacity: 1; } }

/* --- 2. اسلایدر بمب سرعت (CSS Scroll Snap) --- */
.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.speed-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* جادوی CSS */
    gap: 20px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* نرمی در موبایل */
    scrollbar-width: none; /* مخفی کردن اسکرول بار فایرفاکس */
}
.speed-slider::-webkit-scrollbar { display: none; /* مخفی کردن اسکرول بار کروم */ }

.slide-card {
    flex: 0 0 280px; /* عرض ثابت کارت‌ها */
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
    position: relative;
}
.slide-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary); }

/* --- 3. کارت‌های ویدیو (Micro-learning) --- */
.video-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
}
.video-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.video-card:hover .video-thumb { opacity: 0.6; transform: scale(1.05); }

/* دکمه Play با CSS خالص (مثلث) */
.play-btn-css {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.5);
    transition: 0.3s;
}
.play-btn-css::after {
    content: '';
    width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid white; /* مثلث سفید */
    margin-left: 4px;
}
.video-card:hover .play-btn-css { transform: translate(-50%, -50%) scale(1.2); background: var(--primary); border-color: var(--primary); }

/* --- 4. کارت‌های مقاله --- */
/* برگرداندن استایل مقالات به حالت قبل */
.article-card, .article-card:hover, .article-title {
    text-decoration: none !important;
    color: inherit;
}

.fixed-size-card {
    height: 340px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.card-image-wrapper {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.article-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: 0.5s;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.modern-cat-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 5px 12px; border-radius: 12px;
    color: white; font-size: 0.75rem; font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px); z-index: 2;
}

.article-body {
    flex: 1; padding: 15px; display: flex; flex-direction: column;
}

.article-title {
    font-size: 1rem; font-weight: 800; margin: 0 0 10px 0;
    line-height: 1.5; flex-grow: 1;
}

.article-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f1f5f9; padding-top: 12px; margin-top: auto;
    font-size: 0.8rem; color: #64748b;
}

.meta-item { display: flex; align-items: center; gap: 5px; }

/* دکمه شیشه‌ای */
.glass-btn {
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
    color: white; padding: 10px 25px; border-radius: 12px; text-decoration: none; font-weight: bold;
    backdrop-filter: blur(5px); transition: 0.3s; display: inline-block;
}
.glass-btn:hover { background: white; color: var(--primary); }

/* رسپانسیو */
@media (max-width: 768px) {
    .gami-banner { flex-direction: column; text-align: center; padding: 30px; }
    .sun-css { margin-top: 30px; }
}

/* ========================
   آیکون‌های CSS خالص (Pure CSS Icons)
   بدون عکس، بدون فونت، سرعت نور! ⚡
   ======================== */

/* کلاس پایه برای همه آیکون‌ها */
.css-icon {
    display: inline-block;
    position: relative;
    box-sizing: border-box;
}

/* 1. آیکون موشک (برای دبستان) - Rocket */
.icon-rocket {
    width: 20px; height: 36px;
    background: currentColor; /* رنگ از تم کارت میاد */
    border-top-right-radius: 100%;
    border-top-left-radius: 100%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    position: relative;
    transform: rotate(45deg);
}
.icon-rocket::after { /* پنجره موشک */
    content: ''; position: absolute;
    top: 10px; left: 50%; transform: translateX(-50%);
    width: 8px; height: 8px;
    background: white; border-radius: 50%;
}
.icon-rocket::before { /* آتش موشک */
    content: ''; position: absolute;
    bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #FF6B6B; /* رنگ آتش */
}

/* 2. آیکون لامپ (برای متوسطه اول) - Bulb */
.icon-bulb {
    width: 24px; height: 24px;
    background: white;
    border: 3px solid currentColor;
    border-radius: 50%;
    position: relative;
}
.icon-bulb::after { /* پایه لامپ */
    content: ''; position: absolute;
    bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 8px;
    background: currentColor;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.icon-bulb::before { /* رشته داخل لامپ */
    content: ''; position: absolute;
    top: 6px; left: 50%; transform: translateX(-50%);
    width: 2px; height: 6px;
    background: currentColor;
}

/* 3. آیکون هدف (برای متوسطه دوم) - Target */
.icon-target {
    width: 32px; height: 32px;
    border: 3px solid currentColor;
    border-radius: 50%;
    position: relative;
}
.icon-target::after { /* نقطه وسط */
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: currentColor;
    border-radius: 50%;
}
.icon-target::before { /* تیر خورده به هدف */
    content: ''; position: absolute;
    top: -5px; right: -5px;
    width: 20px; height: 3px;
    background: #FF6B6B;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* 4. آیکون الماس (برای اسلایدر خدمات) - Diamond */
.icon-diamond {
    width: 16px; height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px currentColor; /* حاشیه رنگی */
}

/* --- آیکون ساعت زنگ‌دار (Alarm Clock) --- */
.icon-alarm {
    width: 20px; height: 20px;
    border: 2px solid currentColor; /* رنگ متن */
    border-radius: 50%;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px; /* فاصله از متن */
}
.icon-alarm::before { /* عقربه‌ها */
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 1px; height: 7px;
    background: currentColor;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(45deg);
}
.icon-alarm::after { /* دکمه بالا */
    content: ''; position: absolute;
    top: -4px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}
/* انیمیشن زنگ زدن */
.gami-text:hover .icon-alarm { animation: ring 0.5s infinite ease-in-out; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }

/* --- آیکون کلاه فارغ‌التحصیلی (Graduation Cap) --- */
.icon-grad {
    width: 24px; height: 12px;
    border: 2px solid currentColor;
    border-radius: 2px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    transform: skewX(-10deg); /* کج کردن برای پرسپکتیو */
    margin-left: 10px;
}
.icon-grad::before { /* منگوله */
    content: ''; position: absolute;
    top: 5px; right: -4px;
    width: 2px; height: 10px;
    background: #FF6B6B; /* رنگ منگوله قرمز */
    transform: rotate(15deg);
}
.icon-grad::after { /* بخش پایین کلاه */
    content: ''; position: absolute;
    top: 10px; left: 4px;
    width: 14px; height: 6px;
    border: 2px solid currentColor;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* --- آیکون کپسول (Pill) --- */
.icon-pill {
    width: 24px; height: 12px;
    background: linear-gradient(90deg, var(--primary) 50%, white 50%); /* دو رنگ */
    border: 2px solid var(--primary);
    border-radius: 10px;
    display: inline-block;
    vertical-align: middle;
    transform: rotate(-30deg);
    margin-left: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* --- آیکون سرعت (Speed Arrow) --- */
.icon-speed {
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 16px solid var(--primary); /* مثلث آبی */
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    transform: rotate(45deg);
}
.icon-speed::after { /* دنباله آتش */
    content: ''; position: absolute;
    top: 16px; left: -4px;
    width: 8px; height: 4px;
    background: #FF6B6B;
    border-radius: 4px;
    filter: blur(2px);
}

/* --- آیکون قلم (Feather Pen) --- */
.icon-pen {
    width: 6px; height: 30px;
    background: currentColor;
    transform: rotate(30deg);
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    border-radius: 2px;
    position: relative;
}
.icon-pen::before { /* نوک قلم */
    content: ''; position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 0;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-top: 5px solid currentColor;
}
.icon-pen::after { /* خط نوشتاری */
    content: ''; position: absolute;
    bottom: -2px; right: 2px;
    width: 10px; height: 2px;
    background: #FF6B6B;
    border-radius: 2px;
}

/* ========================
   فوتر مدرن (Modern Footer)
   ======================== */
.main-footer {
    background: white;
    border-top: 1px solid #f1f5f9;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* توری نقطه‌ای محو در پس‌زمینه برای زیبایی */
.main-footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px; opacity: 0.3; pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; /* تقسیم فضا */
    gap: 40px;
    margin-bottom: 40px;
    position: relative; z-index: 1;
}

/* ستون اول: برند */
.footer-brand h2 { font-size: 1.5rem; margin: 15px 0; color: var(--text); font-weight: 900; }
.footer-desc { color: #64748b; line-height: 1.8; font-size: 0.95rem; text-align: justify; }

/* ستون اطلاعات تماس */
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px;
    color: #475569; font-weight: 500;
}
.contact-icon-box {
    width: 40px; height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* دکمه‌های سوشال (شبکه‌های اجتماعی) */
.social-box {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.social-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.social-btn svg { width: 20px; height: 20px; fill: currentColor; } /* سایز استاندارد آیکون‌ها */

/* افکت هاور رنگی برای هر شبکه (برندینگ) */
.social-btn:hover { transform: translateY(-5px); color: white; border-color: transparent; }

/* رنگ‌های اختصاصی هاور */
.s-telegram:hover { background: #229ED9; box-shadow: 0 5px 15px rgba(34, 158, 217, 0.4); }
.s-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4); }
.s-linkedin:hover { background: #0077b5; box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4); }
.s-twitter:hover { background: #1DA1F2; box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4); }
.s-aparat:hover { background: #EA1D5D; box-shadow: 0 5px 15px rgba(234, 29, 93, 0.4); }
.s-rubika:hover { background: #71249C; box-shadow: 0 5px 15px rgba(113, 36, 156, 0.4); }
.s-bale:hover { background: #30A66C; box-shadow: 0 5px 15px rgba(48, 166, 108, 0.4); }
.s-soroush:hover { background: #0597F2; box-shadow: 0 5px 15px rgba(5, 151, 242, 0.4); }

/* کپی رایت پایین */
.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-contact-item { justify-content: center; }
}

/* ========================
   صفحه ورود و ثبت نام (نسخه نهایی و اصلاح شده)
   ======================== */
.auth-body {
    background: #f1f5f9;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column; height: 100vh; margin: 0;
}

.auth-container {
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 700px;
    /* نکته حیاتی: جهت کانتینر باید چپ‌چین باشد تا انیمیشن خراب نشود */
    direction: ltr; 
}

/* کانتینر فرم‌ها */
.form-container {
    position: absolute; top: 0; height: 100%; transition: all 0.6s ease-in-out;
    padding: 40px; 
    display: flex; flex-direction: column; justify-content: center;
    text-align: center;
    /* داخل فرم‌ها را دوباره راست‌چین میکنیم */
    direction: rtl; 
}

.sign-in-container { left: 0; width: 50%; z-index: 2; }
.sign-up-container { left: 0; width: 50%; opacity: 0; z-index: 1; }

/* انیمیشن جابجایی */
.auth-container.right-panel-active .sign-in-container { transform: translateX(100%); }
.auth-container.right-panel-active .sign-up-container { 
    transform: translateX(100%); opacity: 1; z-index: 5; animation: show 0.6s; 
}

@keyframes show { 
    0%, 49.99% { opacity: 0; z-index: 1; } 
    50%, 100% { opacity: 1; z-index: 5; } 
}

/* پنل رنگی (Overlay) */
.overlay-container {
    position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
    overflow: hidden; transition: transform 0.6s ease-in-out; z-index: 100;
}
.auth-container.right-panel-active .overlay-container { transform: translateX(-100%); }

.overlay {
    background: #4D96FF;
    background: linear-gradient(to right, #4D96FF, #6C5CE7);
    background-repeat: no-repeat; background-size: cover; background-position: 0 0;
    color: #FFFFFF; position: relative; left: -100%; height: 100%; width: 200%;
    transform: translateX(0); transition: transform 0.6s ease-in-out;
}
.auth-container.right-panel-active .overlay { transform: translateX(50%); }

.overlay-panel {
    position: absolute; display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 0 40px; text-align: center;
    top: 0; height: 100%; width: 50%; transform: translateX(0); transition: transform 0.6s ease-in-out;
    direction: rtl; /* متن‌های داخل پنل رنگی هم راست‌چین شوند */
}

.overlay-left { transform: translateX(-20%); }
.auth-container.right-panel-active .overlay-left { transform: translateX(0); }
.overlay-right { right: 0; transform: translateX(0); }
.auth-container.right-panel-active .overlay-right { transform: translateX(20%); }

/* استایل ورودی‌ها */
.input-group { margin-bottom: 15px; width: 100%; text-align: right; }
.input-group label { font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; display: block; color: #64748b; }
.input-group input, .input-group select, .input-group textarea {
    background-color: #f8fafc; border: 1px solid #e2e8f0; padding: 12px 15px; width: 100%;
    border-radius: 12px; font-family: 'i', 'vazir', sans-serif; transition: 0.3s;
    text-align: right; direction: rtl;
}

/* کارت‌های نقش */
.role-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 15px 0; width: 100%; }
.role-card {
    background: white; border: 2px solid #e2e8f0; border-radius: 12px; padding: 10px;
    cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center;
}
.role-card.selected { background: #eff6ff; border-color: #4D96FF; color: #4D96FF; }

/* موبایل */
@media (max-width: 768px) {
    .auth-container { width: 100%; min-height: 800px; border-radius: 0; display: block; overflow-y: auto; }
    .form-container { width: 100%; height: auto; position: relative; padding: 20px; top: 0; }
    .overlay-container { display: none; } 
    .sign-up-container { opacity: 1; z-index: 5; display: none; }
    .auth-container.right-panel-active .sign-in-container { display: none; }
    .auth-container.right-panel-active .sign-up-container { display: block; transform: none; }
}

.test-percent-link i {
    color: var(--primary);
    transition: transform 0.3s;
}

.test-percent-link:hover i {
    transform: rotate(15deg);
}

/* اسکرول بار کل صفحه */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4D96FF;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* برای فایرفاکس */
* {
    scrollbar-width: thin;
    scrollbar-color: #4D96FF #f1f5f9;
}
/* اسکرول با رنگ‌های مختلف برای بخش‌های مختلف */
.dark-scroll::-webkit-scrollbar-thumb {
    background: #1e293b;
}

.gradient-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4D96FF, #6C5CE7);
}

/* اسکرول با گوشه‌های نرم‌تر */
.rounded-scroll::-webkit-scrollbar {
    width: 12px;
}

.rounded-scroll::-webkit-scrollbar-thumb {
    background: #4D96FF;
    border-radius: 20px;
    border: 3px solid #f1f5f9;
}

/* ============================================
   استایل‌های پشتیبانی آیکون هوشمند (Font Awesome + CSS Fallback)
   ============================================ */

/* کلاس‌های پایه آیکون */
.fa-icon {
    display: inline-block;
    font-style: normal;
}

.css-icon {
    display: none; /* پیش‌فرض مخفی - فقط در صورت فال‌بک نمایش داده می‌شود */
    vertical-align: middle;
}

/* تنظیم فاصله آیکون‌ها در متا مقالات */
.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr; /* برای آیکون‌های FA */
    unicode-bidi: embed;
}

.meta-item .fa-icon,
.meta-item .css-icon {
    font-size: 0.9rem;
    margin-left: 5px;
}

/* تنظیم آیکون‌های سکشن تایتل */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .fa-icon,
.section-title .css-icon {
    font-size: 1.3rem;
}

/* تنظیم آیکون بنر */
.gami-text h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.gami-text h3 .fa-icon,
.gami-text h3 .css-icon {
    font-size: 1.5rem;
}

/* تنظیم آیکون‌های کارت خدمات */
.slide-card .fa-icon {
    font-size: 24px;
    color: var(--primary);
}

/* استایل المان‌های خالی */
.empty-state .fa-icon,
.empty-state .css-icon {
    font-size: 1.2rem;
    margin-left: 8px;
}

/* ============================================
   رفع مشکل نمایش محتوای مقاطع
   ============================================ */

/* کانتینر محتوای وابسته - ابتدا مخفی */
#grade-content-area {
  margin-top: 0px;
  min-height: 0px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  display: none; /* کاملاً مخفی در ابتدا */
}
#grade-content-area.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  margin-top: 30px;
}

#grade-content-area:empty {
    display: none !important;
}
#grade-content-area:has(.empty-state) {
    display: none !important;
}

/* استایل باکس خالی - کاملاً مخفی */
.empty-state {
    display: none !important;
}

/* ============================================
   رنگ سبز برای کارت دبستان
   ============================================ */

.grade-kids {
    --theme: #10B981 !important; /* سبز زمردی */
    --bg-theme: #D1FAE5 !important; /* سبز خیلی روشن */
}

.grade-kids .grade-icon {
    background: var(--bg-theme);
    color: var(--theme);
}

.grade-card.grade-kids:hover {
    border-color: #10B981 !important;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15) !important;
}

.grade-card.grade-kids.active {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: white !important;
}

/* تنظیم رنگ آتش موشک برای هماهنگی */
.grade-kids .icon-rocket::before {
    border-top-color: #F59E0B !important; /* نارنجی برای تضاد */
}

/* ============================================
   رنگ متن کارت‌ها در حالت active
   ============================================ */

.grade-card.active p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

.grade-card.active .css-icon {
    color: white !important;
    border-color: white !important;
}

.grade-card.active .icon-rocket::before {
    border-top-color: #FFD700 !important;
}

.grade-card.active .icon-target::before {
    background: #FFD700 !important;
}

.grade-card.active .icon-bulb::before,
.grade-card.active .icon-bulb::after {
    background: white !important;
}
/* ============================================ */
/* تغییر سایز کارت‌های انتخاب مقطع در موبایل و تبلت - بدون اسکرول */
/* ============================================ */

/* موبایل (حداکثر عرض 768px) */
@media (max-width: 768px) {
    .grade-section {
        overflow: hidden !important; /* حذف اسکرول افقی کل بخش */
    }
    
    .grade-grid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 8px !important;
        margin: 0 auto !important;
        overflow: visible !important; /* حذف اسکرول */
        flex-wrap: wrap !important; /* wrap به جای nowrap - بدون اسکرول افقی */
    }
    
    .grade-card {
        flex: 1 1 auto !important; /* توزیع یکسان فضا */
        min-width: 120px !important; /* حداقل عرض مناسب */
        max-width: 150px !important; /* حداکثر عرض */
        padding: 10px 5px !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    .grade-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }
    
    .grade-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important; /* جلوگیری از شکستن متن */
    }
    
    .grade-card p {
        font-size: 0.55rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    
    /* مخفی کردن br برای فشردگی */
    .grade-card p br {
        display: none !important;
    }
    
    /* جایگزین کردن با اسپیس یا اسلش */
    .grade-card p {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }
}

/* تبلت (عرض بین 481px تا 768px - تبلت‌های کوچک) */
@media (min-width: 481px) and (max-width: 768px) {
    .grade-card {
        min-width: 130px !important;
        max-width: 140px !important;
        padding: 12px 8px !important;
    }
    
    .grade-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
    
    .grade-card h3 {
        font-size: 0.9rem !important;
    }
    
    .grade-card p {
        font-size: 0.65rem !important;
    }
}

/* تبلت بزرگ (عرض بین 769px تا 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .grade-section {
        overflow: hidden !important;
    }
    
    .grade-grid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
        max-width: 100% !important;
        flex-wrap: wrap !important; /* wrap برای بدون اسکرول */
        overflow: visible !important;
    }
    
    .grade-card {
        flex: 1 1 auto !important;
        min-width: 140px !important;
        max-width: 160px !important;
        padding: 15px 12px !important;
    }
    
    .grade-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }
    
    .grade-card h3 {
        font-size: 1rem !important;
    }
    
    .grade-card p {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
    
    .grade-card p br {
        display: none !important;
    }
}

/* حذف هرگونه اسکرول از body و container در موبایل */
@media (max-width: 900px) {
    body, .container, .grade-section {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    .container {
        padding: 0 12px !important;
    }
}
/* ============================================
   بهینه‌سازی آیکون‌های CSS برای نمایش بهتر
   ============================================ */

/* تنظیم سایز آیکون‌های CSS */
.css-icon.icon-alarm {
    width: 20px;
    height: 20px;
}

.css-icon.icon-pill {
    width: 24px;
    height: 12px;
}

.css-icon.icon-speed {
    transform: rotate(0deg);
    margin-left: 5px;
}

.css-icon.icon-pen {
    width: 6px;
    height: 30px;
}

/* تنظیم آیکون دایموند برای کارت‌های خدمات */
.css-icon.icon-diamond {
    width: 16px;
    height: 16px;
    background: currentColor;
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px currentColor;
    display: inline-block;
}
/* ============================================
   استایل‌های هوشمندسازی مقاطع
   ============================================ */

/* استایل لینک مشاهده همه */
.view-all-link {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--primary-light);
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

/* گرید میکرولرنینگ */
.micro-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
}

/* کارت میکرولرنینگ */
.micro-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.micro-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(77, 150, 255, 0.15);
}

.micro-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.micro-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.micro-arrow {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: 0.3s;
}

.micro-card:hover .micro-arrow {
    color: var(--primary);
    transform: translateX(-3px);
}

/* ============================================
   اسکرول بار سفارشی برای بخش خدمات
   ============================================ */

.slider-wrapper.custom-scrollbar {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.slider-wrapper.custom-scrollbar .speed-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 25px; /* فضا برای اسکرول بار */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e2e8f0;
}

/* اسکرول بار سفارشی برای کروم */
.slider-wrapper.custom-scrollbar .speed-slider::-webkit-scrollbar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 20px;
}

.slider-wrapper.custom-scrollbar .speed-slider::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 20px;
}

.slider-wrapper.custom-scrollbar .speed-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
    border: 2px solid #f1f5f9;
}

.slider-wrapper.custom-scrollbar .speed-slider::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* استایل کارت خدمات */
.slide-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon {
    font-size: 28px !important;
    color: var(--primary) !important;
}

.service-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
    margin: 10px 0 20px;
    flex: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    transition: 0.3s;
}

.service-link:hover {
    gap: 5px;
}

/* پیام عدم وجود محتوا */
.no-content-message {
    grid-column: 1/-1;
    text-align: center;
    color: #94a3b8;
    padding: 40px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

/* ============================================
   تنظیمات آیکون‌ها
   ============================================ */

.fa-icon {
    display: inline-block;
    font-style: normal;
}

.css-icon {
    display: none;
    vertical-align: middle;
}

/* تنظیم آیکون‌های تیتر */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* تنظیم آیکون‌های متا */
.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
}

.meta-item .fa-icon {
    font-size: 0.85rem;
}
/* ============================================
   استایل‌های میکرولرنینگ (ویدیو و لینک)
   ============================================ */

/* گرید میکرولرنینگ */
.micro-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 20px !important;
}

/* کارت لینک ساده (مثل قبل) */
.micro-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.micro-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(77, 150, 255, 0.15);
}

.micro-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.micro-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.micro-arrow {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: 0.3s;
}

.micro-card:hover .micro-arrow {
    color: var(--primary);
    transform: translateX(-3px);
}

/* کارت ویدیو */
.video-micro-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #f1f5f9;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.video-micro-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(77, 150, 255, 0.15);
}

.video-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #000;
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.video-micro-card:hover .video-thumb-img {
    transform: scale(1.1);
    opacity: 0.8;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(77, 150, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.video-micro-card:hover .video-play-icon {
    opacity: 1;
}

.video-play-icon i {
    color: white;
    font-size: 16px;
    margin-left: 3px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.video-meta i {
    font-size: 0.7rem;
}

/* ============================================
   استایل لینک مشاهده همه
   ============================================ */

.view-all-link {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--primary-light);
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

.view-all-link i {
    font-size: 0.8rem;
}

/* ============================================
   اسکرول بار سفارشی برای بخش خدمات
   ============================================ */

.slider-wrapper.custom-scrollbar {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.slider-wrapper.custom-scrollbar .speed-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 25px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e2e8f0;
}

.slider-wrapper.custom-scrollbar .speed-slider::-webkit-scrollbar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 20px;
}

.slider-wrapper.custom-scrollbar .speed-slider::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 20px;
}

.slider-wrapper.custom-scrollbar .speed-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
    border: 2px solid #f1f5f9;
}

.slider-wrapper.custom-scrollbar .speed-slider::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}
/* کارت میکرولرنینگ */
.micro-slide-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* رنگ آیکون‌ها بر اساس مقطع */
.grade-kids .service-icon { color: #10B981 !important; }
.grade-teens .service-icon { color: #8B5CF6 !important; }
.grade-high .service-icon { color: #3B82F6 !important; }

.micro-title {
    font-weight: 700;
    line-height: 1.4;
}
/* استایل کارت خدمات */
.slide-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon {
    font-size: 28px !important;
    color: var(--primary) !important;
}

.service-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
    margin: 10px 0 20px;
    flex: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    transition: 0.3s;
}

.service-link:hover {
    gap: 5px;
}

/* ============================================
   پیام عدم وجود محتوا
   ============================================ */

.no-content-message {
    grid-column: 1/-1;
    text-align: center;
    color: #94a3b8;
    padding: 40px;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

/* ============================================
   تنظیمات آیکون‌ها
   ============================================ */

.fa-icon {
    display: inline-block;
    font-style: normal;
}

.css-icon {
    display: none;
    vertical-align: middle;
}


/* ============================================ */
/* DNA در حال چرخش - جایگزین ساعت Hero */
/* ============================================ */

.dna-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatDNA 6s ease-in-out infinite;
}

@keyframes floatDNA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.dna-helix {
    position: relative;
    width: 200px;
    height: 280px;
    transform-style: preserve-3d;
    animation: rotateDNA 20s linear infinite;
}

@keyframes rotateDNA {
    from { transform: rotateY(0deg) rotateX(5deg); }
    to { transform: rotateY(360deg) rotateX(5deg); }
}

/* رشته‌های اصلی DNA */
.dna-strand {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--primary, #4D96FF) 0%, 
        #6C5CE7 50%, 
        var(--primary, #4D96FF) 100%);
    border-radius: 4px;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(77, 150, 255, 0.5);
}

.strand-1 {
    transform: translateX(-35px) rotateY(0deg);
    background: linear-gradient(180deg, #4D96FF 0%, #A29BFE 50%, #4D96FF 100%);
}

.strand-2 {
    transform: translateX(35px) rotateY(0deg);
    background: linear-gradient(180deg, #6C5CE7 0%, #4D96FF 50%, #6C5CE7 100%);
}

/* جفت‌های باز (پله‌های DNA) */
.dna-basepair {
    position: absolute;
    left: 50%;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(77, 150, 255, 0.8) 0%, 
        rgba(108, 92, 231, 0.9) 50%, 
        rgba(77, 150, 255, 0.8) 100%);
    border-radius: 3px;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(77, 150, 255, 0.4);
    animation: pulseDNA 3s ease-in-out infinite;
}

@keyframes pulseDNA {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* موقعیت‌دهی جفت‌های باز */
.bp1 { top: 5%; }
.bp2 { top: 18%; }
.bp3 { top: 31%; }
.bp4 { top: 44%; }
.bp5 { top: 57%; }
.bp6 { top: 70%; }
.bp7 { top: 83%; }
.bp8 { top: 96%; }

/* افکت نورانی مرکزی */
.dna-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, 
        rgba(77, 150, 255, 0.2) 0%, 
        rgba(108, 92, 231, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.3); }
}

/* ذرات نورانی شناور */
.dna-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #6C5CE7;
    border-radius: 50%;
    box-shadow: 0 0 15px #6C5CE7;
    animation: particleFloat 5s ease-in-out infinite;
    pointer-events: none;
}

.p1 {
    top: 10%;
    left: -20px;
    background: #4D96FF;
    box-shadow: 0 0 15px #4D96FF;
    animation-delay: 0s;
}

.p2 {
    bottom: 15%;
    right: -25px;
    background: #A29BFE;
    box-shadow: 0 0 15px #A29BFE;
    animation-delay: 1.5s;
}

.p3 {
    top: 40%;
    left: -30px;
    background: #6C5CE7;
    box-shadow: 0 0 15px #6C5CE7;
    animation-delay: 3s;
}

.p4 {
    bottom: 35%;
    right: -20px;
    background: #4D96FF;
    box-shadow: 0 0 12px #4D96FF;
    animation-delay: 4.5s;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================ */
/* ریسپانسیو - موبایل */
/* ============================================ */
@media (max-width: 600px) {
    .dna-helix {
        width: 130px;
        height: 180px;
    }
    
    .dna-basepair {
        width: 45px;
    }
    
    .strand-1 {
        transform: translateX(-22px) rotateY(0deg);
    }
    
    .strand-2 {
        transform: translateX(22px) rotateY(0deg);
    }
    
    .dna-glow {
        width: 80px;
        height: 80px;
    }
    
    .dna-particle {
        width: 3px;
        height: 3px;
    }
    
    .p1 { left: -15px; }
    .p2 { right: -15px; }
    .p3 { left: -20px; }
    .p4 { right: -15px; }
    
    .hero-visual {
        height: 220px !important;
        margin-top: 20px;
    }
}

/* تبلت */
@media (min-width: 601px) and (max-width: 900px) {
    .dna-helix {
        width: 160px;
        height: 230px;
    }
    
    .dna-basepair {
        width: 55px;
    }
    
    .strand-1 {
        transform: translateX(-28px) rotateY(0deg);
    }
    
    .strand-2 {
        transform: translateX(28px) rotateY(0deg);
    }
    
    .hero-visual {
        height: 300px !important;
    }
}

/* دسکتاپ - تنظیم ارتفاع */
@media (min-width: 901px) {
    .hero-visual {
        height: 380px;
    }
}

/* حذف استایل‌های قبلی ساعت */
.glass-clock,
.clock-hand,
.hero-visual div[style*="position:absolute"][style*="width:150px"],
.hero-visual div[style*="position:absolute"][style*="width:100px"] {
    display: none;
}


/* ============================================ */
/* آیکون‌های شناور Font Awesome - Hero Visual */
/* ============================================ */

.floating-icons-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* استایل پایه همه آیکون‌ها */
.floating-icon {
    position: absolute;
    font-size: 2.5rem;
    color: var(--primary, #4D96FF);
    filter: drop-shadow(0 10px 20px rgba(77, 150, 255, 0.3));
    transition: all 0.3s ease;
    animation: floatBase 8s ease-in-out infinite;
    opacity: 0.85;
    will-change: transform;
}

/* انیمیشن پایه شناوری */
@keyframes floatBase {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-5deg); }
    75% { transform: translate(-15px, -10px) rotate(3deg); }
}

/* موقعیت‌دهی اولیه و انیمیشن اختصاصی هر آیکون */
.icon-1 { /* fa-dna */
    top: 15%;
    left: 10%;
    font-size: 3rem;
    color: #6C5CE7;
    filter: drop-shadow(0 10px 25px rgba(108, 92, 231, 0.4));
    animation: float1 9s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(15px, -20px) rotate(10deg); }
    40% { transform: translate(-10px, -35px) rotate(-5deg); }
    60% { transform: translate(-20px, -15px) rotate(-15deg); }
    80% { transform: translate(5px, -30px) rotate(8deg); }
}

.icon-2 { /* fa-graduation-cap */
    top: 20%;
    right: 15%;
    font-size: 2.8rem;
    color: #F59E0B;
    filter: drop-shadow(0 10px 20px rgba(245, 158, 11, 0.3));
    animation: float2 11s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(-20px, -25px) rotate(-8deg); }
    60% { transform: translate(15px, -15px) rotate(12deg); }
    85% { transform: translate(-5px, -30px) rotate(-3deg); }
}

.icon-3 { /* fa-brain */
    bottom: 25%;
    left: 5%;
    font-size: 2.2rem;
    color: #10B981;
    filter: drop-shadow(0 8px 20px rgba(16, 185, 129, 0.35));
    animation: float3 7s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    35% { transform: translate(25px, -15px) rotate(15deg); }
    70% { transform: translate(-10px, -20px) rotate(-10deg); }
}

.icon-4 { /* fa-chart-line */
    bottom: 15%;
    right: 10%;
    font-size: 2.5rem;
    color: #EF4444;
    filter: drop-shadow(0 10px 20px rgba(239, 68, 68, 0.3));
    animation: float4 10s ease-in-out infinite;
    animation-delay: -1s;
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-15px, -30px) rotate(-12deg); }
    50% { transform: translate(20px, -10px) rotate(8deg); }
    75% { transform: translate(-5px, -25px) rotate(-5deg); }
}

.icon-5 { /* fa-flask */
    top: 45%;
    left: 20%;
    font-size: 1.8rem;
    color: #8B5CF6;
    filter: drop-shadow(0 8px 15px rgba(139, 92, 246, 0.35));
    animation: float5 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-25px, -20px) rotate(-20deg); }
}

.icon-6 { /* fa-book-open */
    top: 55%;
    right: 25%;
    font-size: 2rem;
    color: #3B82F6;
    filter: drop-shadow(0 8px 18px rgba(59, 130, 246, 0.3));
    animation: float6 8s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes float6 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    40% { transform: translate(20px, -25px) rotate(10deg); }
    80% { transform: translate(-15px, -10px) rotate(-7deg); }
}

.icon-7 { /* fa-microscope */
    bottom: 40%;
    left: 30%;
    font-size: 2.2rem;
    color: #06B6D4;
    filter: drop-shadow(0 10px 20px rgba(6, 182, 212, 0.3));
    animation: float7 9s ease-in-out infinite;
    animation-delay: -1.5s;
}

@keyframes float7 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(-10px, -35px) rotate(-15deg); }
    60% { transform: translate(25px, -15px) rotate(12deg); }
}

.icon-8 { /* fa-pencil-ruler */
    top: 30%;
    left: 40%;
    font-size: 1.6rem;
    color: #F97316;
    filter: drop-shadow(0 6px 12px rgba(249, 115, 22, 0.3));
    animation: float8 7s ease-in-out infinite;
    animation-delay: -3.5s;
}

@keyframes float8 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    45% { transform: translate(-30px, -15px) rotate(-25deg); }
    90% { transform: translate(10px, -20px) rotate(10deg); }
}

.icon-9 { /* fa-atom */
    bottom: 30%;
    right: 35%;
    font-size: 2.8rem;
    color: #EC4899;
    filter: drop-shadow(0 12px 25px rgba(236, 72, 153, 0.35));
    animation: float9 12s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes float9 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(15px, -40px) rotate(20deg); }
    50% { transform: translate(-25px, -20px) rotate(-15deg); }
    80% { transform: translate(10px, -30px) rotate(10deg); }
}

.icon-10 { /* fa-calculator */
    top: 65%;
    left: 50%;
    font-size: 1.5rem;
    color: #14B8A6;
    filter: drop-shadow(0 6px 12px rgba(20, 184, 166, 0.3));
    animation: float10 5s ease-in-out infinite;
    animation-delay: -2.5s;
}

@keyframes float10 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, -15px) rotate(15deg); }
}

/* هاله نورانی مرکزی */
.center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, 
        rgba(77, 150, 255, 0.12) 0%, 
        rgba(108, 92, 231, 0.06) 40%, 
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: centerGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
    filter: blur(25px);
    z-index: -1;
}

@keyframes centerGlow {
    0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* ============================================ */
/* ریسپانسیو */
/* ============================================ */
@media (max-width: 600px) {
    .floating-icons-container {
        min-height: 220px;
    }
    
    .floating-icon {
        font-size: 1.5rem !important;
    }
    
    .icon-1 { font-size: 2rem !important; top: 10%; left: 5%; }
    .icon-2 { font-size: 1.8rem !important; top: 15%; right: 5%; }
    .icon-3 { font-size: 1.4rem !important; bottom: 20%; left: 8%; }
    .icon-4 { font-size: 1.6rem !important; bottom: 10%; right: 8%; }
    .icon-5 { font-size: 1.2rem !important; top: 40%; left: 15%; }
    .icon-6 { font-size: 1.3rem !important; top: 50%; right: 18%; }
    .icon-7 { font-size: 1.5rem !important; bottom: 35%; left: 25%; }
    .icon-8 { font-size: 1.1rem !important; top: 25%; left: 35%; }
    .icon-9 { font-size: 1.8rem !important; bottom: 25%; right: 30%; }
    .icon-10 { font-size: 1rem !important; top: 60%; left: 45%; }
    
    .center-glow {
        width: 150px;
        height: 150px;
    }
    
    .hero-visual {
        height: 220px !important;
        margin-top: 15px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .floating-icons-container {
        min-height: 280px;
    }
    
    .floating-icon {
        font-size: 2rem !important;
    }
    
    .icon-1 { font-size: 2.5rem !important; }
    .icon-9 { font-size: 2.3rem !important; }
    
    .center-glow {
        width: 200px;
        height: 200px;
    }
    
    .hero-visual {
        height: 280px !important;
    }
}

@media (min-width: 901px) {
    .hero-visual {
        height: 380px;
    }
}

/* حذف استایل‌های قبلی */
.glass-clock,
.clock-hand,
.hero-visual div[style*="position:absolute"][style*="width:150px"],
.hero-visual div[style*="position:absolute"][style*="width:100px"],
.dna-container,
.dna-helix,
.dna-strand,
.dna-basepair,
.dna-glow,
.dna-particle,
.dna-wrapper,
.dna-spiral,
.dna-aura,
.dna-node,
.dna-icon-wrapper,
.dna-icon {
    display: none !important;
}



/* میکرولرنینگ - ابتدایی */
.grade-kids .service-icon-wrapper { background: var(--kids-bg) !important; }
.grade-kids .service-icon { color: var(--kids-color) !important; }

/* میکرولرنینگ - متوسطه اول */
.grade-teens .service-icon-wrapper { background: var(--teens-bg) !important; }
.grade-teens .service-icon { color: var(--teens-color) !important; }

/* میکرولرنینگ - متوسطه دوم */
.grade-high .service-icon-wrapper { background: var(--high-bg) !important; }
.grade-high .service-icon { color: var(--high-color) !important; }




/* ============================================ */
/* استایل اسلایدر مقالات (ثابت مشابه خدمات) */
/* ============================================ */

.article-slide-card {
    flex: 0 0 280px !important;
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}

.article-slide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.article-slide-card .card-image-wrapper {
    height: 140px;
    width: 100%;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.article-slide-card .article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-slide-card:hover .article-img {
    transform: scale(1.05);
}

/* در موبایل عرض کمی کمتر شود (اختیاری) */
@media (max-width: 600px) {
    .article-slide-card {
        flex: 0 0 260px !important;
    }
}

/* در دسکتاپ هم اسکرول افقی بماند (همین استایل کافی است) */
