/**
 * Users Slider Round with OwlCarousel - block_cocoon_users_slider_round
 * 
 * @package    block_cocoon_users_slider_round
 * @copyright  2024 Aura
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

/* ============================================
   MAIN CONTAINER & LAYOUT
   ============================================ */

/* Main container styles */
.block_cocoon_users_slider_round .our-team {
    padding: 60px 0 40px 0;
    background-color: #ffffff;
}

.block_cocoon_users_slider_round .our-team.home8 {
    background-color: #ffffff;
}

/* Title section */
.block_cocoon_users_slider_round .main-title {
    margin-bottom: 50px;
}

.block_cocoon_users_slider_round .main-title h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

.block_cocoon_users_slider_round .main-title p {
    color: #6f7074;
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* ============================================
   INSTRUCTOR SLIDER WITH OWLCAROUSEL
   ============================================ */

/* Main slider container - CRITICAL: Must behave like .owl-carousel */
.block_cocoon_users_slider_round .instructor_slider_home3 {
    display: block; /* Override owl-carousel's initial display: none */
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Evitar elementos que se salgan durante la inicialización */
    min-height: 250px; /* Altura mínima para evitar colapso inicial */
}

/* Mejorar el comportamiento inicial antes de la inicialización */
.block_cocoon_users_slider_round .instructor_slider_home3:not(.owl-loaded) {
    opacity: 0;
    visibility: hidden;
}

/* Fallback: Show slider after 5 seconds if still not initialized */
.block_cocoon_users_slider_round .instructor_slider_home3:not(.owl-loaded) {
    animation: showSliderFallback 5s forwards;
}

@keyframes showSliderFallback {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

/* Suavizar la aparición del slider */
.block_cocoon_users_slider_round .instructor_slider_home3.owl-loaded {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease;
}

/* Prevent slider from being hidden once initialized */
.block_cocoon_users_slider_round .instructor_slider_home3.owl-loaded {
    animation: none !important;
}

/* Removed duplicate rule - now handled above */

/* Stage container */
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    touch-action: manipulation;
    -moz-backface-visibility: hidden;
}

/* Stage outer container */
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0px, 0px, 0px);
}

/* Individual slide item - CRITICAL: Must be compatible with OwlCarousel */
.block_cocoon_users_slider_round .instructor_slider_home3 .item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    padding: 0 20px; /* Más padding interno (era 15px) */
}

/* Ensure OwlCarousel items work correctly */
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    padding: 0 20px; /* Más padding interno (era 15px) */
}

/* ============================================
   INSTRUCTOR CARD STYLING
   ============================================ */

/* Main instructor card */
.block_cocoon_users_slider_round .instructor_col {
    text-align: center;
    background: transparent;
    padding: 30px 25px; /* Más padding horizontal (era 20px) */
    border-radius: 0;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0 auto;
}

/* Hover effect */
.block_cocoon_users_slider_round .instructor_col:hover {
    transform: translateY(-10px);
}

/* Avatar thumbnail container */
.block_cocoon_users_slider_round .instructor_col .thumb {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    width: 150px; /* Fijo el ancho del contenedor */
    height: 150px; /* Fijo la altura del contenedor */
    overflow: hidden; /* Ocultar cualquier desbordamiento */
    border-radius: 50%; /* Hacer circular el contenedor también */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* Sombra en el contenedor */
    transition: all 0.3s ease;
}

/* Circular avatar image */
.block_cocoon_users_slider_round .instructor_col .thumb img {
    width: 100% !important; /* Usar todo el ancho del contenedor */
    height: 100% !important; /* Usar toda la altura del contenedor */
    max-width: none !important; /* Evitar limitaciones de max-width */
    max-height: none !important; /* Evitar limitaciones de max-height */
    border-radius: 0; /* Ya no necesario, el contenedor es circular */
    object-fit: cover; /* Mantener proporción y cubrir todo el espacio */
    object-position: center; /* Centrar la imagen */
    border: none;
    transition: all 0.3s ease;
    display: block; /* Evitar espacios en línea */
    aspect-ratio: 1/1; /* Forzar proporción cuadrada */
}

.block_cocoon_users_slider_round .instructor_col:hover .thumb {
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transform: scale(1.05);
}

.block_cocoon_users_slider_round .instructor_col:hover .thumb img {
    transform: scale(1.1); /* Efecto sutil en la imagen también */
}

/* ============================================
   STARS RATING STYLING
   ============================================ */

/* Stars rating container */
.block_cocoon_users_slider_round .instructor_col .details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    gap: 3px;
}

.block_cocoon_users_slider_round .instructor_col .details ul li {
    color: #FFD700;
    font-size: 16px;
    line-height: 1;
}

.block_cocoon_users_slider_round .instructor_col .details ul li i {
    margin: 0;
    font-style: normal;
}

/* FontAwesome star icon */
.block_cocoon_users_slider_round .instructor_col .details ul li i.fa-star:before {
    content: "★";
    font-family: Arial, sans-serif;
    font-weight: normal;
    color: #FFD700;
}

/* ============================================
   USER DETAILS STYLING
   ============================================ */

/* User name */
.block_cocoon_users_slider_round .instructor_col .details h4 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

/* Profile views count */
.block_cocoon_users_slider_round .instructor_col .details p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.4;
}

/* ============================================
   OWLCAROUSEL COMPATIBILITY & FIXES
   ============================================ */

/* CRITICAL: Ensure slider elements have correct layout */
.block_cocoon_users_slider_round .instructor_slider_home3.owl-carousel .owl-item,
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-item {
    float: left !important;
    display: block !important;
    position: relative !important;
    min-height: 1px !important;
}

/* Force horizontal layout */
.block_cocoon_users_slider_round .instructor_slider_home3.owl-carousel .owl-stage,
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-stage {
    display: flex !important;
    flex-direction: row !important;
}

/* Clear any conflicting styles */
.block_cocoon_users_slider_round .instructor_slider_home3 .item,
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-item .item {
    display: block !important;
    width: auto !important;
    position: static !important;
}

/* ============================================
   OWLCAROUSEL CUSTOMIZATION
   ============================================ */

/* Custom dots styling */
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.block_cocoon_users_slider_round .instructor_slider_home3 .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.block_cocoon_users_slider_round .instructor_slider_home3 .owl-dots .owl-dot.active,
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-dots .owl-dot:hover {
    background: var(--owl-dots-color, #debf52);
    transform: scale(1.2);
}

/* Navigation arrows (if enabled) */
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-nav {
    display: none;
}

.block_cocoon_users_slider_round .instructor_slider_home3 .owl-nav .owl-prev,
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.block_cocoon_users_slider_round .instructor_slider_home3 .owl-nav .owl-prev {
    left: -50px;
}

.block_cocoon_users_slider_round .instructor_slider_home3 .owl-nav .owl-next {
    right: -50px;
}

.block_cocoon_users_slider_round .instructor_slider_home3 .owl-nav .owl-prev:hover,
.block_cocoon_users_slider_round .instructor_slider_home3 .owl-nav .owl-next:hover {
    background: var(--owl-dots-color, #debf52);
}

/* ============================================
   LINKS AND INTERACTIONS
   ============================================ */

/* Remove link styling */
.block_cocoon_users_slider_round .instructor_col a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.block_cocoon_users_slider_round .instructor_col a:hover {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   ERROR STATES
   ============================================ */

/* No users message */
.block_cocoon_users_slider_round .alert {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.block_cocoon_users_slider_round .alert-info {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #0c5460;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet styles */
@media (max-width: 768px) {
    .block_cocoon_users_slider_round .our-team {
        padding: 40px 0 30px 0;
    }
    
    .block_cocoon_users_slider_round .main-title h3 {
        font-size: 28px;
    }
    
    .block_cocoon_users_slider_round .main-title p {
        font-size: 14px;
    }
    
    .block_cocoon_users_slider_round .instructor_col .thumb {
        width: 130px;
        height: 130px;
    }
    
    .block_cocoon_users_slider_round .instructor_col .details h4 {
        font-size: 18px;
    }
    
    .block_cocoon_users_slider_round .instructor_col .details ul li {
        font-size: 14px;
    }
    
    /* Adjust padding for tablet */
    .block_cocoon_users_slider_round .instructor_slider_home3 .item {
        padding: 0 15px; /* Más espacio en tablet (era 10px) */
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .block_cocoon_users_slider_round .our-team {
        padding: 30px 0 20px 0;
    }
    
    .block_cocoon_users_slider_round .main-title h3 {
        font-size: 24px;
    }
    
    .block_cocoon_users_slider_round .instructor_col {
        padding: 20px 15px;
    }
    
    .block_cocoon_users_slider_round .instructor_col .thumb {
        width: 110px;
        height: 110px;
    }
    
    .block_cocoon_users_slider_round .instructor_col .details h4 {
        font-size: 16px;
    }
    
    .block_cocoon_users_slider_round .instructor_col .details ul li {
        font-size: 12px;
    }
    
    /* Smaller dots on mobile */
    .block_cocoon_users_slider_round .instructor_slider_home3 .owl-dots .owl-dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    /* Adjust padding for mobile */
    .block_cocoon_users_slider_round .instructor_slider_home3 .item {
        padding: 0 10px; /* Más espacio en mobile (era 5px) */
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.block_cocoon_users_slider_round .text-center {
    text-align: center;
}

.block_cocoon_users_slider_round .pb10 {
    padding-bottom: 10px;
}

.block_cocoon_users_slider_round .pt30 {
    padding-top: 30px;
}

.block_cocoon_users_slider_round .mt0 {
    margin-top: 0;
}

.block_cocoon_users_slider_round .img-fluid {
    max-width: 100%;
    height: auto;
}

.block_cocoon_users_slider_round .img-rounded-circle {
    border-radius: 50%;
}

.block_cocoon_users_slider_round .list-inline-item {
    display: inline-block;
} 