/* Senior Instructors Styling */

.senior-instructores-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.senior-scroll-indicator {
    display: none;
    text-align: center;
    margin-bottom: 15px;
    color: var(--gracie-red);
    font-weight: 600;
    font-size: 1rem;
    animation: bounceX 1.5s infinite;
}

.senior-scroll-indicator i {
    margin-right: 5px;
    margin-left: 0;
}

@keyframes bounceX {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.senior-instructores-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0px 30px 20px 30px;
    /* Removed scrollbar-width: none; */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-snap-type: none; /* Ensure no snapping occurs */
    justify-content: center; /* Changed from flex-start to center for desktop */
}

.senior-instructor {
    flex: 0 0 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    scroll-snap-align: none; /* Prevent individual card snapping */
    border: 2px solid #cc0000;
}

.senior-instructor .instructor-info h3 {
    font-size: 1.8rem;
    color: var(--gracie-red);
}

.senior-instructor .instructor-info p {
    font-size: 1.2rem;
    font-weight: 500;
}

.senior-instructor .instructor-image img {
    filter: grayscale(0%);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .senior-instructores-grid {
        gap: 25px;
    }
    
    .senior-instructor {
        flex: 0 0 280px;
    }
}

@media (max-width: 768px) {
    
    .senior-instructores-grid {
        flex-wrap: nowrap;
        justify-content: center; /* Change back to flex-start for mobile */
        overflow-x: auto;
        scroll-snap-type: none; /* Ensure no snapping occurs on mobile */
        -ms-overflow-style: none;
        padding: 0px 0px 20px 0px;
        margin: 0px 0px 20px 0px;
        /* Removed overscroll-behavior-x: contain; */
    }

    .senior-instructores-grid::-webkit-scrollbar {
        display: none;
    }
    
    .senior-instructor {
        flex: 0 0 240px;
        scroll-snap-align: none; /* Prevent individual card snapping on mobile */
        margin-right: 0;
        /* Prevent card from being squished */
        flex-shrink: 0;
    }

    .senior-instructor:last-child {
        margin-right: 20px;
    }

}
