/* Mentor Cards Mobile Fix - Ensures proper display on smaller screens */

/* Fix for professionals page mentor container */
#professionals-mentors-container {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Ensure proper spacing and image handling */
.team-style-05 {
    margin-bottom: 30px !important;
}

.team-style-05 .mentor-image-container {
    max-height: 400px;
    overflow: hidden;
}

.team-style-05 img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Fix for index page mentor cards on mobile */
#index-mentors-container {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    #index-mentors-container .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .services-box-style-06 {
        margin-bottom: 20px;
    }
}

/* Ensure skeleton loaders don't break layout */
.skeleton-loader,
.skeleton-professional-card,
.skeleton-mentor-card {
    width: 100%;
}

/* Fix container detection issues - ensure rows are properly styled */
.row[data-anime] {
    display: flex;
    flex-wrap: wrap;
}

/* Debug helper - remove in production */
.mentor-debug-border {
    border: 2px solid red !important;
}