/* MemberPress Nav Core - CPT Edition CSS */

.mnc-app {
    display: flex;
    gap: 2em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mnc-sidebar {
    width: 25%;
    min-width: 250px;
    padding-right: 2em;
}

.mnc-content {
    width: 70%;
}

.mnc-course-list, .mnc-lesson-list, .mnc-topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mnc-course-item {
}

/* Estilos para candados y flechas */
.mnc-lock-icon {
    color: #e74c3c;
    margin-left: 8px;
    font-size: 20px;
}

.mnc-arrow-icon {
    color: #27ae60 !important;
    margin-left: 8px;
    font-size: 18px !important;
    transition: transform 0.3s ease;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: dashicons !important;
}

.mnc-course-title.expanded .mnc-arrow-icon {
    transform: rotate(0deg);
}

.mnc-course-title .mnc-arrow-icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mnc-lesson-link.expanded .mnc-arrow-icon {
    transform: rotate(0deg);
}

/* Estilos para títulos de categorías */
.mnc-course-title {
    cursor: pointer;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
}

.mnc-course-title:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.mnc-course-title.expanded {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Ocultar el pseudo-elemento ::after que podría estar causando problemas */
.mnc-course-title::after {
    display: none;
}

.mnc-lesson-list {
    padding-left: 0;
    border-left: none;
    margin-top: 0.5em;
    overflow: hidden;
}

.mnc-lesson-item {
    margin-bottom: 0.5em;
}

/* Estilos para lecciones */
.mnc-lesson-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.mnc-lesson-link:hover {
    background: #f8f9fa;
    color: #212529;
}

.mnc-lesson-link.active {
    background: #ffa500;
    color: white;
}

.mnc-lesson-link.active .mnc-lock-icon {
    color: #fff;
}

.mnc-lesson-link .mnc-arrow-icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #27ae60 !important;
    font-size: 18px !important;
    font-family: dashicons !important;
}

.mnc-course-title .mnc-arrow-icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #27ae60 !important;
    font-size: 18px !important;
    font-family: dashicons !important;
}

/* Estilos para temas */
.mnc-topic-list {
    padding-left: 1.5em;
    margin-top: 0.3em;
    border-left: 2px solid #e8e8e8;
}

.mnc-topic-item {
    margin-bottom: 0.3em;
}

.mnc-topic-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px 8px 25px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    margin: 1px 0;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.mnc-topic-link:hover {
    background: #f8f9fa;
    color: #495057;
}

.mnc-topic-link.active {
    background: #28a745;
    color: white;
}

.mnc-topic-link.active .mnc-lock-icon {
    color: #fff;
}

.mnc-lesson-content {
    max-width: 100%;
}

/* Estilos para el contenido de lecciones y temas */
.mnc-lesson-content h1,
.mnc-topic-content h1 {
    color: #2c3e50;
    margin-bottom: 0.5em;
    border-bottom: 2px solid #ffa500;
    padding-bottom: 0.3em;
    font-size: 2em;
}

.mnc-lesson-body,
.mnc-topic-body {
    line-height: 1.6;
}

.mnc-lesson-body p,
.mnc-topic-body p {
    margin-bottom: 1em;
}

.mnc-lesson-body ul, .mnc-lesson-body ol,
.mnc-topic-body ul, .mnc-topic-body ol {
    margin-bottom: 1em;
    padding-left: 2em;
    white-space: normal;
    
}

.mnc-lesson-body li,
.mnc-topic-body li {
    margin-bottom: 0.5em;
}

.mnc-lesson-body h1, .mnc-lesson-body h2, .mnc-lesson-body h3, 
.mnc-lesson-body h4, .mnc-lesson-body h5, .mnc-lesson-body h6,
.mnc-topic-body h1, .mnc-topic-body h2, .mnc-topic-body h3, 
.mnc-topic-body h4, .mnc-topic-body h5, .mnc-topic-body h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #2c3e50;
}

.mnc-lesson-body strong, .mnc-lesson-body b,
.mnc-topic-body strong, .mnc-topic-body b {
    font-weight: bold;
    color: #2c3e50;
}

.mnc-lesson-body em, .mnc-lesson-body i,
.mnc-topic-body em, .mnc-topic-body i {
    font-style: italic;
}

.mnc-lesson-body blockquote,
.mnc-topic-body blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: #666;
}

.mnc-lesson-body code,
.mnc-topic-body code {
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

.mnc-lesson-body pre,
.mnc-topic-body pre {
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1em 0;
}

.mnc-lesson-body img,
.mnc-topic-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1em 0;
}

.mnc-lesson-body iframe,
.mnc-topic-body iframe {
    max-width: 100%;
    border-radius: 5px;
    margin: 1em 0;
}

/* Estilos para las pestañas de contenido */
.mnc-content-tabs {
    margin: 20px 0;
}

.mnc-tab-buttons {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    gap: 5px;
}

.mnc-tab-button {
    background: #f8f9fa!important;
    border: 1px solid #ddd!important;
    border-bottom: none!important;
    padding: 12px 20px!important;
    cursor: pointer!important;
    border-radius: 5px 5px 0 0!important;
    font-weight: bold!important;
    color: #666!important;
    transition: all 0.3s ease!important;
    font-size: 14px!important;
}

.mnc-tab-button:hover {
    background: #e9ecef!important;
    color: #333!important;
}

.mnc-tab-button.active {
    background: #ffa500!important;
    color: white!important;
    border-color: #ffa500!important;
}

.mnc-tab-content {
    position: relative;
}

.mnc-tab-pane {
    display: none;
    padding: 20px;
    background: #fff;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.mnc-tab-pane.active {
    display: block;
}

.mnc-tab-pane h1 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #ffa500;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .mnc-app {
        flex-direction: column;
        gap: 1em;
    }
    
    .mnc-sidebar {
        width: 100%;
        min-width: auto;
        padding-right: 0;
    }
    
    .mnc-content {
        width: 100%;
    }
    
    .mnc-topic-list {
        padding-left: 1em;
    }
    
    .mnc-topic-link {
        margin-left: 0.3em;
        font-size: 0.85em;
        padding: 6px 12px;
    }
}

/* Estilos específicos para iframes */
.mnc-lesson-body iframe,
.mnc-topic-body iframe {
    max-width: 100%;
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    margin: 1em 0;
}

/* Responsive para iframes */
@media (max-width: 768px) {
    .mnc-lesson-body iframe,
    .mnc-topic-body iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .mnc-lesson-body iframe,
    .mnc-topic-body iframe {
        height: 200px;
    }
}

/* Mejorar el espaciado del contenido */
.mnc-lesson-body,
.mnc-topic-body {
    background: #fff;
    border-radius: 8px;
    margin-top: 20px;
}

/* Estilos para videos embebidos */
.mnc-lesson-body video,
.mnc-topic-body video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Estilos para contenido multimedia */
.mnc-lesson-body .video-container,
.mnc-topic-body .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1em 0;
}

.mnc-lesson-body .video-container iframe,
.mnc-topic-body .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Mejorar la legibilidad del texto */
.mnc-lesson-body,
.mnc-topic-body {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.mnc-lesson-body p:last-child,
.mnc-topic-body p:last-child {
    margin-bottom: 0;
}

/* Estilos para listas mejoradas */
.mnc-lesson-body ul,
.mnc-topic-body ul {
    margin: 1em 0;
    padding-left: 2em;
}

.mnc-lesson-body ol,
.mnc-topic-body ol {
    margin: 1em 0;
    padding-left: 2em;
}

.mnc-lesson-body li,
.mnc-topic-body li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Estilos para enlaces */
.mnc-lesson-body a,
.mnc-topic-body a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.mnc-lesson-body a:hover,
.mnc-topic-body a:hover {
    border-bottom-color: #3498db;
}

/* Estilos para tablas */
.mnc-lesson-body table,
.mnc-topic-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mnc-lesson-body th,
.mnc-topic-body th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
}

.mnc-lesson-body td,
.mnc-topic-body td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.mnc-lesson-body tr:hover,
.mnc-topic-body tr:hover {
    background: #f8f9fa;
}

/* Estilos específicos para párrafos y saltos de línea */
.mnc-lesson-body p,
.mnc-topic-body p {
    margin-bottom: 1.2em;
    line-height: 1.7;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.mnc-lesson-body p:last-child,
.mnc-topic-body p:last-child {
    margin-bottom: 0;
}

.mnc-lesson-body br,
.mnc-topic-body br {
    display: block;
    margin: 0.3em 0;
    content: "";
    line-height: 1.2;
}

/* Preservar saltos de línea del WYSIWYG */
.mnc-lesson-body,
.mnc-topic-body {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mejorar espaciado entre secciones */
.mnc-lesson-body p + p,
.mnc-topic-body p + p {
    margin-top: 1em;
}

/* Estilos para texto con formato */
.mnc-lesson-body strong,
.mnc-topic-body strong {
    font-weight: 700;
    color: #2c3e50;
}

.mnc-lesson-body em,
.mnc-topic-body em {
    font-style: italic;
    color: #34495e;
}

/* Estilos para listas dentro de párrafos */
.mnc-lesson-body ul,
.mnc-topic-body ul {
    margin: 1em 0;
    padding-left: 2em;
}

.mnc-lesson-body ol,
.mnc-topic-body ol {
    margin: 1em 0;
    padding-left: 2em;
}

.mnc-lesson-body li,
.mnc-topic-body li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Estilos para encabezados dentro del contenido */
.mnc-lesson-body h1,
.mnc-lesson-body h2,
.mnc-lesson-body h3,
.mnc-lesson-body h4,
.mnc-lesson-body h5,
.mnc-lesson-body h6,
.mnc-topic-body h1,
.mnc-topic-body h2,
.mnc-topic-body h3,
.mnc-topic-body h4,
.mnc-topic-body h5,
.mnc-topic-body h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #2c3e50;
    font-weight: 600;
}

.mnc-lesson-body h1,
.mnc-topic-body h1 {
    font-size: 1.8em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3em;
}

.mnc-lesson-body h2,
.mnc-topic-body h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 0.2em;
}

.mnc-lesson-body h3,
.mnc-topic-body h3 {
    font-size: 1.3em;
}

/* Estilos para blockquotes */
.mnc-lesson-body blockquote,
.mnc-topic-body blockquote {
    border-left: 4px solid #3498db;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* Estilos para código */
.mnc-lesson-body code,
.mnc-topic-body code {
    background: #f1f2f6;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

.mnc-lesson-body pre,
.mnc-topic-body pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Estilos para listas */
.mnc-lesson-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: none; /* Oculto por defecto */
}

.mnc-lesson-list.expanded {
    display: block;
}

.mnc-topic-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: none; /* Oculto por defecto */
}

/* Estilos para el sidebar */
.mnc-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    height: fit-content;
    overflow-y: auto;
}

/* Scrollbar personalizado */
.mnc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mnc-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.mnc-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.mnc-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estilos para mensajes */
#mnc-content-area .mnc-unauthorized-message {
    padding: 1em;
    background-color: #fbeaea;
    border: 1px solid #c0392b;
    border-radius: 4px;
    color: #c0392b;
}

.mnc-content-placeholder {
    text-align: center;
    padding: 2em;
    color: #666;
}

.mnc-content-placeholder h2 {
    color: #2c3e50;
    margin-bottom: 1em;
}

.mnc-legend {
    margin-top: 2em;
    padding: 1em;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mnc-legend h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.mnc-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mnc-legend li {
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
}

.mnc-legend .dashicons {
    margin-right: 0.5em;
}

.mnc-locked {
    opacity: 0.6;
    pointer-events: none;
}

.mnc-no-content {
    text-align: center;
    padding: 2em;
    color: #666;
}

.mnc-loading {
    text-align: center;
    padding: 2em;
    color: #666;
}

.mnc-loading p {
    font-style: italic;
}

/* ========================================
   ESTILOS MÓVILES - MENÚ DESPLEGABLE (ACORDEÓN)
   ======================================== */

/* Ocultar navegación móvil en desktop por defecto */
.mnc-mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .mnc-app {
        flex-direction: column !important;
        gap: 1em !important;
    }
    
    .mnc-sidebar {
        width: 100% !important;
        min-width: auto !important;
        order: 1 !important;
        background: #fff !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    
    .mnc-content {
        width: 100% !important;
        order: 2 !important;
    }
    
    /* Botón volver (se muestra cuando no estamos en el nivel raíz) */
    .mnc-back-button {
        display: none !important;
        background: #333 !important;
        color: white !important;
        border: none !important;
        padding: 5px 15px !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        font-size: 14px !important;
        margin: 10px 20px !important;
        width: calc(35% - 40px) !important;
    }
    
    .mnc-back-button.show {
        display: block !important;
    }
    
    /* Botón trigger móvil */
    .mnc-mobile-trigger {
        width: 100% !important;
        padding: 12px 16px !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        background: #fff !important;
        color: #2c3e50 !important;
        font-weight: 600 !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 0 !important; /* sin separación con la lista */
    }

    /* Lista de cursos */
    .mnc-course-list {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        display: block !important; /* visible por defecto en desktop */
    }
    
    .mnc-course-item {
        border-bottom: none !important;
    }
    
    .mnc-course-item:last-child {
        border-bottom: none !important;
    }
    
    /* Títulos de categoría - DESPLEGABLES */
    .mnc-course-title {
        padding: 15px 20px !important;
        margin: 0 !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #fff !important;
        transition: all 0.3s ease !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #2c3e50 !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .mnc-course-title:hover {
        background: #f8f9fa !important;
    }
    
    .mnc-course-title.expanded {
        background: #f8f9fa !important;
        border-bottom: 2px solid #27ae60 !important;
    }
    
    /* ELIMINAR COMPLETAMENTE LOS PSEUDO-ELEMENTOS */
    .mnc-course-title::before,
    .mnc-course-title::after {
        display: none !important;
        content: none !important;
    }
    
    /* Lista de lecciones - DESPLEGABLE */
    .mnc-lesson-list {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        background: #f8f9fa !important;
        display: none !important; /* OCULTO POR DEFECTO */
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    /* Mostrar cuando esté expandido */
    .mnc-lesson-list.show {
        display: block !important;
        max-height: 1000px !important;
        padding: 10px 0 !important;
    }
    
    .mnc-lesson-item {
        border-bottom: none !important;
    }
    
    .mnc-lesson-item:last-child {
        border-bottom: none !important;
    }
    
    /* Enlaces de lección - DESPLEGABLES */
    .mnc-lesson-link {
        padding: 12px 20px 12px 40px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-decoration: none !important;
        color: #2c3e50 !important;
        font-size: 14px !important;
        background: #f8f9fa !important;
        transition: all 0.3s ease !important;
        border: none !important;
        border-bottom: 1px solid #e9ecef !important;
        cursor: pointer !important;
    }
    
    .mnc-lesson-link:hover {
        background: #e9ecef !important;
        text-decoration: none !important;
        color: #2c3e50 !important;
    }
    
    .mnc-lesson-link.expanded {
        background: #e9ecef !important;
        border-bottom: 2px solid #17a2b8 !important;
    }
    
    /* ELIMINAR COMPLETAMENTE LOS PSEUDO-ELEMENTOS */
    .mnc-lesson-link::before,
    .mnc-lesson-link::after {
        display: none !important;
        content: none !important;
    }
    
    /* Lista de temas - DESPLEGABLE */
    .mnc-topic-list {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        background: #fff !important;
        display: none !important; /* OCULTO POR DEFECTO */
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    /* Mostrar cuando esté expandido */
    .mnc-topic-list.show {
        display: block !important;
        max-height: 1000px !important;
        padding: 5px 0 !important;
    }
    
    .mnc-topic-item {
        border-bottom: none !important;
    }
    
    .mnc-topic-item:last-child {
        border-bottom: none !important;
    }
    
    /* Enlaces de tema */
    .mnc-topic-link {
        padding: 10px 20px 10px 60px !important;
        display: block !important;
        text-decoration: none !important;
        color: #2c3e50 !important;
        font-size: 13px !important;
        background: #fff !important;
        transition: background-color 0.2s !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .mnc-topic-link:hover {
        background: #f8f9fa !important;
        text-decoration: none !important;
        color: #2c3e50 !important;
    }
    
    .mnc-topic-link.active {
        background: #d4edda !important;
        color: #155724 !important;
        font-weight: 500 !important;
    }
    
    /* Iconos */
    .mnc-lock-icon {
        color: #e74c3c !important;
        font-size: 16px !important;
    }
    
    /* Manejar iconos de flecha en móvil - DESPLEGABLE */
    .mnc-arrow-icon {
        color: #27ae60 !important;
        font-size: 16px !important;
        transition: transform 0.3s ease !important;
        transform: rotate(0deg) !important; /* FLECHA HACIA LA DERECHA POR DEFECTO */
    }
    
    /* Rotar flecha cuando está expandido */
    .mnc-course-title.expanded .mnc-arrow-icon {
        transform: rotate(90deg) !important; /* FLECHA HACIA ABAJO */
    }
    
    .mnc-lesson-link.expanded .mnc-arrow-icon {
        transform: rotate(90deg) !important; /* FLECHA HACIA ABAJO */
    }
    
    /* Estados activos */
    .mnc-lesson-link.active,
    .mnc-topic-link.active {
        background: #d4edda !important;
        color: #155724 !important;
        font-weight: 500 !important;
    }
    
    /* Ajustes para pestañas en móvil: 4 columnas siempre */
    .mnc-tab-buttons {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }
    
    .mnc-tab-button {
        width: 100% !important;
        flex: initial !important;
        min-width: 0 !important;
        font-size: 12px !important;
        padding: 8px 6px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
}

/* Control del colapso global en móvil mediante clase en sidebar */
@media (max-width: 768px) {
    .mnc-sidebar:not(.mnc-menu-open) .mnc-course-list { display: none !important; }
    .mnc-sidebar.mnc-menu-open .mnc-mobile-trigger {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    .mnc-sidebar.mnc-menu-open .mnc-course-list {
        display: block !important;
        border: 1px solid #dee2e6 !important;
        border-top: 0 !important;
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
        background: #fff !important;
        overflow: hidden !important;
    }
}