﻿body {
}

.team-slider-wrapper {
    position: relative;
    padding: 0 20px;
    margin: 0 -15px;
}

.team-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    gap: 20px;
}

    .team-slider::-webkit-scrollbar {
        display: none;
    }

.team-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 280px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .slider-dot.active {
        background: linear-gradient(135deg, #5897FB, #1F2125);
        transform: scale(1.2);
    }

    .slider-dot:hover {
        background: #5897FB;
        transform: scale(1.1);
    }

.team-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    position: relative;
    width: 100%;
    margin: 0;
}

    .team-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    }

.team-img-wrapper {
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px;
}

.glow-frame {
    position: relative;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #5897FB, #1F2125);
    box-shadow: 0 0 15px rgba(88, 151, 251, 0.4), 0 0 25px rgba(31, 33, 37, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover .glow-frame {
    background: linear-gradient(135deg, #5897FB, #1F2125, #5897FB);
    box-shadow: 0 0 20px rgba(88, 151, 251, 0.6), 0 0 35px rgba(31, 33, 37, 0.4), 0 0 50px rgba(88, 151, 251, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.team-member-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.team-card:hover .team-member-img {
    transform: scale(1.06);
}

.team-social-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, rgba(88, 151, 251, 0.9), rgba(31, 33, 37, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.team-card:hover .team-social-overlay {
    opacity: 1;
}

.team-social-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

    .social-icon::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.4s ease;
    }

    .social-icon:hover::before {
        left: 100%;
    }

    .social-icon:hover {
        transform: translateY(-3px) scale(1.1);
        border-color: rgba(255,255,255,0.6);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .social-icon.instagram {
        background: linear-gradient(45deg, rgba(225, 48, 108, 0.8), rgba(131, 58, 180, 0.8));
    }

    .social-icon.telegram {
        background: linear-gradient(45deg, rgba(0, 136, 204, 0.8), rgba(0, 102, 153, 0.8));
    }

    .social-icon.whatsapp {
        background: linear-gradient(45deg, rgba(37, 211, 102, 0.8), rgba(32, 180, 87, 0.8));
    }

    .social-icon.twitter {
        background: linear-gradient(45deg, rgba(29, 161, 242, 0.8), rgba(23, 128, 191, 0.8));
    }

.team-content {
    padding: 20px 15px;
    background: white;
    position: relative;
    z-index: 2;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #242424;
    margin-bottom: 8px;
    font-family: 'Vazir', sans-serif;
    line-height: 1.3;
}

.member-position {
    color: #718096;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

@@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(88, 151, 251, 0.4), 0 0 20px rgba(31, 33, 37, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(88, 151, 251, 0.6), 0 0 25px rgba(31, 33, 37, 0.4);
    }
}

.glow-frame {
    animation: glowPulse 3s ease-in-out infinite;
}

.team-card:hover .glow-frame {
    animation: none;
}

/* استایل‌های بخش مدارک */
.certificates-area {
    padding: 100px 0;
    background: #f8f9fa;
}

.certificate-slider-wrapper {
    position: relative;
    padding: 0 20px;
    margin: 0 -15px;
}

.certificate-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    gap: 20px;
}

    .certificate-slider::-webkit-scrollbar {
        display: none;
    }

.certificate-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 300px;
}

.certificate-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    position: relative;
    width: 100%;
    margin: 0;
}

    .certificate-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    }

.certificate-img-wrapper {
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
}

.certificate-glow-frame {
    position: relative;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #5897FB, #1F2125);
    box-shadow: 0 0 15px rgba(88, 151, 251, 0.4), 0 0 25px rgba(31, 33, 37, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-glow-frame {
    background: linear-gradient(135deg, #5897FB, #1F2125, #5897FB);
    box-shadow: 0 0 20px rgba(88, 151, 251, 0.6), 0 0 35px rgba(31, 33, 37, 0.4), 0 0 50px rgba(88, 151, 251, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.certificate-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 70%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.certificate-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    border-radius: 10px;
    background: white;
}

.certificate-card:hover .certificate-img {
    transform: scale(1.05);
}

.certificate-content {
    padding: 20px 15px;
    background: white;
    position: relative;
    z-index: 2;
    text-align: center;
}

.certificate-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #242424;
    margin-bottom: 8px;
    font-family: 'Vazir', sans-serif;
    line-height: 1.3;
}

.certificate-description {
    color: #718096;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.certificate-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.certificate-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .certificate-dot.active {
        background: linear-gradient(135deg, #5897FB, #1F2125);
        transform: scale(1.2);
    }

    .certificate-dot:hover {
        background: #5897FB;
        transform: scale(1.1);
    }

@@media (max-width: 768px) {
    .team-slider-wrapper,
    .certificate-slider-wrapper {
        padding: 0 15px;
    }

    .team-slide {
        width: 240px;
    }

    .certificate-slide {
        width: 260px;
    }

    .team-img-wrapper {
        padding: 12px;
    }

    .certificate-img-wrapper {
        padding: 15px;
    }

    .team-social-icons {
        gap: 6px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .team-content,
    .certificate-content {
        padding: 15px 12px;
    }

    .member-name,
    .certificate-title {
        font-size: 1rem;
    }

    .member-position,
    .certificate-description {
        font-size: 0.8rem;
    }
}

@@media (max-width: 576px) {
    .team-slider-wrapper,
    .certificate-slider-wrapper {
        padding: 0 10px;
    }

    .team-slide {
        width: 200px;
    }

    .certificate-slide {
        width: 220px;
    }

    .team-img-wrapper {
        padding: 10px;
    }

    .certificate-img-wrapper {
        padding: 12px;
    }

    .social-icon {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }

    .team-social-icons {
        gap: 5px;
    }

    .team-content,
    .certificate-content {
        padding: 12px 10px;
    }

    .member-name,
    .certificate-title {
        font-size: 0.9rem;
    }

    .member-position,
    .certificate-description {
        font-size: 0.75rem;
    }
}

@@media (max-width: 400px) {
    .team-slide {
        width: 180px;
    }

    .certificate-slide {
        width: 200px;
    }
}
