/* Course Categories Block Styles - Bootstrap 5 Compatible */
/* Extracted from Edumy theme to maintain visual appearance */

.block_cocoon_course_categories .our-courses {
    padding: 90px 0 !important;
}

.block_cocoon_course_categories .our-courses .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.block_cocoon_course_categories .our-courses .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.block_cocoon_course_categories .our-courses .col-lg-6,
.block_cocoon_course_categories .our-courses .col-lg-3,
.block_cocoon_course_categories .our-courses .col-lg-4,
.block_cocoon_course_categories .our-courses .col-lg-12,
.block_cocoon_course_categories .our-courses .col-sm-6,
.block_cocoon_course_categories .our-courses .col-sm-12 {
    padding: 0 15px;
    /* margin-bottom: 30px; */
}

.block_cocoon_course_categories .our-courses .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.block_cocoon_course_categories .our-courses .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.block_cocoon_course_categories .our-courses .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.block_cocoon_course_categories .our-courses .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.block_cocoon_course_categories .our-courses .main-title h3 {
    font-weight: 600 !important;
}

.block_cocoon_course_categories .our-courses .main-title p {
    opacity: 0.8 !important;
}

.block_cocoon_course_categories .img_hvr_box {
    position: relative !important;
    display: block !important;
    height: 250px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-bottom: 30px !important;
}

.block_cocoon_course_categories .img_hvr_box:hover {
    cursor: pointer !important;
    margin-top: -10px !important;
}

/* Overlay con pseudo-elemento para color configurable */
.block_cocoon_course_categories .img_hvr_box:before,
.block_cocoon_course_categories a.img_hvr_box:before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: var(--overlay-color, rgba(10, 10, 10, 0.5)) !important;
    transition: all 0.3s ease !important;
    z-index: 1 !important;
}

.block_cocoon_course_categories .img_hvr_box:hover:before,
.block_cocoon_course_categories a.img_hvr_box:hover:before {
    background-color: var(--hover-color, #2441e7) !important;
}

.block_cocoon_course_categories .img_hvr_box .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 30px !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.block_cocoon_course_categories .img_hvr_box .overlay .details {
    text-align: center !important;
    width: 100% !important;
}

.block_cocoon_course_categories .img_hvr_box .overlay .details h5 {
    color: var(--text-color, #ffffff) !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

.block_cocoon_course_categories .img_hvr_box .overlay .details p {
    color: var(--text-color, #ffffff) !important;
    font-size: 0.9rem !important;
    opacity: 0.9 !important;
    margin: 0 !important;
    text-align: center !important;
}

.block_cocoon_course_categories .courses_all_btn {
    margin-top: 60px !important;
}

/* Botones con colores configurables */
.block_cocoon_course_categories .courses_all_btn .btn,
.block_cocoon_course_categories .courses_all_btn a.btn {
    padding: 15px 40px !important;
    border: 2px solid var(--btn-color, #2441e7) !important;
    background: transparent !important;
    color: var(--btn-color, #2441e7) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-radius: var(--btn-radius, 50px) !important;
}

/* Neutralizar estilos del tema Edumy que puedan interferir */
.block_cocoon_course_categories .btn.btn-transparent {
    background-color: transparent !important;
    border: 2px solid var(--btn-color, #2441e7) !important;
    color: var(--btn-color, #2441e7) !important;
}

.block_cocoon_course_categories .ccnLcEl--i {
    border-color: var(--btn-color, #2441e7) !important;
    color: var(--btn-color, #2441e7) !important;
}

.block_cocoon_course_categories .mt0 {
    margin-top: 0 !important;
}

/* Scroll arrow styles */
.block_cocoon_course_categories .mouse_scroll {
    display: block !important;
    width: 24px !important;
    height: 100px !important;
    margin: 0 auto !important;
}

.block_cocoon_course_categories .mouse_scroll .icon {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: bounce 2s infinite !important;
}

.block_cocoon_course_categories .mouse_scroll .icon i {
    font-size: 18px !important;
    color: #333 !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

.block_cocoon_course_categories .offset-lg-3 {
    margin-left: 25%;
}

/* Responsive para Bootstrap 5 */
@media (max-width: 991.98px) {
    .block_cocoon_course_categories .our-courses {
        padding: 50px 0 !important;
    }
    
    .block_cocoon_course_categories .our-courses .col-lg-6,
    .block_cocoon_course_categories .our-courses .col-lg-3,
    .block_cocoon_course_categories .our-courses .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .block_cocoon_course_categories .our-courses .offset-lg-3 {
        margin-left: 0;
    }
    
}

@media (max-width: 575.98px) {
    .block_cocoon_course_categories .our-courses .col-lg-6,
    .block_cocoon_course_categories .our-courses .col-lg-3,
    .block_cocoon_course_categories .our-courses .col-lg-4,
    .block_cocoon_course_categories .our-courses .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .block_cocoon_course_categories .img_hvr_box {
        height: 200px !important;
    }
} 