/**
 * Komandamiz karusel stilləri
 */

#komandamiz .mentor-carousel {
    position: relative;
}

#komandamiz .mentor-carousel::before,
#komandamiz .mentor-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    z-index: 3;
    pointer-events: none;
}

#komandamiz .mentor-carousel::before {
    left: 0;
    background: linear-gradient(
        to right,
        #fef6e4 0%,
        rgba(254, 246, 228, 0.92) 35%,
        transparent 100%
    );
}

#komandamiz .mentor-carousel::after {
    right: 0;
    background: linear-gradient(
        to left,
        #fef6e4 0%,
        rgba(254, 246, 228, 0.92) 35%,
        transparent 100%
    );
}

#komandamiz #komandamiz-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    padding: 1rem 0;
    margin: 0;
    animation: none !important;
    -webkit-animation: none !important;
    transition: none !important;
    -webkit-transition: none !important;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

#komandamiz .mentor-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
    flex-shrink: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
    box-shadow:
        inset 22px 0 20px -16px rgba(255, 255, 255, 0.75),
        inset -22px 0 20px -16px rgba(255, 255, 255, 0.75),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

#komandamiz .mentor-card:hover {
    transform: translateY(-10px);
    box-shadow:
        inset 24px 0 22px -14px rgba(255, 255, 255, 0.9),
        inset -24px 0 22px -14px rgba(255, 255, 255, 0.9),
        0 20px 40px rgba(0, 0, 0, 0.15);
}

#komandamiz .mentor-image-link {
    display: block;
    line-height: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

#komandamiz .mentor-image-link:focus {
    outline: 2px solid #dc143c;
    outline-offset: 2px;
}

#komandamiz .mentor-image-link .mentor-image,
#komandamiz .mentor-image {
    width: 100% !important;
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 15px 15px 0 0;
    transition: opacity 0.3s ease;
}

#komandamiz .mentor-image-link:hover .mentor-image {
    opacity: 0.92;
}

#komandamiz .mentor-info {
    text-align: center;
    align-items: center;
}

#komandamiz .mentor-name,
#komandamiz .mentor-university,
#komandamiz .mentor-degree {
    text-align: center;
    width: 100%;
}

#komandamiz .mentor-name-link {
    display: inline-block;
}

#komandamiz .mentor-specialties {
    justify-content: center;
}

@media (max-width: 768px) {
    #komandamiz .mentor-carousel::before,
    #komandamiz .mentor-carousel::after {
        display: none;
    }

    #komandamiz .mentor-carousel {
        width: 100%;
    }

    #komandamiz #komandamiz-track {
        gap: 0.75rem;
    }

    /* 2 kart yan-yana: carousel eni − gap, ikiyə bölünür */
    #komandamiz .mentor-card {
        width: calc((100% - 0.75rem) / 2);
        min-width: calc((100% - 0.75rem) / 2);
        max-width: calc((100% - 0.75rem) / 2);
        flex: 0 0 calc((100% - 0.75rem) / 2);
    }

    #komandamiz .mentor-image-link .mentor-image,
    #komandamiz .mentor-image {
        height: 200px;
    }

    #komandamiz .mentor-info {
        padding: 1rem 0.65rem;
    }

    #komandamiz .mentor-name {
        font-size: 0.95rem;
    }

    #komandamiz .mentor-university,
    #komandamiz .mentor-degree {
        font-size: 0.8rem;
    }

    #komandamiz .specialty-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.45rem;
    }
}

@media (max-width: 480px) {
    #komandamiz .mentor-image-link .mentor-image,
    #komandamiz .mentor-image {
        height: 180px;
    }

    #komandamiz .mentor-name {
        font-size: 0.88rem;
    }
}
