/* ========================================================
   بخش افتخارات - استایل لوکس، کشیده و شفاف (Dark Style)
   ======================================================== */

.achievements-section {
    background-color: var(--primary-color);
    padding: 90px 0;
    width: 100%;
    position: relative;
    /* خطوط نئونی بالا و پایین سکشن */
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 0 35px rgba(217, 56, 108, 0.15); /* هاله سرخابی سازمانی */
    
    --grid-gap: clamp(20px, 2.5vw, 30px);
}

/* افکت خط درخشان نئونی متحرک در لبه بالایی سکشن */
.achievements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 20px var(--accent-color);
    z-index: 10;
}

.achievements-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= هدر سکشن ================= */
.achievements-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.achievements-section .section-header .sub-title {
    color: var(--accent-color);
    font-weight: 800;
    display: block;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.achievements-section .section-header h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-top: 0;
    position: relative;
    display: inline-block;
}

/* خط کوچک نئونی زیر عنوان */
.achievements-section .section-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(217, 56, 108, 0.6);
}

/* ================= گرید کارت‌ها ================= */
.achievements-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--grid-gap);
    width: 100%;
    margin: 0 auto;
}

/* ================= استایل کارت جدید (عکس بالا + متن پایین) ================= */
.achievement-card {
    position: relative;
    background: var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    
    /* عرض کارت برای ۳ ستون عالی و کشیده در حالت دسکتاپ */
    flex: 0 0 calc(33.333% - (var(--grid-gap) * 2 / 3));
    min-width: 300px;
    
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    cursor: default;
}

/* 1. کادر تصویر (مستطیلی و شفاف) */
.achievement-image-box {
    position: relative;
    width: 100%;
    height: 220px; /* ارتفاع مستطیلی مناسب برای عکس‌های افقی و تقدیرنامه‌ها */
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
}

.achievement-image-box .achievement-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پوشش کامل بدون تغییر نسبت تصویر */
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* بج آیکون مدال روی گوشه تصویر */
.achievement-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4),
                0 0 10px rgba(217, 56, 108, 0.5);
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease,
                color 0.3s ease;
}

/* 2. کادر متن زیر تصویر */
.achievement-card-body {
    padding: 22px 20px;
    display: flex;
    align-items: center;
    flex-grow: 1;
    background: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.achievement-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.6;
    text-align: right;
    width: 100%;
    transition: color 0.3s ease;
}

/* ================= حالت‌های هاور کارت ================= */
.achievement-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5),
                0 0 25px rgba(217, 56, 108, 0.25);
}

/* زوم ملایم تصویر بدون تاریک شدن */
.achievement-card:hover .achievement-img {
    transform: scale(1.06);
}

/* تغییر رنگ عنوان هنگام هاور */
.achievement-card:hover .achievement-title {
    color: var(--accent-color);
}

/* چرخش و تغییر رنگ بج آیکون هنگام هاور */
.achievement-card:hover .achievement-badge {
    background-color: var(--white);
    color: var(--accent-color);
    transform: scale(1.1) rotate(-8deg);
}

/* ================= متن عدم وجود افتخار ================= */
.achievements-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 50px 0;
    font-size: 1.1rem;
    width: 100%;
}

/* ================= دکمه مشاهده همه (نئونی) ================= */
.achievements-action {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    width: 100%;
}

.view-all-btn {
    padding: 14px 35px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 50px;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(217, 56, 108, 0.2);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.view-all-btn:hover {
    color: var(--white);
    box-shadow: 0 0 25px rgba(217, 56, 108, 0.6);
    transform: translateY(-3px);
}

.view-all-btn:hover::before {
    width: 100%;
    left: 0;
    right: auto;
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(-5px);
}

/* ================= واکنش‌گرایی (Responsive) ================= */

/* تبلت‌های افقی و لپ‌تاپ‌های کوچک (۲ ستونه) */
@media (max-width: 992px) {
    .achievement-card {
        flex: 0 0 calc(50% - (var(--grid-gap) / 2));
    }
    
    .achievement-image-box {
        height: 200px;
    }
}

/* موبایل (تک ستونه) */
@media (max-width: 600px) {
    .achievements-section {
        padding: 60px 0;
    }

    .achievement-card {
        flex: 0 0 100%;
    }
    
    .achievement-image-box {
        height: 210px;
    }
    
    .achievements-section .section-header h2 {
        font-size: 1.8rem;
    }
    
    .achievement-title {
        font-size: 1rem;
    }
}