/* Modern Instructors Section Styling */

.instructores-section {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('images/Wallpaper calendario/659702e3dfb177561b9d4888.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* New scrollable container styles */
.instructores-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.instructores-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 30px;
    /* Removed scrollbar-width: none; */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-snap-type: none;
    justify-content: flex-start;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.instructores-grid::-webkit-scrollbar {
    display: none;
}

.instructor-card {
    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;
    border: 2px solid #2d8cff;
}

.instructor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.instructor-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
}

.instructor-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(20%);
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.instructor-info {
    padding: 25px;
    position: relative;
    z-index: 2;
    background: white;
}

.instructor-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0px;
    color: #333;
    font-weight: 700;
    transition: color 0.3s ease;
}

.instructor-card:hover .instructor-info h3 {
    color: var(--gracie-red);
}

.instructor-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0px;
}

/* Belt visualization */
.instructor-belt {
    height: 12px;
    width: 100%;
    background: #fff;
    position: relative;
    margin-top: 15px;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.belt-color {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

/* Belt colors */
.white-belt .belt-color {
    background-color: white;
    border: 1px solid #ddd;
}

.blue-belt .belt-color {
    background-color: #2d8cff;
}

.purple-belt .belt-color {
    background-color: #8a2be2;
}

.brown-belt .belt-color {
    background-color: #8b4513;
}

.black-belt .belt-color {
    background-color: #000;
}

/* Professor red bar for black belts */
.professor-bar {
    position: absolute;
    top: 0;
    left: 70%;
    height: 100%;
    width: 20%;
    background-color: var(--gracie-red);
    box-shadow: 0 0 0 5px white;
    z-index: 1;
}

/* Instructor details overlay */
.instructor-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.instructor-details h4 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 5px;
}

.instructor-details p {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.3;
}

.achievements {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.achievements p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.instructor-details h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gracie-red);
}

.instructor-details p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.achievements {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.achievements p {
    font-weight: 600;
    color: var(--gracie-blue);
    margin-bottom: 8px;
}

/* Social media icons */
.instructor-social {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

.instructor-social a {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.instructor-social a:hover {
    color: var(--gracie-red);
    transform: scale(1.2);
}

/* Navigation buttons */
.instructores-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
    z-index: 10;
    position: relative;
}

.instructores-nav-btn {
    background: var(--gracie-red);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.instructores-nav-btn:hover {
    background: #a00000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.instructores-nav-btn i {
    font-size: 1.5rem;
}

/* Only hide navigation on mobile */
@media (max-width: 768px) {
    .instructores-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .instructor-card {
        flex: 0 0 260px;
    }
}

@media (max-width: 576px) {
    .instructor-card {
        flex: 0 0 240px;
    }
    
    .instructores-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .instructores-nav-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .instructor-details {
        padding: 20px;
    }

    .instructor-details h4 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .instructor-details p {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .achievements {
        margin-top: 8px;
        padding-top: 8px;
    }

    .achievements p {
        font-size: 0.85rem;
    }

    .instructor-social {
        margin-top: 15px;
        gap: 12px;
    }

    .instructor-social a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .instructor-details {
        padding: 1px;
    }

    .instructor-details h4 {
        font-size: 1.8rem;
    }

    .instructor-details p {
        font-size: 1rem;
    }
}
@media (max-width: 576px) {
    .instructor-card {
        flex: 0 0 240px;
    }
    
    .instructores-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .instructores-nav-btn i {
        font-size: 1.2rem;
    }
}