/* Team Video Slider Block Styles */
.team-video-slider-block {
    /* max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%); */
    position: relative;
}

/* Header Section with Navigation - 2 Column Layout */
.slider-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
    align-items: start;
}

.slider-title {
    grid-column: 1;
}

.slider-title h2 {
    font-size: 50px;
    font-weight: 500;
    color: #000000;
    margin: 0 0 0 0;
    line-height: 1.2;
}

.slider-right-column {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-description {
    margin: 0;
}

.slider-description p {
    font-size: 18px;
    color: #000000;
    margin: 0;
    line-height: 1.5;
}

.slider-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    align-self: flex-start;
}

.slider-controls button {
    width: 48px;
    height: 48px;
    border: 2px solid #e0e0e000;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-controls button:hover {
    /* border-color: #007cba;
    color: #007cba; */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

.slider-controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.3);
}
.slider-controls button:focus {
    border: none;
    outline: none;
}

.slider-controls button svg {
    width: 20px;
    height: 20px;
}

.slider-controls button.owl-prev {
    border-radius: 50px 0px 0px 50px;
}
.slider-controls button.owl-next {
    border-radius: 0 50px 50px 0;
}

.team-video-slider-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    position: relative;
}

.team-video-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 0;
}

.team-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 550px;
    height: 280px;
    margin: 0 10px;
    position: relative;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Regular Team Card Styles */
.regular-card {
    padding: 30px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.member-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.member-avatar {
    width: 80px;
    height: 80px;
    /* border-radius: 50%; */
    overflow: hidden;
    /* border: 3px solid #e8f0fe; */
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-description {
    margin-top: auto;
}

.member-name {
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 0px;
    line-height: 1.2;
}

.member-title {
    font-size: 16px;
    color: #000000;
    margin-bottom: 0px;
    font-weight: 500;
}

.member-description {
    font-size: 16px;
    color: #000000;
    line-height: 1.5;
    margin: 0;
}

/* Video Card Styles */
.video-card {
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* Default state - show regular card content */
.video-card .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-card .video-player {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show video content on hover */
.video-card:hover .video-thumbnail {
    opacity: 1;
    visibility: visible;
}

.video-card:hover .video-player {
    opacity: 1;
    visibility: visible;
}

.video-card:hover .regular-card {
    opacity: 0;
    visibility: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: #ffffff;
}

.video-info .member-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.video-info .member-title {
    color: #ffffff;
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player video,
.video-player iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: none;
}

/* Owl Carousel Dots Styling */
.team-video-slider-block .owl-dots {
    display: none;
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

.team-video-slider-block .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cccccc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-video-slider-block .owl-dots .owl-dot:hover {
    background: #999999;
    transform: scale(1.1);
}

.team-video-slider-block .owl-dots .owl-dot.active {
    background: #007cba;
    transform: scale(1.2);
}

/* Owl Carousel Navigation (hidden by default) */
.team-video-slider-block .owl-nav {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-video-slider-block {
        padding: 30px 15px;
    }
    
    .slider-header {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .slider-title {
        grid-column: 1;
    }
    
    .slider-right-column {
        grid-column: 1;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .slider-title h2 {
        font-size: 2rem;
    }
    
    .team-card {
        max-width: 500px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    .slider-header {
        padding: 0 10px;
        margin-bottom: 25px;
        gap: 25px;
    }
    
    .slider-title h2 {
        font-size: 1.8rem;
    }
    
    .slider-description p {
        font-size: 1rem;
    }
    
    .slider-right-column {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .slider-controls {
        align-self: flex-start;
    }
    
    .slider-controls button {
        width: 44px;
        height: 44px;
    }
    
    .slider-controls button svg {
        width: 18px;
        height: 18px;
    }
    
    .team-card {
        max-width: 100%;
        height: 240px;
        margin: 0 5px;
    }
    .member-header {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .member-avatar {
        width: 70px;
        height: 70px;
    }
    
    .member-name {
        font-size: 18px;
    }
    
    .member-title {
        font-size: 15px;
    }
    
    .member-description {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .team-video-slider-block {
        padding: 20px 10px;
    }
    
    .team-card {
        height: 200px;
        width: 280px;
        margin: 0 3px;
    }
    
    .regular-card {
        padding: 20px 15px;
    }
    
    .member-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .member-avatar {
        width: 60px;
        height: 60px;
    }
    
    .member-name {
        font-size: 16px;
    }
    
    .member-title {
        font-size: 14px;
    }
    
    .member-description {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-icon {
        border-left: 16px solid #ffffff;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }
    
    .video-info {
        padding: 20px 15px 15px;
    }
    
    .video-info .member-name {
        font-size: 16px;
    }
    
    .video-info .member-title {
        font-size: 13px;
    }
    
    .team-video-slider-block .owl-dots {
        margin-top: 25px;
    }
    
    .team-video-slider-block .owl-dots .owl-dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .team-video-slider-block {
        padding: 15px 5px;
    }
    
    .team-card {
        height: 160px;
        width: 300px;
        margin: 0 2px;
    }
    
    .regular-card {
        padding: 15px 10px;
    }
    
    .member-header {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .member-avatar {
        width: 50px;
        height: 50px;
    }
    
    .member-name {
        font-size: 14px;
    }
    
    .member-title {
        font-size: 13px;
    }
    
    .member-description {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .play-button {
        width: 40px;
        height: 40px;
    }
    
    .play-icon {
        border-left: 12px solid #ffffff;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
    
    .video-info {
        padding: 15px 10px 10px;
    }
    
    .video-info .member-name {
        font-size: 14px;
    }
    
    .video-info .member-title {
        font-size: 12px;
    }
}

/* Animation for smooth transitions */
.team-video-slider .owl-stage-outer {
    overflow: hidden;
}

.team-video-slider .owl-item {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.team-card:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.team-video-slider-block .owl-dots .owl-dot:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Video loading state */
.video-player.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.video-player.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
