/* ==========================================================================
   BLOCK, WIDGET & ELEMENTOR: TEMARIO DETALLADO DEL CURSO (EXF - CAJÓN DESASTRE)
   ========================================================================== */

.exf-course-syllabus-block {
    font-family: inherit;
    box-sizing: border-box;
    background: transparent; 
 
    padding: 0;
    border: none;
}

/* Cuerpo del temario — hereda tipografía del tema */
.exf-temario-body {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* Listas del temario */
.exf-temario-body ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 0 15px 0 !important;
}

.exf-temario-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

/* Viñeta principal — usa el color del tema como herencia */
.exf-temario-body ul li::before {
    content: "•";
    color: inherit;
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 6px;
    top: -2px;
    opacity: 0.5;
}

/* Sub-nivel */
.exf-temario-body ul ul {
    margin-top: 8px !important;
    margin-left: 10px !important;
}

.exf-temario-body ul ul li::before {
    content: "◦";
    font-size: 1em;
    top: 0;
}

/* ==========================================================================
   ADAPTACIÓN MÓVIL (OPCIÓN B - HTML REAL)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Cabecera (01 + Título del módulo + Horas): Pasamos los códigos arriba */
    .exf-modulo-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .exf-modulo-header .exf-codigo {
        font-size: 1.15em !important;
        line-height: 1 !important;
    }

    .exf-modulo-header .exf-horas {
        align-self: flex-start !important;
        margin-top: 5px !important;
    }

    /* 2. Unidades Formativas (UF): Apilamos todo verticalmente para que "80 horas" no se rompa */
    .exf-unidad-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    
    .exf-unidad-row .exf-horas {
        align-self: flex-start !important;
        margin-top: 5px !important;
        text-align: left !important;
    }
}
