﻿/* =========================================
   Premium Team Section Styles (Upgraded)
   ========================================= */

/* پس‌زمینه کل بخش با یک گرادیان بسیار ملایم و حرفه‌ای */
.custom-testimonials-area {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 100px 0;
    direction: rtl;
    font-family: inherit;
    position: relative;
    z-index: 1;
}

/* استایل‌دهی پیشرفته به عنوان بخش */
.custom-section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .custom-section-title span {
        color: #ffffff;
        background: linear-gradient(90deg, #0056b3, #007bff);
        padding: 6px 20px;
        border-radius: 30px;
        font-size: 13px;
        font-weight: 700;
        display: inline-block;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
    }

    .custom-section-title h3 {
        font-size: 36px;
        color: #1a202c;
        font-weight: 900;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 20px;
    }

        .custom-section-title h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, transparent, #0056b3, transparent);
            border-radius: 5px;
        }

    .custom-section-title p {
        color: #64748b;
        font-size: 17px;
        font-weight: 400;
    }

/* طراحی فوق‌حرفه‌ای کارت‌های پرسنل */
.team-card-modern {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin: 20px 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    /* افکت درخشش ملایم در پس‌زمینه کارت هنگام هاور */
    .team-card-modern::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at top center, rgba(0, 86, 179, 0.03), transparent 70%);
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: -1;
    }

    .team-card-modern:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
        border-color: rgba(0, 86, 179, 0.15);
    }

        .team-card-modern:hover::before {
            opacity: 1;
        }

/* قاب‌بندی مدرن و داینامیک تصاویر با حلقه گرادیان چرخشی */
.team-image-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    border-radius: 50%;
    padding: 6px;
    background: #f1f5f9;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

    .team-image-wrapper::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0056b3, #00d2ff, #0056b3);
        background-size: 200% 200%;
        z-index: -1;
        opacity: 0;
        transition: all 0.5s ease;
    }

.team-card-modern:hover .team-image-wrapper {
    transform: scale(1.05);
    background: transparent;
}

    .team-card-modern:hover .team-image-wrapper::after {
        opacity: 1;
        animation: gradientShift 3s ease infinite;
    }

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background-color: #ffffff;
}

/* تایپوگرافی حرفه‌ای نام و سمت */
.team-card-modern h3 {
    font-size: 14px;
    color: #0056b3;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.team-card-modern p {
    color: #1e293b;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    transition: color 0.3s ease;
}

.team-card-modern:hover p {
    color: #0056b3;
}
