/* Specialists Section - Meet Our Specialists */
.specialists-section {
    height: 704px;
    background: #FFFFFF;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    overflow: hidden;
}

.specialists-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Title and Description */
.specialists-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.specialists-title {
    font-family: 'Cal Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    line-height: 120%;
    margin: 0;
    text-align: center;
}

.specialists-title .title-black {
    color: #000000;
}

.specialists-title .title-primary {
    color: #E62D5B;
}

.specialists-description {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    text-align: center;
    color: #000000;
    margin: 0;
    max-width: 600px;
}

/* Specialists Wrapper - Contains navigation and cards */
.specialists-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Navigation Buttons */
.specialists-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    gap: 15px;
    width: 60px;
    height: 60px;
    background: #F5F5F5;
    border-radius: 150px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
}

.specialists-nav:hover {
    background: #E5E5E5;
    transform: scale(1.05);
}

/* Navigation Buttons Container - Both at bottom center */
.specialists-nav-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.specialists-nav-left,
.specialists-nav-right {
    position: static;
    transform: none;
}

/* Specialists Scroll Container */
.specialists-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    padding: 20px 0;

    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.specialists-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Specialist Card */
.specialist-card {
    flex: none;
    width: 300px;
    height: 350px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.specialist-card:hover {
    transform: translateY(-5px);
}

.specialist-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, rgba(96, 198, 200, 0.2) 0%, rgba(230, 45, 91, 0.2) 100%);
}

.specialist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

.specialist-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.specialist-image-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: currentColor;
}

/* Info Card Overlay */
.specialist-info-card {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 2px;
    width: 260px;
    height: 115px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.specialist-card:hover .specialist-info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.specialist-name {
    font-family: 'Cal Sans';
    font-style: normal;
    font-weight: 400;
    ;
    font-size: 18px;
    line-height: 150%;
    text-align: center;
    color: #000000;
    margin: 0;
    width: 100%;
}

.specialist-role {
    width: 228px;
    height: 21px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    text-align: center;
    color: #000000;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .specialists-container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .specialists-section {
        height: auto;
        padding: 60px 0;
    }

    .specialists-container {
        padding: 0 20px;
        gap: 40px;
    }

    .specialists-title {
        font-size: 32px;
        display: inline-flex;
    }

    .specialists-description {
        font-size: 16px;
    }

    .specialist-card {
        width: 299px;
        height: 350px;
    }

    .specialist-info-card {
        width: 260px;
        height: 115px;
        padding: 14px;
    }

    .specialists-nav {
        width: 50px;
        height: 50px;
        padding: 12px;
    }
}

@media (max-width: 440px) {
    .specialists-container {
        padding: 0 15px;
        gap: 30px;
    }

    .specialists-title {
        font-size: 32px;
    }

    .specialists-description {
        font-size: 16px;
    }

    .specialist-card {
        width: 299px;
        height: 350px;
    }

    .specialist-info-card {
        width: 260px;
        height: 115px;
        padding: 12px;
    }

    .specialist-name {
        font-size: 16px;
    }

    .specialist-role {
        font-size: 13px;
    }

    .specialists-nav {
        width: 45px;
        height: 45px;
        padding: 10px;
    }

    .specialists-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .specialist-card:hover {
        transform: none;
    }

    .specialist-card:active {
        transform: scale(0.98);
    }

    .specialists-nav:hover {
        background: #F5F5F5;
        transform: none;
    }

    .specialists-nav:active {
        background: #E5E5E5;
        transform: scale(0.98);
    }
}

/* Animation for smooth entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specialist-card {
    animation: fadeInUp 0.6s ease forwards;
}

.specialist-card:nth-child(1) {
    animation-delay: 0.1s;
}

.specialist-card:nth-child(2) {
    animation-delay: 0.2s;
}

.specialist-card:nth-child(3) {
    animation-delay: 0.3s;
}

.specialist-card:nth-child(4) {
    animation-delay: 0.4s;
}

.specialist-card:nth-child(5) {
    animation-delay: 0.5s;
}