/* Experts Section Styles */
.experts-section {
    padding: 80px 0;
    background-color: transparent;
}

.experts-title {
    font-size: 48px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.2;
}

.experts-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 60px;
    line-height: 1.5;
}

.experts-carousel {
    overflow: hidden;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.experts-track {
    display: flex;
    animation: scroll 120s linear infinite;
    width: max-content;
}

.expert-card {
    width: 350px;
    height: 400px;
    margin: 0 0 30px 10px;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
}


.expert-card-link {
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.expert-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.expert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
    height: 60px; /* Sabit yükseklik eklendi */
    min-height: 60px; /* Minimum yükseklik garantisi */
    flex-shrink: 0; /* Boyutun küçülmesini engeller */
}

.expert-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.expert-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px; /* Maksimum genişlik */
}

.expert-title {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px; /* Maksimum genişlik */
}
.expert-title p {
    font-size: 14px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.expert-rating {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-shrink: 0; /* Boyutun küçülmesini engeller */
}

.star-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.expert-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: auto;
    min-height: 0; /* Flex item'ın küçülmesine izin ver */
}

.expert-image img {
    width: 200px;
    height: 250px;
    border-radius: 100px;
    object-fit: cover;
}

/* Background colors for different expert types */
.expert-card-therapist {
    background-color: rgba(237, 230, 255, 0.9) !important;
}

.expert-card-dietician {
    background-color: rgba(225, 242, 230, 0.9) !important;
}

.expert-card-psychotherapist {
    background-color: rgba(255, 232, 200, 0.9) !important;
}

/* Infinite scroll animation - slower */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .experts-section {
        padding: 60px 0;
    }

    .experts-title {
        font-size: 36px;
    }

    .experts-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .expert-card {
        width: 300px;
        height: 360px;
        margin: 0 8px;
        padding: 20px;
    }

    .expert-header {
        height: 50px; /* Mobilde daha küçük yükseklik */
        min-height: 50px;
    }

    .expert-name {
        font-size: 16px;
        max-width: 150px; /* Mobilde daha küçük genişlik */
    }

    .expert-title {
        font-size: 18px;
        max-width: 150px; /* Mobilde daha küçük genişlik */
    }

    .expert-image img {
        width: 160px;
        height: 195px;
        border-radius: 82px;
    }
}

@media (max-width: 480px) {
    .experts-title {
        font-size: 28px;
    }

    .experts-subtitle {
        font-size: 14px;
    }

    .expert-card {
        width: 280px;
        height: 320px;
        margin: 0 6px;
        padding: 16px;
    }

    .expert-header {
        height: 45px; /* Daha küçük ekranlarda daha küçük yükseklik */
        min-height: 45px;
    }

    .expert-name {
        font-size: 15px;
        max-width: 120px; /* Daha küçük genişlik */
    }

    .expert-title {
        font-size: 15px;
        max-width: 120px; /* Daha küçük genişlik */
    }

    .expert-image img {
        width: 150px;
        height: 200px;
        border-radius: 66px;
    }
}

/* Pause animation on hover */
.experts-carousel:hover .experts-track {
    animation-play-state: paused;
}

/* Smooth scrolling for better performance */
.experts-track {
    will-change: transform;
}
