/**
 * Elementor Team Member Carousel CSS
 */

.team-member-carousel-container {
    position: relative;
    width: 100%;
    overflow: visible;
    margin: 0 auto;
}

/* Owl Carousel Styles */
.team-member-carousel-container .owl-carousel {
    position: relative;
}

.team-member-carousel-container .owl-stage-outer {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.team-member-carousel-container .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    touch-action: manipulation;
    -moz-backface-visibility: hidden;
}

.team-member-carousel-container .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.team-member-carousel-container .owl-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.team-member-carousel-container .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0;
}

.team-member-carousel-container .owl-nav button:hover {
    background: #007cba;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.team-member-carousel-container .owl-nav .owl-prev {
    left: -25px;
}

.team-member-carousel-container .owl-nav .owl-next {
    right: -25px;
}


/* Custom navigation arrow styling */
.team-carousel-arrow-prev,
.team-carousel-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

.team-carousel-arrow-prev:hover,
.team-carousel-arrow-next:hover {
    background: #007cba;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.team-carousel-arrow-prev {
    left: -25px;
}

.team-carousel-arrow-next {
    right: -25px;
}

.team-member-carousel-container .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.team-member-carousel-container .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-member-carousel-container .owl-dot.active,
.team-member-carousel-container .owl-dot:hover {
    background: #007cba;
    transform: scale(1.2);
}

.team-member-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.team-member-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}


.team-carousel-arrow-prev{
    left:5px !important
}


.team-carousel-arrow-next{
    right:5px !important;
}


.team-member-item {
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    animation: team-member-fade-in 0.8s ease-out;
    width: 100%;
}

.team-member-item:hover {
    transform: translateY(-5px);
}

.team-member-photo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.team-member-photo img {
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    border-radius: 50%;
    filter: brightness(1.05) contrast(1.1);
}

.team-member-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.team-member-item:hover .team-member-photo {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.team-member-item:hover .team-member-photo img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.15) saturate(1.1);
}

.team-member-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.team-member-name {
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    overflow-wrap: break-word;
    color: #333333;
    font-size: 1.25rem;
}

.team-member-position {
    margin: 0 0 15px 0;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    overflow-wrap: break-word;
    color: #007cba;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member-bio {
    margin: 0 0 20px 0;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    overflow-wrap: break-word;
    color: #666666;
    font-size: 0.9rem;
    max-width: 280px;
    text-align: center;
}

.team-member-email {
    margin-bottom: 15px;
}

.team-member-email a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    color: #666666;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.team-member-email a:hover {
    background-color: #007cba;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.team-member-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.team-member-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f8f9fa;
    color: #666666;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.team-member-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.team-member-social a:hover::before {
    left: 100%;
}

.team-member-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.team-member-social a.social-clicked {
    transform: scale(0.95);
}

/* Social Media Specific Colors */
.team-member-social a[href*="facebook"]:hover {
    background-color: #1877f2;
    color: #ffffff;
}

.team-member-social a[href*="twitter"]:hover {
    background-color: #1da1f2;
    color: #ffffff;
}

.team-member-social a[href*="linkedin"]:hover {
    background-color: #0077b5;
    color: #ffffff;
}

.team-member-social a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.team-member-social a[href*="youtube"]:hover {
    background-color: #ff0000;
    color: #ffffff;
}

.team-member-social a[href*="github"]:hover {
    background-color: #333333;
    color: #ffffff;
}

.team-member-social a[href*="mailto"]:hover {
    background-color: #007cba;
    color: #ffffff;
}

.team-member-social a[href*="http"]:hover {
    background-color: #007cba;
    color: #ffffff;
}


/* Loading State */
.team-member-carousel-container.loading .team-member-carousel-track {
    opacity: 0.5;
}

.team-member-carousel-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: team-carousel-spin 1s linear infinite;
    z-index: 100;
}

@keyframes team-carousel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes team-member-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Hover Effects */
.team-member-hover {
    transform: translateY(-8px) !important;
}

.team-member-hover .team-member-photo {
    transform: scale(1.08) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
}

.team-member-hover .team-member-photo img {
    transform: scale(1.15) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
}

/* Tablet breakpoint (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .team-member-photo {
        width: 130px;
        height: 130px;
        margin-bottom: 18px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
    
    .team-member-name {
        font-size: 1.15rem;
    }
    
    .team-member-position {
        font-size: 0.95rem;
    }
    
    .team-member-bio {
        font-size: 0.9rem;
        max-width: 280px;
    }
    
    .team-member-social a {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    
    .team-member-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
    }
    
    .team-member-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .team-member-position {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .team-member-bio {
        font-size: 0.85rem;
        max-width: 280px;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    .team-member-social {
        gap: 8px;
    }
    
    .team-member-social a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    
    /* Mobile: Force 1 slide per row */
    .team-member-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 30px;
        box-sizing: border-box;
    }
    
    
    /* Ensure content is fully visible */
    .team-member-content {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .team-member-bio {
        max-width: 100% !important;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    
    .team-member-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    
    .team-member-name {
        font-size: 1rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .team-member-position {
        font-size: 0.8rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .team-member-bio {
        font-size: 0.8rem;
        max-width: 260px;
        margin-bottom: 16px;
        line-height: 1.4;
    }
    
    .team-member-social {
        gap: 6px;
    }
    
    .team-member-social a {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    
    /* Extra small mobile: Force 1 slide per row with better padding */
    .team-member-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    
    /* Ensure content is fully visible on small screens */
    .team-member-content {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    .team-member-bio {
        max-width: 100% !important;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Accessibility */
.team-member-carousel-container:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}


/* High contrast mode support */
@media (prefers-contrast: high) {
    
    .team-member-photo {
        border: 3px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .team-member-carousel-track {
        transition: none;
    }
    
    .team-member-item {
        animation: none;
        transition: none;
    }
    
    .team-member-photo img {
        transition: none;
        filter: none;
    }
    
    .team-member-social a {
        transition: none;
    }
    
}

/* Print styles */
@media print {
    
    .team-member-carousel-track {
        transform: none !important;
        display: block;
    }
    
    .team-member-item {
        display: block;
        width: 100%;
        margin-bottom: 30px;
        page-break-inside: avoid;
        transform: none !important;
    }
    
    .team-member-photo {
        float: left;
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .team-member-social {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    
    .team-member-name {
        color: #ffffff;
    }
    
    .team-member-position {
        color: #4a9eff;
    }
    
    .team-member-bio {
        color: #cccccc;
    }
    
    .team-member-social a {
        background-color: #333333;
        color: #cccccc;
    }
    
    .team-member-email a {
        background-color: #333333;
        color: #cccccc;
    }
}

/* Elementor Editor Styles */
.elementor-editor .team-member-carousel-container {
    min-height: 300px;
}

.elementor-editor .team-member-carousel-track {
    transform: none !important;
}

.elementor-editor .team-member-item {
    flex: 0 0 auto;
    width: calc(100% / 3);
}

/* Custom hover states for better UX */
.team-member-item {
    cursor: pointer;
}

.team-member-item:focus {
    outline: 2px solid #007cba;
    outline-offset: 4px;
}

/* Smooth scrolling for better UX */
.team-member-carousel-container {
    scroll-behavior: smooth;
}

/* Focus management for keyboard navigation */
.team-member-carousel-container[tabindex] {
    cursor: pointer;
}

.team-member-carousel-container[tabindex]:focus {
    cursor: default;
}

.team-member-carousel-container[data-pause-on-hover="yes"]:hover .team-member-carousel-track {
    transition-duration: 0.3s;
}