/* ---------------- ABOUT PREMIUM SECTION ---------------- */

.about-premium-section {
    padding: 100px 0; /* کاهش ملایم پدینگ بالا و پایین دسکتاپ برای توازن */
    background-color: #0f172a; /* primary-color */
    color: #fff;
    overflow: hidden;
    position: relative;
    direction: rtl;
    text-align: right;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ستون متن */
.about-badge {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
    border-right: 3px solid var(--accent-color);
    padding-right: 15px;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem); /* اندازه فونت کاملاً ریسپانسیو برای عنوان */
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 40px;
    text-align: justify;
}

/* ویژگی‌ها (Features) */
.about-features {
    display: grid;
    gap: 25px;
    margin-bottom: 45px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    flex-shrink: 0; /* جلوگیری از تغییر سایز آیکون در صفحات کوچک */
}

.feature-item:hover .feature-icon {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
}

.feature-text h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #f1f5f9;
}

.feature-text p {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* دکمه بیشتر بدانید */
.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    padding: 10px 0;
}

.about-btn svg {
    transition: transform 0.3s ease;
}

.about-btn:hover svg {
    transform: translateX(-8px);
}

.about-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-btn:hover::after {
    width: 100%;
}

/* --- ستون تصویر چند لایه‌ای کاملاً منعطف و ریسپانسیو --- */
.about-visual-v2 {
    position: relative;
    height: 600px; /* کاهش جزئی ارتفاع دسکتاپ برای چیدمان بهتر */
    display: flex;
    align-items: center;
    width: 100%;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-image-wrapper {
    position: absolute;
    top: 0;
    left: 5%;
    width: 75%;
    height: 85%;
    border-radius: 40px;
    overflow: hidden;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
}

.img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.2);
}

.secondary-image-wrapper {
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 50%;
    height: 40%;
    border-radius: 30px;
    overflow: hidden;
    z-index: 3;
    border: 8px solid #0f172a;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.img-secondary {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* کارت‌های اطلاعاتی و آماری معلق روی تصویر */
.stat-card-experience {
    position: absolute;
    top: 30px;
    right: -10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4;
    border: 1px solid rgba(255,255,255,0.1);
    animation: float-about 4s ease-in-out infinite;
}

.stat-card-experience .card-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-card-experience .number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-card-experience .label {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.stat-card-students {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.user-avatars {
    display: flex;
}

.user-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #0f172a;
    margin-left: -10px;
}

.student-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

/* المان‌های تزئینی */
.decor-dots {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--accent-color) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    opacity: 0.3;
    z-index: 1;
}

.glow-bg-v2 {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.1) 0%, transparent 60%);
    z-index: 0;
}

@keyframes float-about {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}


/* ========================================================
   بهینه‌سازی واکنش‌گرایی در نمایشگرهای مختلف (Media Queries)
   ======================================================== */

/* لپ‌تاپ‌ها و مانیتورهای کوچک‌تر */
@media (max-width: 1200px) {
    .about-wrapper {
        gap: 50px;
    }
    
    .about-visual-v2 {
        height: 520px; /* کاهش تدریجی ارتفاع جهت حفظ توازن لایه‌ها */
    }
    
    .secondary-image-wrapper {
        bottom: 30px;
    }
}

/* تبلت‌ها و نمایشگرهای متوسط (انتقال ستون تصویر به بالا) */
@media (max-width: 1100px) {
    .about-premium-section {
        padding: 70px 0;
    }

    .about-wrapper { 
        grid-template-columns: 1fr; /* تبدیل کل سکشن به حالت تک‌ستونه */
        gap: 60px; 
    }
    
    /* انتقال ستون تصاویر به بالای متون در حالت تبلت و موبایل */
    .about-visual-v2 { 
        order: -1; 
        height: 480px; 
        margin: 0 auto; 
        max-width: 550px; 
    }
    
    .about-content h2 { 
        text-align: center; 
    }
    
    .about-badge { 
        display: table; 
        margin: 0 auto 20px auto; 
    }
    
    .about-description { 
        text-align: center; 
    }
    
    .about-features {
        max-width: 550px;
        margin: 0 auto 35px auto;
    }
    
    .about-btn {
        display: flex;
        width: fit-content;
        margin: 0 auto;
    }
}

/* موبایل‌های هوشمند معمولی و کوچک */
@media (max-width: 576px) {
    .about-premium-section {
        padding: 50px 0;
    }

    .about-visual-v2 {
        height: 360px; /* کاهش بهینه ارتفاع متناسب با عرض موبایل */
    }
    
    .main-image-wrapper {
        border-radius: 24px;
        width: 80%;
        height: 80%;
        left: 0;
    }
    
    .secondary-image-wrapper {
        border-radius: 16px;
        border-width: 4px; /* نازک‌تر شدن لبه تصویر دوم جهت ظرافت */
        bottom: 15px;
        width: 55%;
        height: 45%;
    }
    
    /* متمایل کردن کارت‌های آماری به داخل کادر جهت پیشگیری از بیرون‌زدگی در صفحات موبایل */
    .stat-card-experience {
        top: 20px;
        right: 5px; /* تراز به داخل صفحه */
        padding: 12px;
        border-radius: 16px;
        gap: 8px;
    }
    
    .stat-card-experience .card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .stat-card-experience .number {
        font-size: 1.3rem;
    }
    
    .stat-card-experience .label {
        font-size: 0.7rem;
    }
    
    .stat-card-students {
        bottom: 10px;
        left: 5px;
        padding: 8px 14px;
    }
    
    .user-avatars img {
        width: 26px;
        height: 32px; /* ابعاد هماهنگ تصویر کاربران در موبایل */
    }
}