/* Container wrapper */
.wp-single-team-section {
    max-width: 1440px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease;
}

.wp-single-team-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.wp-single-team-main-content {
    flex: 1;
    max-width: 100%;
    background: var(--lavender-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(110, 15, 121, 0.1);
    animation: slideInUp 0.5s ease-out;
}

.wp-single-team-sidebar {
    position: sticky;
    top: 75px;
    flex: 0 0 350px;
    height: 600px;
    overflow-y: hidden;
    background: var(--lavender-bg);
    border-radius: 12px;
    padding: 0rem 1rem 1rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 6px 12px rgba(0, 0, 0, 0.08);
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    display: flex;
    flex-direction: column;
}

.wp-single-team-sidebar h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6e0f79;
    margin-bottom: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    padding-bottom: 1rem;
    padding-top: 1rem;
    z-index: 1;
    border-bottom: 1px solid rgba(110, 15, 121, 0.1);
}

.wp-single-team-member-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-single-team-sidebar ul {
    list-style: none;
    padding: 0.3rem;
    margin: 0;
    overflow: scroll;
}
.wp-single-team-sidebar::-webkit-scrollbar {
    width: 6px;
}

.wp-single-team-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.wp-single-team-member-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(110, 15, 121, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.wp-single-team-member-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 15, 121, 0.15);
    background-color: rgba(204, 153, 255, 0.2);
}

.wp-single-team-member-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 100%;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wp-single-team-list-photo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(110, 15, 121, 0.15);
    object-fit: cover;
}

.wp-single-team-member-list li:hover .wp-single-team-list-photo {
    box-shadow: 0 0 15px rgba(110, 15, 121, 0.25);
}

.wp-single-team-member-list li span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6e0f79;
    flex-shrink: 1;
    min-width: 0;
    line-height: 1.2;
}

.wp-single-team-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.wp-single-team-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(110, 15, 121, 0.2);
}

.wp-single-team-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #4a003d;
    text-align: center;
}

.wp-single-team-job-title {
    font-size: 1.2rem;
    color: #6e0f79;
    margin-bottom: 1rem;
    text-align: center;
}

.wp-single-team-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #69606b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.wp-single-team-contact-info {
    margin-top: 1.5rem;
    text-align: left;
    color: var(--violet-dark);
}

.wp-single-team-contact-info a {
    color: var(--violet);
    text-decoration: none;
    font-weight: 600;
}

.wp-single-team-contact-info a:hover {
    text-decoration: underline;
}

.wp-single-team-social-media {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.wp-single-team-social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--violet);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.wp-single-team-social-media a:hover {
    background-color: var(--violet-dark);
}

.wp-single-team-social-media img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.team-specializations {
    padding: 2rem 0 0 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.25rem;
    overflow: hidden;
    white-space: nowrap;
    max-width: 90%;
    margin: 0 auto;
}

.specialization-badge,
.specialization-more {
    background-color: #a59bd6;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
}

.specialization-badge:hover {
    background-color: #8e82c9;
    color: #fff;
    cursor: default;
}

.card-gray {
    border: 1px;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
}

.contact-cta {
    background-color: var(--violet); /* violet */
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-radius: 12px;
    text-align: center;
    color: var(--white-bg);
    box-shadow: 0 4px 12px rgba(110, 15, 121, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.contact-cta-inner p {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.contact-cta-button {
    background-color:var(--white-bg);
    color: var(--violet-dark);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.contact-cta-button:hover,
.contact-cta-button:focus {
    background-color: var(--violet);
    color: var(--white-bg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .wp-single-team-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .wp-single-team-sidebar {
        position: static;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .wp-single-team-sidebar h4 {
        position: static;
        background: transparent;
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 1rem;
    }

    .wp-single-team-member-list li {
        flex-direction: row;
    }

    .wp-single-team-list-photo {
        width: 50px;
        height: 50px;
    }
}